/* Catchpad: one island in a midday sky. Navy ink, one sun accent, molded "pebble" controls (flat face, top bevel,
   hard side, floor shadow), DynaPuff for words, M PLUS Rounded 800 tabular for every number. */
:root {
  --sky: #8CCBF2; --sky-top: #83C6F9; --sky-hi: #CBE9FB; --cloud: #FFFFFF; --mist: #EEF7FD; --mist-2: #DDEEF9;
  --ink: #1E3A5F; --ink-2: #4D6A8C; --ink-3: #7F98B5; --ink-deep: #132B4A;
  --sun: #FFC83D; --sun-side: #D99A12; --sun-band: #FFE08A; --sun-lite: #FFE9A8;
  --deep: #2F6FB8; --deep-2: #255C9C; --deep-3: #1D4C85;
  --leaf: #7CC46A; --leaf-side: #5A9F4A; --coral: #FF8A70; --dusk: #FFD9B8; --rare: #3E86D6; --common: #C7DDEA;
  --line: rgba(30, 58, 95, .12); --line-2: rgba(30, 58, 95, .2);
  --fd: "DynaPuff", "M PLUS Rounded 1c", system-ui, sans-serif;
  --fb: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px; --r: 22px; --ease: cubic-bezier(.2, .9, .25, 1.15);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 500 18px/1.55 var(--fb); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, [role=button], [onclick], summary, label, .ca, input[type=range] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.num { font-family: var(--fb); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mono { font-family: var(--fm); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin: 0 auto; position: relative; }
.st { font: 600 clamp(40px, 6vw, 76px)/1.02 var(--fd); letter-spacing: -.02em; margin: 0 0 14px; color: var(--ink); text-wrap: balance; }
.sl { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 620px; margin: 0 0 30px; text-wrap: pretty; }
.small { font-size: 15px; color: var(--ink-2); }
.err { color: #C2432B; font-weight: 800; font-size: 15px; min-height: 1.2em; margin: 8px 0 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- pebble buttons (molded plastic) */
.peb { --face: var(--sun); --side: var(--sun-side); --lift: 5px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--face); color: var(--ink); font: 800 16px/1 var(--fb); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 var(--lift) 0 var(--side), 0 calc(var(--lift) + 1px) 0 var(--ink), 0 calc(var(--lift) + 7px) 0 rgba(30, 58, 95, .12);
  transform: translateY(0); transition: transform .14s var(--ease), box-shadow .14s var(--ease); margin-bottom: 6px; -webkit-tap-highlight-color: transparent; }
.peb:hover { transform: translateY(-2px); --lift: 7px; }
.peb:active, .peb.busy { transform: translateY(4px); --lift: 1px; }
.peb[disabled], .peb.off { opacity: .55; pointer-events: none; }
.peb-w { --face: #fff; --side: #C7DDEA; }
.peb-leaf { --face: var(--leaf); --side: var(--leaf-side); }
.peb-s { min-height: 38px; padding: 0 16px; font-size: 14px; --lift: 4px; }
.peb .bl { position: relative; }

/* round platform buttons: a disc on a floor shadow, label under it */
.plat { display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 3vw, 34px); }
.pb { --d: 72px; --face: #fff; --side: #C7DDEA; --lift: 7px; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.pb .pf { position: relative; width: var(--d); height: var(--d); border-radius: 50%; background: var(--face); border: 3px solid var(--ink); display: grid; place-items: center;
  box-shadow: 0 var(--lift) 0 var(--side), 0 calc(var(--lift) + 2px) 0 var(--ink); transform: translateY(0); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.pb .pf::before { content: ""; position: absolute; left: 18%; right: 18%; top: 7%; height: 30%; border-radius: 50% 50% 40% 40% / 80% 80% 20% 20%; background: rgba(255, 255, 255, .55); pointer-events: none; }
.pb .pf::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: calc(-1 * var(--lift) - 16px); height: 12px; border-radius: 50%; background: rgba(30, 58, 95, .18); transition: transform .16s var(--ease), opacity .16s; z-index: -1; }
.pb svg { width: 42%; height: 42%; fill: var(--ink); position: relative; }
.pb .ic-pump { width: 60%; height: 60%; }
.pb .pl { font: 800 14px/1.1 var(--fb); white-space: nowrap; margin-top: 14px; }
.pb:hover .pf { transform: translateY(-4px); --lift: 10px; }
.pb:hover .pf::after { transform: scale(.82); opacity: .7; }
.pb:active .pf { transform: translateY(6px); --lift: 1px; }
.pb:active .pf::after { transform: scale(1.06); }
.pb-l { --d: 116px; --face: var(--sun); --side: var(--sun-side); --lift: 9px; }
.pb-l .pt { font: 600 30px/1 var(--fd); letter-spacing: -.01em; position: relative; color: var(--ink); }
.pb.pb-s { --d: 42px; --lift: 4px; gap: 0; }
.pb-s .pf { border-width: 2.5px; }
.pb-s .pf::after { display: none; }

/* CA pill */
.ca { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 14px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--line-2); white-space: nowrap; }
.ca b { font: 800 12px/1 var(--fb); color: var(--ink-2); letter-spacing: .04em; }
.ca .mono { font-size: 12.5px; }
.ca .cp { height: 32px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--sun); font: 800 13px/1 var(--fb); box-shadow: 0 2px 0 var(--sun-side); transition: transform .12s; }
.ca .cp:active { transform: translateY(2px); box-shadow: none; }
.ca .cp[disabled] { background: var(--sun-lite); box-shadow: none; color: var(--ink-2); border-style: dashed; cursor: default; }
.ca.copied .cp { background: var(--leaf); }
.carow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.carow .lab { font: 800 12px/1 var(--fb); color: var(--ink-2); }
.cachip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 10px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.cachip .cl { background: var(--sun); border-radius: 999px; padding: 4px 9px; font: 800 12px/1 var(--fb); }
.cachip.copied .cl { background: var(--leaf); }
.lk { display: inline-block; padding: 9px 0; font: 800 14px/1 var(--fb); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--sun); }
.lk:hover { text-decoration-color: var(--ink); }

