/* Home page: one dive from the surface (0 m) to the abyss (4,000 m). Built on /tidelings.css (tokens and components, DESIGN.md);
   this file only lays out the home page and styles its own pieces. Each section is one slice of a continuous depth gradient. */

:root { --glass-hi: inset 0 1px 0 rgba(233, 251, 255, .18); --nav-h: 64px; }  /* --glass-hi: used by community.js's Discord notice */
html { scroll-padding-top: calc(var(--nav-h) + var(--ticker-h, 0px) + 8px); }
body.home { background: var(--z-abyss); overflow-x: clip; }
.home .tl-wrap { position: relative; }
@media (min-width: 720px) { .home .tl-wrap { padding-right: var(--gauge-w); } }

/* ---------------------------------------------------------------- the water: each section continues the one above */
.z-surface { background: linear-gradient(180deg, var(--z-surface-top), #74d8ee); }
.z-shallows { background: linear-gradient(180deg, #74d8ee, var(--z-surface)); }
.home .tl-thermocline { background: linear-gradient(180deg, var(--z-surface), var(--z-twilight)); }
.z-reef { background: linear-gradient(180deg, var(--z-twilight), #0f5f8c); }
.z-twilight { background: linear-gradient(180deg, #0f5f8c, var(--z-midnight)); }
.z-midnight { background: linear-gradient(180deg, var(--z-midnight), var(--z-deep)); }
.z-abyss { background: linear-gradient(180deg, var(--z-deep), var(--z-abyss) 70%); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------------------------------------------------------------- nav */
.home-nav { position: fixed; left: 0; right: 0; top: var(--ticker-h, 0px); min-height: var(--nav-h); }   /* under the activity ticker */
.home-nav .tl-nav__logo { transition: opacity var(--t-base) var(--ease-out); }
.home-nav:not(.is-frosted):not(.is-deep) .tl-nav__logo { opacity: 0; visibility: hidden; }   /* the hero shows the big wordmark */
.contract .addr::-webkit-scrollbar { display: none; }
.nav-depth { display: none; align-items: center; gap: 7px; font: 700 12.5px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--fg); }
.nav-depth .diver { width: 26px; }
@media (max-width: 719px) {
  .nav-depth { display: inline-flex; margin-left: auto; }
  .home-nav .tl-nav__menu { margin-left: 0; order: 2; }
  .home-nav .tl-nav__play { order: 3; }
}

/* the diver: the crate until you open the demo crate, then the Lurky that came out of it, riding down the gauge as you scroll */
.diver { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 35%, #6fd3ea, #1b86b4 60%, #0b4f7a);
  box-shadow: 0 0 0 2px var(--q, var(--foam)), 0 0 0 4px rgba(2, 21, 38, .55), 0 6px 14px rgba(2, 12, 24, .5); }
.diver img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.tl-depth__diver { position: absolute; left: 50%; top: 0; width: 40px; translate: -50% -50%; }
.tl-depth__marker:has(.tl-depth__diver)::before { display: none; }
.tl-depth__marker:has(.tl-depth__diver) .tl-depth__readout { right: 34px; }
.diver.is-new { animation: diver-in .6s var(--ease-buoy); }
@keyframes diver-in { from { scale: .4; } }

/* ---------------------------------------------------------------- 0 m: surface (hero) */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(24px, 5vw, 64px)) 0 clamp(56px, 8vw, 96px);
  min-height: 100svh; }   /* the surface fills the first screen, so what loads into it (pre-registration) never pushes visible content */
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
/* the wordmark: its float hangs on a line dropped from the top of the page, the lure the whole dive starts from */
.hero__mark { margin: 0 0 var(--s5); line-height: 0; }
.hero__mark .tl-wordmark { --wm-size: clamp(64px, 10vw, 128px); --line-h: 100vh; color: var(--ink); }
.hero__mark .tl-wordmark__i > i::before { background: linear-gradient(180deg, transparent, rgba(4, 34, 58, .55) 40%); }
.hero__pitch { max-width: 12ch; font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; }
/* the light fades out before the next section, so the water has no seam */
.hero > .tl-caustics { mask: linear-gradient(180deg, #000 55%, transparent); }
.z-twilight > .tl-caustics { mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__actions .tl-btn { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
/* three fixed lines (label, address, lock) so the answer from the server never moves anything */
.contract { margin-top: var(--s5); font-size: var(--fs-small); line-height: 1.5; color: var(--fg-dim); display: grid; min-height: 4.5em; align-content: start; }
.contract .addr { font: 600 12.5px/1.5 var(--font-code); color: var(--fg); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.contract a { color: var(--fg); font-weight: 650; }
.hero > .tl-bubbles { bottom: auto; height: 100vh; }   /* a fixed height: the hero growing does not move them */
.hero .tl-bubbles i { opacity: .8; }
@media (max-width: 859px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__pitch { max-width: 14ch; }
}

/* the demo crate: no porthole frame. It hangs in the hero's own water on a rope dropped from the surface, like the float on the
   wordmark's line, with a pool of light behind it; when it opens, the rays and the Lurky rise from it into the same water */
.crate { display: grid; justify-items: center; gap: var(--s4); }
.crate .tl-crate-stage__window { width: min(400px, 80vw); cursor: pointer; padding: 0; background: none; box-shadow: none; --rope-end: 47%; }
.crate .tl-crate-stage__window::after, .crate .tl-porthole__glass::after, .crate .tl-porthole__glass > .tl-caustics { display: none; }
.crate .tl-porthole__glass { overflow: visible; box-shadow: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, .16) 55%, transparent); }
.crate .tl-porthole__glass > .tl-crate-stage__crate { width: 58%; margin-top: 34%; }
.crate .tl-crate-stage__rays { pointer-events: none; -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 78%); mask: radial-gradient(closest-side, #000 30%, transparent 78%); }
/* the whole crate and its rope sway together; it stays put when it opens (the Lurky rises out of it) */
.crate .tl-crate-stage[data-state="idle"] .tl-crate-stage__crate, .crate .tl-crate-stage[data-state="open"] .tl-crate-stage__crate { animation: none; transform: none; }
.crate .tl-crate-stage:is([data-state="idle"], [data-state="open"]) .tl-crate-stage__window { animation: tl-bob 4.8s ease-in-out infinite alternate; }
@media (max-width: 859px) {   /* below the text: smaller, a short rope (it must not cross the heading) */
  .crate .tl-crate-stage__window { width: min(300px, 72vw); --rope-len: 110px; --rope-end: 38%; margin-top: -24px; }
  .crate .tl-porthole__glass > .tl-crate-stage__crate { margin-top: 24%; }
}
.crate .tl-crate-stage { animation: surface-in 1s var(--ease-buoy) .15s both; }   /* the page's one orchestrated moment: the crate surfaces */
.crate .tl-porthole__glass > .chest { transform-origin: 50% 88%; }
.tl-crate-stage[data-state="charging"] .tl-crate-stage__crate { animation: tl-wobble .34s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--sun)) drop-shadow(0 0 28px var(--legendary)); }
/* the slot under the button keeps its height: the result appears without moving anything */
.crate__slot { min-height: 104px; width: min(380px, 100%); display: grid; align-content: start; justify-items: center; gap: var(--s2); }
.crate__result { display: grid; justify-items: center; gap: 4px; text-align: center; }
.crate__name { font: 600 1.6rem/1.1 var(--font-head); font-variation-settings: "SOFT" 100, "WONK" 1; }
.crate__meta { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: center; font-size: var(--fs-small); color: var(--fg-dim); }
.crate__note { font-size: var(--fs-small); color: var(--fg-dim); text-align: center; }
.crate__note button { all: unset; cursor: pointer; color: var(--fg); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.crate__note button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@keyframes surface-in { from { opacity: 0; transform: translateY(60px) scale(.94); } }

/* crate-fx.js: bubbles leaking while it draws, then the burst, the caustic flash and the banner */
.leak { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.leak i { position: absolute; left: var(--x); top: 52%; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  border: 1.5px solid rgba(233, 251, 255, .8); background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9) 0 18%, rgba(233, 251, 255, .12) 22%); }
.tl-crate-stage:is([data-state="drawing"], [data-state="charging"]) .leak i { animation: leak 1.15s ease-out var(--d) infinite; }
@keyframes leak { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(var(--dx), -110px) scale(1); opacity: 0; } }
.crate-burst { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.crate-burst .at { position: absolute; width: 0; height: 0; }
.crate-burst i { position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  border: 1.5px solid color-mix(in srgb, var(--c) 60%, var(--foam));
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9) 0 14%, transparent 18%), radial-gradient(circle, color-mix(in srgb, var(--c) 15%, transparent) 55%, color-mix(in srgb, var(--c) 50%, transparent));
  animation: burst var(--t) cubic-bezier(.15, .75, .3, 1) var(--d) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.3); opacity: 1; } 75% { opacity: .9; } 100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }
.crate-burst .ring { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--c);
  box-shadow: 0 0 24px var(--c), inset 0 0 18px var(--c); animation: ring .7s ease-out forwards; }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.caustic { position: fixed; inset: 0; z-index: 44; pointer-events: none; overflow: hidden; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--c) 60%, transparent), transparent 65%); animation: caustic 1.25s ease-out forwards; }
