:root {
    --cyan: #00ffff;
    --muted: #a1c1c4;
    --ink: #070c12;
    --panel: #0d181e;
    --line: #315357;
    --floor-inset: max(env(safe-area-inset-left), env(safe-area-inset-right), clamp(14px, 3vw, 46px));
    --floor-top: max(env(safe-area-inset-top), clamp(4px, 1svh, 12px));
    --floor-bottom: max(env(safe-area-inset-bottom), clamp(12px, 2.6svh, 28px));
    --mast-height: max(44px, 2.75rem);
    --control-width: 208px;
    --control-height: 4.5rem;
    --station-panel-max: 620px;
    --station-panel-width: min(var(--station-panel-max), 44vw);
    --hud-surface: rgb(3 7 10 / 76%);
    --hud-highlight: rgb(12 37 42 / 92%);
    --hud-cell-highlight: rgb(0 255 255 / 13%);
    color-scheme: dark;
    font:
        16px/1.45 var(--arcade-font);
    color: #f3faf9;
    background: var(--ink);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    scrollbar-color: #377775 #101c20;
}
a,
button {
    color: inherit;
    font: inherit;
}
a {
    text-underline-offset: 3px;
}
button {
    cursor: pointer;
}
button,
a {
    touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #ffe16e;
    outline-offset: 3px;
}
[hidden] {
    display: none !important;
}
#world {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 48% 45%, #174049, #071118 65%);
}
#world canvas {
    width: 100%;
    height: 100%;
    display: block;
}
html:has(body.booting), body.booting #route-scroll {
    overflow: hidden;
}
#arcade-boot {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    touch-action: none;
    background: radial-gradient(ellipse at 50% 55%, #13343d, #071219 55%, #03080c);
    transition: opacity 340ms ease-out;
}
#arcade-boot::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 55% -50% -38%;
    background-image: linear-gradient(90deg, #37a2a439 1px, transparent 1px),
        linear-gradient(#37a2a439 1px, transparent 1px);
    background-size: 56px 38px;
    transform: perspective(240px) rotateX(55deg);
    mask-image: linear-gradient(transparent, black 64%);
}
#arcade-boot.ready {
    opacity: 0;
}
.boot-cabinet {
    width: min(86vw, 465px, 100svh);
    padding: clamp(8px, 2vw, 15px);
    border: 1px solid #396169;
    border-top: 3px solid #6c9394;
    border-radius: 10px;
    background: linear-gradient(125deg, #24414b, #101e27 46%, #1c333c 80%);
    box-shadow: inset 0 -3px #09131a, 5px 7px #030b10, 0 22px 68px #01080ba6;
}
.boot-screen {
    container-type: inline-size;
    position: relative;
    padding: clamp(16px, 4.2vmin, 40px) 9%;
    overflow: hidden;
    text-align: center;
    border: 3px solid #050c10;
    border-radius: 7% / 9%;
    background: radial-gradient(ellipse, #17343c, #082127 62%, #041216);
    box-shadow: inset 0 0 22px #030b10;
}
.boot-screen::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(transparent 0 3px, #010e151c 3px 4px);
}
.boot-art img {
    display: block;
    margin: auto;
    width: clamp(34px, 8vmin, 64px);
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px #00ffff58);
}
.boot-title {
    color: #ecfffc;
    font: clamp(24px, 15cqi, 55px)/1 var(--wordmark-font);
    text-shadow: 3px 4px #244952;
}
.boot-title small { font-size: .82em; }
.boot-title b { font-weight: inherit; color: var(--cyan); }
.boot-subtitle {
    text-transform: uppercase;
    margin: 12px 0 clamp(20px, 4vmin, 35px);
    color: #ffc87a;
    font: bold clamp(11px, 2.2vmin, 15px)/1.1 var(--arcade-font);
    letter-spacing: .45em;
    text-indent: .45em;
}
.boot-readout {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    color: #c1d7d8;
    font: 12px/1.3 var(--arcade-font);
    text-align: left;
}
#boot-percent { color: var(--cyan); }
.station-travel {
    position: fixed;
    z-index: 2;
    inset: 0 0 calc(var(--floor-bottom) + var(--control-height) + 8px);
    pointer-events: none;
    --arrow-x: 50%;
    --arrow-y: 48svh;
    --arrow-size: clamp(60px, 6vw, 76px);
    --edge: calc(var(--arrow-size) / 2 + 4px);
    /* Size the pair once for this viewport. Slide it as a unit when the card opens. */
    --card-reserve: calc(clamp(18px, 3vw, 52px) + var(--station-panel-width) + 4px);
    --spread: min(clamp(110px, 32svh, 236px), calc((100% - var(--card-reserve)) / 2 - var(--edge)));
    --right-limit: calc(100% - var(--edge));
    --pair-center: clamp(calc(var(--edge) + var(--spread)), var(--arrow-x), calc(var(--right-limit) - var(--spread)));
}
#arcade-stage:has(#destination:not([hidden])) .station-travel {
    --right-limit: calc(100% - var(--edge) - var(--card-reserve));
}
.station-travel > * {
    position: absolute;
    top: clamp(66px, var(--arrow-y), calc(100% - var(--edge)));
    transform: translate(-50%, -50%);
}
.station-travel .previous {
    left: calc(var(--pair-center) - var(--spread));
}
.station-travel .next {
    left: calc(var(--pair-center) + var(--spread));
}
button.travel-arrow {
    display: grid;
    place-items: center;
    width: calc(var(--arrow-size) + 4px);
    height: calc(var(--arrow-size) + 4px);
    padding: 2px;
    border: 0;
    background: transparent;
    pointer-events: auto;
    touch-action: manipulation;
}
.station-travel img {
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(1px 2px 0 #091019);
}
.travel-arrow img { width: var(--arrow-size); height: var(--arrow-size); }
.travel-arrow.previous img { transform: scaleX(-1); }
.travel-arrow[aria-disabled="true"] { opacity: .6; cursor: default; }
.travel-arrow[aria-disabled="false"]:is(:hover, :focus-visible) img { scale: 1.1; }
.travel-arrow[aria-disabled="false"]:active img { scale: .92; }
body.booting .station-travel, body:has(dialog[open]) .station-travel { visibility: hidden; }
#boot-progress {
    display: block;
    width: 100%;
    height: 9px;
    margin-top: 9px;
    border: 0;
    appearance: none;
    background: #284048;
    color: var(--cyan);
    --segments: repeating-linear-gradient(to right, var(--cyan) 0 9px, #143337 9px 12px);
}
#boot-progress::-webkit-progress-bar { background: #284048; }
#boot-progress::-webkit-progress-value { background: var(--segments); }
#boot-progress::-moz-progress-bar { background: var(--segments); }
.boot-trim {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 4px 0;
}
.boot-trim i { width: 15px; height: 3px; background: #071319; }
.boot-trim span { margin-left: auto; width: 6px; height: 4px; background: #ffbd69; box-shadow: 0 0 7px #ffbd6980; }
.boot-home {
    position: absolute;
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 6px;
    color: var(--muted);
    font: 12px/1.3 var(--arcade-font);
}
@media (prefers-reduced-motion: reduce) {
    #arcade-boot { transition: none; }
}
.mast,
.floor-controls {
    position: fixed;
    inset-inline: var(--floor-inset);
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}
.mast {
    --text-outline: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 2px 3px #000;
    display: flex;
    height: var(--mast-height);
    z-index: 25;
    top: var(--floor-top);
}
.mast :is(a, button) {
    pointer-events: auto;
}
.floor-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, var(--control-width)));
    grid-template-rows: minmax(0, 1fr);
    height: var(--control-height);
    bottom: var(--floor-bottom);
    z-index: 3;
}
.booting .mast .wordmark { visibility: hidden; }
.wordmark {
    display: grid;
    place-items: center;
    font:
        clamp(26px, 3.1vw, 41px)/1 var(--wordmark-font);
    letter-spacing: 0.025em;
    text-decoration: none;
    text-shadow: var(--text-outline), 2px 3px #243238;
}
.wordmark small {
    font-size: 0.82em;
}
.wordmark b {
    font-weight: inherit;
    color: var(--cyan);
}
.mast .settings-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    padding: 0;
    border: 0;
    color: #f3faf9;
    background: transparent;
}
.settings-toggle span {
    position: relative;
    width: 20px;
    height: 3px;
    background: currentColor;
    filter: drop-shadow(1px 1px 0 var(--ink)) drop-shadow(-1px -1px 1px var(--ink));
}
.settings-toggle span::before,
.settings-toggle span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
}
.settings-toggle span::before { transform: translateY(-6px); }
.settings-toggle span::after { transform: translateY(6px); }
.mast:has(:popover-open) .settings-toggle span { color: var(--cyan); background: transparent; }
.mast:has(:popover-open) .settings-toggle span::before { transform: rotate(45deg); }
.mast:has(:popover-open) .settings-toggle span::after { transform: rotate(-45deg); }
#arcade-settings {
    position: fixed;
    inset: calc(var(--floor-top) + var(--mast-height) + 4px) var(--floor-inset) auto auto;
    margin: 0;
    width: min(218px, calc(100% - 2 * var(--floor-inset)));
    max-height: calc(100svh - var(--floor-top) - var(--mast-height) - 18px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px 12px 12px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--cyan);
    box-shadow: 3px 3px rgb(0 0 0 / 55%);
    color: #f3faf9;
    background: rgb(7 14 18 / 97%);
    pointer-events: auto;
    font: 16px/1.2 var(--arcade-font);
}
#arcade-sound {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font: inherit;
}
.sound-state { color: var(--muted); }
#arcade-sound[aria-pressed='true'] .sound-state { color: var(--cyan); }
#arcade-sound[aria-pressed='true'] .sound-off,
#arcade-sound[aria-pressed='false'] .sound-on { display: none; }
.arcade-language {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
#settings-language {
    grid-column: 1 / -1;
    padding-top: 10px;
}
.arcade-language button {
    min-height: 44px;
    padding: 0 4px;
    border: 1px solid var(--line);
    background: transparent;
    font: inherit;
    white-space: nowrap;
}
.arcade-language button[aria-pressed="true"] {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--hud-cell-highlight);
}
button,
.primary,
.back {
    font:
        18px/1.1 var(--arcade-font);
    letter-spacing: 0.025em;
    background: #0b191d;
    color: #f4fbfa;
    border: 1px solid #467075;
    padding: 9px 14px;
}
.back:hover,
.close:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}
kbd {
    font: 12px var(--arcade-font);
    color: var(--cyan);
    border: 1px solid #40686c;
    padding: 2px 4px;
    margin-left: 4px;
}
.hud-panel {
    min-width: 0;
    pointer-events: auto;
    background: var(--hud-surface);
    border: 1px solid var(--line);
    box-shadow: 0 2px 0 rgb(0 0 0 / 42%);
}
.hud-panel.guide { border-inline-start: 3px solid var(--cyan); }
.hud-panel.quick-socials { border-inline-end: 3px solid var(--cyan); }
.hud-panel:focus-visible,
.hud-panel:has(:focus-visible) {
    border-color: var(--cyan);
    background: var(--hud-highlight);
}
.hud-panel :is(a, button):focus-visible {
    outline-offset: -3px;
}
.guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) 2px;
    gap: 2px 6px;
    align-items: center;
    padding: 5px 12px;
    text-align: left;
    letter-spacing: 0;
}
.station-switch {
    grid-area: 1 / 2;
    font-size: 14px;
    line-height: 1;
    color: var(--cyan);
}
.position-label {
    grid-area: 1 / 1;
    color: #9cbac2;
    font:
        12px/1.25 var(--arcade-font);
}
.guide strong {
    grid-area: 2 / 1 / 3 / -1;
    font:
        1.125rem/1.08 var(--arcade-font);
}
.meter {
    grid-area: 3 / 1 / 4 / -1;
    height: 2px;
    background: #244449;
}
.meter i {
    display: block;
    background: var(--cyan);
    width: 100%;
    height: 100%;
    transform-origin: left;
    transform: scaleX(0);
}
.quick-socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quick-socials a {
    position: relative;
    display: grid;
    place-items: center;
    color: white;
}
.quick-socials a + a {
    border-left: 1px solid var(--line);
}
.quick-socials svg,
#contacts svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.mast :is(.wordmark, button):is(:focus-visible, :active) {
    color: var(--cyan);
}
.quick-socials a:is(:focus-visible, :active) {
    color: var(--cyan);
    background: var(--hud-cell-highlight);
}
@media (prefers-reduced-motion: no-preference) {
    .hud-panel, .hud-panel :is(a, button) {
        transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
    }
}
@media (hover: hover) {
    .hud-panel:hover {
        border-color: var(--cyan);
        background: var(--hud-highlight);
    }
    .mast :is(.wordmark, button):hover {
        color: var(--cyan);
    }
    .quick-socials a:hover {
        color: var(--cyan);
        background: var(--hud-cell-highlight);
    }
    .quick-socials a:is(:hover, :focus-visible)::before {
        content: attr(aria-label);
        position: absolute;
        bottom: calc(100% + 7px);
        padding: 4px 7px;
        color: white;
        background: var(--ink);
        font: 14px var(--arcade-font);
        pointer-events: none;
    }
    .quick-socials a:last-child::before {
        right: 0;
    }
}
#scroll-space {
    height: 100vh;
}
#arcade-stage,
#route-scroll {
    display: contents;
}
html:has(dialog[open], #arcade-settings:popover-open) {
    overflow: hidden;
}
html {
    scrollbar-gutter: stable;
    overflow-anchor: none;
}

