/* Copypad - 16-bit underwater. Palette: Mega Drive 9-bit (every channel k*0x24). One accent: --ping. */
@font-face { font-family: "Silkscreen"; src: url(/assets/fonts/Silkscreen-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixelify"; src: url(/assets/fonts/Pixelify-Sans-700.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "B612"; src: url(/assets/fonts/B612-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url(/assets/fonts/B612-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --w0: #48B4D8; --w1: #2490B4; --w2: #006C90; --w3: #00486C; --w4: #002448; --w5: #000024;
  --foam: #B4FCFC; --white: #FCFCFC; --ping: #6CFCB4; --gold: #FCD848; --gold-d: #B46C24; --kelp: #246C48; --coral: #FC6C6C;
  --wh0: #24486C; --wh1: #486C90; --wh2: #90B4D8;
  --px: 3px; --lot: 72px; --hud: 60px;
  --disp: "Silkscreen", monospace; --ui: "Pixelify", monospace; --body: "B612", system-ui, sans-serif;
  --dith: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEUlEQVR42mNgYFD5z4AAKv8BEWcCR66kU6kAAAAASUVORK5CYII=");
}
@media (max-width: 768px) { :root { --px: 2px; --lot: 0px; --hud: 52px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--w5); color: var(--foam); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hud); }
body { margin: 0; font: 400 17px/1.55 var(--body); background: var(--w4); overflow-x: hidden; min-height: 100vh; }
a { color: inherit; }
img { image-rendering: pixelated; }
.num { font-family: var(--body); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--wh2); }
h1, h2, h3, .disp { font-family: var(--disp); font-weight: 700; -webkit-font-smoothing: none; font-smooth: never; letter-spacing: 0; }
.ui, button, .btn, label, .chip, .tag, .box-h, nav { font-family: var(--ui); -webkit-font-smoothing: none; }
a, button, [role=button], [onclick], summary, label, .ca-b, [data-ca] { cursor: pointer; }
::selection { background: var(--ping); color: var(--w5); }
:focus-visible { outline: var(--px) solid var(--ping); outline-offset: var(--px); }
[hidden] { display: none !important; }

#sea { position: fixed; left: 0; top: 0; z-index: 0; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
main, .hud, .lot, .foot, .menu { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- buttons: 9-slice bevel, palette-cycle hover */
.btn { --b0: var(--w1); --b1: var(--w5); --face: var(--w2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font: 700 20px/1 var(--ui); color: var(--white); text-decoration: none; white-space: nowrap; background: var(--face);
  border: var(--px) solid var(--w5); box-shadow: inset var(--px) var(--px) 0 var(--b0), inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--b1);
  -webkit-tap-highlight-color: transparent; user-select: none; position: relative; }
.btn.lit { --face: var(--ping); --b0: var(--foam); --b1: #24B490; color: var(--w5); }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 16px; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 20px; }
.btn.sq { width: 44px; padding: 0; }
.btn.sq.sm, .hud .btn.sq { width: 40px; min-height: 40px; }
@media (hover: hover) {
  .btn:hover { animation: cycle .32s steps(1) infinite; }
  .btn.lit:hover { animation-name: cycleLit; }
}
@keyframes cycle { 0% { border-color: var(--w5); } 25% { border-color: var(--w3); } 50% { border-color: var(--ping); } 75% { border-color: var(--w1); } }
@keyframes cycleLit { 0% { border-color: var(--w5); } 25% { border-color: var(--w2); } 50% { border-color: var(--white); } 75% { border-color: var(--w3); } }
.btn:active { transform: translateY(var(--px)); box-shadow: inset var(--px) var(--px) 0 var(--b1), inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--b0); }
.btn:disabled, .btn[aria-disabled=true] { color: var(--wh1); background: var(--w3) var(--dith); background-size: calc(var(--px) * 2); animation: none; transform: none; cursor: not-allowed; }
.btn.busy { animation: cycle .32s steps(1) infinite; }

/* ---------------------------------------------------------------- MD text box */
.box { position: relative; background: var(--w5); border: var(--px) solid var(--foam); box-shadow: 0 0 0 var(--px) var(--w5); padding: 18px 20px; }
.box-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: -4px 0 12px; font-size: 16px; color: var(--wh2); }
.box-h b { font: 700 20px/1.2 var(--ui); color: var(--white); }
.dlg-box { position: relative; background: var(--w5); border: var(--px) solid var(--foam); box-shadow: 0 0 0 var(--px) var(--w5); padding: 18px 48px 18px 22px; font: 400 18px/1.5 var(--body); color: var(--white); max-width: 720px; }
.dlg-box p { margin: 0; min-height: 1.5em; }
.adv { position: absolute; right: 18px; bottom: 14px; width: calc(var(--px) * 5); height: calc(var(--px) * 3); background: var(--ping);
  clip-path: polygon(0 0, 100% 0, 100% 33.3%, 80% 33.3%, 80% 66.6%, 60% 66.6%, 60% 100%, 40% 100%, 40% 66.6%, 20% 66.6%, 20% 33.3%, 0 33.3%); animation: adv 1s steps(2) infinite; }