.caustic canvas { width: 100%; height: 100%; display: block; filter: blur(1.5px); animation: ripple 1.25s ease-out forwards; }
@keyframes caustic { 12% { opacity: .9; } 100% { opacity: 0; } }
@keyframes ripple { from { transform: scale(1.04); } to { transform: scale(1.16) rotate(1.5deg); } }
.crate-banner { position: absolute; left: 50%; top: 60%; z-index: 5; translate: -50% -50%; pointer-events: none; }
.crate-banner b { display: block; font: 700 clamp(38px, 9vw, 72px)/1.1 var(--font-head); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap;
  color: transparent; background: linear-gradient(#fff 8%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 1.5px var(--deep)) drop-shadow(0 4px 0 var(--deep)) drop-shadow(0 0 24px var(--c)); animation: banner 1.9s both; }
@keyframes banner {
  0% { transform: scale(2.2) rotate(-7deg); opacity: 0; animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
  14% { transform: scale(.94) rotate(-3deg); opacity: 1; } 22%, 80% { transform: rotate(-3deg); opacity: 1; }
  100% { transform: translateY(-30px) rotate(-3deg); opacity: 0; } }

/* pre-registration (shown by prereg.js while it is open) */
.prereg { margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 40px); display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.prereg[hidden] { display: none; }
.prereg > * { min-width: 0; }
.prereg h2 { font-size: var(--fs-h2); }
.prereg__main { display: grid; gap: var(--s3); }
.countdown { display: flex; gap: var(--s2); }
.countdown div { display: grid; justify-items: center; min-width: 64px; padding: 10px 8px; border-radius: 14px 10px 16px 10px; background: rgba(4, 34, 58, .08); }
.countdown b { font: 700 1.75rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--fg-dim); }
.prereg__side { display: grid; gap: var(--s3); font-size: var(--fs-ui); }
.prereg__side ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.pr-link { display: flex; gap: var(--s2); }
.pr-link input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: var(--r-input); border: 1px solid rgba(4, 34, 58, .25); background: rgba(255, 255, 255, .6); font: 600 14px var(--font-code); color: var(--ink); }
.pr-bar { height: 10px; border-radius: 6px; background: var(--track); overflow: hidden; }
.pr-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width var(--t-slow) var(--ease-out); }
@media (max-width: 859px) { .prereg { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 10 m: how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); position: relative; counter-reset: step; }
.steps::before { /* the rope that ties the three steps together */
  content: ""; position: absolute; left: 64px; right: calc((100% - 2 * var(--s5)) / 3 - 64px); top: 64px; height: 0; border-top: 3px dashed rgba(4, 34, 58, .28); }   /* from the first porthole to the last */
