:root {
  color-scheme: light;
  --ink: #193c32;
  --muted: #526b60;
  --paper: #f8f6eb;
  --line: #dcded0;
  --surface: #fffdf5;
  --green: #1b4839;
  --pale: #eef0df;
  --gold: #edcf80;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; overflow: hidden; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, #map:focus-visible { outline: 2px solid #a66b1e; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .45; }
[hidden] { display: none !important; }
.symbols, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button svg, .clock svg, .search-form > svg, .profile-place svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kicker { font-size: 10px; font-weight: 790; letter-spacing: .13em; line-height: 1.35; }
.kicker i, .atlas-footer i, .match-banner i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #548060; }
.button { border-radius: 10px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; min-height: 39px; font-weight: 680; line-height: 1.2; }
.button.dark { background: var(--green); color: #fffdf0; }
.button.dark:hover { background: #286451; }
.button.pale { background: var(--pale); border-color: #dde1ce; }
.button.pale:hover { background: #e4ead7; }

.masthead { position: fixed; z-index: 5; inset: 14px 16px auto; min-height: 62px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 13px; align-items: center; }
.masthead, .map-context, .quick-nav, .search-block, .rail, .profile { background: #fffcf0f5; border: 1px solid #dce1cc; border-radius: 13px; box-shadow: 0 4px 18px #243e272b; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; justify-self: start; }
.brand span { display: grid; gap: 2px; }
.brand strong { font: bold 29px/.98 Georgia, serif; letter-spacing: -.05em; white-space: nowrap; }
.brand small { color: #4a6957; font-size: 8px; font-weight: 790; letter-spacing: .14em; }
.mast-stats, .mast-actions { display: flex; align-items: center; gap: 9px; }
.mast-actions { justify-content: end; }
.mast-actions .button { min-height: 36px; padding: 6px 9px; white-space: nowrap; font-size: 12px; }
.mast-actions .button[aria-pressed="true"] { border-color: #a8b8a0; background: #e4ecda; }
.population { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid #dce5d2; border-radius: 7px; background: #ecf0e1; font-size: 12px; }
.population i { width: 7px; height: 7px; border-radius: 50%; background: #568567; box-shadow: 0 0 0 2px #d7e5d1; }
.clock { display: flex; align-items: center; gap: 8px; }
.clock div { display: grid; gap: 2px; }
.clock small { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .09em; white-space: nowrap; }
.clock time { font-weight: 740; font-variant-numeric: tabular-nums; line-height: 1; }
.clock-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4e7bb; color: #845b25; }
.clock-icon.night { background: #e0e7e6; color: #315c63; }

.workspace, .atlas, .stage { position: absolute; inset: 0; }
.workspace { isolation: isolate; }
.stage {
  --water: #c4ded5; --water-outer: #deebe0; --lines: #6d9f96;
  --map-ink: #254e43; --label-ink: #163b2c; --label-paper: #fff3d6;
  --land: #b7c495; --north: #8daf83; --northeast: #dfca88; --center: #c7c890;
  --southeast: #d3c798; --south: #afbd90; --edge: #f3e7b8; --bank: #79997b;
  --river: #79aaa8; --highway: #f0dfaf; --highway-edge: #83936d;
  overflow: hidden; color: var(--map-ink);
  background: radial-gradient(ellipse at 43% 35%, var(--water-outer), var(--water));
}
.stage[data-night="true"] {
  --water: #173d49; --water-outer: #33585a; --lines: #6c9d9d;
  --map-ink: #f4edd2; --label-ink: #fff0ca; --label-paper: #284a41;
  --land: #687c66; --north: #436957; --northeast: #8e805e; --center: #717759;
  --southeast: #78785e; --south: #556f62; --edge: #a4aa86; --bank: #395c57;
  --river: #488083; --highway: #d9c393; --highway-edge: #596b56;
  --countryside-light: 72%; --urban-light: 62%; --terrain-light: 76%;
}
.atlas-relief, .atlas-grid, .atlas-paper { opacity: var(--relief-opacity, 1); }
.stage[data-scene="city"] :is(.atlas-relief, .atlas-grid, .atlas-paper) { display: none; }
.atlas-coast { stroke-width: var(--coast-width, 4); }
.atlas-region { stroke: #e9e4b9; stroke-opacity: .45; stroke-width: var(--region-line, 1); }
.stage[data-scene="city"] .atlas-labels, .stage[data-scene="city"] #map-city-labels { display: none; }
.stage[data-scene="region"] .region-label, .stage[data-scene="region"] .sea-label { display: none; }
.atlas-countryside > * { opacity: .82; }
.stage[data-scene="country"] .atlas-countryside > * { opacity: .4; }
.landmark-label { fill: var(--label-ink); stroke: var(--label-paper); paint-order: stroke; stroke-linejoin: round; stroke-width: var(--venue-stroke, 2px); font-size: calc(.84 * var(--venue-text, 12px)); font-weight: 750; }
.urban-landmark:hover .landmark-label { text-decoration: underline; }
.urban-area { font-variant-numeric: tabular-nums; }
.highway-hit { stroke: transparent; stroke-width: var(--highway-touch, 9); pointer-events: stroke; }
.highway-edge { stroke: var(--highway-edge); stroke-width: calc(var(--highway-width, 1.4) * 1.5); }
.highway-surface { stroke: var(--highway); stroke-width: var(--highway-width, 1.4); }
.highway-markings { stroke: #fff2cb; stroke-width: .035; stroke-dasharray: .26 .22; opacity: 0; }
.stage[data-scene="city"] .highway-markings { opacity: .8; }
.highway:hover, .highway-selected { --highway: #f3ca6c; --highway-edge: #a87c3e; }
.map-fan-sprite, .street-actors .map-fan-dot { display: none; }
.street-actors .map-fan-sprite { display: inline; }
.stage[data-night="true"] .urban-scene .lit-window { fill: #aa925e; }
.urban-annotation text, .fan-tag text { fill: var(--label-ink); stroke: var(--label-paper); paint-order: stroke; stroke-linejoin: round; font-weight: 760; }
.urban-annotation text { font-size: var(--venue-text, 15px); stroke-width: var(--venue-stroke, 3.5px); letter-spacing: .08em; }
.district-label text { fill: var(--label-ink); stroke: var(--label-paper); stroke-width: var(--venue-stroke, 3.5px); paint-order: stroke; stroke-linejoin: round; font-size: calc(.75 * var(--venue-text, 15px)); letter-spacing: .14em; font-weight: 830; }
.district-label:hover text { text-decoration: underline; }
.fan-tag text { font-size: var(--fan-text, 4px); stroke-width: var(--fan-stroke, 1.12px); }
.urban-stadium:hover { filter: brightness(1.08); }
#map { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
#map.dragging { cursor: grabbing; }
#map [data-hit] { cursor: pointer; }
#map [data-hit]:hover .target-outline { stroke: #ffdf75; }
#map:focus-visible { outline-offset: -4px; }
.cartography { font-family: system-ui, sans-serif; fill: var(--map-ink); pointer-events: none; }
.region-label { font-size: 12px; font-weight: 800; letter-spacing: .25em; opacity: .59; }
.sea-label { font: italic 19px Georgia, serif; letter-spacing: .18em; opacity: .56; }
.river-label { font: italic 14px Georgia, serif; letter-spacing: .11em; opacity: .75; }
.city-label text, .venue-label text { font-size: 14px; fill: var(--label-ink); font-weight: 750; paint-order: stroke; stroke: var(--label-paper); stroke-width: 4px; stroke-linejoin: round; }
.city-marker { transform: scale(var(--marker-scale, 1)); }
.city-label text { font-size: 12px; stroke-width: 3px; }
.venue-label text { font-size: var(--venue-text, 6px); stroke-width: var(--venue-stroke, 1.6px); }
.venue-label.featured-label text { font-size: calc(1.16 * var(--venue-text, 6px)); }
.city-label:hover text, .venue-label:hover text { text-decoration: underline; }
.map-hud { position: absolute; top: 90px; left: 16px; display: grid; gap: 7px; justify-items: start; max-width: calc(100% - 32px); }
.map-context { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; color: #204b3e; pointer-events: none; }
.map-context svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.map-context strong { display: block; font-weight: 800; font-size: 13px; }
.map-context small { display: block; font-size: 10px; color: var(--muted); }
.quick-nav { display: flex; gap: 4px; padding: 4px; overflow: auto; max-width: 100%; scrollbar-width: none; color: var(--ink); }
.quick-nav button { background: #eef0e1; border: 1px solid transparent; border-radius: 6px; padding: 5px 7px; white-space: nowrap; font-size: 11px; font-weight: 700; }
.quick-nav button:hover { border-color: #cedcc4; background: #e4eedb; }
.scale-trigger { display: none; position: absolute; bottom: 39px; left: 16px; align-items: center; gap: 6px; padding: 6px 8px; background: #fffaf0ed; color: #254e43; border: 1px solid #d6e0d1; border-radius: 7px; font-size: 10px; font-weight: 700; }
.scale-trigger svg { width: 16px; height: 16px; }
.scale-trigger:hover { background: #eef0df; }
.stage[data-scene="city"] .scale-trigger { display: inline-flex; }
.scale-art { display: block; width: 100%; margin: 12px 0 18px; border-radius: 9px; background: #f2efdf; }
.map-buttons { display: grid; justify-items: end; gap: 7px; position: absolute; bottom: 30px; right: 16px; }
.map-buttons button, .zoom-pair { border: 1px solid #d8dfce; color: #204b3e; background: #fffaf1; border-radius: 9px; box-shadow: 0 2px 6px #1c493017; }
.zoom-pair { overflow: hidden; }
.zoom-pair button { border: 0; box-shadow: none; display: grid; width: 39px; height: 37px; place-items: center; border-radius: 0; }
.zoom-pair button + button { border-top: 1px solid #e4e7db; }
.map-buttons .fit { padding: 0 9px; height: 37px; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 740; }
.map-buttons button:hover { background: #e9efde; }
.match-banner { position: absolute; top: 182px; left: 16px; display: flex; gap: 7px; align-items: center; border: 1px solid #d9bd73; background: #fae5ac; border-radius: 8px; min-height: 31px; padding: 5px 8px; font-size: 11px; font-weight: 750; color: #3e4d35; }
.match-banner svg { width: 13px; height: 13px; }
.match-banner i { margin: 0; background: #a64437; }
.atlas-footer { position: absolute; bottom: 10px; left: 16px; }
.atlas-footer button { background: #fffaf0dc; border: 1px solid #d6e0d1; border-radius: 5px; padding: 3px 6px; font-size: 10px; color: #315348; }
.search-example button { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 2px; color: #2e5e4a; font-weight: 700; }
.rail { position: absolute; z-index: 3; top: 90px; right: 16px; width: min(332px, calc(100% - 32px)); max-height: calc(100% - 161px); overflow: auto; display: grid; gap: 11px; padding: 11px; scrollbar-width: thin; scrollbar-color: #b2c1ae transparent; }
.guide-head { display: flex; align-items: center; justify-content: space-between; }
.search-block { position: absolute; z-index: 2; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(480px, calc(100% - 214px)); padding: 4px; }
.search-form { display: flex; align-items: center; gap: 6px; padding: 0; }
.search-form > svg { margin-left: 5px; color: #607b69; }
.search-form input { min-width: 0; width: 100%; background: transparent; border: 0; padding: 8px 2px; }
.search-form .button { min-height: 34px; padding: 6px 11px; }
.search-suggestions { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; max-height: min(45vh, 320px); overflow-y: auto; overscroll-behavior: contain; padding: 5px; background: #fffcef; border: 1px solid #cbd8c1; border-radius: 12px; box-shadow: 0 4px 18px #243e2740; }
.search-suggestions button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 8px; padding: 8px 10px; text-align: left; background: transparent; color: var(--ink); }
.search-suggestions button:hover, .search-suggestions button[aria-selected="true"] { background: #e5edda; }
.search-suggestions svg { flex: none; width: 30px; height: 34px; }
.search-suggestions span { min-width: 0; overflow-wrap: anywhere; }
.search-suggestions strong { display: block; font-size: 13px; }
.search-suggestions small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.search-block.has-suggestions .search-example { display: none; }
.search-example { position: absolute; bottom: calc(100% + 4px); left: 8px; color: var(--muted); background: #fffcf0e8; border-radius: 5px; font-size: 10px; padding: 2px 6px; margin: 0; }
.feedback { color: #8b4035; margin: 7px 0 0; font-size: 12px; font-weight: 630; }
.feedback.success { color: #34674a; }
.search-block .feedback { padding: 0 5px 4px; }
.profile { position: absolute; z-index: 3; bottom: 80px; left: 16px; width: min(300px, calc(100% - 32px)); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-actions [aria-pressed="true"] { background: #d9e7cf; border-color: #a7bf9e; }
.roster-list { display: grid; gap: 5px; max-height: 48svh; overflow: auto; }
.roster-list button { display: grid; grid-template-columns: 28px 1fr; align-items: center; text-align: left; gap: 6px; background: #f2f5e9; border: 1px solid #e1e5d6; border-radius: 7px; padding: 5px; overflow-wrap: anywhere; }
.roster-list button:hover { background: #e5edda; }
.roster-list svg { width: 23px; height: 23px; stroke: none; }
.roster-list small { display: block; color: var(--muted); }
.rail-content { display: grid; gap: 14px; min-width: 0; }
.featured { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: space-between; justify-items: start; gap: 11px; padding: 14px; min-height: 150px; background: radial-gradient(ellipse at 84% 70%, #eed591, #f8ebc5 72%); border: 1px solid #e9d7a2; border-radius: 12px; }
.featured::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(-30deg, transparent 0 18px, #91723a15 19px 20px); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.featured .kicker { color: #685a37; font-size: 9px; }
.featured .kicker i { background: #ad7936; width: 6px; height: 6px; }
.featured h3 { font: bold 33px/.99 Georgia, serif; letter-spacing: -.07em; margin: 5px 0; }
.featured p { font-size: 11px; font-weight: 640; margin: 0; }
.feature-art { width: 47%; max-width: 152px; position: absolute; z-index: -1; bottom: 8px; right: 5px; }
.feature-art svg { display: block; width: 100%; }
.feature-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 760; background: #fffaf0e0; border: 1px solid #e9d7a2; border-radius: 7px; padding: 6px 8px; }
.feature-link svg { width: 13px; height: 13px; }
.feature-link:hover { background: #fffdf8; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; }
.section-heading h3 { margin: 0; font: bold 21px/1.1 Georgia, serif; letter-spacing: -.035em; }
.section-heading span { color: #57735f; font-size: 9px; font-weight: 780; letter-spacing: .09em; white-space: nowrap; }
.city-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0; }
.city-chips button, .venue-chip { border: 1px solid #dee4d5; background: #f6f8ee; border-radius: 7px; padding: 5px 7px; font-size: 11px; font-weight: 650; }
.city-chips button:hover, .venue-chip:hover, .city-chips button[aria-pressed="true"] { background: #e4eedb; border-color: #c3d6bf; }
select, .dialog-form input, .dialog-form textarea { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #d9dfce; border-radius: 8px; background: #fcfbf3; }
.destinations select { font-size: 12px; }
.match-button { width: 100%; justify-content: flex-start; }
.match-button svg:last-child { margin-left: auto; }
.place-info, .profile { border-radius: 11px; border: 1px solid #dbe3ce; background: #f3f5e9; padding: 10px; }
.place-info h3, .profile h3 { font: bold 19px/1.1 Georgia, serif; margin: 3px 0 4px; overflow-wrap: anywhere; }
.profile h3 { font-size: 16px; }
.place-info p, .profile p { margin: 4px 0; font-size: 12px; color: var(--muted); }
.place-info .city-chips { margin: 6px 0 0; }
.place-info button { min-height: 29px; }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.shirt-tile { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 8px; background: #e7edda; }
.shirt-tile svg { width: 29px; height: 29px; }
.shirt-tile:has(.fan-portrait) { width: 43px; height: 50px; background: #e5ebd7; }
.shirt-tile .fan-portrait { width: 31px; height: 42px; }
.profile-place { display: flex; align-items: center; gap: 5px; margin: 8px 0; font-size: 12px; font-weight: 650; }
.profile-place svg { width: 15px; height: 15px; }
.profile .button { min-height: 31px; padding: 4px 8px; font-size: 11px; }
.icon-button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #dde3d3; border-radius: 7px; background: #fafaf0; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { background: #e8efdc; }
.subtle-text { margin: -7px 0 0; font-size: 12px; color: var(--muted); }
.rank-list { list-style: none; margin: 0; padding: 0 3px 0 0; max-height: min(460px, 50svh); overflow: auto; scrollbar-color: #b2c1ae transparent; }
.rank-list li + li { border-top: 1px solid #e7eadf; }
.rank-list button { width: 100%; display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; align-items: center; text-align: left; gap: 6px; border: 0; border-radius: 8px; background: transparent; min-height: 40px; padding: 4px; }
.rank-list button:hover, .rank-list button[aria-pressed="true"] { background: #e9efdd; }
.rank-list svg { width: 21px; height: 21px; stroke: none; }
.rank-list small { display: block; font-size: 10px; color: var(--muted); }
.rank-list strong { font-size: 12px; }
.rank-place, .rank-total { font-variant-numeric: tabular-nums; font-weight: 740; }
.duel-chooser { padding: 10px; border: 1px solid #ced8bd; border-radius: 10px; background: #f0f2e4; }
.duel-chooser summary { cursor: pointer; font-weight: 800; color: #244b3d; }
.duel-chooser summary span { margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: #ffe09b; font-size: 9px; letter-spacing: .07em; }
.duel-chooser p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.duel-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.duel-presets .button { padding: 4px 8px; min-height: 32px; font-size: 11px; }
.duel-form { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duel-form label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; }
.duel-form select { min-width: 0; width: 100%; padding: 7px 3px; font-size: 13px; }
.duel-form .button { grid-column: 1 / -1; justify-content: center; }
.stage[data-duel] .map-context, .stage[data-duel] .quick-nav { display: none; }
.duel-score { width: min(365px, calc(100vw - 32px)); background: #fffaf0f7; color: #22493d; border: 1px solid #d8dfce; border-radius: 12px; padding: 8px; box-shadow: 0 4px 16px #1237242b; }
.duel-head, .duel-footer { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 0 3px; }
.duel-head h2 { margin: 0; font: 800 13px system-ui, sans-serif; }
.duel-head .icon-button { width: 29px; height: 29px; }
.duel-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; margin: 4px 0; }
.duel-versus { font-size: 12px; font-weight: 800; color: var(--muted); }
.duel-team { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; text-align: left; gap: 5px; min-height: 51px; padding: 5px; background: #edf0e0; border: 1px solid #dbe3cd; border-radius: 7px; }
.duel-team:hover { background: #e0ead5; }
.duel-team svg { width: 25px; height: 25px; stroke: none; }
.duel-team span { font-size: 11px; line-height: 1.2; font-weight: 750; overflow-wrap: anywhere; }
.duel-team strong { display: block; font: 800 22px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.duel-footer { font-size: 10px; color: var(--muted); }
.duel-footer button { color: #244b3d; background: transparent; border: 0; padding: 4px 0; font-size: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.stage[data-duel] .match-banner { top: 233px; }
.rank-place { font-size: 10px; color: var(--muted); }
.clear-filter { min-height: 31px; font-size: 11px; }

dialog { width: min(440px, calc(100% - 26px)); max-height: min(92svh, 680px); border: 1px solid #dbe2cd; border-radius: 15px; padding: 17px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 70px #0d2d2b40; }
dialog::backdrop { background: #1b3a32a1; }
dialog h2 { font: bold 28px/1 Georgia, serif; letter-spacing: -.04em; margin: 3px 0 0; }
dialog p { font-size: 13px; line-height: 1.45; color: var(--muted); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.dialog-form { display: grid; gap: 6px; }
.dialog-form label { font-size: 12px; font-weight: 720; margin-top: 4px; }
.dialog-form textarea { resize: vertical; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.dialog-footer .dark { margin-left: auto; }
.dialog-footer small { color: var(--muted); }
.dialog-form summary { cursor: pointer; font-size: 12px; font-weight: 700; padding: 5px 0; }
.support-dialog { padding: 22px; text-align: center; background: radial-gradient(ellipse at 50% 25%, #f4e7bb80, transparent 64%), var(--surface); }
.support-dialog .dialog-head { align-items: center; text-align: left; }
.support-mark { display: grid; place-items: center; margin: 12px auto 18px; width: 94px; height: 94px; border: 1px solid #d9d9be; border-radius: 50%; background: #eff0dc; }
.support-mark img { border-radius: 15px; box-shadow: 0 5px 15px #1b48391c; }
.support-dialog h2 { font-size: 34px; line-height: 1.06; }
.support-dialog p { line-height: 1.65; margin: 17px 0; }
.support-link { width: 100%; margin: 4px 0 13px; min-height: 46px; text-decoration: none; }
.support-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.support-link svg:last-child { margin-left: auto; }
.support-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }

@media (max-width: 760px) {
  .duel-score { width: min(350px, calc(100vw - 16px)); }
  .stage[data-duel] .match-banner { top: 210px; }
  .city-label text { font-size: 10px; }
  .masthead { inset: 8px 8px auto; min-height: 51px; padding: 5px 7px; gap: 5px; grid-template-columns: minmax(0, 1fr) auto auto; }
  .brand { gap: 5px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 6px; letter-spacing: .08em; }
  .mast-actions, .mast-stats { gap: 4px; }
  .mast-actions .button { min-width: 34px; min-height: 34px; padding: 5px; }
  .mast-actions .button span, .population span { display: none; }
  .population { padding: 4px; font-size: 10px; }
  .population i { width: 5px; height: 5px; }
  .clock { gap: 2px; }
  .clock-icon { display: none; }
  .clock small { font-size: 6px; letter-spacing: .01em; }
  .clock small span { display: none; }
  .clock time { font-size: 11px; }
  .map-hud { top: 67px; left: 8px; max-width: calc(100% - 16px); }
  .map-context { min-height: 35px; padding: 4px 7px; }
  .map-context strong { font-size: 11px; }
  .map-context small, .quick-nav button { font-size: 9px; }
  .quick-nav button { min-height: 26px; }
  .match-banner { top: 151px; left: 8px; }
  .map-buttons { right: 8px; bottom: 99px; }
  .map-buttons .fit, .zoom-pair button { width: 35px; height: 35px; padding: 0; justify-content: center; }
  .map-buttons .fit span { display: none; }
  .scale-trigger { left: 8px; bottom: 92px; }
  .atlas-footer { left: 8px; bottom: max(6px, env(safe-area-inset-bottom)); }
  .search-block { bottom: max(29px, calc(env(safe-area-inset-bottom) + 22px)); width: calc(100% - 16px); }
  .search-form input { font-size: 16px; }
  .search-form input::placeholder { font-size: 13px; }
  .profile { width: min(274px, calc(100% - 58px)); bottom: 122px; left: 8px; }
  .profile h3 { font-size: 14px; }
  .rail { top: 66px; right: 8px; width: min(326px, calc(100% - 16px)); max-height: calc(100% - 152px); }
  .featured { min-height: 127px; }
  .rank-list { max-height: none; }
}
@media (max-width: 355px) {
  .clock { display: none; }
}

/* Apoios: same map cadence, lightweight independent hit targets. */
.support-vehicles{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.support-vehicle{position:absolute;top:0;left:0;transform-origin:0 0;padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;will-change:transform}
.support-vehicle svg{width:100%;height:100%;overflow:visible;display:block}.support-vehicle:focus-visible{outline:2px solid #ecc46e;border-radius:8px}
.vehicle-note{position:absolute;z-index:9;right:24px;bottom:110px;width:min(310px,calc(100% - 32px));padding:22px;background:#fff9e9;border:1px solid #bca77f;border-radius:14px;box-shadow:0 8px 28px #173c3230;color:#214b3d}
.vehicle-note>*{display:block}.vehicle-note strong{font:700 22px Georgia;margin:10px 0 5px}.vehicle-note span{font-size:12px}.vehicle-note p{font:19px/1.4 Georgia}.vehicle-note small{font-size:10px;letter-spacing:.04em;line-height:1.5}.vehicle-note .vehicle-close{position:absolute;right:9px;top:6px;border:0;background:none;font-size:25px;color:#36564a;cursor:pointer}
.vehicle-preview{position:absolute;top:24px;left:24px;z-index:8;display:grid;gap:7px;background:#fff7e4ed;border:1px solid #b4a376;border-radius:12px;padding:15px 18px;box-shadow:0 4px 16px #163a3220;color:#244e40;font-size:12px}.vehicle-preview b{font-size:10px;letter-spacing:.1em}.vehicle-preview a{color:#245f4b;font-weight:700}.vehicle-preview span{font:20px Georgia}
.bus-form{text-align:left}.bus-form h3,.active-title{font:24px Georgia;margin:20px 0 10px}.bus-form p{font-size:13px;line-height:1.5}.support-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bus-form label,.review-card label{display:grid;gap:5px;font-size:12px;margin:12px 0}.bus-form select,.bus-form textarea,.review-card select{width:100%;padding:10px;border:1px solid #c5c6ad;border-radius:8px;background:#fffdf4;font:14px inherit;color:#244a3b}.bus-form textarea{resize:vertical;min-height:60px}.bus-form .button{width:100%;justify-content:center}.support-instructions{color:#66735d}.support-active{display:grid;gap:7px;font-size:12px}.vehicle-find{justify-content:flex-start}.support-dialog{max-height:90svh;overflow:auto}.review-page{overflow:auto;background:#f4efdc;color:#244b3e}.review-page main{max-width:850px;margin:45px auto;padding:20px}.review-card{border:1px solid #c5bda4;border-radius:14px;padding:20px;margin:18px 0;background:#fff9e8}.review-card .button{margin-right:8px}.review-card small{line-height:1.6}.review-card p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.vehicle-preview{top:12px;left:12px;padding:10px;max-width:240px}.vehicle-preview span{font-size:16px}.vehicle-note{right:12px;bottom:110px;padding:16px;width:260px}.support-fields{grid-template-columns:1fr}.support-dialog h2{font-size:28px}}

.stage[data-support-preview] .map-hud{display:none}.vehicle-preview{top:92px}.support-vehicle{will-change:auto}

.street-bus{cursor:pointer}.street-bus:focus-visible{outline:2px solid #f2d485}

.preview-options{display:grid;gap:6px;grid-template-columns:1fr 1fr;max-width:260px}.preview-options select{min-width:0;width:100%;font-size:11px;color:#244b3e;border:1px solid #bdbba5;border-radius:5px;padding:5px;background:#fff9e9}.vehicle-note .button{margin-top:10px;font-size:11px;min-height:30px}

/* Illustrated support choices are the same SVG models used on the map. */
.support-dialog .support-mark{width:52px;height:52px;margin:6px auto 8px}.support-dialog .support-mark img{width:40px;height:40px}.support-dialog h2{font-size:29px;margin:9px 0}.support-dialog>p{font-size:13px;line-height:1.5;margin:10px 0 16px}.support-dialog{padding:18px 22px}
.reward-choices{border:0;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.reward-choices legend{font-weight:700;font-size:12px;padding:0;margin-bottom:10px;color:#315343}.bus-form .reward-choice{display:flex;position:relative;flex-direction:column;gap:6px;margin:0;padding:9px 10px 12px;border:1px solid #c9c8af;background:#f3efdb;border-radius:12px;cursor:pointer;text-align:center}.reward-choice:has(input:checked){border-color:#28614e;background:#e7eddb;box-shadow:0 0 0 1px #28614e}.reward-choice input{position:absolute;top:10px;left:10px;accent-color:#28614e;width:16px;height:16px;margin:0}.reward-art{display:block;height:102px;pointer-events:none;background:radial-gradient(ellipse at 50% 75%,#dce4ca 0%,transparent 70%)}.reward-art svg{width:100%;height:102px;display:block}.reward-name{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:750;gap:4px}.reward-name b{font-size:14px;color:#28614e;white-space:nowrap}.reward-description{font-size:10px;color:#64715c;line-height:1.3}.bus-form .reward-duration{font-size:11px;color:#53634e;line-height:1.5;margin:12px 0}.reward-choice:focus-within{outline:2px solid #a66b1e;outline-offset:3px}.review-warning{font-size:13px;color:#904627}
@media(max-width:420px){.support-dialog{padding:15px}.reward-choices{gap:8px}.bus-form .reward-choice{padding:8px 8px 10px}.reward-name{font-size:12px}.reward-name b{font-size:13px}.reward-description{font-size:9px}.support-fields{grid-template-columns:1fr 1fr}}

.bus-form input:not([type=checkbox]):not([type=radio]){width:100%;padding:10px;border:1px solid #c5c6ad;border-radius:8px;background:#fffdf4;font:14px inherit;color:#244a3b}.bus-form .support-consent{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.5}.support-consent input{margin:2px 0 0;accent-color:#28614e;flex:none}.paypal-button{background:#ffc439;border:1px solid #e8b635;color:#173a58;font-weight:800}.paypal-button:hover{background:#f4ba2f}.paypal-button:disabled{opacity:.6;cursor:wait}.kofi-additional{border-top:1px solid #d4d3bb;padding-top:18px;margin-top:18px}.kofi-additional .support-link{margin:10px 0}.kofi-additional small{display:block;font-size:11px;color:#63705e;line-height:1.5}.payment-page{overflow:auto;background:#e5ead8;color:#264b3b}.payment-result{max-width:490px;margin:8vh auto;padding:32px;border:1px solid #cecbb1;border-radius:18px;box-shadow:0 12px 32px #244d3020;background:#fff9e8;line-height:1.6}.payment-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:#244b3e;font:700 28px Georgia;margin-bottom:25px}.payment-brand img{border-radius:10px}.payment-result h1{font:700 32px/1.2 Georgia}.payment-result .button{margin:12px 5px 8px 0}.payment-result small{display:block;color:#63705e;font-size:11px;margin-top:18px}.payment-art:empty{display:none}@media(max-width:550px){.payment-result{margin:24px 14px;padding:24px}.payment-result h1{font-size:28px}}
.privacy-map-link{display:inline-block;padding:4px 6px;background:#fffaf0dc;border-radius:5px;font-size:10px;color:#315c4c;text-decoration:none}