/* Keep the touch stage still; only the card is a native vertical scrolling surface. */
@media (pointer: coarse) {
    html,
    body {
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        scrollbar-gutter: auto;
    }
    #route-scroll {
        display: block;
        height: 100%;
        height: 100svh;
        overflow: hidden;
        overscroll-behavior: contain;
        overflow-anchor: none;
    }
    #scroll-space { display: none; }
    #arcade-stage {
        display: block;
        position: relative;
        height: 100%;
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
    }
    #arcade-stage :is(#world, #destination, .floor-controls, .station-travel) {
        position: absolute;
    }
}
#destination {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: calc(var(--floor-top) + var(--mast-height) + 14px) clamp(18px, 3vw, 52px) calc(var(--floor-bottom) + var(--control-height) + 14px);
    pointer-events: none;
}
.paper,
dialog {
    font-family: var(--arcade-font);
    border: 1px solid #40858a;
    border-top: 3px solid var(--cyan);
    background: linear-gradient(135deg, #12232a, #080e14 65%);
    box-shadow: 5px 5px #02080ccc;
}
.paper {
    --paper-inset: clamp(17px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(11, 27, 35, 0.76), rgba(6, 15, 23, 0.88) 72%);
    text-shadow: 0 1px 2px #040a10;
    width: var(--station-panel-width);
    max-height: 100%;
    overflow: clip;
    pointer-events: auto;
}
.paper-body {
    min-height: 0;
    overflow: hidden;
    padding: 0 var(--paper-inset) var(--paper-inset);
}
@media (pointer: coarse) {
    .paper-body {
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y pinch-zoom;
    }
}
.paper h1,
dialog h2 {
    font:
        clamp(30px, 3.4vw, 44px)/0.99 var(--arcade-font);
    letter-spacing: 0.008em;
    margin: 17px 0 13px;
    color: #f2fffd;
}
.paper h1:focus {
    outline: none;
}
.paper h3,
.paper h2 {
    font:
        23px/1.1 var(--arcade-font);
    color: var(--cyan);
    margin: 18px 0 8px;
}
.paper p,
.paper figcaption {
    font:
        14px/1.6 var(--arcade-font);
    margin: 7px 0 12px;
    color: #c6d9da;
}
.paper .back {
    flex: none;
    min-height: 44px;
    text-align: left;
    background: rgba(8, 19, 25, 0.55);
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    padding: 0 var(--paper-inset);
    font-size: 17px;
}
.paper .back:is(:hover, :focus-visible) {
    color: var(--cyan);
}
.paper .back:focus-visible {
    outline-offset: -3px;
}
.primary {
    background: var(--cyan);
    color: #041517;
    border: 0;
    margin-top: 21px;
    padding: 10px 14px;
}
.paper .feature-actions,
.paper .app-buttons-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.paper a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #132c31;
    border: 1px solid #31585c;
    color: #aefffa;
    font:
        16px/1.2 var(--arcade-font);
    text-decoration: none;
    padding: 7px 9px;
}
.paper a:hover {
    border-color: var(--cyan);
}
.paper .arcade-plays strong {
    display: block;
    color: var(--cyan);
    font: 72px/0.9 var(--arcade-font);
}
.paper .arcade-ranking {
    margin-top: 22px;
}
.paper .chroma-trailer {
    display: block;
    padding: 0;
    position: relative;
    margin-top: 12px;
}
.chroma-trailer img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.chroma-trailer > span {
    position: absolute;
    bottom: 7px;
    left: 7px;
    background: #050b11da;
    padding: 5px 7px;
}
.paper .chroma-season,
.paper .award-highlight {
    color: #ffd17c;
}
.project-icon {
    float: right;
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 0 8px 10px;
}
.paper .app-buttons-container svg {
    width: 15px;
    height: 15px;
}
.creator-bio {
    display: grid;
    grid-template-columns: clamp(84px, 9vw, 114px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border-top: 1px solid #253d42;
    padding: 13px 0 1px;
}
.creator-bio .about-icon {
    position: relative;
    display: grid;
    place-items: center;
    height: 112px;
    --primary-color: var(--cyan);
}
.creator-bio img {
    width: 65px;
    height: 76px;
    object-fit: contain;
}
.creator-bio .creator-stage {
    bottom: 0;
    width: 100%;
    justify-content: center;
}
.creator-bio .creator-stage canvas {
    width: 110%;
    height: auto;
}
.creator-bio [data-creator='collaboration'] canvas {
    width: 88%;
}
.creator-bio .creator-bot {
    flex: none;
    width: 34%;
    height: auto;
    aspect-ratio: 1;
    margin-left: -18%;
    filter: drop-shadow(1px 1px 0 var(--ink)) drop-shadow(-1px -1px 0 var(--ink));
}
.creator-bio .creator-bot::before {
    background: linear-gradient(135deg, #acfff5 0 29%, var(--cyan) 29% 64%, #169dba 64%);
}
.project {
    display: flow-root;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.project h2 {
    margin-top: 0;
}
.creator-bio h3 {
    margin: 0;
}
dialog {
    width: min(420px, 92vw);
    max-height: 82svh;
    padding: 19px 20px;
    color: #eefafa;
}
dialog::backdrop {
    background: #02060bc4;
}
.dialog-head,
.demo-video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
dialog h2 {
    margin: 0 0 10px;
    font-size: 34px;
}
.close,
.demo-video-close {
    padding: 3px 10px;
    font-size: 24px;
}
#stations {
    display: grid;
}
#stations a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    text-decoration: none;
    border-top: 1px solid #29454a;
    font: 19px var(--arcade-font);
}
#stations a:hover {
    color: var(--cyan);
    background: #14262c;
}
#stations kbd {
    margin: 0;
    min-width: 21px;
    text-align: center;
}
#demo-video-modal {
    width: min(860px, 94vw);
}
.demo-video-modal-header h3 {
    margin: 0;
    font: 24px var(--arcade-font);
}
.demo-video-frame-wrapper {
    margin: 12px 0;
    aspect-ratio: 16/9;
}
.profile-preview .demo-video-frame-wrapper {
    aspect-ratio: auto;
    height: min(63svh, 600px);
}
#demo-video-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #04080a;
}
.demo-external {
    color: var(--cyan);
    font: 17px var(--arcade-font);
}
noscript {
    position: fixed;
    inset: 40% 12% auto;
    background: #081419;
    padding: 22px;
}
@media (max-width: 800px) {
    .station-travel { --card-reserve: 0px; }
    #arcade-stage:has(#destination:not([hidden])) .station-travel {
        bottom: calc(var(--floor-bottom) + var(--control-height) + 14px + 46svh);
    }
    :root {
        --control-width: 174px;
    }
    #destination {
        padding-top: 45px;
        padding-inline: 12px;
        align-items: flex-end;
        justify-content: center;
    }
    .paper {
        --paper-inset: 17px;
        width: min(100%, var(--station-panel-max));
        max-height: 46svh;
    }
    .guide {
        padding: 6px 10px;
    }
    .guide strong {
        font-size: 1rem;
    }
    .paper h1 {
        font-size: 32px;
        margin: 12px 0;
    }
}