@keyframes adv { 50% { transform: translateY(var(--px)); } }

/* ---------------------------------------------------------------- inputs */
.px-in { width: 100%; min-height: 48px; padding: 0 14px; font-size: 17px; color: var(--white); background: var(--w5); border: var(--px) solid var(--w3);
  box-shadow: inset var(--px) var(--px) 0 #000000, inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--w2); caret-color: var(--ping); border-radius: 0; }
.px-in::placeholder { color: var(--wh1); }
.px-in:focus { outline: none; border-color: var(--ping); }
textarea.px-in { min-height: 88px; padding: 10px 14px; resize: vertical; font-family: var(--body); }
.field { display: flex; gap: 10px; }
.field .px-in { flex: 1; min-width: 0; }

.px-range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 8px 0 0; }
.px-range::-webkit-slider-runnable-track { height: calc(var(--px) * 4); background: var(--w3); border: var(--px) solid var(--w5); }
.px-range::-moz-range-track { height: calc(var(--px) * 4); background: var(--w3); border: var(--px) solid var(--w5); }
.px-range::-webkit-slider-thumb { -webkit-appearance: none; width: calc(var(--px) * 8); height: calc(var(--px) * 10); margin-top: calc(var(--px) * -4); background: var(--ping); border: var(--px) solid var(--w5); box-shadow: inset var(--px) var(--px) 0 var(--foam), inset calc(var(--px) * -1) calc(var(--px) * -1) 0 #24B490; border-radius: 0; cursor: grab; }
.px-range::-moz-range-thumb { width: calc(var(--px) * 8); height: calc(var(--px) * 10); background: var(--ping); border: var(--px) solid var(--w5); border-radius: 0; cursor: grab; }

/* chips (filters) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; font: 700 16px/1 var(--ui); color: var(--wh1); border: var(--px) solid var(--w3); background: var(--w5); }
.chip.on { color: var(--ping); border-color: var(--ping); }
.chip.off { color: var(--coral); border-color: var(--coral); }
.chip.wait { color: var(--wh2); border-color: var(--wh1); background: var(--w5) var(--dith); background-size: calc(var(--px) * 2); }
.chip .num { font-size: 14px; }
.chip { position: relative; }
.chip[data-tip]::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 280px; white-space: normal;
  background: var(--w5); color: var(--white); border: var(--px) solid var(--coral); padding: 8px 10px; font: 400 14px/1.4 var(--body); visibility: hidden; transform: translateY(var(--px)); }
.chip[data-tip]:hover::after, .chip[data-tip]:focus::after { visibility: visible; transform: none; }
.chip i { width: calc(var(--px) * 3); height: calc(var(--px) * 3); background: currentColor; }

/* ---------------------------------------------------------------- HUD */
.hud { position: fixed; top: 0; left: 0; right: 0; height: var(--hud); display: flex; align-items: center; gap: 22px; padding: 0 calc(var(--lot) + 18px) 0 20px; background: var(--w5); border-bottom: var(--px) solid var(--w3); z-index: 20; }
.home { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.home b { font: 700 16px/1 var(--disp); letter-spacing: 0; }
.home .logo { width: 24px; height: 24px; }
.tkr { font-size: 15px; color: var(--ping); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nl { font: 700 16px/1 var(--ui); text-decoration: none; color: var(--wh2); padding: 10px 10px; }
.nl:hover, .nl[aria-current=page] { color: var(--white); box-shadow: inset 0 calc(var(--px) * -1) 0 var(--ping); }
.side { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.burger { display: none; flex-direction: column; gap: 4px; }
.burger i { display: block; width: 18px; height: var(--px); background: var(--white); }
.menu { position: fixed; inset: var(--hud) 0 0 0; z-index: 19; background: var(--w5) var(--dith); background-size: 4px; padding: 16px; }
.menu .box { display: flex; flex-direction: column; gap: 16px; }
.menu nav { display: flex; flex-direction: column; }
.ml { font: 700 24px/1 var(--ui); padding: 12px 0; text-decoration: none; color: var(--white); border-bottom: var(--px) solid var(--w3); }
@media (max-width: 1100px) { .nav { display: none; } .burger { display: inline-flex; } .hp, .hud .wal { display: none; } }
@media (max-width: 420px) { .home b { font-size: 16px; } .hud { gap: 10px; padding: 0 12px; } .tkr { display: none; } }

/* CA */
.ca, .cax { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.ca-l { font: 700 16px/1 var(--ui); color: var(--ping); }
.ca-v { color: var(--white); word-break: break-all; }
.cax .ca-v { color: var(--wh2); }
.ca { cursor: pointer; }

/* ---------------------------------------------------------------- depth lot (right edge) */
.lot { position: fixed; right: 0; top: var(--hud); bottom: 0; width: var(--lot); z-index: 15; background: var(--w5); border-left: var(--px) solid var(--w3); display: flex; flex-direction: column; align-items: stretch; }
.lot-read { padding: 10px 6px 8px; text-align: center; border-bottom: var(--px) solid var(--w3); color: var(--white); font-size: 15px; line-height: 1.1; }
.lot-read i { display: block; font: 700 12px/1 var(--ui); font-style: normal; color: var(--wh2); margin-top: 2px; }
.lot-marks { list-style: none; margin: 0; padding: 0; position: absolute; top: 64px; bottom: 16px; left: 0; right: 0; }
.lot-marks li { position: absolute; left: 0; right: 0; }
.lot-marks a { display: block; padding: 4px 6px 4px 18px; text-decoration: none; color: var(--wh2); position: relative; transform: translateY(-50%); }
.lot-marks a::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: var(--px); background: currentColor; }
.lot-marks b { display: block; font: 400 12px/1.1 var(--body); font-variant-numeric: tabular-nums; }
.lot-marks span { display: block; font: 700 12px/1.1 var(--ui); }
.lot-marks a.on, .lot-marks a:hover { color: var(--ping); }
.lot-rule { position: absolute; top: 64px; bottom: 16px; left: 0; width: 6px; border-left: var(--px) dotted var(--w3); }
.lot-rule i { position: absolute; left: 0; width: 14px; height: 6px; background: var(--ping); top: 0; will-change: transform; }
@media (max-width: 768px) {
  .lot { top: 0; bottom: auto; right: 112px; width: auto; height: var(--hud); border: 0; background: transparent; z-index: 21; justify-content: center; }
  .lot-read { border: 0; padding: 0 4px; font-size: 14px; }
  .lot-marks, .lot-rule { display: none; }
}

/* ---------------------------------------------------------------- scenes */
main { padding-right: var(--lot); }
.scene { position: relative; padding: 120px 40px 120px; max-width: 1280px; margin: 0 auto; }
.sh { max-width: 760px; margin-bottom: 40px; }
.mark { margin: 0 0 6px; font: 400 16px/1 var(--body); color: var(--ping); font-variant-numeric: tabular-nums; }
.sh h2 { font-size: 48px; line-height: 1.1; margin: 0 0 14px; color: var(--white); }
.sub, .lede { font-size: 18px; color: var(--foam); margin: 0; max-width: 640px; }
@media (max-width: 768px) { .scene { padding: 88px 16px 88px; } .sh h2 { font-size: 32px; } .sub, .lede { font-size: 16px; } }

/* reveals: only after JS marks the page, the text is never hidden without it */
.js [data-cut].pre { clip-path: inset(0 0 100% 0); }
.js [data-cut].go { animation: cut .48s steps(8) forwards; }
@keyframes cut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.w { display: inline-block; }
.js [data-words].pre .w { opacity: 0; transform: translateY(var(--px)); }
.js [data-words].go .w { opacity: 1; transform: none; transition: opacity 0s steps(1), transform 0s steps(1); transition-delay: calc(var(--i) * 45ms); }

/* hero */
.hero { max-width: none; padding: 0; height: 195vh; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-c { position: relative; z-index: 3; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 20px; margin-top: 12vh; }
.name { margin: 0; font-size: 64px; line-height: 1; color: var(--white); display: flex; }
.name .n2 { color: var(--foam); }
.name-px { position: absolute; pointer-events: none; image-rendering: pixelated; }
.line { margin: 0; font-size: 18px; color: var(--white); max-width: 560px; background: var(--w5); padding: 8px 14px; border: var(--px) solid var(--w3); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero .ca, .hero .cax { justify-content: center; background: var(--w5); padding: 6px 6px 6px 12px; border: var(--px) solid var(--w3); max-width: 100%; }
.three { display: flex; gap: 0; margin: 0; background: var(--w5); border: var(--px) solid var(--w3); }
.three div { padding: 8px 18px; text-align: left; }
.three div + div { border-left: var(--px) solid var(--w3); }
.three dt { font: 700 14px/1.2 var(--ui); color: var(--wh2); }
.three dd { margin: 2px 0 0; font-size: 22px; color: var(--white); }
.tap-hint { position: absolute; left: 20px; bottom: 18px; margin: 0; font: 700 14px/1 var(--ui); color: var(--foam); z-index: 3; }
.tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; pointer-events: auto; background: var(--w5); border: var(--px) solid var(--foam); padding: 5px 8px 6px; min-width: 150px; will-change: transform; text-decoration: none; color: var(--foam); display: block; }
.tag b { display: block; font: 700 15px/1.15 var(--ui); color: var(--white); white-space: nowrap; }
.tag .t2 { display: block; font: 400 13px/1.3 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag .t3 { display: flex; align-items: center; gap: 6px; font: 700 13px/1.2 var(--ui); color: var(--gold); margin-top: 3px; white-space: nowrap; }
.tag .t3 img { width: 16px; height: 16px; }
.tag .t3.none { color: var(--wh2); }
.tag.hot { border-color: var(--ping); }
.tag.short { border-color: var(--wh2); }
.up { color: var(--ping); } .dn { color: var(--coral); }
@media (max-width: 768px) {
  .hero { height: 175vh; }
  .name { font-size: 48px; }
  .hero-c { margin-top: 18vh; gap: 12px; }
  .line { font-size: 16px; }
  .three div { padding: 6px 10px; }
  .three dd { font-size: 18px; }
  .three dt { font-size: 12px; }
  .tag { min-width: 0; padding: 3px 6px 4px; }
  .tag b { font-size: 13px; } .tag .t2, .tag .t3 { font-size: 12px; }
  .tap-hint { display: none; }
  .acts { gap: 8px; } .acts .btn.big { min-height: 48px; padding: 0 14px; font-size: 18px; } .acts .btn { padding: 0 12px; font-size: 18px; }
  .hero .ca, .hero .cax { font-size: 12px; }
}
@media (max-width: 360px) { .name { font-size: 40px; } }

/* pod */
.pod-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.log-list { list-style: none; margin: 0; padding: 0; height: 468px; overflow: hidden; position: relative; }
.log-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 8px 0; border-bottom: var(--px) solid var(--w4); font-size: 15px; line-height: 1.4; }
.log-list li .bp { width: calc(var(--px) * 3); height: calc(var(--px) * 3); margin-top: 7px; background: var(--ping); }
.log-list li.new { animation: drop .25s steps(3); }
.log-list li.new .bp { animation: blip .5s steps(2) 2; }
@keyframes drop { from { transform: translateY(-24px); } }
@keyframes blip { 50% { background: var(--white); } }
.log-list .who { color: var(--white); }
.log-list .ago { color: var(--wh2); white-space: nowrap; }
.tbl { font-size: 15px; }
.tr { display: grid; grid-template-columns: minmax(0, 2.3fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr) 0.8fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: var(--px) solid var(--w4); }
.tr.th { font: 700 14px/1 var(--ui); color: var(--wh2); padding-top: 0; }
.tr > span:not(:first-child) { text-align: right; }
.tr .wh { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.tr .wh i { flex: none; width: 48px; height: 18px; background: url(/assets/art/whale-sperm-sheet.png) 0 0 / 192px 18px no-repeat; image-rendering: pixelated; }
.tr .wh.sh i { filter: none; background-image: url(/assets/art/whale-humpback-sheet.png); background-size: 192px 24px; height: 24px; }
.tr .wh > span { min-width: 0; overflow: hidden; }
.tr .wh b { display: block; font: 700 15px/1.2 var(--ui); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .wh small { display: block; font-size: 12px; color: var(--wh2); }
.tr .cell { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.spark { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.spark i { width: 4px; background: var(--ping); }
.spark i.n { background: var(--coral); }
.tr .coins { color: var(--gold); }
.tr.in { animation: rowin .3s steps(3); }
@keyframes rowin { from { transform: translateX(12px); } }
@media (max-width: 960px) { .pod-grid { grid-template-columns: 1fr; } .log-list { height: 300px; } }
@media (max-width: 640px) { .tr { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 44px; } .tr > :nth-child(2), .tr > :nth-child(3), .tr > :nth-child(5) { display: none; } .tr .wh i { width: 36px; background-size: 144px 14px; height: 14px; } .tr .wh.sh i { background-size: 144px 18px; height: 18px; } }

/* pool */
.pool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hole { min-height: 420px; position: relative; }
.split { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--w5); border: var(--px) solid var(--w3); }
.split li { padding: 12px 14px; }
.split li + li { border-left: var(--px) solid var(--w3); }
.split b { display: block; font-size: 30px; color: var(--white); font-weight: 400; }
.split li.pl b { color: var(--ping); }
.split span { font: 700 15px/1.25 var(--ui); color: var(--wh2); }
.note { color: var(--foam); font-size: 16px; margin: 0 0 24px; }
.rolls { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; gap: 12px; }
.rolls dt { font: 700 14px/1.2 var(--ui); color: var(--wh2); }
.rolls dd { margin: 4px 0 0; font-size: 22px; color: var(--white); }
.rolls dd::after { content: " SOL"; font-size: 13px; color: var(--wh2); }
@media (max-width: 860px) { .pool-grid { grid-template-columns: 1fr; } .hole { min-height: 300px; } .split b { font-size: 24px; } .rolls dd { font-size: 17px; } }

/* epoch */
.epoch { padding-top: 200px; }
.epoch-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: stretch; }
.lever .lv-l { font: 700 16px/1 var(--ui); color: var(--wh2); }
.lv-v { font-size: 48px; color: var(--white); margin: 10px 0 0; line-height: 1; }
.lv-scale { display: flex; justify-content: space-between; color: var(--wh2); font-size: 13px; }
.lv-out .num { font-size: 20px; }
.lv-out { font: 700 22px/1.3 var(--ui); color: var(--ping); margin: 20px 0 6px; min-height: 2.6em; }
.lv-out.neg { color: var(--foam); }
.lv-f { font-size: 14px; color: var(--wh2); margin: 0; }
.rules { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--px) solid var(--w3); background: var(--w5); }
.rules li { padding: 14px 16px; font-size: 15px; }
.rules li + li { border-left: var(--px) solid var(--w3); }
.rules b { display: block; font: 700 18px/1.2 var(--ui); color: var(--white); margin-bottom: 4px; }
@media (max-width: 860px) { .epoch-grid, .rules { grid-template-columns: 1fr; } .rules li + li { border-left: 0; border-top: var(--px) solid var(--w3); } .lv-v { font-size: 36px; } .epoch .hole { min-height: 260px; } }

/* check */
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 32px; }
.probe .pl { display: block; font: 700 16px/1 var(--ui); color: var(--wh2); margin-bottom: 10px; }
.probe-msg { margin: 12px 0 0; font-size: 15px; color: var(--foam); min-height: 1.5em; }
.probe-msg.bad { color: var(--coral); }
.probe-act { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.cmp-body { font-size: 15px; }
.cmp-t { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: var(--px) solid var(--w3); }
.cmp-t > div { padding: 8px 10px; border-bottom: var(--px) solid var(--w3); }
.cmp-t > div:nth-last-child(-n+3) { border-bottom: 0; }
.cmp-t .h { font: 700 14px/1.2 var(--ui); color: var(--wh2); }
.cmp-t .v { color: var(--white); }
.cmp-res { margin: 12px 0 0; font: 700 18px/1.3 var(--ui); }
@media (max-width: 860px) { .check-grid { grid-template-columns: 1fr; } .field { flex-direction: column; } }

/* seabed */
.seabed { padding-bottom: 0; }
.bed-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; position: relative; z-index: 2; }
.bed-act { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0 0; position: relative; z-index: 2; }
.bed-hole { min-height: 0; height: 330px; }
@media (max-width: 768px) { .bed-hole { height: 220px; } }

.cc { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: var(--w5); border: var(--px) solid var(--w3); padding: 12px; text-decoration: none; color: var(--foam); position: relative; }
.cc:hover { border-color: var(--gold); }
.cc img { width: 64px; height: 64px; background: var(--w4); }
.cc b { display: block; font: 700 18px/1.15 var(--ui); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .tk { font: 700 14px/1.2 var(--ui); color: var(--gold); }
.cc .wl { font-size: 13px; color: var(--wh2); margin-top: 4px; display: block; }
.cc .st { display: flex; gap: 12px; font-size: 13px; margin-top: 6px; color: var(--foam); flex-wrap: wrap; }
.demo { position: absolute; right: 8px; top: 8px; font: 700 12px/1 var(--ui); color: var(--w5); background: var(--gold); padding: 3px 5px; }
.invite { border: var(--px) dashed var(--wh1); padding: 20px; color: var(--foam); background: var(--w5); }

/* footer = the seabed floor */
.foot { margin: 0 -40px; padding: 28px 40px 40px; background: var(--w5); border-top: var(--px) solid var(--gold-d); display: grid; gap: 14px; }
.fm { display: flex; align-items: center; gap: 10px; }
.fm b { font: 700 16px/1 var(--disp); color: var(--white); }
.fnav { display: flex; gap: 18px; flex-wrap: wrap; }
.fnav a { font: 700 16px/1 var(--ui); color: var(--wh2); text-decoration: none; padding: 6px 0; }
.fnav a:hover { color: var(--ping); }
.risk { margin: 0; font-size: 13px; color: var(--wh2); max-width: 820px; }
@media (max-width: 768px) { .foot { margin: 0 -16px; padding: 24px 16px 72px; } }
.page .foot { margin: 60px 0 0; }

/* ---------------------------------------------------------------- inner pages */
.page main { max-width: 1200px; margin: 0 auto; padding: calc(var(--hud) + 48px) calc(var(--lot) + 40px) 0 40px; }
@media (max-width: 768px) { .page main { padding: calc(var(--hud) + 28px) 16px 0; } }
.ph { margin-bottom: 28px; }
.ph h1 { font-size: 48px; line-height: 1.05; margin: 0 0 10px; color: var(--white); }
.ph p { margin: 0; max-width: 680px; font-size: 18px; }
@media (max-width: 768px) { .ph h1 { font-size: 32px; } .ph p { font-size: 16px; } }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 24px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.kv dt { font: 700 15px/1.4 var(--ui); color: var(--wh2); }
.kv dd { margin: 0; text-align: right; color: var(--white); font-variant-numeric: tabular-nums; word-break: break-all; }
.stat b { display: block; font-size: 30px; color: var(--white); font-weight: 400; font-variant-numeric: tabular-nums; }
.stat span { font: 700 15px/1.2 var(--ui); color: var(--wh2); }
.lbl { display: block; font: 700 16px/1.2 var(--ui); color: var(--wh2); margin: 0 0 8px; }
.form { display: grid; gap: 18px; }
.hint { font-size: 14px; color: var(--wh2); margin: 6px 0 0; }
.err { color: var(--coral); font-size: 15px; margin: 0; }
.ok { color: var(--ping); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 700 16px/1.3 var(--ui); }
.steps li { color: var(--wh1); display: flex; gap: 10px; align-items: center; }
.steps li::before { content: ""; width: calc(var(--px) * 3); height: calc(var(--px) * 3); background: currentColor; flex: none; }
.steps li.now { color: var(--white); }
.steps li.done { color: var(--ping); }
.steps li.bad { color: var(--coral); }
.pick-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 300px; overflow: auto; border: var(--px) solid var(--w3); }
.pick-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; text-align: left; background: var(--w5); color: var(--foam); border: 0; border-bottom: var(--px) solid var(--w4); padding: 10px 12px; font: 400 15px/1.3 var(--body); }
.pick-list button:hover, .pick-list button[aria-pressed=true] { background: var(--w3); color: var(--white); }
.pick-list b { font: 700 15px/1.3 var(--ui); color: var(--white); }
.drop { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.drop .pv { width: 96px; height: 96px; background: var(--w4) var(--dith); background-size: 4px; border: var(--px) solid var(--w3); object-fit: cover; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.list { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px 0; border-bottom: var(--px) solid var(--w4); font-size: 15px; align-items: center; }
.row.th { font: 700 14px/1 var(--ui); color: var(--wh2); }
.row > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.row a { color: var(--white); }
@media (max-width: 700px) { .row { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); } .row > :nth-child(4), .row > :nth-child(5) { display: none; } }
.ev { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; border-bottom: var(--px) solid var(--w4); font-size: 14px; }
.ev a { color: var(--wh2); }
.doc { max-width: 820px; }
.doc h2 { font-size: 24px; color: var(--white); margin: 44px 0 12px; }
.doc p, .doc li { font-size: 17px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc td, .doc th { text-align: left; padding: 8px 10px; border-bottom: var(--px) solid var(--w3); vertical-align: top; }
.doc th { font: 700 14px/1.2 var(--ui); color: var(--wh2); }
.doc td.num { text-align: right; white-space: nowrap; }
.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 80px 16px; position: relative; z-index: 2; }
.lost h1 { font-size: 48px; margin: 0; color: var(--white); }
.lost img { width: 288px; height: 255px; }
@media (max-width: 480px) { .lost h1 { font-size: 32px; } .lost img { width: 192px; height: 170px; } }

/* toast + dialog (wallet chooser from the kit) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--w5); border: var(--px) solid var(--foam); color: var(--white); padding: 12px 18px; font: 700 16px/1.3 var(--ui); max-width: calc(100vw - 32px); }
.toast.err { border-color: var(--coral); }
dialog.dlg { background: var(--w5); color: var(--foam); border: var(--px) solid var(--foam); padding: 24px; max-width: min(440px, calc(100vw - 32px)); width: 100%; border-radius: 0; }
dialog.dlg::backdrop { background: var(--w5) var(--dith); background-size: 4px; }
.dlg h2 { font-size: 24px; margin: 0 0 14px; color: var(--white); }
.dlg-x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; background: none; border: 0; color: var(--white); font-size: 28px; }
.wp-list { display: grid; gap: 8px; }
.wp-item { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 12px; background: var(--w3); color: var(--white); border: var(--px) solid var(--w2); font: 700 17px/1 var(--ui); }
.wp-item:hover { border-color: var(--ping); }
.wp-dot { width: 24px; height: 24px; background: var(--ping); }
.wp-get { display: flex; gap: 14px; margin-top: 14px; font-size: 14px; }
.wp-get a { color: var(--wh2); }
.wp-err { color: var(--coral); }

/* cursor */
.cur { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 45px; height: 45px; margin: -22px 0 0 -22px; will-change: transform; display: none; }
.has-cur .cur { display: block; }
.cur svg { width: 45px; height: 45px; display: block; }
.cur .brg { position: absolute; left: 34px; top: 34px; font: 700 13px/1 var(--ui); color: var(--ping); background: var(--w5); padding: 2px 4px; white-space: nowrap; display: none; }
.cur.lock .brg { display: block; }
.cur .lk { display: none; } .cur.lock .lk { display: inline; } .cur.lock .xh { display: none; }

/* boot */
.boot { position: fixed; inset: 0; z-index: 100; background: var(--w5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.boot canvas { image-rendering: pixelated; }
.boot .bar { display: flex; gap: 8px; }
.boot .bar i { width: 18px; height: 18px; border: var(--px) solid var(--w2); }
.boot .bar i.on { background: var(--ping); border-color: var(--ping); }
.boot .go { font: 700 20px/1 var(--ui); color: var(--white); background: none; border: 0; padding: 12px; animation: adv 1s steps(2) infinite; }
.boot.out { animation: bootout .36s steps(6) forwards; }
@keyframes bootout { to { clip-path: inset(100% 0 0 0); } }

.lane { position: absolute; bottom: 0; transform: translateX(-50%); font: 700 14px/1.2 var(--ui); color: var(--foam); background: var(--w5); padding: 4px 8px; border: var(--px) solid var(--w3); text-align: center; white-space: nowrap; }
.lane b { display: block; font: 400 16px/1.2 var(--body); color: var(--white); }
.lane.pl b { color: var(--ping); }
.home { min-height: 40px; }
.lv-l, .probe .pl, .lbl { display: block; min-height: 32px; line-height: 32px; }
.fnav a { padding: 10px 0; }
.ph a, .sub a, .doc a { display: inline-block; min-height: 32px; }

/* ---- film (docs): the short explainer, own player */
.film { margin: 28px 0 8px; }
.film-v { position: relative; background: var(--w5); border: var(--px) solid var(--w5); box-shadow: 0 0 0 var(--px) var(--w1); aspect-ratio: 16 / 9; }
.film-v video { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; background: var(--w5); }
.film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.film-bar { display: flex; align-items: center; gap: 10px; margin-top: calc(var(--px) * 3); }
.film-t { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; }
.film-t::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 6px; background: var(--w5); border: var(--px) solid var(--w1); box-sizing: content-box; margin-top: -3px; }
.film-t i { position: absolute; left: 0; top: 9px; height: 6px; width: 0; background: var(--ping); }
.film-t b { position: absolute; left: 0; top: 4px; width: 10px; height: 16px; margin-left: -5px; background: var(--white); border: var(--px) solid var(--w5); box-sizing: content-box; }
.film-time { font-size: 14px; color: var(--wh2); white-space: nowrap; }
.film-c { font-size: 14px; color: var(--wh2); margin: 8px 0 0; }
.film-v:fullscreen { box-shadow: none; border: 0; }
