:is(.news-portal-page,.inner-page) {
  --tower: clamp(36px, 5.5vw, 90px);
  --stone: url('tibia/ui/stone-wall.png');
  --wood: url('tibia/ui/carved-wood.png');
  background: #171411;
  font-family: Georgia, 'Times New Roman', serif;
  position: relative;
  max-width: 1672px;
  margin-inline: auto;
}
:is(.news-portal-page,.inner-page)::before,
:is(.news-portal-page,.inner-page)::after {
  content: '';
  position: absolute;
  inset-block: clamp(96px, 10vw, 166px) 0;
  width: var(--tower);
  background: var(--stone) center top / 280px repeat;
  border-inline: 3px solid #302820;
  box-shadow: inset 3px 0 #a3947a66, inset -4px 0 #100d0bcc;
  pointer-events: none;
  z-index: 4;
}
:is(.news-portal-page,.inner-page)::before { left: 0; }
:is(.news-portal-page,.inner-page)::after { right: 0; transform: scaleX(-1); }
:is(.news-portal-page,.inner-page) .skyline {
  height: clamp(132px, 11vw, 184px);
  background:
    linear-gradient(90deg,#06120c99,transparent 30% 72%,#07110b88),
    url('tibia/visuals/aegis-masthead-pixel.png') center 46% / cover no-repeat;
}
:is(.news-portal-page,.inner-page) .masthead {
  max-width: none;
  padding-inline: max(18px,var(--tower));
}
:is(.news-portal-page,.inner-page) .masthead::after {
  display: none !important;
  content: none !important;
}
.session-status {
  position: absolute;
  z-index: 4;
  right: clamp(95px,10vw,150px);
  bottom: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: min(58vw,620px);
  padding: 5px 9px;
  border: 1px solid #9a713d;
  background: #1b120cde;
  color: #f4dfb2;
  text-decoration: none;
  font: 700 clamp(.7rem,.9vw,.85rem) Georgia,serif;
  box-shadow: inset 0 0 0 1px #0008,0 2px 5px #0008;
}
.session-user,.wallet-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.session-user>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-status img { width: 27px; height: 27px; object-fit: contain; flex: 0 0 27px; }
.session-status .tier-icon { width: 30px; height: 30px; flex-basis: 30px; }
.wallet-item { padding-left: 8px; border-left: 1px solid #9a713d88; color: #ffe095; }
.wallet-item img { width: 24px; height: 24px; flex-basis: 24px; }
.online-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #27da49; box-shadow: 0 0 6px #27da49; }
.premium-check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #168b38; border: 1px solid #7bf19a; color: #fff; font: 700 13px/1 Arial,sans-serif; font-style: normal; box-shadow: 0 0 5px #2bd75888; }
.account-tier { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.account-tier img { width: 34px; height: 34px; object-fit: contain; }
.premium-tier .account-status { color: #a11216; }
.free-tier b { color: #60401f; }
.premium-offer { display: inline-flex; align-items: center; gap: 7px; }
.premium-offer img { width: 30px; height: 30px; object-fit: contain; }
.premium-offer .premium-check { width: 16px; height: 16px; font-size: 11px; }
:is(.news-portal-page,.inner-page) .logo {
  padding: 0;
  height: 100%;
  width: clamp(145px, 24vw, 390px);
}
:is(.news-portal-page,.inner-page) .mainnav {
  padding: 5px var(--tower);
  background: #392013 var(--wood) center / auto 100% repeat-x;
  border-block: 3px solid #332017;
  box-shadow: inset 0 2px #a37745, inset 0 -2px #987047, 0 4px 0 #221a16;
}
:is(.news-portal-page,.inner-page) .navinner {
  max-width: none;
  flex-wrap: wrap;
  padding: 0;
  justify-content: space-evenly;
  background: #1b0e0755;
}
:is(.news-portal-page,.inner-page) .navinner a,
:is(.news-portal-page,.inner-page) .navlogout {
  padding: 8px clamp(9px,1.2vw,24px);
  min-height: 44px;
  font-size: clamp(.9rem,1.4vw,1.35rem);
}
:is(.news-portal-page,.inner-page) .navinner a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px,.75vw,12px);
}
:is(.news-portal-page,.inner-page) .navinner a span { display: inline; }
.ui-icon {
  --ix: 0%;
  --iy: 0%;
  display: inline-block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background-image: url('tibia/ui/aegis-icon-atlas.png');
  background-size: 400% 400%;
  background-position: var(--ix) var(--iy);
  background-repeat: no-repeat;
  vertical-align: middle;
  font-size: 0;
}
.icon-home { --ix: 0%; --iy: 0%; }
.icon-create { --ix: 33.333%; --iy: 0%; }
.icon-party { --ix: 66.666%; --iy: 0%; }
.icon-online { --ix: 100%; --iy: 0%; }
.icon-ranking { --ix: 100%; --iy: 0%; }
.icon-market { --ix: 0%; --iy: 33.333%; }
.icon-account { --ix: 33.333%; --iy: 33.333%; }
.icon-world { --ix: 66.666%; --iy: 33.333%; }
.icon-earth { background-image:url('tibia/ui/icon-earth.svg')!important; background-size:contain!important; background-position:center!important; }
.icon-key { --ix: 100%; --iy: 33.333%; }
.icon-search { --ix: 0%; --iy: 66.666%; }
.icon-warrior { --ix: 33.333%; --iy: 66.666%; }
.icon-mage { --ix: 66.666%; --iy: 66.666%; }
.icon-archer { --ix: 100%; --iy: 66.666%; }
.icon-druid { --ix: 0%; --iy: 100%; }
.icon-monk { --ix: 33.333%; --iy: 100%; }
.icon-scroll { --ix: 66.666%; --iy: 100%; }
.icon-chest { --ix: 100%; --iy: 100%; }
.news-portal-page .navinner > a:first-child,
.news-portal-page .stone-menu a.active,
.widget-button, .portal-search button,
.inner-page .btn, .inner-page .auction-blue, .inner-page .auction-green {
  background: linear-gradient(180deg,#963128,#5e1415 52%,#3e1011);
  border: 1px solid #d4a05a;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #411d15, inset 0 0 0 3px #b77f425e, 0 2px 3px #100906b3;
  min-height: 36px;
  padding: 7px 13px;
  line-height: 1.25;
}
.account-widget .widget-button {
  width: fit-content;
  min-width: min(11rem, 100%);
  max-width: 100%;
  margin: 8px auto 3px;
}
:is(.news-portal-page,.inner-page) .page-shell {
  width: calc(100% - 2 * var(--tower));
  max-width: none;
  padding: clamp(6px,1vw,16px);
  border: 4px solid #28201b;
  background: #433a33 var(--stone) center / 425px repeat;
}
.avalon-layout {
  grid-template-columns: minmax(140px,17fr) minmax(0,52fr) minmax(260px,28fr);
  gap: clamp(8px,1vw,16px);
}
.avalon-layout > *, .page-content, .class-grid > div { min-width: 0; }
.avalon-left, .avalon-right, .inner-sidebar { border-color: #453a32; }
.stone-menu a, .inner-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stone-menu .ui-icon, .inner-sidebar .ui-icon { width: 27px; height: 27px; flex-basis: 27px; }
.gate-scene, .inner-gate {
  height: auto;
  aspect-ratio: 246 / 305;
  background: url('tibia/ui/portal-gate.png') center / cover no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.gate-scene > *, .inner-gate > * { display: none; }
.news-scroll, .page-content {
  background-color: #efd7a4;
  background-size: cover;
  border: 6px ridge #a8824e;
  overflow-wrap: anywhere;
}
.news-scroll { padding: clamp(12px,1.6vw,28px); }
.news-scroll h1 { font-size: clamp(1.4rem,2.3vw,2.15rem); }
.news-scroll h2 { font-size: clamp(1.05rem,1.5vw,1.48rem); }
.news-scroll p, .world-body dd, .account-widget p { font-size: .96rem; }
.news-scroll > header span {
  width: 48px;
  aspect-ratio: 1;
  flex: none;
  font-size: 0;
  background: url('tibia/ui/icon-scroll.png') center / contain no-repeat;
}
.lead-news { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.lead-news img { width: 100%; height: auto; aspect-ratio: 212 / 160; content: url('tibia/ui/news-town.png'); }
.news-entry { grid-template-columns: 72px minmax(0,1fr); }
.news-entry .news-icon {
  font-size: 0;
  background: url('tibia/ui/icon-swords.png') center / contain no-repeat;
  border: 0;
  outline: 0;
}
.news-entry:last-child .news-icon { background-image: url('tibia/ui/icon-chest.png'); }
.published-news .news-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #8c5e26;
  box-sizing: border-box;
}
.world-body { grid-template-columns: minmax(0,1fr) minmax(56px,34%); }
.dark-widget h2 { display: flex; align-items: center; gap: 7px; }
.dark-widget h2 .ui-icon { width: 25px; height: 25px; flex-basis: 25px; }
.world-body dt { display: grid; place-items: center; }
.world-body dt .ui-icon { width: 19px; height: 19px; flex-basis: 19px; }
.mini-map { width:100%; aspect-ratio:1; align-self:center; background:url('tibia/ui/aegis-mini-map-v2.png') center / cover no-repeat; }
.mini-map > * { display: none; }
.portal-search input { min-width: 0; }
.class-grid span.class-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 5px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  background-image: url('tibia/ui/aegis-icon-atlas.png');
  background-size: 400% 400%;
  background-position: var(--ix) var(--iy);
  background-repeat: no-repeat;
}
.class-grid div:nth-child(n) span.class-icon {
  background-color: transparent;
  background-image: url('tibia/ui/aegis-icon-atlas.png');
  background-size: 400% 400%;
  background-position: var(--ix) var(--iy);
}
.class-grid b { font-size: .75rem; overflow-wrap: normal; word-break: normal; }
.adventure-carousel {
  position: relative;
  width: 100%;
  margin: 12px auto 0;
  padding: 0;
  box-sizing: border-box;
}
.carousel-viewport {
  overflow: hidden;
  border: 4px solid #2b211a;
  outline: 2px solid #9a713d;
  background: #100b08;
  box-shadow: inset 0 0 25px #000,0 4px 10px #0009;
}
.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.22,.7,.25,1);
  will-change: transform;
}
.adventure-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  min-height: clamp(250px,38vw,520px);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #ffe6a8;
  text-decoration: none;
}
.adventure-slide.hydra { background-image: url('tibia/banners/hydra-ruins.png'); }
.adventure-slide.fortress { background-image: url('tibia/banners/demon-fortress.png'); }
.adventure-slide.dragons { background-image: url('tibia/banners/dragon-platforms.png'); }
.adventure-slide.portal {
  background-image: url('tibia/banners/aegis-portal-blue.png');
  background-position: center 58%;
}
.adventure-slide span {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 10px 13px;
  background: linear-gradient(transparent,#110b08e8 35%);
  text-shadow: 0 2px 2px #000;
}
.adventure-slide b { font-size: clamp(1.15rem,1.7vw,1.55rem); }
.adventure-slide small { color: #ead8b9; font-size: clamp(.78rem,1vw,.95rem); }
.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 58px;
  border: 1px solid #e2b052;
  background: #27170dcc;
  color: #ffe4a2;
  font: 700 2.2rem/1 Georgia,serif;
  cursor: pointer;
  text-shadow: 0 2px #000;
}
.carousel-prev { left: clamp(12px,2vw,28px); }
.carousel-next { right: clamp(12px,2vw,28px); }
.carousel-arrow:hover,.carousel-arrow:focus-visible { background: #721319eb; }
.carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #f1cf7b;
  border-radius: 50%;
  background: #27170dcc;
  cursor: pointer;
  box-shadow: 0 1px 3px #000;
}
.carousel-dots button.is-active { background: #d8a53f; }
.page-content { overflow-x: auto; }
.inner-page .portal-card {
  color: #ffe6a8 !important;
  text-shadow: 0 1px 2px #120906;
}
.inner-page .portal-card:hover,
.inner-page .portal-card:focus-visible {
  color: #fff8dc !important;
  background-color: #4a2518;
}
.inner-page .portal-staff h3 {
  color: #f3c969;
  text-shadow: 0 1px 2px #071011;
}
.inner-page .portal-staff,
.inner-page .portal-staff p {
  color: #d9f4f2;
}
.inner-page .account-tabs a,
.inner-page .dark-widget a,
.inner-page .inner-sidebar a {
  text-shadow: 0 1px 2px #130a06;
}
:is(.news-portal-page,.inner-page) :focus-visible { outline: 2px solid #e2ac48; outline-offset: 2px; }
@media (max-width: 1050px) {
  .avalon-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); }
  .avalon-left { display: none; }
  .avalon-right { grid-column: auto; display: flex; }
}
@media (max-width: 760px) {
  :is(.news-portal-page,.inner-page) { --tower: 0px; }
  :is(.news-portal-page,.inner-page)::before, :is(.news-portal-page,.inner-page)::after { display: none; }
  :is(.news-portal-page,.inner-page) .masthead { justify-content: flex-start; }
  .avalon-layout { grid-template-columns: minmax(0,1fr); }
  .lead-news { grid-template-columns: minmax(0,1fr); }
  .news-scroll > header { gap: 8px; }
  .page-content { padding: 12px; }
  .inner-page .page-content > .card.form { padding: 12px; }
  .session-status { right: 8px; bottom: 6px; max-width: 55vw; padding: 3px 6px; }
  .session-status img { width: 25px; height: 25px; flex-basis: 25px; }
  .session-status span { max-width: 28vw; }
  .wallet-item { padding-left: 4px; }
  .wallet-item img { width: 20px; height: 20px; flex-basis: 20px; }
  .adventure-carousel { width: 100%; padding-inline: 8px; }
  .adventure-slide { min-height: clamp(220px,58vw,360px); }
  .carousel-arrow { width: 36px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.market-tabs{display:flex;gap:4px;margin:0 0 14px;border-bottom:2px solid #6e4b27}
.market-tabs a{padding:8px 22px;background:linear-gradient(#403936,#292422);border:1px solid #76685e;border-bottom:0;color:#fff0d1;text-decoration:none;font:700 .92rem Georgia,serif}
.market-tabs a:hover{background:linear-gradient(#9f2023,#650b11)}
.market-tabs a.active{background:linear-gradient(#9f2023,#650b11);border-color:#d4a13a;color:#ffe6aa}
.item-market-art img { height: clamp(210px,27vw,330px); object-position: center 43%; }

/* World map: full-width content between the structural towers. */
.world-map-promo {
  width: 100%;
  margin: 16px auto 4px;
  padding: clamp(8px,1.2vw,16px);
  box-sizing: border-box;
  border: 4px solid #211812;
  outline: 2px solid #9a713d;
  background: linear-gradient(#3b2c21,#17110d);
  box-shadow: inset 0 0 0 2px #625043,0 5px 16px #000b;
}
.world-map-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:2px 4px 12px; color:#f3d27b; }
.world-map-heading small { color:#d4bb8a; text-transform:uppercase; letter-spacing:.12em; }
.world-map-heading h2 { margin:2px 0 0; font:700 clamp(1.2rem,2.2vw,1.75rem) Georgia,serif; }
.world-map-heading a,.world-map-page header>a { padding:8px 14px; border:2px solid #d1a13d; background:#7b1117; color:#fff0c3; text-decoration:none; font:700 .84rem Georgia,serif; white-space:nowrap; }
.world-map-preview { position:relative; display:block; overflow:hidden; border:2px solid #bf8b33; background:#06171c; }
.world-map-preview img { display:block; width:100%; height:auto; aspect-ratio:2560/2124; object-fit:contain; background:#336699; }
.world-map-preview span { position:absolute; right:12px; bottom:12px; padding:7px 13px; background:#160d09df; border:1px solid #d6a53f; color:#ffe8a2; font:700 .85rem Georgia,serif; }

.world-map-page { min-width:0; }
.world-map-page>header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; padding:12px 14px; border:2px solid #4d3d31; background:#181817; color:#f2dfb4; }
.world-map-page header small { color:#d4ac50; text-transform:uppercase; letter-spacing:.12em; }
.world-map-page h1 { margin:3px 0; color:#f7d578; font:700 clamp(1.4rem,3vw,2rem) Georgia,serif; }
.world-map-page header p { margin:0; color:#d4c4a5; font-size:.84rem; }
.world-map-canvas { margin:0; overflow:auto; border:3px solid #2a2019; outline:2px solid #a47735; background:#07191d; box-shadow:0 6px 18px #0008; }
.world-map-stage { position:relative; width:100%; min-width:760px; }
.world-map-image { display:block; width:100%; height:auto; }
.world-map-logo { position:absolute; z-index:2; top:6.2%; right:2.3%; width:clamp(100px,13%,230px); height:auto; filter:drop-shadow(0 3px 5px #000c); pointer-events:none; }
.world-map-pin { position:absolute; z-index:5; width:34px; height:42px; transform:translate(-50%,-100%); filter:drop-shadow(0 4px 4px #000c); pointer-events:none; }
.world-map-pin[hidden] { display:none; }
.world-map-pin b { position:absolute; left:4px; top:3px; width:23px; height:23px; border:3px solid #fff1c9; border-radius:50% 50% 50% 0; background:#d00d1b; transform:rotate(-45deg); box-shadow:inset 0 0 0 3px #8a0710; }
.world-map-pin b:after { content:''; position:absolute; left:7px; top:7px; width:6px; height:6px; border-radius:50%; background:#fff3c8; }
.world-map-pin small { position:absolute; left:50%; bottom:42px; transform:translateX(-50%); padding:4px 8px; border:1px solid #f0bd48; border-radius:3px; background:#6d0b11; color:#fff3ca; font:700 12px Georgia,serif; white-space:nowrap; }
.town-directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:6px; margin-top:14px; padding:12px; border:2px solid #6f5539; background:#251d18; color:#f0ddb5; }
.town-directory button { display:flex; align-items:center; gap:7px; padding:6px 7px; border:0; border-bottom:1px solid #65513a; background:transparent; color:#f0ddb5; font:700 .75rem Georgia,serif; cursor:pointer; text-align:left; }
.town-directory button:hover,.town-directory button:focus-visible,.town-directory button.is-selected { background:#741117; color:#fff1bd; outline:1px solid #d5a53f; }
.town-directory i { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:#801319; border:2px solid #e6bd59; }
.farm-pin-layer { position:absolute; inset:0; z-index:4; pointer-events:none; }
.farm-map-dot { position:absolute; width:18px; height:18px; transform:translate(-50%,-50%); border:3px solid #ffe0a0; border-radius:50%; background:#d30b18; box-shadow:0 0 0 0 #e51b28b8,0 2px 5px #000; animation:farm-pulse 1.45s ease-out infinite; }
.farm-map-dot:after { content:''; position:absolute; inset:4px; border-radius:50%; background:#fff5cf; }
.farm-map-dot.is-focused { width:26px; height:26px; background:#ff101f; animation-duration:.8s; }
@keyframes farm-pulse { 0%{box-shadow:0 0 0 0 #e51b28b8,0 2px 5px #000} 70%{box-shadow:0 0 0 16px #e51b2800,0 2px 5px #000} 100%{box-shadow:0 0 0 0 #e51b2800,0 2px 5px #000} }
.farm-finder { margin-top:16px; border:3px solid #241a13; outline:2px solid #9b733c; background:#211914; color:#f1deba; box-shadow:inset 0 0 0 2px #5d4b3c; }
.farm-finder>header { display:flex; align-items:end; justify-content:space-between; gap:18px; padding:14px 16px; background:#131716; border-bottom:2px solid #a57b36; }
.farm-finder h2 { margin:2px 0 0; color:#f2cf70; font:700 1.35rem Georgia,serif; }
.farm-finder header small,.farm-finder label span { color:#c8ad77; font-size:.7rem; text-transform:uppercase; letter-spacing:.1em; }
.farm-filters { display:flex; align-items:end; gap:9px; width:min(570px,100%); }
.farm-finder label { display:grid; gap:4px; min-width:0; flex:1; }
.farm-finder input,.farm-finder select { width:100%; padding:9px 11px; border:2px solid #8c6638; background:#fff5dc; color:#2a1a10; }
.farm-tabs { display:flex; gap:5px; overflow-x:auto; padding:10px; background:#30241c; scrollbar-width:thin; }
.farm-tabs button { flex:0 0 auto; padding:7px 11px; border:1px solid #80684f; background:#40352f; color:#f0ddb9; font:700 .73rem Georgia,serif; cursor:pointer; }
.farm-tabs button:hover,.farm-tabs button.is-active { border-color:#dfad43; background:#85131a; color:#fff1bb; }
.farm-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; padding:12px; }
.farm-zone { position:relative; display:grid; gap:3px; min-height:156px; padding:10px 78px 10px 12px; border:1px solid #725b43; background:linear-gradient(135deg,#3b3029,#241c18); color:#ead7b5; text-align:left; cursor:pointer; }
.farm-zone[hidden] { display:none; }
.farm-zone:hover,.farm-zone:focus-visible,.farm-zone.is-selected { border-color:#e4ae3c; background:linear-gradient(135deg,#751219,#3e0b0e); outline:1px solid #b78029; }
.farm-zone b { color:#f3d47c; font:700 .9rem Georgia,serif; }
.farm-zone span { font-size:.73rem; line-height:1.3; }
.farm-zone small { position:absolute; right:9px; top:50%; transform:translateY(-50%); padding:5px 7px; border:1px solid #b78b3b; border-radius:12px; color:#ffe7a2; background:#17120f; font-weight:700; }
.farm-zone .mob-sprites { display:flex; align-items:end; gap:6px; min-width:0; margin-top:7px; padding-top:7px; border-top:1px solid #6d543a; }
.mob-sprite { display:grid; grid-template-rows:52px auto; justify-items:center; width:58px; min-width:0; }
.mob-sprite img { align-self:end; display:block; width:52px; height:52px; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 2px 2px #000b); }
.mob-sprite em { display:block; width:100%; overflow:hidden; color:#d9c398; font:normal .58rem/1.15 Georgia,serif; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.farm-empty { margin:0 12px 14px; padding:12px; text-align:center; border:1px solid #795f43; color:#d8c299; }
@media(max-width:760px) {
  .world-map-promo { width:100%; }
  .world-map-heading,.world-map-page>header { align-items:flex-start; flex-direction:column; }
  .world-map-preview span { right:6px; bottom:6px; }
  .world-map-canvas { -webkit-overflow-scrolling:touch; }
  .world-map-stage { width:980px; min-width:980px; }
  .farm-finder>header { align-items:stretch; flex-direction:column; }
  .farm-filters { align-items:stretch; flex-direction:column; }
  .farm-results { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce){.farm-map-dot{animation:none}}

/* Icono de correo con distintivo rojo (avisos) */
.mail-btn{position:absolute;z-index:4;bottom:11px;right:calc(clamp(95px,10vw,150px) - 46px);display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #9a713d;background:#1b120cde;box-shadow:inset 0 0 0 1px #0008,0 2px 5px #0008;text-decoration:none}
.mail-btn svg{display:block}.mail-btn .mail-body{fill:#f4dfb2;stroke:#9a713d;stroke-width:1}.mail-btn .mail-flap{fill:none;stroke:#7a5a2a;stroke-width:1.6}
.mail-btn:hover{border-color:#ffd37a}
.mail-badge{position:absolute;top:-7px;right:-7px;min-width:19px;height:19px;padding:0 5px;box-sizing:border-box;border-radius:10px;background:#d4231a;border:2px solid #fff3d0;color:#fff;font:700 .68rem/15px Arial;text-align:center;box-shadow:0 1px 3px #000a}
.mail-badge[hidden]{display:none}
@media (max-width:820px){.mail-btn{left:8px;right:auto;top:8px;bottom:auto;width:34px;height:34px}.mail-btn svg{width:22px;height:22px}}

/* Sprite real del personaje al inicio de su nombre (listas, ranking, perfil). El sprite se centra y escala para caber entero. */
.cn{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.cn-sprite{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;overflow:hidden}
.cn-sprite img{display:block;width:auto;height:auto;max-width:calc(100% - 2px);max-height:calc(100% - 2px);object-fit:contain;image-rendering:pixelated}

/* Sprites de personaje (no de objetos): todos llenan el recuadro por igual, sean grandes o pequeños, sin salirse. */
.cn-sprite img{width:calc(100% - 2px);height:calc(100% - 2px);max-width:none;max-height:none;object-fit:contain}