.step { position: relative; display: grid; gap: var(--s3); justify-items: start; counter-increment: step; }
.step .tl-porthole { width: 128px; --ring-w: 11px; }
.step .tl-porthole__glass { background: radial-gradient(circle at 50% 30%, #c9f5fd, #63cbe6 60%, #2a9bc7); }
.step__n { position: absolute; left: 96px; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); color: var(--ink); font: 700 1rem/1 var(--font-body); box-shadow: 0 0 0 4px rgba(255, 255, 255, .7); }
.step__n::before { content: counter(step); }
.step h3 { font-size: 1.5rem; margin-top: var(--s2); }
.step p { color: var(--fg-dim); max-width: 32ch; }
.step--dive .tl-porthole__glass > img { animation: tl-bob 4.8s ease-in-out infinite alternate; }
.coin { display: grid; place-items: center; width: 64%; aspect-ratio: 1; border-radius: 50%; font: 700 2.4rem/1 var(--font-head); color: #8a5a00;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--sun) 45%, #e8a92f); box-shadow: inset 0 0 0 5px rgba(167, 115, 26, .35), 0 6px 0 -2px #c98f1f, 0 12px 18px -8px rgba(4, 34, 58, .45); }
.coin::after { content: "+6% a day"; position: absolute; bottom: 14%; font: 700 11px/1 var(--font-body); color: var(--ink); background: rgba(255, 255, 255, .8); padding: 4px 7px; border-radius: 8px; }
@media (max-width: 719px) {
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
  .steps::before { left: 46px; right: auto; top: 40px; bottom: 40px; height: auto; border-top: 0; border-left: 3px dashed rgba(4, 34, 58, .28); }
  .step { grid-template-columns: 96px 1fr; column-gap: var(--s4); align-items: center; }
  .step .tl-porthole { width: 96px; grid-row: span 2; --ring-w: 9px; }
  .step__n { left: 70px; width: 30px; height: 30px; }
  .step h3 { margin-top: 0; align-self: end; }
  .step p { align-self: start; }
  .coin { font-size: 1.8rem; } .coin::after { display: none; }
}

/* ---------------------------------------------------------------- 200 m: the collection */
/* the heading and the filters on the left, the odds beside them */
.collection__top { display: grid; gap: var(--s5) var(--s7); grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); grid-template-areas: "head odds" "filters odds";
  align-items: start; margin-bottom: var(--s6); }
.collection__top .section-head { grid-area: head; }
.collection__top .odds { grid-area: odds; }
.collection__top .filters { grid-area: filters; margin-bottom: 0; }
.collection__top .section-head { margin-bottom: 0; }
.odds { display: grid; gap: var(--s3); }
.odds h3 { font-size: 1.25rem; }
.odds ol { list-style: none; margin: 0; padding: 0; display: grid; }
.odds li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s3); align-items: center; padding: 7px 0; border-top: 1.5px dotted var(--rule); font-size: var(--fs-ui); }
.odds li b { font-variant-numeric: tabular-nums; }
.odds li small { min-width: 70px; text-align: right; color: var(--fg-dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.odds p { font-size: var(--fs-small); color: var(--fg-dim); }
.odds p b { color: var(--fg); }
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.filters__label { font-size: var(--fs-small); color: var(--fg-dim); min-width: 64px; }
.shown { font-size: var(--fs-small); color: var(--fg-dim); margin-top: var(--s2); }
.dex { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr)); }
.dex button { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: var(--s2); width: 100%; padding: var(--s3) var(--s1) var(--s2); cursor: pointer;
  border-radius: 20px 16px 22px 14px; text-align: center; transition: background-color var(--t-quick); }
