/* Metro Pad: a bright pixel metro station. White subway tile, yellow tactile edge, navy signage, coloured lines.
   Words: Tiny5 (name, signs, buttons) / Handjet (flaps, labels). Numbers: Red Hat Mono, tabular. 4 px ink outlines,
   square corners, hard ink drops, no glow, no gradients. Art = native pixel grids scaled with image-rendering:pixelated. */
:root {
  --tile: #F4F2EC; --grout: #E2DED3; --yel: #FFD84A; --edge: #FFC21A; --navy: #253047; --navy2: #1B2440; --ink: #1E2230; --floor: #9A968D;
  --g: #2FA35A; --p: #8A5CF6; --t: #1FA6B8; --c: #F2705A; --brass: #F2B636; --soil: #B98A5A;
  --w: "Tiny5", "Courier New", monospace; --h: "Handjet", "Arial Narrow", sans-serif; --n: "Red Hat Mono", ui-monospace, monospace;
  --s: 5; --m: 3; --hdr: 60px;
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Cpath fill='%231E2230' d='M0 0h2v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v2H8v1h1v2h1v2H8v-1H7v-2H6v-1H5v1H4v1H3v1H2v1H0z'/%3E%3Cpath fill='%23F4F2EC' d='M1 2h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1H7v1h1v2h1v1H8v-1H7v-2H6v-1H4v1H3v1H2v1H1z'/%3E%3C/svg%3E") 0 0, auto;
  --curp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Cpath fill='%231E2230' d='M0 0h2v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v2H8v1h1v2h1v2H8v-1H7v-2H6v-1H5v1H4v1H3v1H2v1H0z'/%3E%3Cpath fill='%23FFD84A' d='M1 2h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1H7v1h1v2h1v1H8v-1H7v-2H6v-1H4v1H3v1H2v1H1z'/%3E%3C/svg%3E") 0 0, pointer;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--tile) url(/assets/art/tile-wall.png) 0 0 / 64px 128px; image-rendering: auto; color: var(--ink); font: 500 20px/1.3 var(--h); cursor: var(--cur); overflow-x: hidden; }
.px, .badge { image-rendering: pixelated; image-rendering: crisp-edges; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a, button, [role=button], [onclick], summary, label, .ca, select, .sel, .chip, input[type=range] { cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
.num, .mono { font-family: var(--n); font-variant-numeric: tabular-nums; font-weight: 600; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons: square, 4 px ink, 6 px hard drop */
.btn { --bg: var(--tile); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--bg); color: var(--fg);
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font: 400 18px/1 var(--w); letter-spacing: .02em; text-decoration: none; text-transform: uppercase; white-space: nowrap;
  transition: transform .06s steps(2), box-shadow .06s steps(2), background-color .1s; position: relative; }
.btn:hover { --bg: #fff; }
.btn:active, .btn.busy { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn.pri { --bg: var(--yel); } .btn.pri:hover { --bg: #FFE27A; }
.btn.x { --bg: var(--navy); --fg: var(--tile); } .btn.x:hover { --bg: #303D5C; }
.btn.pump { --bg: var(--g); --fg: #fff; } .btn.pump:hover { --bg: #37B566; }
.btn.big { min-height: 48px; font-size: 20px; padding: 0 18px; }
.btn[disabled], .btn.off { opacity: .5; pointer-events: none; }
.btn .xg { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 3px solid var(--ink); background: var(--tile); font: 600 18px/1 var(--h); letter-spacing: .04em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }
.chip:hover { background: #fff; }
.chip.on { background: var(--yel); }
.chip .sq, .sel .sq { width: 12px; height: 12px; background: var(--lc, var(--navy)); border: 2px solid var(--ink); flex: none; }

/* ---------------------------------------------------------------- header = station sign strip */
.hdr { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; height: var(--hdr); padding: 0 16px 0 12px; background: var(--navy); color: var(--tile); border-bottom: 4px solid var(--yel); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.bm { width: 40px; height: 40px; background: var(--yel); border: 3px solid var(--ink); display: grid; place-items: center; }
.bm img { width: 32px; height: auto; image-rendering: pixelated; }
.bn { font: 400 24px/1 var(--w); letter-spacing: .02em; }
.dots { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.dots a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 10px; text-decoration: none; font: 600 20px/1 var(--h); letter-spacing: .06em; text-transform: uppercase; }
.dots a i { width: 14px; height: 14px; background: var(--tile); border: 4px solid var(--lc); }
.dots a:hover i, .dots a.on i { background: var(--lc); }
.dots a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dots .lnch { margin-left: 6px; color: var(--yel); }
.dots .lnch[aria-current] span { text-decoration: underline; text-underline-offset: 4px; }
.hr { display: flex; align-items: center; gap: 12px; flex: none; }
.hdr .btn { min-height: 36px; font-size: 15px; padding: 0 10px; box-shadow: 3px 3px 0 #0D1220; border-color: #0D1220; }
.hdr .btn.wal { --bg: var(--yel); }
.caplate { display: inline-flex; align-items: stretch; height: 36px; border: 3px solid #0D1220; background: var(--tile); color: var(--ink); }
.caplate .lab { display: grid; place-items: center; padding: 0 8px; background: var(--yel); font: 400 14px/1 var(--w); border-right: 3px solid #0D1220; }
.caplate .num { display: grid; place-items: center; padding: 0 10px; font-size: 14px; min-width: 64px; }
.caplate .cbtn { padding: 0 9px; border-left: 3px solid #0D1220; font: 700 15px/1 var(--h); letter-spacing: .06em; background: var(--tile); }
.caplate .cbtn:hover { background: var(--yel); }
.caplate.copied .cbtn { background: var(--g); color: #fff; }
.caplate.ca-off .num { color: #6B6F7A; font-family: var(--h); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- hero = the platform */
.hero { position: relative; height: calc(100svh - var(--hdr)); min-height: calc(var(--s) * 49px + var(--m) * 170px + 70px); overflow: hidden;
  background: var(--navy2) url(/assets/art/hero-wide.png) 50% 100% / calc(var(--s) * 384px) calc(var(--s) * 171px) no-repeat; image-rendering: pixelated; }
.hero-in { position: absolute; inset: 0 0 calc(var(--s) * 49px) 0; max-width: 1560px; margin: 0 auto; image-rendering: auto; }
.machine { position: absolute; left: 50%; bottom: 0; width: calc(var(--m) * 112px); height: calc(var(--m) * 170px); margin-left: calc(var(--m) * -56px); z-index: 3; }
.mimg { width: 100%; height: 100%; }
.screen { position: absolute; left: calc(var(--m) * 20px); top: calc(var(--m) * 32px); width: calc(var(--m) * 70px); height: calc(var(--m) * 42px); color: var(--tile);
  display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--m) * 1px) calc(var(--m) * 1.5px); }
.route { display: flex; align-items: center; gap: 4px; }
.sel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 6px; background: var(--navy2); border: 2px solid var(--yel); color: var(--tile); font: 700 18px/1 var(--h); letter-spacing: .05em; }
.sel .st { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel:hover, .sel[aria-expanded=true] { background: var(--yel); color: var(--ink); }
.arr { font: 400 14px/1 var(--w); color: var(--yel); }
.amt { display: flex; align-items: center; height: 32px; background: #101830; border: 2px solid #4A5878; padding: 0 6px; gap: 6px; }
.amt input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--tile); caret-color: var(--yel); font: 600 19px/1 var(--n); font-variant-numeric: tabular-nums; }
.amt input::placeholder { color: #56627E; }
.amt:focus-within { border-color: var(--yel); }
.unit { font: 700 16px/1 var(--h); letter-spacing: .06em; color: var(--yel); }
.q { font: 600 13px/1.25 var(--n); font-variant-numeric: tabular-nums; min-height: 32px; display: flex; flex-direction: column; justify-content: center; }
.q .ql { font: 700 16px/1.05 var(--h); letter-spacing: .05em; color: var(--yel); }
.q .ql.warn { color: #FFB4A4; }
.q b { color: var(--yel); font-weight: 600; }
.mb { position: absolute; top: calc(var(--m) * 89px); width: calc(var(--m) * 20px); height: calc(var(--m) * 21px); border-radius: 50%; }
.mb span { position: absolute; left: 50%; top: calc(100% + var(--m) * 1px); transform: translateX(-50%); font: 700 calc(var(--m) * 5px)/1 var(--h); letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.mb-w { left: calc(var(--m) * 15px); } .mb-g { left: calc(var(--m) * 39px); } .mb-y { left: calc(var(--m) * 58px); } .mb-c { left: calc(var(--m) * 78px); }
.mb:hover { background: rgba(30, 34, 48, .14); }
.mb:active, .mb.busy { transform: translateY(2px); background: rgba(30, 34, 48, .24); }
.mb.busy span { animation: none; }
.mb:focus-visible { outline: 3px solid var(--ink); }
.slot { position: absolute; left: calc(var(--m) * 30px); top: calc(var(--m) * 131px); width: calc(var(--m) * 52px); height: 0; overflow: visible; }
.slot .tkout { position: absolute; left: 50%; top: 0; width: calc(var(--m) * 40px); height: calc(var(--m) * 28px); margin-left: calc(var(--m) * -20px); background: url(/assets/art/ticket.png) 0 0 / 100% 100%; image-rendering: pixelated; animation: tkout .9s steps(9) both;
  display: flex; flex-direction: column; justify-content: center; padding-left: calc(var(--m) * 5px); color: var(--ink); font: 700 15px/1.05 var(--h); }
.slot .tkout .num { font-size: 12px; }
@keyframes tkout { from { clip-path: inset(0 0 100% 0); transform: translateY(-8px); } to { clip-path: inset(0); transform: translateY(0); } }
.hz { position: absolute; top: 0; bottom: 0; }
.hz-l { left: 24px; width: calc(50% - var(--m) * 56px - 48px); display: flex; flex-direction: column; justify-content: flex-start; }
.hz-r { right: 24px; width: calc(50% - var(--m) * 56px - 48px); }
.hboard { position: relative; --b: 2; width: calc(var(--b) * 181px); height: calc(var(--b) * 101px); margin: 0 auto; }
.hboard img { width: 100%; height: 100%; }
.hflaps { position: absolute; left: calc(var(--b) * 13px); top: calc(var(--b) * 48px); width: calc(var(--b) * 155px); height: calc(var(--b) * 40px); display: flex; flex-direction: column; justify-content: space-around; padding: 0 6px; }
.name { margin: 22px 0 0; align-self: flex-start; font: 400 clamp(56px, calc((min(100vw, 1560px) / 2 - var(--m) * 56px - 100px) / 5.5), 104px)/.9 var(--w); letter-spacing: -.01em; color: var(--tile); background: var(--navy); border: 4px solid var(--ink); border-bottom: 12px solid var(--yel); padding: 14px 22px 12px; box-shadow: 8px 8px 0 var(--ink); white-space: nowrap; }
.name span + span { color: var(--yel); }
.tag { margin: 18px 0 0; font: 700 32px/1.05 var(--h); letter-spacing: .02em; display: inline-block; background: var(--yel); border: 4px solid var(--ink); padding: 4px 12px 6px; box-shadow: 6px 6px 0 var(--ink); align-self: flex-start; }
.hz-r { display: flex; flex-direction: column; align-items: flex-start; padding-top: 30px; }
.signimg { display: none; }
.hlinks { display: flex; flex-wrap: wrap; gap: 14px 14px; margin-top: 26px; }
.caplate.big { height: 48px; border-width: 4px; border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.caplate.big .lab { font-size: 16px; padding: 0 12px; border-color: var(--ink); border-right-width: 4px; }
.caplate.big .num { font-size: 16px; }
.caplate.big .cbtn { font-size: 18px; border-left-width: 4px; border-color: var(--ink); padding: 0 12px; }
.hnums { display: flex; gap: 0; margin: 26px 0 0; border: 4px solid var(--ink); background: var(--navy); color: var(--tile); box-shadow: 6px 6px 0 var(--ink); }
.hnums > div { padding: 8px 14px 10px; }
.hnums > div + div { border-left: 3px solid #0D1220; }
.hnums dt { font: 700 16px/1 var(--h); letter-spacing: .08em; color: var(--yel); }
.hnums dd { margin: 6px 0 0; font-size: 26px; line-height: 1; }
.track { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--s) * 49px); overflow: hidden; pointer-events: none; }
.train { position: absolute; left: 0; bottom: calc(var(--s) * 9px); width: calc(var(--s) * 48px); height: calc(var(--s) * 30px); transform: translateX(-110%); will-change: transform; }
.train.run { animation: cross 7s steps(70) infinite; }
@keyframes cross { 0% { transform: translateX(calc(var(--s) * -48px)); } 55%, 100% { transform: translateX(calc(100vw + var(--s) * 48px)); } }
.hrow { display: grid; grid-template-columns: 1.1fr 1fr .9fr; align-items: center; gap: 8px; height: calc(var(--b) * 12px); color: var(--yel); font: 700 calc(var(--b) * 9.5px)/1 var(--h); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.hrow .num { font-size: calc(var(--b) * 7px); color: var(--tile); text-align: right; }
.hrow .ln { display: flex; align-items: center; gap: 6px; color: var(--tile); overflow: hidden; }
.hrow .ln i { width: calc(var(--b) * 5px); height: calc(var(--b) * 5px); background: var(--lc); border: 2px solid #0D1220; flex: none; }
.hrow.demo { color: #9FB0D0; }

/* split-flap cells */
.flap { display: inline-flex; gap: 2px; }
.flap b { display: inline-grid; place-items: center; min-width: .62em; padding: 0 1px; background: #101830; border-top: 1px solid #2F3D60; color: inherit; font-weight: 700; position: relative; }
.flap b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0A0F1E; }
.flap b.flip { animation: flip .12s steps(2) both; }
@keyframes flip { 0% { transform: rotateX(80deg); } 100% { transform: rotateX(0); } }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: 64px 24px 72px; }
.sign-row { max-width: 1320px; margin: 0 auto 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sign { display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 10px 18px 12px; background: var(--navy); color: var(--tile); border: 4px solid var(--ink); border-bottom: 8px solid var(--yel); font: 400 52px/1 var(--w); box-shadow: 6px 6px 0 var(--ink); }
.sign i { width: 26px; height: 26px; background: var(--lc); border: 4px solid var(--tile); flex: none; }
.sub { margin: 0; font: 700 26px/1.1 var(--h); letter-spacing: .02em; }
.panel { background: var(--tile); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }

/* map: flat tile band */
.map { background: var(--tile); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.mapbox { position: relative; max-width: 1320px; margin: 0 auto; background: #FBFAF6; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.mapbox::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grout) 1px, transparent 1px), linear-gradient(90deg, var(--grout) 1px, transparent 1px); background-size: 32px 32px; opacity: .7; pointer-events: none; }
.mapsvg { position: relative; display: block; width: 100%; height: auto; cursor: pointer; }
.mapsvg .st { cursor: pointer; }
.mapsvg .st:hover rect.box, .mapsvg .st.on rect.box { fill: var(--yel); }
.mapsvg .lnhit { cursor: pointer; }
.mapsvg text { font-family: var(--h); font-weight: 700; letter-spacing: .04em; }
.mapsvg .lbl { font-size: 22px; fill: var(--ink); }
.mapsvg .lblbg { fill: var(--tile); stroke: var(--ink); stroke-width: 3; }
.mapsvg .hubt { font-family: var(--w); font-size: 22px; fill: var(--ink); }
.mapsvg .demo { font-family: var(--h); font-size: 20px; fill: #6B6F7A; letter-spacing: .1em; }
.maptip { position: absolute; z-index: 5; pointer-events: none; background: var(--navy); color: var(--tile); border: 3px solid var(--ink); border-bottom: 5px solid var(--yel); padding: 8px 12px 9px; font: 600 18px/1.25 var(--h); min-width: 180px; }
.maptip b { display: block; font: 400 18px/1 var(--w); color: var(--yel); margin-bottom: 4px; }
.maptip .num { font-size: 14px; }
.legend { max-width: 1320px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font: 700 18px/1 var(--h); letter-spacing: .08em; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.lg { display: inline-block; width: 46px; height: 10px; border: 2px solid var(--ink); }
.lg.solid { background: var(--g); }
.lg.dash { background: repeating-linear-gradient(90deg, var(--t) 0 10px, transparent 10px 16px); }
.lg.thin { height: 4px; border: 0; background: var(--floor); }
.lg.hub { width: 18px; height: 18px; background: var(--yel); border-width: 4px; }

/* departures board: full-width navy band */
.board { background: var(--navy); color: var(--tile); border-top: 8px solid var(--yel); }
.board::before { content: ""; position: absolute; inset: 0; background: url(/assets/art/tile-tunnel.png) 0 0 / 64px 128px; opacity: .14; image-rendering: pixelated; pointer-events: none; }
.sign-row.dark .sign { border-color: #0D1220; box-shadow: 6px 6px 0 #0D1220; background: var(--navy2); }
.sign-row.dark .sub { color: var(--yel); }
.sign-row.dark .chip { color: var(--ink); }
.dboard { position: relative; max-width: 1320px; margin: 0 auto; border: 4px solid #0D1220; background: var(--navy2); box-shadow: 6px 6px 0 #0D1220; }
.drow { display: grid; grid-template-columns: 300px minmax(0, 1fr) 130px 110px 130px 190px; align-items: center; gap: 16px; padding: 14px 18px; border-top: 3px solid #0D1220; }
.drow:first-child { border-top: 0; }
.drow.hd { display: none; }
.drow .stn { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drow .stn .flap { font-size: 30px; color: var(--yel); }
.drow .stn .nm { font: 600 16px/1.1 var(--h); color: #AEB9D3; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.drow .lines { display: flex; flex-wrap: wrap; gap: 6px; }
.lchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; background: #101830; border: 2px solid #3A4868; font: 700 17px/1 var(--h); letter-spacing: .05em; color: var(--tile); }
.lchip i { width: 10px; height: 10px; background: var(--lc); outline: 2px solid #0D1220; }
.lchip.dg { border-style: dashed; }
.lchip.none { color: #8E9BBB; border-color: #2F3D60; }
.drow .cell .flap { font-size: 20px; color: var(--tile); font-family: var(--n); }
.drow .cell .flap b { min-width: .7em; }
.drow .cell small { display: block; font: 700 14px/1 var(--h); letter-spacing: .08em; color: #8E9BBB; margin-bottom: 5px; }
.drow .acts { display: flex; gap: 10px; }
.drow .acts .btn { min-height: 38px; font-size: 15px; padding: 0 12px; box-shadow: 4px 4px 0 #0D1220; border-color: #0D1220; }
.drow .ca-r { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; margin-top: -4px; }
.drow.sel { background: #2D3A5C; }
.carow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 15px/1 var(--h); letter-spacing: .06em; }
.carow .lab { color: var(--yel); }
.cachip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; background: #101830; border: 2px solid #3A4868; color: var(--tile); }
.cachip .num { font-size: 13px; }
.cachip .cl { font: 700 14px/1 var(--h); color: var(--yel); }
.cachip.copied { border-color: var(--g); }
.carow .lk { display: inline-flex; align-items: center; min-height: 32px; color: #AEB9D3; text-decoration: underline; text-underline-offset: 3px; }
.carow .lk:hover { color: var(--yel); }
.badge { display: inline-block; flex: none; border: 3px solid var(--ink); object-fit: cover; background: var(--tile); }
.badge.ph { display: inline-grid; place-items: center; background: var(--tile); color: var(--ink); font: 700 15px/1 var(--h); letter-spacing: .02em; box-shadow: inset 0 -6px 0 var(--lc); border-color: #0D1220; }
.empty { padding: 44px 24px 48px; display: grid; justify-items: center; gap: 22px; text-align: center; }
.empty .flap { font-size: 48px; color: var(--yel); }
.empty p { margin: 0; font: 700 24px/1.2 var(--h); color: #AEB9D3; }

/* dig scene */
.dig { background: var(--soil) url(/assets/art/tile-soil.png) 0 0 / 64px 128px; image-rendering: pixelated; border-top: 4px solid var(--ink); }
.dig .sign-row, .dig .digwrap { image-rendering: auto; }
.dig .sub { color: var(--tile); background: var(--ink); padding: 4px 10px; }
.digwrap { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; align-items: start; }
.digscene { position: relative; width: min(100%, 768px); justify-self: center; aspect-ratio: 256 / 171; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: url(/assets/art/dig.png) 0 0 / 100% 100%; image-rendering: pixelated; overflow: hidden; container-type: inline-size; }
.dbar { position: absolute; top: 60.2%; height: 10.5%; }
.dbar i { position: absolute; top: 0; bottom: 0; width: 0; background: var(--yel); border: 3px solid var(--ink); transition: width .4s steps(8); }
.dbar-l { left: 37.5%; width: 11.72%; } .dbar-l i { left: 0; }
.dbar-r { left: 49.22%; width: 11.72%; } .dbar-r i { right: 0; }
.borer { position: absolute; top: 60.2%; width: 9.18%; height: auto; transition: left .4s steps(8); }
.borer-l { left: 28.3%; } .borer-r { left: 60.9%; transform: scaleX(-1); }
.burn { position: absolute; left: 49.2%; top: 44%; width: 10%; height: auto; transform: translateX(-50%); }
.dlab { position: absolute; top: 74%; padding: 3px 8px 4px; background: var(--navy); color: var(--yel); border: 3px solid var(--ink); font: 700 18px/1 var(--h); letter-spacing: .05em; }
.dlab .num { color: var(--tile); font-size: 14px; }
.dlab-l { left: 3%; } .dlab-r { right: 3%; }
.digpanel { padding: 18px; display: grid; gap: 16px; }
.tpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tpick .chip { font-size: 17px; }
.tpick .chip.dg { border-style: dashed; }
.dk { display: grid; gap: 12px; }
.dk h3 { margin: 0; font: 400 26px/1.05 var(--w); }
.dk .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 700 18px/1 var(--h); letter-spacing: .04em; color: #4A4F5E; }
.dk .meta .num { color: var(--ink); font-size: 15px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side { display: grid; gap: 6px; padding: 10px; border: 3px solid var(--ink); background: #fff; text-align: left; }
.side.on { background: var(--yel); }
.side .st { font: 700 20px/1 var(--h); letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.side .pbar { height: 12px; border: 2px solid var(--ink); background: var(--tile); position: relative; }
.side .pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); }
.side .num { font-size: 13px; }
.rng { display: grid; gap: 6px; }
.rng .row { display: flex; justify-content: space-between; font: 700 18px/1 var(--h); letter-spacing: .04em; }
.rng .row .num { font-size: 15px; }
input[type=range].plat { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range].plat::-webkit-slider-runnable-track { height: 12px; background: repeating-linear-gradient(90deg, var(--edge) 0 6px, var(--yel) 6px 12px); border: 3px solid var(--ink); }
input[type=range].plat::-moz-range-track { height: 12px; background: repeating-linear-gradient(90deg, var(--edge) 0 6px, var(--yel) 6px 12px); border: 3px solid var(--ink); }
input[type=range].plat::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 26px; margin-top: -10px; background: var(--navy); border: 3px solid var(--ink); border-radius: 0; }
input[type=range].plat::-moz-range-thumb { width: 18px; height: 22px; background: var(--navy); border: 3px solid var(--ink); border-radius: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 0; font: 700 18px/1.2 var(--h); color: #4A4F5E; }
.newt { display: grid; gap: 12px; }
.newt .pair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; }
.field > span { font: 700 18px/1 var(--h); letter-spacing: .06em; }
.inp { height: 44px; padding: 0 12px; background: var(--navy); color: var(--tile); border: 4px solid var(--ink); caret-color: var(--yel); font: 600 17px/1 var(--n); outline: 0; width: 100%; }
.inp:focus { border-color: var(--yel); box-shadow: 0 0 0 3px var(--ink); }
textarea.inp { height: 84px; padding: 10px 12px; font: 600 18px/1.25 var(--h); resize: vertical; }

/* ride scene: platform floor band */
.ride { background: var(--floor) url(/assets/art/tile-floor.png) 0 0 / 64px 128px; image-rendering: pixelated; border-top: 4px solid var(--ink); padding-bottom: 96px; }
.ride::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: url(/assets/art/tile-edge.png) 0 0 / 32px 64px; border-top: 4px solid var(--ink); }
.ride > * { image-rendering: auto; }
.ride .sub { color: var(--tile); background: var(--ink); padding: 4px 10px; }
.tickets { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px 40px; align-items: center; }
.tickets .gate { grid-column: 2; grid-row: 1 / span 2; }
.tickets { grid-template-columns: auto auto; justify-content: center; }
.moreb { position: relative; max-width: 1320px; margin: 22px auto 0; display: flex; justify-content: center; }
.tk { display: grid; gap: 14px; }
.tkh { margin: 0; font: 400 24px/1 var(--w); color: var(--ink); background: var(--tile); border: 4px solid var(--ink); padding: 8px 12px; justify-self: start; box-shadow: 6px 6px 0 var(--ink); }
.stubs { display: flex; gap: 10px; flex-wrap: wrap; }
.stub { --k: 5; position: relative; flex: none; width: calc(var(--k) * 40px); height: calc(var(--k) * 28px); background: url(/assets/art/ticket.png) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; display: flex; flex-direction: column; justify-content: center; padding: 0 calc(var(--k) * 9px) 0 calc(var(--k) * 6px); }
.stub .pc { font: 600 calc(var(--k) * 7px)/1 var(--n); font-variant-numeric: tabular-nums; }
.stub .who { font: 700 calc(var(--k) * 3.8px)/1 var(--h); letter-spacing: .05em; margin-top: 6px; }
.stubw { display: grid; gap: 8px; justify-items: start; }
.stubw .cap { font: 700 20px/1.05 var(--h); letter-spacing: .04em; color: var(--tile); background: var(--ink); padding: 5px 9px 6px; max-width: calc(var(--k, 5) * 40px); }
.stubw .cap .num { display: block; color: var(--yel); font-size: 13px; margin-top: 3px; }
.stub .sv { font: 600 calc(var(--k) * 2.4px)/1.2 var(--n); margin-top: 8px; color: #4A4F5E; }
.stub.ac { --bar: var(--yel); }
.stub.ac::before { content: ""; position: absolute; left: calc(var(--k) * 2px); top: calc(var(--k) * 6px); width: calc(var(--k) * 2px); bottom: calc(var(--k) * 6px); background: var(--bar); border: 2px solid var(--ink); }
.tkn { margin: 0; font: 700 20px/1.2 var(--h); color: var(--tile); background: var(--ink); padding: 6px 10px; justify-self: start; }
.tkn .num { color: var(--yel); font-size: 17px; }
.gate { display: grid; justify-items: center; gap: 0; }
.gate .tt { width: 136px; height: auto; }
.gate .tok { width: 68px; height: auto; margin-top: -10px; }

/* ending */
.ending { position: relative; height: calc(var(--e, 6) * 128px); max-height: 92svh; min-height: 420px; background: var(--navy2) url(/assets/art/ending-wide.png) 50% 100% / calc(var(--e, 6) * 512px) calc(var(--e, 6) * 128px) no-repeat; image-rendering: pixelated; border-top: 4px solid var(--ink); overflow: hidden; }
.end-in { position: relative; max-width: 1320px; margin: 0 auto; padding: 56px 24px; image-rendering: auto; display: grid; justify-items: start; gap: 22px; }
.endh { margin: 0; font: 400 88px/.95 var(--w); color: var(--ink); background: var(--tile); border: 4px solid var(--ink); padding: 12px 20px 16px; box-shadow: 8px 8px 0 var(--ink); }
.endb { display: flex; flex-wrap: wrap; gap: 16px; }

/* footer: floor */
.foot { background: var(--navy); color: var(--tile); border-top: 8px solid var(--yel); }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 28px 24px 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 1; }
.flinks a { font: 700 20px/1 var(--h); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 8px 0; display: inline-block; }
.flinks a:hover, .flinks a[aria-current] { color: var(--yel); }
.fprog { margin: 0; font: 600 16px/1 var(--h); color: #AEB9D3; letter-spacing: .04em; }
.fprog a { font-family: var(--n); font-size: 13px; color: var(--tile); }

/* station picker (fixed menu) */
.pickpop { position: fixed; z-index: 80; min-width: 200px; max-height: 320px; overflow: auto; background: var(--navy); color: var(--tile); border: 4px solid var(--ink); border-bottom: 6px solid var(--yel); box-shadow: 6px 6px 0 var(--ink); padding: 4px; }
.pickpop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; font: 700 20px/1 var(--h); letter-spacing: .05em; text-align: left; }
.pickpop button:hover, .pickpop button[aria-selected=true] { background: var(--yel); color: var(--ink); }
.pickpop button .sq { width: 14px; height: 14px; background: var(--lc); border: 2px solid var(--ink); }
.pickpop button small { margin-left: auto; font: 600 12px/1 var(--n); color: inherit; opacity: .8; }
.pickpop .ph { padding: 10px; font: 700 18px/1.2 var(--h); color: #AEB9D3; }

/* toasts, tooltips, dialogs */
.tstack { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--navy); color: var(--tile); border: 4px solid var(--ink); border-left: 10px solid var(--yel); box-shadow: 6px 6px 0 var(--ink); font: 600 19px/1.2 var(--h); }
.toast.ok { border-left-color: var(--g); } .toast.err { border-left-color: var(--c); }
.toast a { color: var(--yel); white-space: nowrap; }
.toast .tt { flex: 1; }
.toast .tx { font: 400 22px/1 var(--w); color: var(--tile); min-width: 28px; min-height: 28px; }
.tipt { position: fixed; z-index: 95; pointer-events: none; max-width: 280px; background: var(--navy); color: var(--tile); border: 3px solid var(--ink); border-bottom: 5px solid var(--yel); padding: 6px 10px 7px; font: 600 17px/1.2 var(--h); }
.dlg { border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--tile); color: var(--ink); padding: 22px; width: min(420px, calc(100vw - 32px)); border-radius: 0; }
.dlg::backdrop { background: rgba(30, 34, 48, .55); }
.dlg h2 { margin: 0 0 14px; font: 400 26px/1 var(--w); }
.dlg-x { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; font: 400 26px/1 var(--w); }
.wp-list { display: grid; gap: 8px; }
.wp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 3px solid var(--ink); background: #fff; font: 700 20px/1 var(--h); }
.wp-item:hover { background: var(--yel); }
.wp-dot { width: 32px; height: 32px; background: var(--navy); }
.wp-get { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font: 700 18px/1 var(--h); }
.wp-err { color: #B23A27; font: 700 18px/1.2 var(--h); }
.wp-cur { font: 600 18px/1.2 var(--h); }
.btn.ghost { margin-top: 14px; }

/* inner pages */
.inner main { max-width: 1320px; margin: 0 auto; padding: 40px 24px 72px; }
.page-h { margin: 0 0 24px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lform { padding: 22px; display: grid; gap: 16px; }
.lform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px; border: 4px dashed var(--ink); background: #fff; font: 700 18px/1.1 var(--h); }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick .prev { width: 48px; height: 48px; object-fit: cover; border: 3px solid var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sum { margin: 0; font: 600 15px/1.3 var(--n); background: var(--navy); color: var(--tile); padding: 10px 12px; border: 4px solid var(--ink); }
.err { margin: 0; color: #fff; background: #B23A27; border: 3px solid var(--ink); padding: 8px 10px; font: 700 18px/1.2 var(--h); }
.side-art { padding: 22px; display: grid; gap: 14px; background: var(--navy); color: var(--tile); }
.side-art ol { margin: 0; padding-left: 26px; font: 600 21px/1.35 var(--h); }
.side-art .num { color: var(--yel); font-size: 17px; }
.side-art img { width: 160px; }
.mine-l { display: grid; gap: 12px; }
.mrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 4px solid var(--ink); background: #fff; font: 700 20px/1.1 var(--h); }
.mrow .num { font-size: 16px; }
.mrow .sp { flex: 1; }
.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi > div { padding: 14px 16px; background: var(--navy); color: var(--tile); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.kpi dt { font: 700 17px/1 var(--h); letter-spacing: .08em; color: var(--yel); }
.kpi dd { margin: 8px 0 0; font: 600 30px/1 var(--n); font-variant-numeric: tabular-nums; }
.killer { margin: 0 0 28px; font: 400 54px/1.05 var(--w); max-width: 1100px; }
.killer .num { font-family: var(--n); font-weight: 600; background: var(--yel); padding: 0 10px; border: 4px solid var(--ink); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.doc nav { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 6px; }
.doc nav a { font: 700 20px/1 var(--h); letter-spacing: .05em; text-decoration: none; padding: 8px 10px; border-left: 6px solid var(--grout); }
.doc nav a:hover { border-color: var(--yel); }
.doc article { display: grid; gap: 30px; }
.doc section { padding: 22px; }
.doc h2 { margin: 0 0 14px; font: 400 34px/1 var(--w); }
.doc p, .doc li { font: 600 21px/1.4 var(--h); margin: 0 0 10px; max-width: 760px; }
.doc table { width: 100%; border-collapse: collapse; font: 600 15px/1.3 var(--n); }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--grout); vertical-align: top; }
.doc th { font: 700 17px/1 var(--h); letter-spacing: .08em; background: var(--navy); color: var(--yel); }
.doc code { font: 600 14px/1 var(--n); background: var(--grout); padding: 2px 5px; }
.e404 { min-height: calc(100svh - var(--hdr)); display: grid; align-content: end; justify-items: start; gap: 18px; padding: 40px 24px calc(var(--f) * 30px); --f: 6;
  background: var(--navy2) url(/assets/art/404-wide.png) 50% 100% / calc(var(--f) * 448px) calc(var(--f) * 128px) no-repeat; image-rendering: pixelated; }
.e404 > * { image-rendering: auto; }

/* ---------------------------------------------------------------- responsive */
@media (min-height: 912px) { :root { --s: 6; } }
@media (min-height: 1083px) { :root { --s: 7; } }
@media (min-height: 1254px) { :root { --s: 8; } }
@media (min-height: 1425px) { :root { --s: 9; } }
@media (min-height: 1596px) { :root { --s: 10; } }
@media (min-height: 1767px) { :root { --s: 11; } }
@media (min-height: 1938px) { :root { --s: 12; } }
@media (min-height: 2109px) { :root { --s: 13; } }
@media (min-height: 2280px) { :root { --s: 14; } }
@media (min-height: 2451px) { :root { --s: 15; } }
@media (min-height: 2622px) { :root { --s: 16; } }
@media (min-height: 2793px) { :root { --s: 18; } }
@media (min-width: 1560px) { .hboard { --b: 3; } }
@media (min-width: 2600px) { .ending { --e: 8; } .e404 { --f: 9; } }
@media (min-width: 3800px) { .ending { --e: 12; } .e404 { --f: 12; } }
@media (max-width: 1360px) {
  .dots a span { display: none; } .dots .lnch span { display: inline; } .dots a { padding: 8px 6px; }
  .tag { font-size: 28px; }
  .hnums dd { font-size: 22px; } .hnums > div { padding: 8px 10px 10px; }
}
@media (max-width: 1180px) {
  .hdr .caplate { display: none; }
  .hz-l .hboard { display: none; }
  .drow { grid-template-columns: 250px minmax(0, 1fr) 110px 120px 190px; } .drow .c-mcap { display: none; }
  .digwrap { grid-template-columns: 1fr; } .digpanel { max-width: 640px; }
}
@media (max-width: 1100px) {
  /* stacked platform: name + links on the wall, the machine stands on the platform under them */
  :root { --s: 6; }
  .hero { height: auto; min-height: calc(var(--s) * 171px); }
  .hero-in { position: relative; inset: auto; padding: 22px 16px calc(var(--s) * 49px); display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hz { position: static; width: auto; }
  .hz-l { order: 1; align-items: center; }
  .hz-r { order: 2; align-items: center; padding-top: 0; }
  .machine { order: 3; position: relative; left: auto; margin: 22px 0 0; }
  .name { font-size: 76px; align-self: center; }
  .tag { align-self: center; font-size: 26px; margin-top: 14px; }
  .hlinks { justify-content: center; margin-top: 18px; }
  .hnums { margin-top: 18px; }
  .tickets { grid-template-columns: 1fr; } .tickets .gate { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; } .doc nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .hdr { height: auto; flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; --hdr: 104px; }
  :root { --hdr: 104px; }
  .brand .bn { font-size: 20px; } .bm { width: 34px; height: 34px; } .bm img { width: 26px; }
  .hr { margin-left: auto; gap: 8px; }
  .hdr .btn.pump { display: none; }
  .dots { order: 3; flex-basis: 100%; justify-content: space-between; }
  .dots a span { display: inline; font-size: 17px; } .dots a { padding: 6px 2px; gap: 5px; } .dots a i { width: 12px; height: 12px; border-width: 3px; }
  .drow { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .drow.hd { display: none; }
  .drow .lines { grid-column: 1 / -1; order: 3; }
  .drow .cell { order: 4; } .drow .c-mcap { display: block; }
  .drow .cells { display: contents; }
  .drow .acts { order: 2; }
  .drow .numsrow { grid-column: 1 / -1; order: 4; display: flex; gap: 18px; flex-wrap: wrap; }
  .sign { font-size: 36px; } .sub { font-size: 22px; }
  .killer { font-size: 36px; }
  .endh { font-size: 52px; }
  .ending { --e: 4; height: auto; min-height: 512px; }
}
@media (max-width: 640px) {
  :root { --s: 5; }
  .hero { min-height: calc(var(--s) * 49px + var(--m) * 170px + 320px); }
  .name { font-size: 46px; padding: 10px 14px 8px; border-bottom-width: 8px; box-shadow: 5px 5px 0 var(--ink); margin-top: 6px; } .tag { font-size: 22px; padding: 3px 10px 5px; box-shadow: 4px 4px 0 var(--ink); }
  .hlinks { gap: 12px; } .hlinks .btn.big { min-height: 44px; font-size: 16px; padding: 0 12px; } .caplate.big { height: 44px; }
  .hnums { display: none; }
  .sec { padding: 44px 16px 52px; }
  .sign { font-size: 28px; padding: 8px 12px 10px; gap: 10px; } .sign i { width: 18px; height: 18px; border-width: 3px; }
  .sub { font-size: 20px; }
  .inner main { padding: 28px 16px 56px; }
  .lform .row2, .sides { grid-template-columns: 1fr; }
  .kpi dd { font-size: 22px; }
  .stub { --k: 4; } .stubs { gap: 8px; }
  .endh { font-size: 40px; }
  .empty .flap { font-size: 26px; }
  .end-in { padding: 36px 16px; }
  .drow .stn .flap { font-size: 24px; }
  .killer { font-size: 28px; }
  .doc section { padding: 16px; }
  .doc table { font-size: 13px; display: block; overflow-x: auto; }
}
@media (max-width: 370px) {
  .machine { transform: scale(.86); transform-origin: 50% 100%; margin-top: 0; }
  .name { font-size: 40px; }
  .brand .bn { font-size: 17px; }
  .hdr .btn.x .bl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .train.run { animation: none; }
  .slot .tkout, .flap b.flip { animation: none; }
  .btn, .dbar i, .borer { transition: none; }
}
.inner main.e404 { max-width: none; margin: 0; padding: 40px 24px calc(var(--f) * 34px); }
.e404 .endh { font-size: 72px; }
@media (max-width: 640px) { .e404 { --f: 4; } .e404 .endh { font-size: 38px; } }

/* how it works: the line-diagram film (own player) */
.film { background: var(--navy2); }
.player { position: relative; max-width: 1040px; margin: 0 auto; background: var(--navy); border: 4px solid var(--ink); border-bottom: 8px solid var(--yel); box-shadow: 6px 6px 0 #0D1220; padding: 12px; }
.vp-scr { position: relative; background: var(--ink); aspect-ratio: 16 / 9; }
.vp-scr video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); cursor: pointer; }
.vp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.vp-big:active { transform: translate(calc(-50% + 4px), calc(-50% + 4px)); }
.vp-big[hidden] { display: none; }
.vp-tri { display: inline-block; width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vp-pp.on .vp-tri { width: 14px; height: 16px; border: 0; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.vp-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.vp-bar .btn { min-height: 44px; font-size: 18px; padding: 0 14px; }
.vp-pp { width: 56px; padding: 0 !important; }
.vp-tl { position: relative; flex: 1; min-width: 64px; height: 28px; background: var(--ink); border: 4px solid #0D1220; cursor: pointer; touch-action: none; }
.vp-fill { position: absolute; left: 0; top: 0; bottom: 0; max-width: 100%; background: var(--yel); }
.vp-k { position: absolute; top: -10px; width: 14px; height: 44px; margin-left: -7px; background: var(--tile); border: 4px solid #0D1220; }
.vp-t { min-width: 120px; text-align: center; background: var(--ink); color: var(--tile); border: 4px solid #0D1220; padding: 8px; font: 600 14px/1.2 var(--n); }
.vp-vol { display: flex; align-items: stretch; cursor: pointer; }
.vp-vol button { position: relative; width: 16px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.vp-vol button::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; background: #3A4562; border: 3px solid #0D1220; }
.vp-vol button:nth-child(1)::before { height: 14px; } .vp-vol button:nth-child(2)::before { height: 20px; } .vp-vol button:nth-child(3)::before { height: 26px; } .vp-vol button:nth-child(4)::before { height: 32px; }
.vp-vol button.on::before { background: var(--yel); }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 18px; max-width: none; margin: 0; }
.player:fullscreen .vp-scr { max-height: calc(100vh - 100px); margin: 0 auto; width: min(100%, calc((100vh - 100px) * 16 / 9)); }
@media (max-width: 640px) { .vp-vol, .vp-m, .vp-fs { display: none; } .vp-t { min-width: 0; font-size: 12px; } .player { padding: 8px; } .vp-bar { gap: 6px; } }