/* ---------------------------------------------------------------- header */
.nav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 32px); transition: background .2s, box-shadow .2s, padding .2s; }
.nav.solid, .inner .nav { background: #fff; box-shadow: 0 1px 0 var(--line); padding-top: 9px; padding-bottom: 9px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand .bm { width: 34px; height: 34px; }
.brand .bw { width: 118px; height: auto; }
.tabs { display: flex; gap: 4px; margin-left: 10px; }
.tabs a { font: 800 15px/1 var(--fb); text-decoration: none; padding: 10px 14px; border-radius: 999px; color: var(--ink); }
.tabs a:hover, .tabs a[aria-current] { background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px var(--ink); }
.nav.solid .tabs a:hover, .inner .tabs a:hover, .inner .tabs a[aria-current] { background: var(--mist); }
.nav .sp { flex: 1; }
.nav .wbtn { margin-bottom: 4px; min-height: 42px; padding: 0 18px; font-size: 15px; --lift: 4px; }
.nav .xb { margin-bottom: 0; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: hidden; isolation: isolate; background: var(--sky-top); }
.h-sky { position: absolute; inset: 0; background: linear-gradient(var(--sky-top) 0 22%, #97D3FC 60%, var(--sky-hi)); z-index: -3; }
.h-far { position: absolute; left: -5%; right: -5%; top: 14%; z-index: -2; opacity: .55; }
.h-farcl { width: 100%; height: auto; transform: scaleY(-1); }
.h-scene { position: absolute; left: 0; right: 0; top: clamp(70px, 15vh, 160px); bottom: 0; z-index: -1; will-change: transform; }
.h-poster { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.h-crit { position: absolute; inset: 0; pointer-events: none; }
.hero.live .h-crit { display: none; }
.crit { position: absolute; left: 0; top: 0; width: var(--cs, 56px); height: var(--cs, 56px); margin: calc(var(--cs, 56px) * -.85) 0 0 calc(var(--cs, 56px) * -.5); pointer-events: none; will-change: transform; }
.crit canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.crit::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4%; height: 12%; border-radius: 50%; background: rgba(30, 58, 95, .18); z-index: -1; }
.crit .cl { display: none; position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 4px); white-space: nowrap; background: rgba(255, 255, 255, .94); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 9px; font: 800 12px/1 var(--fb); opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; }
.crit:hover .cl, .crit:focus-visible .cl, .crit.say .cl { opacity: 1; transform: translate(-50%, 0); }
.h-live { position: absolute; left: 50%; top: 18%; width: min(76vw, 900px); height: 66%; transform: translateX(-50%); }
.h-live iframe { width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; opacity: 0; transition: opacity .8s; }
.h-live.on iframe { opacity: 1; }
.h-live.on ~ .h-poster, .hero.live .h-poster { opacity: .0; }
.h-drift { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.h-drift img { position: absolute; left: 0; width: 460px; height: auto; will-change: transform; animation: drift 150s linear infinite; }
.h-drift .d1 { top: 34%; animation-delay: -40s; }
.h-drift .d2 { top: 14%; width: 300px; animation-duration: 210s; animation-delay: -150s; opacity: .85; }
@keyframes drift { from { transform: translateX(-520px); } to { transform: translateX(calc(100vw + 40px)); } }
.h-title { position: absolute; left: 0; right: 0; top: clamp(78px, 11vh, 120px); text-align: center; z-index: 2; pointer-events: none; }
.wm { margin: 0 auto; width: clamp(290px, 50vw, 720px); line-height: 0; }
.wm-svg svg { width: 100%; height: auto; overflow: visible; }
.h-line { margin: clamp(8px, 1.4vh, 16px) auto 0; font: 800 clamp(16px, 1.6vw, 21px)/1.3 var(--fb); color: var(--ink); max-width: 92vw; }
.h-line b { background: #fff; padding: 2px 10px 3px; border-radius: 999px; box-shadow: 0 3px 0 rgba(30, 58, 95, .12); white-space: nowrap; }
.h-stats { position: absolute; z-index: 3; top: 78px; right: clamp(14px, 3vw, 32px); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; background: rgba(255, 255, 255, .94); border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(30, 58, 95, .14); font: 800 13.5px/1 var(--fb); color: var(--ink); white-space: nowrap; }
.pill .num { font-size: 17px; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: inset 0 0 0 2px var(--leaf-side); }
.demo-chip { position: absolute; z-index: 3; left: 50%; top: 48%; transform: translateX(-50%); background: var(--sun); border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; font: 800 13px/1 var(--fb); letter-spacing: .08em; box-shadow: 0 3px 0 var(--sun-side); }
.h-front { position: absolute; left: 0; right: 0; bottom: -2px; height: clamp(180px, 30vh, 300px); z-index: 1; pointer-events: none;
  background: url(/assets/art/clouds-tile.webp) repeat-x 0 0 / auto 72%, linear-gradient(transparent 60%, #fff 60%); will-change: transform; }
/* the band rises on scroll (parallax): its white foot runs on below it, so the island never shows through a gap between
   the band and the white section under the hero, at any scroll step, width or zoom (hero clips the overflow) */
.h-front::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 100%; background: #fff; }
.h-dock { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(22px, 5vh, 54px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.home .h-dock .ca .mono { font-size: 12px; }

/* cloud edge between scenes: scalloped band drawn by the page (procedural, not an asset) */
.edge { position: absolute; left: 0; right: 0; top: -38px; height: 40px; background-repeat: repeat-x; background-size: 120px 40px; pointer-events: none; }
.edge-sun { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 40V22C12 4 38 4 50 20C58 8 78 6 90 18C100 8 114 10 120 22V40Z' fill='%23FFE08A'/%3E%3C/svg%3E"); }
.edge-deep { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 40V24C14 6 40 6 54 22C62 10 80 8 92 20C102 10 114 12 120 24V40Z' fill='%232F6FB8'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- 2. hatch */
.s-hatch { background: #fff; padding: clamp(40px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); position: relative; }
.s-hatch .st, .s-hatch .sl { text-align: center; margin-left: auto; margin-right: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 10px; max-width: 980px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 5px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; font: 800 14px/1 var(--fb); transition: transform .14s var(--ease), border-color .14s, box-shadow .14s; }
.chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.chip[aria-selected=true] { border-color: var(--ink); background: var(--sun-lite); box-shadow: 0 3px 0 var(--ink); }
.hatch { display: grid; grid-template-columns: minmax(280px, 420px) minmax(240px, 340px); justify-content: center; align-items: center; gap: 56px; margin: 40px 0 84px; }
.hatch-stage { grid-column: 1; position: relative; margin: 0; aspect-ratio: 640 / 520; }
.pedestal { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.hatch-cv { position: absolute; left: 50%; top: -2%; width: 56%; height: auto; aspect-ratio: 1; transform: translateX(-50%); image-rendering: pixelated; border-radius: 20px; }
.hatch-cv.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-6px); } }
.hatch-steps { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hatch-steps span { font: 800 13.5px/1 var(--fb); padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; color: var(--ink-2); transition: background .25s, border-color .25s, color .25s; }
.hatch-steps span.on { background: var(--sun); border-color: var(--ink); color: var(--ink); box-shadow: 0 3px 0 var(--sun-side); }
.hatch-steps svg { width: 34px; height: 14px; flex: none; }
.hatch-note { grid-column: 2; font-size: 16px; color: var(--ink-2); }
.hatch-note b { color: var(--ink); }
.hatch-note .hn-name { font: 600 30px/1.05 var(--fd); color: var(--ink); display: block; margin-bottom: 6px; }
.hatch-note .rtag { margin-bottom: 10px; }
.guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.gh { font: 600 30px/1 var(--fd); margin: 0; }
.gh-s { margin: 0; color: var(--ink-2); font-size: 15px; }
.rail { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; margin: 0 -20px; padding: 14px 20px 26px; cursor: grab; }
.rail.drag { cursor: grabbing; user-select: none; }
.rail-in { display: flex; gap: 18px; width: max-content; }

/* field guide cards (Spiritfarer-size), rarity frame + top tab, flip */
.card { --rc: var(--common); --rc2: var(--common); position: relative; width: 240px; height: 330px; perspective: 900px; flex: none; text-decoration: none; color: var(--ink); }
.card .cin { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.card { cursor: pointer; }
.card.flip .cin { transform: rotateX(var(--tx, 0deg)) rotateY(calc(180deg + var(--ty, 0deg))); }
.card .cf, .card .cb { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; background: #fff; border: 3px solid var(--rc); padding: 22px 16px 14px; display: flex; flex-direction: column; box-shadow: 0 6px 0 var(--mist-2); }
.card .cb { transform: rotateY(180deg); background: var(--mist); }
.card .tab { position: absolute; top: -13px; left: 16px; height: 24px; padding: 0 12px; border-radius: 999px; background: var(--rc); color: var(--ink); font: 800 12px/24px var(--fb); letter-spacing: .03em; border: 2px solid #fff; }
.card .art { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--mist); margin-bottom: 12px; }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .art img { transform: scale(1.04); }
.card .cn { font: 600 22px/1.05 var(--fd); margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .ct { font: 800 13px/1 var(--fb); color: var(--ink-2); }
.card .cd { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 2px dashed var(--line-2); padding-top: 10px; }
.card .cd .num { font-size: 20px; }
.card .cd span { font: 800 12px/1.2 var(--fb); color: var(--ink-2); text-align: right; }
.card .bar { height: 8px; border-radius: 99px; background: var(--mist-2); overflow: hidden; margin-top: 8px; }
.card .bar i { display: block; height: 100%; background: var(--sun); border-radius: 99px; }
.card dl { margin: 6px 0 0; display: grid; gap: 9px; }
.card dl div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 2px dashed var(--line); padding-bottom: 7px; }
.card dt { font: 800 13px/1.2 var(--fb); color: var(--ink-2); }
.card dd { margin: 0; font: 800 15px/1.2 var(--fb); font-variant-numeric: tabular-nums; text-align: right; }
.card .cbl { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.card .cbl .peb { min-height: 36px; padding: 0 14px; font-size: 13px; --lift: 3px; }
.card .flipb { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; z-index: 2; }
.card .flipb svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.card.r-uncommon { --rc: var(--leaf); }
.card.r-rare { --rc: var(--rare); }
.card.r-rare .tab, .card.r-rare .tab { color: #fff; }
.card.r-epic { --rc: var(--coral); }
.card.r-legendary { --rc: var(--sun); }
.card.r-legendary .cf, .card.r-legendary .cb { box-shadow: 0 0 0 1px #fff, 0 0 0 4px var(--sun), 0 9px 0 var(--mist-2); }
.card.demo .tab::after { content: " DEMO"; }
.card.invite .cf { border-style: dashed; border-color: var(--ink-3); background: var(--mist); align-items: center; justify-content: center; text-align: center; gap: 14px; }
.card.invite .cf p { margin: 0; font: 600 22px/1.15 var(--fd); }
.rtag { display: inline-flex; height: 24px; align-items: center; padding: 0 11px; border-radius: 999px; font: 800 12px/1 var(--fb); background: var(--common); color: var(--ink); }
.rtag.r-uncommon { background: var(--leaf); } .rtag.r-rare { background: var(--rare); color: #fff; } .rtag.r-epic { background: var(--coral); } .rtag.r-legendary { background: var(--sun); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sun); }
.ladder { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.ladder li { position: relative; padding: 14px 10px 0; text-align: center; border-top: 6px solid var(--common); }
.ladder li::before { content: ""; position: absolute; top: -13px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.ladder li:nth-child(1) { border-top-color: var(--common); } .ladder li:nth-child(2) { border-top-color: var(--leaf); } .ladder li:nth-child(3) { border-top-color: var(--rare); } .ladder li:nth-child(4) { border-top-color: var(--coral); } .ladder li:nth-child(5) { border-top-color: var(--sun); }
.ladder b { display: block; font: 600 19px/1.1 var(--fd); }
.ladder span { font: 800 12.5px/1.3 var(--fb); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 3. dial (sun band) */
.s-dial { position: relative; background: var(--sun-band); padding: clamp(56px, 8vw, 110px) 0; }
.s-dial .st { paint-order: stroke fill; -webkit-text-stroke: 12px #fff; }
.dial-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.dial-copy .sl { color: var(--ink); opacity: .85; }
.dial-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 70px; }
.dial-who { position: absolute; top: -6px; left: 50%; width: 92px; height: 92px; margin-left: -46px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--sun-side); overflow: hidden; z-index: 2; transition: transform .5s var(--ease); }
.dial-who img { width: 100%; height: 100%; object-fit: cover; }
.dial-who img.px { image-rendering: pixelated; object-fit: contain; padding: 4px; background: var(--mist); }
.dial-who.caught { transform: translateY(-14px) scale(.4) rotate(180deg); opacity: 0; transition: transform .6s cubic-bezier(.6, -.3, .7, .3), opacity .6s .2s; }
.dial-who.miss { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.dial { width: 320px; height: 320px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border-radius: 50%; box-shadow: 0 10px 0 var(--sun-side), 0 12px 0 var(--ink), 0 26px 0 rgba(30, 58, 95, .1); transition: transform .12s var(--ease); }
.dial:active { transform: translateY(5px); box-shadow: 0 5px 0 var(--sun-side), 0 7px 0 var(--ink), 0 18px 0 rgba(30, 58, 95, .1); }
.dial .d-arc { transition: stroke .15s; }
.dial.hit .d-arc { stroke: #fff; }
.dial.missd { animation: shake .4s; }
.pips { display: flex; gap: 10px; }
.pips i { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transition: background .2s, transform .2s var(--ease); }
.pips i.h { background: var(--sun); transform: scale(1.15); }
.pips i.m { background: var(--coral); }
.dial-go { min-width: 160px; }
.dial-res { display: inline-flex; flex-direction: column; gap: 4px; background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: 0 5px 0 var(--sun-side); max-width: 380px; }
.dr-k { font: 600 24px/1.1 var(--fd); }
.dr-t { font-size: 16px; color: var(--ink-2); }
.dial-res.win { background: var(--sun-lite); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; border: 2px solid rgba(30, 58, 95, .16); }
.facts .num { font-size: 34px; text-align: center; color: var(--ink); }
.facts span { font: 800 15px/1.3 var(--fb); }

/* ---------------------------------------------------------------- 4. pool (deep band) */
.s-pool { position: relative; background: var(--deep); color: #fff; padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.s-pool .st { color: #fff; text-align: center; paint-order: stroke fill; -webkit-text-stroke: 12px var(--ink); }
.s-pool::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 40V24C14 6 40 6 54 22C62 10 80 8 92 20C102 10 114 12 120 24V40Z' fill='%23A9DAF8'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 40px; pointer-events: none; }
.pool-stage { position: relative; display: grid; grid-template-columns: 1fr minmax(280px, 480px) 1fr; align-items: center; margin: 18px 0 10px; }
.pool-art { grid-column: 2; grid-row: 1; position: relative; }
.pool-art img { width: 100%; height: auto; }
.drops { position: absolute; left: 50%; top: 6%; width: 30%; height: 30%; transform: translateX(-50%); pointer-events: none; overflow: hidden; }
.drops i { position: absolute; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--sun-side); opacity: 0; }
.chutes { grid-column: 1 / -1; grid-row: 1; list-style: none; margin: 0; padding: 0; position: relative; height: 100%; pointer-events: none; }
.ch { position: absolute; width: min(250px, 26vw); background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: 0 5px 0 var(--deep-3); pointer-events: auto; }
.ch b { display: block; font: 600 22px/1.1 var(--fd); margin-bottom: 4px; }
.ch span { font: 800 14px/1.3 var(--fb); color: var(--ink-2); }
.ch::after { content: ""; position: absolute; top: 50%; width: 70px; border-top: 3px dashed rgba(255, 255, 255, .7); }
.ch-1 { left: 0; top: 12%; } .ch-1::after { left: 100%; }
.ch-2 { right: 0; top: 30%; } .ch-2::after { right: 100%; }
.ch-3 { left: 4%; top: 62%; } .ch-3::after { left: 100%; }
.pool-exit { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 44px auto 26px; }
.pe-t { font: 800 clamp(18px, 2vw, 23px)/1.35 var(--fb); margin: 0 0 18px; }
.pe-t b { color: var(--sun); }
.split { display: flex; height: 46px; border-radius: 999px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--deep-3); background: #fff; }
.split span { display: flex; align-items: center; justify-content: center; gap: 6px; font: 800 14px/1 var(--fb); color: var(--ink); white-space: nowrap; min-width: 0; overflow: hidden; transform-origin: left; }
.split .sp-pool { background: var(--sun); } .split .sp-pad { background: #fff; border-left: 3px solid var(--ink); } .split .sp-dev { background: var(--leaf); border-left: 3px solid var(--ink); }
.pool-live { background: var(--deep-2); border-radius: 26px; padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px 26px; align-items: center; max-width: 920px; margin: 0 auto; }
.pl-who { display: flex; align-items: center; gap: 12px; }
.pl-who img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 3px solid #fff; }
.pl-who b { display: block; font: 600 24px/1 var(--fd); }
.pl-who span { font: 800 13px/1.3 var(--fb); opacity: .85; }
.pl-nums { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.pln { background: var(--deep-3); border-radius: 18px; padding: 10px 16px; min-width: 150px; }
.pln .num { display: block; font-size: 28px; color: #fff; }
.pln span { font: 800 13px/1.2 var(--fb); opacity: .85; }
.ring-n { display: flex; align-items: center; gap: 10px; }
.ring { width: 52px; height: 52px; flex: none; }
.ring-v { transition: stroke-dashoffset .8s var(--ease); }
.pl-pick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-pick button { height: 34px; padding: 0 12px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font: 800 13px/1 var(--fb); }
.pl-pick button[aria-pressed=true] { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------------------------------------------------------------- 5. dock (late afternoon) */
.s-dock { position: relative; min-height: clamp(620px, 92vh, 860px); overflow: hidden; display: flex; align-items: center; background: var(--dusk); }
.dock-bg { position: absolute; inset: -8% 0 0; width: 100%; height: 116%; object-fit: cover; object-position: 30% 50%; will-change: transform; }
.dock-in { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 40px; align-items: center; padding: 70px 0; }
.dock-in .st { align-self: start; margin-top: 10px; paint-order: stroke fill; -webkit-text-stroke: 12px #fff; }
.calc { grid-column: 2; background: #fff; border-radius: 28px; padding: 26px; border: 3px solid var(--ink); box-shadow: 0 8px 0 #E7B98F, 0 10px 0 var(--ink); }
.cl-r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
.cl-k { font: 800 15px/1 var(--fb); color: var(--ink-2); }
.cl-r .num { font-size: 26px; }
.slide { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 4px 0 12px; --p: 25%; }
.slide::-webkit-slider-runnable-track { height: 14px; border-radius: 99px; border: 2.5px solid var(--ink); background: linear-gradient(90deg, var(--sun) var(--p), var(--mist) var(--p)); }
.slide::-moz-range-track { height: 14px; border-radius: 99px; border: 2.5px solid var(--ink); background: linear-gradient(90deg, var(--sun) var(--p), var(--mist) var(--p)); }
.slide::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.slide::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.slide:active::-webkit-slider-thumb { background: var(--sun); }
.cl-out { margin: 4px 0 12px; display: grid; gap: 0; border-top: 2px dashed var(--line-2); }
.cl-out div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 2px dashed var(--line-2); }
.cl-out dt { font: 800 15px/1.2 var(--fb); color: var(--ink-2); }
.cl-out dd { margin: 0; font-size: 22px; }
.cl-fee { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.cl-go { width: 100%; min-height: 56px; font-size: 18px; }

/* ---------------------------------------------------------------- ending */
.s-end { background: linear-gradient(var(--dusk), var(--sky-hi) 40%, var(--mist)); text-align: center; padding: clamp(60px, 9vw, 120px) 20px clamp(60px, 7vw, 90px); display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: hidden; }
.end-isl { width: min(360px, 76vw); height: auto; animation: bob2 6s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: translateY(-2px); } }
.s-end .st { margin: 0; }
.s-end .plat { margin: 6px 0 4px; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #fff; padding: 34px 0 40px; }
.foot-in { width: min(100% - 40px, var(--wrap)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.foot .brand .bw { width: 128px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1; }
.foot nav a { color: #fff; text-decoration: none; font: 800 15px/1 var(--fb); padding: 10px 0; display: inline-block; }
.foot nav a:hover { color: var(--sun); }
.foot .fine { margin: 0; font-size: 13px; opacity: .8; }
.foot .fine a { color: #fff; }

/* ---------------------------------------------------------------- inner pages */
.inner { background: var(--mist); }
.page { padding: 100px 0 80px; min-height: 70vh; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ph .st { font-size: clamp(38px, 5vw, 64px); margin: 0; }
.panel { background: #fff; border-radius: var(--r); border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--mist-2), 0 8px 0 var(--line-2); padding: clamp(18px, 3vw, 30px); }
.grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font: 800 14px/1 var(--fb); margin-bottom: 8px; }
.field input[type=text], .field input[type=number], .field textarea, .field input[type=url] { width: 100%; height: 50px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; padding: 0 14px; font: 600 17px/1 var(--fb); color: var(--ink); }
.field textarea { height: 90px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--sun); }
.field .hint { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.drop-zone { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; border: 2.5px dashed var(--ink-3); border-radius: 18px; padding: 12px; background: var(--mist); }
.drop-zone img, .drop-zone .ph0 { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: #fff; border: 2px solid var(--line-2); }
.row2 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 2px dashed var(--line); }
.kv dt { font: 800 14.5px/1.3 var(--fb); color: var(--ink-2); }
.kv dd { margin: 0; font: 800 16px/1.3 var(--fb); font-variant-numeric: tabular-nums; text-align: right; }
.coin-hero { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.coin-hero .card { width: 100%; height: 420px; }
.coin-hero .card .cn { font-size: 28px; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.big3 > div { background: var(--mist); border-radius: 18px; padding: 14px 16px; }
.big3 .num { display: block; font-size: clamp(24px, 3vw, 34px); }
.big3 span { font: 800 13px/1.2 var(--fb); color: var(--ink-2); }
.list { display: grid; gap: 10px; }
.lrow { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 14px 10px 10px; border: 2px solid var(--line-2); }
.lrow img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.lrow .ln { font: 600 20px/1.1 var(--fd); }
.lrow .ls { font: 800 13px/1.3 var(--fb); color: var(--ink-2); }
.empty { text-align: center; padding: 40px 20px; }
.empty p { font: 600 26px/1.2 var(--fd); margin: 0 0 18px; }
.statline { font: 600 clamp(36px, 6vw, 80px)/1.05 var(--fd); margin: 0 0 30px; text-wrap: balance; }
.statline .num { font-family: var(--fb); color: var(--deep); }
.doc h2 { font: 600 34px/1.1 var(--fd); margin: 40px 0 12px; }
.doc h3 { font: 800 19px/1.3 var(--fb); margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; }
.doc li b, .doc p b { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border-radius: 16px; overflow: hidden; }
.doc td, .doc th { text-align: left; padding: 11px 14px; border-bottom: 2px dashed var(--line); }
.doc td:last-child { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.doc .toc a { font: 800 14px/1 var(--fb); padding: 9px 14px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; background: #fff; }

/* island page: the game full screen */
.isl { position: fixed; inset: 0; background: #A8DCF7; }
.isl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.isl-bar { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); top: 10px; display: flex; gap: 8px; align-items: center; }
.isl-gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: url(/assets/art/hero.webp) center / cover; }
.isl-gate .panel { max-width: 460px; text-align: center; }
.isl-gate h1 { font: 600 40px/1.05 var(--fd); margin: 0 0 10px; }
.steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; text-align: left; }
.steps li { display: flex; gap: 10px; align-items: center; font: 800 15px/1.3 var(--fb); }
.steps li i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; }
.steps li.ok i { background: var(--leaf); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: start center; text-align: center; padding: max(110px, 14vh) 20px 60px; background: url(/assets/art/404.webp) center / cover #8CCBF2; }
.nf h1 { font: 600 clamp(44px, 7vw, 86px)/1 var(--fd); margin: 0 0 22px; }

/* toasts + modal */
.tstack { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 5px 0 var(--line-2); font: 700 15px/1.35 var(--fb); }
.toast.ok { background: #EAF7E5; } .toast.err { background: #FFEAE4; }
.toast .tt { flex: 1; } .toast a { font-weight: 800; white-space: nowrap; }
.toast .tx { border: 0; background: none; font-size: 22px; line-height: 1; padding: 0 4px; }
.mdl { position: fixed; z-index: 80; inset: 0; background: rgba(30, 58, 95, .45); display: grid; place-items: center; padding: 16px; }
.dlg-box { position: relative; width: min(460px, 100%); max-height: 90vh; overflow: auto; background: #fff; border: 3px solid var(--ink); border-radius: 24px; padding: 26px 22px 22px; box-shadow: 0 8px 0 var(--ink); }
.dlg-box h3 { font: 600 28px/1.1 var(--fd); margin: 0 0 14px; padding-right: 40px; }
.dlg-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; font-size: 26px; line-height: 1; }
.wlist { display: grid; gap: 8px; }
.wlist button { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; font: 800 16px/1 var(--fb); }
.wlist img { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- motion helpers */
.js .wl { transform-box: fill-box; }
.rv { transition: opacity .7s, transform .7s var(--ease); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .hatch { grid-template-columns: 1fr; }
  .hatch-stage { grid-column: 1; width: min(320px, 76vw); margin: 0 auto; }
  .hatch-note { grid-column: 1; text-align: center; max-width: 520px; margin: 0 auto; }
  .dial-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dial-copy .sl { margin-left: auto; margin-right: auto; }
  .facts { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .facts li { grid-template-columns: 1fr; text-align: center; }
  .pool-stage { grid-template-columns: 1fr; }
  .pool-art { grid-column: 1; width: min(420px, 84vw); margin: 0 auto; }
  .chutes { grid-row: 2; display: grid; gap: 10px; height: auto; margin-top: 14px; }
  .ch { position: static; width: auto; }
  .ch::after { display: none; }
  .dock-in { grid-template-columns: 1fr; }
  .calc { grid-column: 1; }
  .grid2, .coin-hero { grid-template-columns: 1fr; }
  .coin-hero .card { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .t-doc, .nav .wbtn { display: none; }
  .h-stats { flex-direction: row; left: 0; right: 0; top: auto; bottom: calc(clamp(22px, 5vh, 54px) + 214px); justify-content: center; flex-wrap: wrap; gap: 6px; }
  .h-live { top: 30%; width: 96vw; height: 52%; }
  .pool-live { grid-template-columns: 1fr; }
  .pl-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pln { min-width: 0; }
  .ring-n { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav { gap: 8px; padding: 10px 12px; }
  .brand .bw { display: none; }
  .tabs { margin-left: 0; gap: 0; }
  .tabs a { padding: 9px 8px; font-size: 13.5px; }
  .nav .ca { height: 36px; padding-left: 10px; gap: 6px; }
  .nav .ca .mono { font-size: 11px; }
  .nav .ca .cp { height: 32px; padding: 0 10px; font-size: 12px; }
  .pb.pb-s { --d: 38px; }
  .hero { min-height: 600px; max-height: 900px; }
  .h-scene { top: 0; }
  .h-poster { position: absolute; left: 50%; top: 268px; width: 212vw; max-width: none; height: auto; transform: translateX(-50%); object-fit: initial; }
  .h-far { display: none; }
  .h-drift .d1 { top: 44%; width: 300px; } .h-drift .d2 { top: 30%; width: 200px; }
  .h-sky { background: var(--sky-top); }
  .h-title { top: 66px; }
  .wm { width: min(330px, 84vw); }
  .h-line { font-size: 15px; }
  .h-line b { display: inline-block; margin-top: 4px; }
  .h-stats { top: 226px !important; bottom: auto !important; }
  .pb { --d: 60px; }
  .pb-l { --d: 96px; }
  .pb-l .pt { font-size: 25px; }
  .pb .pl { font-size: 12.5px; }
  .plat { gap: 14px; }
  .pill { height: 30px; padding: 0 10px; font-size: 12px; }
  .pill .num { font-size: 13px; }
  .ca-hero .mono { font-size: 10.5px !important; }
  .dial { width: 260px; height: 260px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 64px 1fr; text-align: left; }
  .ladder { grid-template-columns: 1fr; gap: 10px; }
  .ladder li { border-top: 0; border-left: 6px solid var(--common); text-align: left; padding: 4px 0 4px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .ladder li::before { display: none; }
  .ladder li:nth-child(1) { border-left-color: var(--common); } .ladder li:nth-child(2) { border-left-color: var(--leaf); } .ladder li:nth-child(3) { border-left-color: var(--rare); } .ladder li:nth-child(4) { border-left-color: var(--coral); } .ladder li:nth-child(5) { border-left-color: var(--sun); }
  .hatch-steps span { font-size: 12px; padding: 7px 9px; }
  .hatch-steps svg { width: 22px; }
  .split span { font-size: 12px; }
  .split .sp-dev b { display: none; }
  .big3 { grid-template-columns: 1fr; }
  .s-dock { min-height: 0; }
  .dock-bg { object-position: 12% 50%; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .h-poster { top: 236px; width: 170vw; }
  .pb { --d: 54px; } .pb-l { --d: 84px; } .pb-l .pt { font-size: 22px; }
  .h-dock { gap: 14px; bottom: 16px; }
}
@media (max-width: 440px) {
  .t-isl { display: none; }
}
@media (max-width: 360px) {
  .nav .ca .mono { display: none; }
}
@media (min-width: 1700px) {
  .wm { width: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* wallet picker (kit/wallet.js) */
.wp-list { display: grid; gap: 10px; }
.wp-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 16px; font: 800 16px/1.2 var(--fb); text-align: left; background: #fff; box-shadow: 0 4px 0 var(--mist-2); min-height: 56px; transition: transform .14s var(--ease), box-shadow .14s; }
.wp-item:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sun); }
.wp-item img { width: 28px; height: 28px; }
.wp-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--ink); display: inline-block; }
.wp-get { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; } .wp-get a { color: var(--ink); font-weight: 800; }
.wp-cur, .wp-none { font-size: 15px; margin-bottom: 12px; color: var(--ink-2); }
.wp-off { margin-top: 14px; }
.wp-err { margin-top: 10px; font-size: 14px; color: #C2432B; font-weight: 800; }
.btn.ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff; font: 800 15px/1 var(--fb); }
dialog.dlg { border: 3px solid var(--ink); border-radius: 24px; background: #fff; color: var(--ink); padding: 26px 22px 22px; width: min(440px, calc(100vw - 32px)); max-height: 90vh; box-shadow: 0 8px 0 var(--ink); }
dialog.dlg::backdrop { background: rgba(30, 58, 95, .45); }
dialog.dlg h2 { font: 600 28px/1.1 var(--fd); margin: 0 0 14px; padding-right: 48px; }

/* "How it works" explainer video (no autoplay, poster first) */
.howto { margin: 8px 0 34px; }
.howto video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; border: 3px solid var(--ink); background: var(--sky-hi); box-shadow: 0 6px 0 rgba(30,58,95,.18); }
.howto figcaption { margin-top: 12px; font: 500 15px/1.4 var(--fb); color: var(--ink-2); text-align: center; }
