@font-face {
  font-family: "Atlas Fredoka";
  src: url("../_fonts/0YnDgvJVu5oApJ10ZP0EG5izDKany4k4uEkWCRk-HPI-LpgsQt59mtlBArZi_ZZvoxv-5_JcM2qnn_-f3gILIOY.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f0dfc6;
  --paper-light: #f8edda;
  --paper-deep: #decaab;
  --ink: #172b35;
  --ink-soft: #52616a;
  --navy: #0a354e;
  --navy-deep: #07273d;
  --sea: #0b4966;
  --brass: #ac8954;
  --brass-light: #d5b77e;
  --coral: #db755d;
  --rail-width: 326px;
  font-family: "Atlas Fredoka", "Trebuchet MS", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Keep Cyrillic UI text consistent and easy to read across the atlas. */
body, body * { font-family: "Segoe UI", Arial, sans-serif !important; }

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { color: var(--ink); background: var(--navy-deep); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #e4ad55; outline-offset: 2px; }
[hidden] { display: none !important; }
.seo-summary { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.atlas-shell { width: 100%; height: 100%; display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); background: var(--navy-deep); }
.field-rail {
  min-width: 0; height: 100%; position: relative; z-index: 4; display: flex; flex-direction: column;
  padding: 24px 22px 14px; overflow: hidden; border-right: 1px solid #bc9e6d;
  background-color: var(--paper); background-image: radial-gradient(ellipse at 13% 18%, #fff7e82e 0 1px, transparent 2px), radial-gradient(ellipse at 78% 66%, #83664112 0 1px, transparent 2px), linear-gradient(120deg, #fff5e51c, transparent 58%);
  box-shadow: 8px 0 28px #041d2b54;
}
.field-rail::before, .field-rail::after { content: ""; position: absolute; left: 10px; right: 10px; height: 1px; background: #b99b6c; opacity: .7; pointer-events: none; }
.field-rail::before { top: 8px; }.field-rail::after { bottom: 8px; }
.atlas-brand { min-height: 122px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; column-gap: 11px; position: relative; }
.brand-mark { width: 42px; height: 42px; color: #987647; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-wordmark { display: flex; flex-direction: column; align-items: flex-start; color: #3b3023; line-height: .9; }
.brand-wordmark span { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .04em; font-size: clamp(26px, 2vw, 34px); }
.brand-wordmark small { font-family: Georgia, serif; font-size: 11px; font-weight: 700; letter-spacing: .38em; margin-top: 10px; padding-left: 3px; white-space: nowrap; }
.brand-edition { border-left: 1px solid #c5a879; padding-left: 9px; color: #94784d; font: 9px/1.3 Georgia, serif; letter-spacing: .15em; text-align: center; }
.rail-divider { display: flex; align-items: center; gap: 8px; height: 18px; color: #a78753; font-size: 12px; margin-bottom: 13px; }
.rail-divider::before, .rail-divider::after { content: ""; height: 1px; background: #b99b6c; flex: 1; }
.search-box { height: 50px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; position: relative; border: 1px solid #b89b6b; border-radius: 4px; padding: 0 12px; background: #fbf2e3; box-shadow: inset 0 1px #fff9; }
.search-box > svg { width: 19px; height: 19px; flex: 0 0 auto; stroke: #53616a; fill: none; stroke-width: 2; }
.search-box input { border: 0; outline: 0; min-width: 0; flex: 1; color: var(--ink); background: transparent; font-family: Georgia, serif; font-size: 16px; }
.search-box input::placeholder { color: #657077; opacity: 1; }
.search-box kbd { color: #897553; border: 1px solid #d1bd9c; border-radius: 3px; padding: 2px 4px; font: 9px/1.2 "Atlas Fredoka", sans-serif; white-space: nowrap; }
.search-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 310px; overflow: auto; border: 1px solid #ae9162; border-radius: 4px; background: #fbf2e3; box-shadow: 0 12px 30px #122b3845; }
.search-result { width: 100%; padding: 9px 11px; text-align: left; display: flex; gap: 9px; align-items: center; border: 0; border-bottom: 1px solid #e4d4bb; background: transparent; cursor: pointer; }
.search-result:hover { background: #eee0c7; }.search-result img { width: 26px; height: 26px; object-fit: contain; }.search-result span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rail-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 17px 0 16px; border-bottom: 1px solid #bea47b; }
.rail-tab { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 5px 11px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: #75664f; font-size: 13px; font-weight: 600; cursor: pointer; }
.rail-tab.active { color: #172b35; border-bottom-color: var(--coral); }
.rail-tab span { min-width: 19px; border-radius: 10px; padding: 2px 5px; background: #dfc9a7; color: #66573e; font-size: 10px; font-variant-numeric: tabular-nums; }
.explore-pane, .log-pane { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.section-kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 9px; color: #91754a; font: 10px/1.2 Georgia, serif; font-weight: 700; letter-spacing: .18em; }
.section-kicker span:last-child { color: #6e7471; letter-spacing: .04em; font: 11px/1 "Atlas Fredoka", sans-serif; }
.bulk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bulk-actions button, .export-log { border: 1px solid #c8b18c; background: #f6ead5; border-radius: 3px; min-height: 31px; font-size: 11px; cursor: pointer; transition: background .15s, border-color .15s; }
.bulk-actions button:hover, .export-log:hover { background: #fffaed; border-color: #98794c; }
.layer-list, .field-log-list { flex: 1; min-height: 0; overflow: auto; padding: 0 3px 10px 0; scrollbar-color: #bba27a transparent; scrollbar-width: thin; }
.layer-group { border-top: 1px solid #d1bd9c; }
.layer-head { min-height: 56px; display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(38px, auto) 32px; gap: 8px; align-items: center; padding: 5px 4px; }
.layer-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #bca378; border-radius: 50%; background: #f8ecd8; }
.layer-icon img { width: 26px; height: 26px; object-fit: contain; }
.layer-toggle-label { min-width: 0; border: 0; padding: 5px 0; text-align: left; background: transparent; cursor: pointer; }
.layer-title { display: block; min-width: 0; overflow: hidden; color: #26343a; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.layer-subtitle { display: block; margin-top: 2px; color: #7b715e; font-size: 10px; }
.layer-count { min-width: 38px; color: #87744f; font: 12px "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.layer-switch { width: 31px; height: 18px; position: relative; border: 1px solid #a99b7f; border-radius: 12px; background: #d2c5ad; cursor: pointer; transition: background .2s; }
.layer-switch::after { content: ""; position: absolute; width: 12px; height: 12px; left: 2px; top: 2px; background: #fff9ee; border-radius: 50%; box-shadow: 0 1px 2px #0004; transition: transform .2s; }
.layer-switch[aria-checked="true"] { background: #416b65; border-color: #416b65; }.layer-switch[aria-checked="true"]::after { transform: translateX(13px); }
.sub-layer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 1px 10px 43px; }
.sub-layer { min-width: 0; height: 32px; display: flex; align-items: center; gap: 6px; padding: 3px 6px; border: 1px solid #cbb895; border-radius: 3px; background: #f7ecd9; opacity: .58; cursor: pointer; }
.sub-layer.active { border-color: #92794f; opacity: 1; background: #fff5e4; }
.sub-layer img { width: 21px; height: 21px; object-fit: contain; flex: 0 0 auto; }.sub-layer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.sub-layer small { margin-left: auto; color: #857556; font: 9px Georgia, serif; }
.rail-footer { min-height: 122px; flex: 0 0 122px; overflow: hidden; position: relative; display: flex; align-items: end; border-top: 1px solid #bba079; margin-top: 5px; }
.rail-footer img { position: absolute; width: 100%; height: 116px; inset: 4px 0 auto; object-fit: contain; object-position: center bottom; opacity: .66; pointer-events: none; }
.footer-copy, .footer-stamp { position: relative; z-index: 1; margin-bottom: 5px; padding: 4px 6px; background: #f0dfc6db; }
.footer-copy { display: flex; flex-direction: column; gap: 3px; }.footer-copy span { font: 9px Georgia, serif; font-weight: 700; letter-spacing: .14em; color: #725f40; }.footer-copy small { color: #71695d; font-size: 10px; }.footer-stamp { margin-left: auto; font: 9px Georgia, serif; letter-spacing: .1em; color: #8a7045; }
.field-log-list { display: flex; flex-direction: column; gap: 6px; }.log-empty { margin: 14px 2px; color: #6d685e; font: 14px/1.5 Georgia, serif; }
.log-entry { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid #c9b48f; background: #f7ecd9; text-align: left; cursor: pointer; }.log-entry img { width: 30px; height: 30px; object-fit: contain; }.log-entry span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }.export-log { flex: 0 0 34px; margin-bottom: 6px; }

.map-frame { min-width: 0; min-height: 0; position: relative; padding: 8px; background: #071f30; }
.map-frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid #a88752; pointer-events: none; z-index: 3; }
.map-frame::after { content: ""; position: absolute; inset: 9px; border: 1px solid #c6a76966; pointer-events: none; z-index: 3; }
.map-stage { width: 100%; height: 100%; position: relative; isolation: isolate; overflow: hidden; background: #0b4663; cursor: grab; touch-action: none; }
.map-stage.is-dragging { cursor: grabbing; }
.ocean-grain { position: absolute; inset: 0; z-index: -1; background-color: #0b4663; background-image: linear-gradient(140deg, #0b3b56d9, #0b4c6cbd 54%, #0a3954df), radial-gradient(ellipse at 25% 28%, #80b4c020, transparent 36%), radial-gradient(ellipse at 78% 74%, #83b5bd19, transparent 33%); background-repeat: no-repeat; opacity: .9; }
.world-sheet { --world-size: min(100%, 1280px); position: absolute; z-index: 0; width: var(--world-size); height: var(--world-size); top: 12%; left: calc(50% - var(--world-size) / 2 + 160px); transform-origin: 0 0; transform: translate3d(0, 0, 0) scale(1); will-change: transform; backface-visibility: hidden; user-select: none; }
.world-raster { width: 100%; height: 100%; display: block; object-fit: fill; image-rendering: auto; pointer-events: none; -webkit-user-drag: none; }
.region-labels { position: absolute; inset: 0; pointer-events: none; }
.marker-layer { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; pointer-events: auto; transform-origin: 0 0; will-change: transform; contain: layout paint; }
.map-marker { position: absolute; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; transition: filter .12s ease, opacity .12s ease; contain: layout paint style; }
.map-marker img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.map-marker.is-hovered { filter: brightness(1.08); }
.map-marker:hover { filter: brightness(1.08); }
.map-marker.is-search-match { outline: 2px solid #e2a44e; outline-offset: 1px; }
.region-name { position: absolute; transform: translate(-50%, -50%); padding: 2px 7px; border: 1px solid #e9d59b9c; border-radius: 2px; color: #30483f; background: #f2e5c6a6; text-shadow: 0 1px #fff6; font: 10px Georgia, serif; letter-spacing: .04em; white-space: nowrap; pointer-events: none; opacity: .72; }
.map-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 100px #031b2a55; }
.map-coordinates { position: absolute; z-index: 2; inset: 14px 18px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; pointer-events: none; color: #e2c58cbd; font: 9px Georgia, serif; letter-spacing: .08em; text-shadow: 0 1px #092338; }
.compass { position: absolute; z-index: 4; right: 31px; top: 28px; width: 103px; height: 118px; display: flex; flex-direction: column; align-items: center; color: #e4ca94; pointer-events: none; filter: drop-shadow(0 4px 8px #02162677); }
.compass svg { width: 88px; height: 88px; fill: none; stroke: currentColor; stroke-width: 1.1; }.compass svg path:nth-of-type(1) { fill: #dfc48b; }.compass svg path:nth-of-type(2) { fill: #25435a; }.compass-n { height: 14px; font: 10px Georgia, serif; }.compass-caption { margin-top: -4px; font: 8px Georgia, serif; letter-spacing: .18em; }
.zoom-stack { position: absolute; z-index: 5; top: 160px; right: 48px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #c5a870; border-radius: 4px; background: #0b2e47eF; box-shadow: 0 6px 18px #04192777; }
.zoom-stack button { width: 44px; height: 42px; display: grid; place-items: center; color: #f1dfba; background: transparent; border: 0; border-bottom: 1px solid #bc9d6a77; font: 24px Georgia, serif; cursor: pointer; }.zoom-stack button:last-child { border-bottom: 0; }.zoom-stack button:hover { background: #c29b58; color: #132c3b; }.zoom-stack svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-settings { position: absolute; z-index: 7; left: 18px; bottom: 63px; }
.map-settings-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #c5a870; border-radius: 4px; color: #f1dfba; background: #0b2e47; box-shadow: 0 4px 12px #04192777; cursor: pointer; }
.map-settings-toggle:hover, .map-settings-toggle[aria-expanded="true"] { color: #182f3b; background: #d8bd84; }
.map-settings-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-settings-panel { position: absolute; left: 0; bottom: 54px; width: min(274px, calc(100vw - 36px)); padding: 9px 12px 7px; border: 1px solid #a98e61; border-radius: 5px; color: #243841; background: #f7eddb; box-shadow: 0 10px 28px #03192780; }
.map-settings-panel[hidden] { display: none; }
.map-settings-panel header { display: flex; align-items: center; justify-content: space-between; min-height: 34px; margin-bottom: 4px; border-bottom: 1px solid #d9c8a8; }
.map-settings-panel h2 { margin: 0; color: #3a3023; font: 700 15px Georgia, serif; }
.map-settings-panel header button { width: 28px; height: 28px; border: 1px solid #c5b28f; border-radius: 3px; color: #394953; background: #fff8eb; font-size: 20px; line-height: 1; cursor: pointer; }
.map-setting { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 2px; border: 0; border-bottom: 1px solid #e3d6bf; color: #30434a; background: transparent; text-align: left; font-size: 13px; cursor: pointer; }
.map-setting:last-child { border-bottom: 0; }
.language-setting { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 2px 2px; border-top: 1px solid #d9c8a8; color: #30434a; font-size: 13px; }
.language-setting select { max-width: 132px; min-height: 30px; padding: 4px 24px 4px 8px; border: 1px solid #c5b28f; border-radius: 3px; color: #243841; background: #fff8eb; font: inherit; }
.language-setting select:focus-visible { outline: 3px solid #bd8a39; outline-offset: 2px; }
.map-setting i { width: 33px; height: 19px; position: relative; flex: 0 0 auto; border: 1px solid #9c927d; border-radius: 12px; background: #d3c7b1; }
.map-setting i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff9ee; box-shadow: 0 1px 2px #0003; transition: transform .18s ease; }
.map-setting[aria-checked="true"] i { border-color: #416b65; background: #416b65; }
.map-setting[aria-checked="true"] i::after { transform: translateX(14px); }
.map-setting:focus-visible, .map-settings-panel button:focus-visible { outline: 3px solid #bd8a39; outline-offset: 2px; }
.map-caption { position: absolute; z-index: 4; left: 21px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid #c0a46f84; color: #e8d3a9; background: #092d45df; font: 9px Georgia, serif; letter-spacing: .12em; box-shadow: 0 3px 12px #05203455; pointer-events: none; }.caption-dot { width: 7px; height: 7px; border-radius: 50%; background: #a9c282; box-shadow: 0 0 8px #a9c282; }.caption-separator { color: #b6935b; }
.map-popup-layer { position: absolute; z-index: 12; inset: 0; pointer-events: none; }
.place-card { width: min(350px, calc(100vw - 36px)); max-height: min(54vh, 440px); overflow: auto; position: absolute; pointer-events: auto; color: #1c2d35; background: #fbf5e9; border: 1px solid #a98e61; border-radius: 6px; box-shadow: 0 12px 35px #041e30a8, 0 0 0 3px #f7eed956; }
.place-card::after { content: ""; position: absolute; left: var(--tip-x, 50%); width: 14px; height: 14px; background: #fbf5e9; border: solid #a98e61; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.place-card.card-above::after { bottom: -8px; border-width: 0 1px 1px 0; }.place-card.card-below::after { top: -8px; border-width: 1px 0 0 1px; }
.card-head { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 10px 47px 9px 13px; border-bottom: 1px solid #e4d8c3; }
.card-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #c2a873; border-radius: 50%; background: #122c42; }.card-icon img { width: 30px; height: 30px; object-fit: contain; }.card-title-wrap { min-width: 0; }.card-title { margin: 0; color: #192d38; font: 700 16px/1.2 Georgia, serif; }.card-region { margin: 4px 0 0; color: #627078; font-size: 12px; }.card-close { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border: 1px solid #c8b797; border-radius: 4px; background: #fffaf0; color: #33454e; font-size: 19px; line-height: 1; cursor: pointer; }.card-close:hover { border-color: #1c6e98; color: #1c6e98; }
.card-body { padding: 10px 13px 13px; }.card-preview { display: block; width: 100%; max-height: 108px; object-fit: cover; margin: 0 0 9px; border: 1px solid #d3c4a7; border-radius: 3px; background: #e6ddcc; }.card-description { margin: 0 0 10px; color: #4b5c63; font: 12px/1.4 Georgia, serif; }.card-meta { margin: -2px 0 10px; color: #8c7349; font-size: 11px; }.found-action { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #a18658; border-radius: 3px; color: #f8eedb; background: #17364b; font-size: 13px; font-weight: 700; cursor: pointer; }.found-action:hover { background: #27566c; }.found-action[aria-pressed="true"] { color: #233a39; background: #d4e0bf; border-color: #849766; }.found-check { width: 15px; height: 15px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10px; }
.event-facts { display: flex; align-items: center; gap: 10px; margin: 4px 0 11px; padding: 8px; border: 1px solid #e0d1b7; background: #f5ead6; }.event-portrait { width: 46px; height: 46px; flex: 0 0 46px; position: relative; display: grid; place-items: center; }.event-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }.event-portrait img:first-child { width: 36px; height: 36px; inset: 5px; border-radius: 50%; }.event-fact-copy { display: flex; flex-direction: column; gap: 3px; color: #627078; font-size: 11px; }.event-fact-copy strong { color: #283d46; font: 700 13px Georgia, serif; }
.event-section { margin: 9px 0 11px; }.event-section-title { margin: 0 0 6px; color: #90744a; font: 700 9px Georgia, serif; letter-spacing: .13em; }.element-chips { display: flex; flex-wrap: wrap; gap: 5px; }.element-chip { border: 1px solid #d2bf9d; border-radius: 3px; padding: 3px 7px; color: #475852; background: #f3eddc; font-size: 10px; }.element-chip.recommended { border-color: #b6c89c; color: #3d604b; background: #e6ecd9; }.element-chip.avoid { border-color: #d6b5a5; color: #855548; background: #f4e5dc; }
.reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }.reward-tile { min-width: 0; min-height: 78px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; padding: 5px 4px 4px; border: 1px solid #d7c8ac; border-radius: 3px; background: #f6ebd7; text-align: center; }.reward-tile img { width: 38px; height: 38px; object-fit: contain; }.reward-tile small { position: absolute; top: 3px; right: 4px; padding: 1px 3px; border-radius: 2px; color: #fff8e9; background: #203b4b; font-size: 8px; }.reward-tile span { max-width: 100%; overflow: hidden; color: #5b5d53; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-toast { position: absolute; z-index: 20; left: 50%; bottom: 22px; transform: translate(-50%, 10px); padding: 9px 14px; border: 1px solid #d2b981; border-radius: 4px; color: #f7ebd1; background: #0c3048eF; font: 12px Georgia, serif; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }.map-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-rail-toggle { display: none; }

@media (max-width: 900px) {
  :root { --rail-width: 292px; }
  .field-rail { padding-inline: 17px; }.brand-edition { display: none; }.atlas-brand { grid-template-columns: 38px 1fr; }.brand-mark { width: 38px; height: 38px; }
  .compass { right: 18px; top: 19px; transform: scale(.85); transform-origin: top right; }.zoom-stack { right: 32px; top: 142px; }
  .world-sheet { --world-size: min(100%, 1280px); left: calc(50% - var(--world-size) / 2 + 160px); }
}
@media (max-width: 680px) {
  :root { --rail-width: min(326px, calc(100vw - 54px)); }
  .atlas-shell { display: block; }.field-rail { position: absolute; inset: 0 auto 0 0; width: var(--rail-width); transform: translateX(-102%); transition: transform .28s ease; box-shadow: 14px 0 42px #031a2ab0; }.field-rail.open { transform: translateX(0); }
  .map-frame { position: absolute; inset: 0; padding: max(5px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); }.map-frame::before { inset: 3px; }.map-frame::after { inset: 7px; }
  .mobile-rail-toggle { display: grid; position: absolute; z-index: 10; left: 17px; top: 17px; width: 46px; height: 46px; place-items: center; border: 1px solid #d3b77f; border-radius: 4px; color: #1b3445; background: #f3e4ca; box-shadow: 0 4px 14px #061f36a0; cursor: pointer; }.mobile-rail-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  /* On portrait phones the map must use the viewport height, not only its narrow width. */
  .world-sheet { --world-size: max(100%, 92vh); --world-size: max(100%, 92dvh); left: calc(50% - var(--world-size) / 2); top: 4%; }
  .compass { top: 19px; right: 14px; transform: scale(.72); }.zoom-stack { top: 126px; right: 20px; }.zoom-stack button { width: 39px; height: 38px; }
  .map-caption { left: 14px; bottom: 13px; font-size: 8px; }.map-coordinates { inset: 13px 12px; }.place-card { width: min(360px, calc(100vw - 28px)); max-height: 64vh; }
}
@media (pointer: coarse) {
  .map-stage { cursor: default; -webkit-tap-highlight-color: transparent; }
  .marker-layer { contain: strict; }
  .zoom-stack button, .map-settings-toggle, .mobile-rail-toggle { min-width: 44px; min-height: 44px; }
  .map-marker { min-width: 40px; min-height: 40px; }
  .card-close { width: 44px; height: 44px; top: 6px; right: 6px; }
  .found-action { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