.dex li:nth-child(even) button { border-radius: 16px 22px 14px 22px; }
.dex button:hover { background: rgba(233, 251, 255, .08); }
.dex button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dex .tl-porthole { width: min(100%, 100px); --ring-w: 7px; }
.dex .tl-porthole__glass > img { width: 84%; height: 84%; }
.dex b { font: 600 .95rem/1.2 var(--font-head); font-variation-settings: "SOFT" 100; }
.dex [data-q="epic"] .tl-porthole, .dex [data-q="legendary"] .tl-porthole { box-shadow: 0 0 0 3px color-mix(in srgb, var(--q) 22%, transparent), 0 0 26px color-mix(in srgb, var(--q) 55%, transparent); }
.is-pending .tl-porthole__glass > img { filter: brightness(0) opacity(.42); }
.dex .is-pending b::after { content: "Being drawn"; display: block; margin-top: 3px; font: 600 11.5px/1.2 var(--font-body); color: var(--fg-dim); }
.dex li.is-mine button { background: color-mix(in srgb, var(--sun) 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sun) 60%, transparent); }
.dex li.is-mine b::after { content: "From your crate"; display: block; margin-top: 3px; font: 650 11.5px/1.2 var(--font-body); color: var(--sun); }
.dex__empty { padding: var(--s6) 0; color: var(--fg-dim); max-width: 52ch; }
.dex__more { margin-top: var(--s5); }
@media (max-width: 899px) { .collection__top { grid-template-columns: 1fr; grid-template-areas: "head" "odds" "filters"; } }
@media (max-width: 719px) {
  .filters__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter);
    mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 32px), transparent); }
  .filters__label { display: none; }
  .dex { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s2); }
  .dex b { font-size: .85rem; }
}