#map {
    background: linear-gradient(145deg, rgba(14, 30, 38, 0.87), rgba(7, 15, 22, 0.93));
    position: fixed;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 28px));
    margin: 0;
    padding: 17px;
    left: clamp(14px, 3vw, 46px);
    right: auto;
}
#stations a {
    position: relative;
    gap: 14px;
    padding: 11px 8px;
}
#stations a::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    height: 100%;
    border-left: 1px solid var(--line);
}
#stations a:first-child::before {
    top: 50%;
    height: 50%;
}
#stations a:last-child::before {
    height: 50%;
}
#stations a kbd {
    position: relative;
    background: var(--ink);
}
#stations a:is(:hover, :focus-visible) kbd {
    background: var(--cyan);
    color: var(--ink);
}
#stations a[aria-current='location'] kbd {
    border-color: var(--cyan);
}
#stations a[aria-current='location'] {
    color: var(--cyan);
    background: #113138;
}
#stations a[aria-current='location']::after {
    content: '◆';
    margin-left: auto;
    font-size: 11px;
}
#contacts {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.contact-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
#contacts a {
    display: grid;
    place-items: center;
    flex: 0 1 44px;
    min-width: 0;
    height: 44px;
    color: #f4fbfa;
    background: var(--panel);
    border: 1px solid var(--line);
}
#contacts a:is(:hover, :focus-visible) {
    color: var(--cyan);
    background: #10282e;
    border-color: var(--cyan);
}
@media (max-width: 580px) {
    :root {
        --floor-inset: max(10px, env(safe-area-inset-left), env(safe-area-inset-right));
    }
}
@media (max-width: 360px) {
    .guide {
        padding-inline: 6px;
        column-gap: 2px;
    }
    .station-switch { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
    #map[open] {
        animation: open-selector 0.22s ease-out;
    }
    #destination.entering .paper {
        animation: enter-card 0.24s ease-out;
    }
    @keyframes open-selector {
        from {
            opacity: 0;
            transform: translateY(12px);
            clip-path: inset(75% 0 0);
        }
        to {
            opacity: 1;
            transform: translateY(0);
            clip-path: inset(0);
        }
    }
    @keyframes enter-card {
        from {
            opacity: 0;
            transform: translateY(9px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