/* the creature sheet (a native <dialog>) */
dialog.specimen { border: 0; padding: var(--s6) var(--s5) var(--s5); margin: auto; max-width: min(460px, calc(100% - 24px)); width: 100%; color: var(--fg); overflow: visible; }
dialog.specimen::backdrop { background: rgba(2, 12, 24, .62); backdrop-filter: blur(6px); }
.specimen__close { position: absolute; right: 14px; top: 14px; }
.specimen__pic { width: 168px; margin: -96px auto var(--s3); --ring-w: 13px; }
.specimen h2 { text-align: center; font-size: var(--fs-h2); font-variation-settings: "SOFT" 100, "WONK" 1; }
.specimen__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s2); color: var(--fg-dim); }
.specimen__pending { text-align: center; margin-top: var(--s2); }
.specimen dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: var(--s5) 0 0; text-align: center; }
.specimen dl div { padding: var(--s3) var(--s2); border-radius: 14px 10px 16px 10px; background: rgba(233, 251, 255, .07); }
.specimen dt { font-size: 12.5px; color: var(--fg-dim); }
.specimen dd { margin: 4px 0 0; font: 700 1.15rem/1.1 var(--font-body); font-variant-numeric: tabular-nums; }
.specimen__kin { margin-top: var(--s5); }
.specimen__kin p { font-size: var(--fs-small); color: var(--fg-dim); margin-bottom: var(--s2); }
.specimen__kin div { display: flex; flex-wrap: wrap; gap: var(--s2); }
.specimen__kin button { all: unset; cursor: pointer; border-radius: 50%; }
.specimen__kin button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.specimen__kin .tl-porthole { width: 52px; --ring-w: 4px; }
.specimen__kin .tl-porthole::after { display: none; }

/* ---------------------------------------------------------------- 1,000 m: the Reef pot */
.pot { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.pot__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.pot__steps li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); }
.pot__steps li::before { content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--i) center / 24px no-repeat, rgba(233, 251, 255, .1);
  box-shadow: inset 0 0 0 2px rgba(233, 251, 255, .25); }
.pot__steps h3 { font-size: 1.2rem; margin-bottom: 4px; }
.pot__steps p { color: var(--fg-dim); }
.pot__honest { margin-top: var(--s5); font-size: var(--fs-small); color: var(--fg-dim); max-width: 56ch; }
.split { display: grid; gap: var(--s4); }
.split h3 { font-size: 1.25rem; }
.split__bar { display: flex; height: 54px; border-radius: 16px 12px 18px 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(233, 251, 255, .12); }
.split__bar span { display: grid; place-items: center; font: 700 .9rem/1 var(--font-body); color: var(--ink); }
.split__bar .s-pot { flex: 80; background: linear-gradient(180deg, #ffe48f, var(--sun)); }
.split__bar .s-lp { flex: 10; background: #59d8ff; }
.split__bar .s-team { flex: 10; background: var(--accent); }
.split__key { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); color: var(--fg-dim); }
.split__key li { display: flex; gap: var(--s2); align-items: center; }
.split__key i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.split__key b { color: var(--fg); }
.live { margin-top: var(--s6); display: grid; gap: var(--s4); }
.live[hidden] { display: none; }
.live__dials { display: flex; flex-wrap: wrap; gap: var(--s5); }
.live__note { font-size: var(--fs-small); color: var(--fg-dim); }
.live__note a { color: var(--fg); font-weight: 650; }
@media (max-width: 859px) { .pot { grid-template-columns: 1fr; } }
.live .tl-gauge { --size: 128px; --gw: 11px; }
/* buyback & burn (site/burn-feed.js fills it from /api/burn) */
.burn { margin-top: var(--s6); display: grid; gap: var(--s3); }
.burn[hidden] { display: none; }
.burn h3 { font-size: 1.25rem; }
.burn__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin: 0; }
.burn__total b { font: 800 clamp(2rem, 6vw, 2.75rem)/1 var(--font-head); color: var(--accent); font-variant-numeric: tabular-nums; }
.burn__total span { color: var(--fg-dim); font-size: var(--fs-small); }
.burn__how { margin: 0; font-size: var(--fs-small); color: var(--fg-dim); }
.burn__how a { color: var(--fg); font-weight: 650; }
.burn-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); }
.burn-row { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--rule); }
.burn-row__at { color: var(--fg-dim); } .burn-row__sol { text-align: right; color: var(--fg-dim); }
.burn-row__tide { font-weight: 700; color: var(--amount); } .burn-row__tx { text-align: right; white-space: nowrap; }
.burn-row__tx a { color: var(--fg); }
.burn-empty { color: var(--fg-dim); }
@media (max-width: 719px) { .live__dials { justify-content: space-between; gap: var(--s3); } .live .tl-gauge { --size: 98px; --gw: 9px; } }

/* ---------------------------------------------------------------- 2,500 m: features */
.features { display: grid; gap: var(--s5); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.feature { display: grid; gap: var(--s3); padding: var(--s6) var(--s5) var(--s5); }
.feature:nth-child(2) { margin-top: var(--s7); }   /* staggered, like stones on the sea floor */
.feature .tl-porthole { width: 104px; --ring-w: 9px; margin-bottom: var(--s2); }
.feature h3 { font-size: 1.6rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.feature p { color: var(--fg-dim); }
.feature .tl-tag { justify-self: start; }
@media (max-width: 899px) { .features { grid-template-columns: 1fr; max-width: 560px; } .feature:nth-child(2) { margin-top: 0; } }

/* ---------------------------------------------------------------- 4,000 m: FAQ and footer */
.z-abyss { position: relative; overflow: hidden; }
.glow-specks { position: absolute; inset: 30% 0 0; pointer-events: none; z-index: 0; }
.glow-specks i { position: absolute; left: var(--x); top: var(--y); width: var(--s, 4px); aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--glow));
  box-shadow: 0 0 10px 2px var(--c, var(--glow)); opacity: .55; animation: glimmer var(--d, 5s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes glimmer { from { opacity: .15; } to { opacity: .8; } }
.z-abyss .tl-wrap { z-index: 1; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq__list { border-top: 1.5px dotted var(--rule); }
.faq details { border-bottom: 1.5px dotted var(--rule); }
.faq summary { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) 0; cursor: pointer; list-style: none;
  font: 600 1.15rem/1.3 var(--font-head); font-variation-settings: "SOFT" 100; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(var(--fg), var(--fg)) center / 12px 2px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 2px 12px no-repeat;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 40%, transparent); transition: transform var(--t-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.faq details p { padding: 0 var(--s6) var(--s5) 0; color: var(--fg-dim); max-width: 64ch; }
@media (max-width: 859px) { .faq { grid-template-columns: 1fr; } }

.home .tl-foot { margin-top: clamp(72px, 10vw, 128px); }

/* the sound button: bottom left, clear of the depth gauge (phones have no gauge: it stays bottom right there) */
@media (min-width: 720px) { .home .tl-sound { right: auto; left: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .crate .tl-crate-stage__window,
  .crate .tl-crate-stage, .glow-specks i, .step--dive .tl-porthole__glass > img { animation: none !important; }
  .leak, .crate-burst, .caustic { display: none; }
  .crate-banner b { animation: fade-io 1.9s ease both !important; }
}
@keyframes fade-io { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
