/* Abyssal Basket — Art Deco in the Abyss family. Colors and ornaments are theme tokens:
   the default block is the Abyss-like look; [data-da] blocks below are our own directions. */
:root {
  /* raw channels, used as rgb(var(--x) / alpha) */
  --acc: 199 160 90;
  --hi-rgb: 235 210 154;
  --text-rgb: 248 241 224;
  --bg-rgb: 7 22 28;
  --deep-rgb: 5 15 20;
  --s1-rgb: 8 29 35;
  --s2-rgb: 9 35 42;
  --glow-rgb: 14 59 67;

  --bg: rgb(var(--bg-rgb));
  --bg-deep: rgb(var(--deep-rgb));
  --surface: rgb(var(--s1-rgb) / .88);
  --surface-solid: rgb(var(--s1-rgb));
  --surface-2: rgb(var(--s2-rgb));
  --line: rgb(var(--acc) / .2);
  --line-2: rgb(var(--acc) / .38);
  --text: rgb(var(--text-rgb));
  --muted: #bdc3b4;
  --faint: #929c90;
  --accent: rgb(var(--acc));
  --accent-hi: #e2c486;
  --label: #c5a66a;
  --accent-ink: #1a1206;
  --accent-soft: rgb(var(--acc) / .14);
  --gold-grad: linear-gradient(115deg, #b28c48, #ebd29a 50%, #c19a51);
  --split-1: #12343a;
  --split-2: #3d5a5c;
  --good: #8fd3a8;
  --warn: #ff5c9d;
  --bad: #ff7a6b;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23c7a05a' stroke-width='1' opacity='.075'%3E%3Cpath d='M60 0 120 60 60 120 0 60z'/%3E%3Cpath d='M60 18 102 60 60 102 18 60z' opacity='.6'/%3E%3Cpath d='M60 0v18M60 102v18M0 60h18M102 60h18'/%3E%3Cpath d='M38 60a22 22 0 0 1 44 0M46 60a14 14 0 0 1 28 0' opacity='.7'/%3E%3C/svg%3E");
  --pattern-size: 120px 120px;
  --rule-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M4.5 .8 8.2 4.5 4.5 8.2 .8 4.5z' fill='%2307161c' stroke='%23c7a05a'/%3E%3C/svg%3E");

  --display: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --display-weight: 500;
  --display-em-weight: 600;
  --display-stretch: normal;
  --display-track: 0em;
  --sans: "Jost", "Century Gothic", Avenir, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --radius: 0px;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1320px;
  --section: clamp(96px, 12vw, 176px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- scene ---------- */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(var(--acc) / .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--acc) / .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
main, .nav, footer { position: relative; z-index: 1; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.col-head { grid-column: 1 / span 4; }
.col-body { grid-column: 5 / span 8; }
@media (max-width: 900px) {
  .col-head, .col-body { grid-column: 1 / -1; }
  .col-head { margin-bottom: 32px; }
}

/* ---------- type ---------- */
.label {
  font: 500 11px/1.3 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 10px;
}
.label .idx { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 300; }
.h1 {
  font: 260 clamp(40px, 5.4vw, 84px)/1.0 var(--display);
  font-stretch: 125%; letter-spacing: -.04em;
}
.h2 {
  font: 280 clamp(30px, 3.4vw, 52px)/1.06 var(--display);
  font-stretch: 125%; letter-spacing: -.032em;
}
.h1 em, .h2 em { font-style: normal; font-weight: 480; color: var(--accent); }
.h3 { font: 500 17px/1.3 var(--sans); letter-spacing: -.005em; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 54ch; margin: 20px 0 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2, .h3 { text-wrap: balance; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.giant {
  font: 220 clamp(52px, 7vw, 116px)/.92 var(--display);
  font-stretch: 125%; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.giant .unit { color: var(--faint); font-weight: 200; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  background: linear-gradient(to bottom, rgb(var(--bg-rgb) / .82), rgb(var(--bg-rgb) / .55));
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px; pointer-events: none;
  background: linear-gradient(to bottom, rgb(var(--bg-rgb) / .5), transparent);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.brand b { font: 560 15px/1 var(--display); font-stretch: 118%; letter-spacing: -.02em; }
.brand i { font: 400 11px/1 var(--mono); font-style: normal; color: var(--faint); letter-spacing: .04em; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px;
  padding: 8px 12px; border-radius: 0;
  transition: color 120ms ease-out, background 120ms ease-out;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgb(var(--acc) / .09); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 0;
  border: 1px solid var(--line-2); color: var(--muted);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pill[data-state="live"] .dot { background: var(--good); box-shadow: 0 0 10px var(--good); }
.pill[data-state="pre-launch"] .dot { background: var(--warn); }
.pill[data-state="sample"] { border-color: rgba(255,92,157,.4); color: var(--warn); }
.pill[data-state="sample"] .dot { background: var(--warn); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.switch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; padding: 10px 4px; touch-action: manipulation;
}
.switch .track {
  width: 28px; height: 16px; border-radius: 0; background: var(--line-2); position: relative;
  transition: background 150ms ease-out;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted); transition: transform 220ms var(--ease), background 150ms ease-out;
}
.switch[aria-pressed="true"] { color: var(--warn); }
.switch[aria-pressed="true"] .track { background: rgba(255,92,157,.3); }
.switch[aria-pressed="true"] .track::after { transform: translateX(12px); background: var(--warn); }

.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border-radius: 0; border: 1px solid var(--line-2); background: none; color: var(--muted);
  cursor: pointer; touch-action: manipulation; transition: color 120ms ease-out, border-color 120ms ease-out;
}
.icon-btn:hover { color: var(--text); border-color: var(--faint); }
.icon-btn svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .nav-in { gap: 12px; height: auto; flex-wrap: wrap; padding: 10px 0; }
  .nav-links { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .nav-links a { padding: 10px 12px; }
  .brand i, .switch .txt { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 14px/1 var(--sans); text-decoration: none;
  padding: 14px 18px; border-radius: 0; border: 1px solid transparent;
  cursor: pointer; touch-action: manipulation;
  transition: transform 100ms ease-out, background 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[aria-disabled="true"] { opacity: .72; pointer-events: none; }
.btn .arr { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }

/* ---------- panels ---------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.sample-mark {
  display: none;
  position: absolute; top: -20px; right: 0;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--warn);
}
body.is-sample .sample-mark { display: block; }
@media (prefers-reduced-transparency: reduce) {
  .panel, .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-solid); }
}

/* ---------- hero (basket) ---------- */
.hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 48px 0 64px; }
.hero .grid { align-items: end; width: 100%; }
.hero-copy { grid-column: 1 / span 6; }
.hero-copy .h1 { margin-top: 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats {
  grid-column: 1 / -1; margin-top: clamp(48px, 9vh, 104px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 20px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat .v { font: 240 clamp(28px, 3vw, 46px)/1 var(--display); font-stretch: 125%; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-top: 12px; }
.stat .s { font: 400 12px/1.4 var(--mono); color: var(--faint); margin-top: 8px; }
.stat.big { grid-column: span 1; }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 56vw; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
}

.hero-short { min-height: 0; height: clamp(420px, 62svh, 640px); padding-bottom: 48px; }
.hero-short .grid { align-items: end; }
@media (max-width: 900px) { .hero-short { height: auto; } }
.result .giant { font-size: clamp(40px, 4.6vw, 76px); }

/* ---------- composition ---------- */
.comp { padding: 8px 0; }
.comp-head, .comp-row {
  display: grid; align-items: center;
  grid-template-columns: 86px minmax(0, 1.4fr) minmax(0, 2fr) 110px 110px;
  gap: 16px; padding: 0 20px;
}
.comp-head { height: 44px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.comp-head .r, .comp-row .r { text-align: right; }
.comp-row {
  min-height: 64px; border-bottom: 1px solid var(--line);
  cursor: default; transition: background 120ms ease-out;
}
.comp-row:last-child { border-bottom: 0; }
.comp-row:hover, .comp-row.is-hot { background: rgb(var(--acc) / .045); }
.tick { font: 500 15px/1 var(--mono); letter-spacing: .02em; }
.role { color: var(--muted); font-size: 14px; }
.wbar { display: flex; align-items: center; gap: 12px; }
.wbar .track { display: block; flex: 1; height: 6px; background: var(--line); border-radius: 0; overflow: hidden; }
.wbar .fill {
  display: block; width: 100%; height: 100%; background: var(--accent); border-radius: 0;
  transform-origin: left; transform: scaleX(0);
  transition: transform 900ms var(--ease);
}
.in .wbar .fill { transform: scaleX(var(--w)); }
.wbar .pct { font: 500 13px/1 var(--mono); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.cell-num { font: 400 13px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.cell-num small { display: block; color: var(--faint); font-size: 12px; margin-top: 4px; }
.waiting { color: var(--warn); }
@media (max-width: 760px) {
  .comp-head { display: none; }
  .comp-row {
    grid-template-columns: 64px 1fr auto; grid-template-areas: "t r d" "w w w" "x x x";
    row-gap: 10px; padding: 16px;
  }
  .comp-row .tick { grid-area: t; }
  .comp-row .role { grid-area: r; }
  .comp-row .wbar { grid-area: w; }
  .comp-row .c-res { grid-area: x; text-align: left; }
  .comp-row .c-del { grid-area: d; }
  .comp-row .c-res::before { content: "Reserved "; color: var(--faint); }
}
.comp-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 16px 20px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--mono); color: var(--faint); }
.comp-foot b { color: var(--muted); font-weight: 500; }

/* ---------- flow ---------- */
.flow { padding: clamp(20px, 3vw, 36px); }
.flow svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow .node rect { fill: rgb(var(--s1-rgb) / .9); stroke: var(--line-2); }
.flow .node.hot rect { stroke: var(--accent); fill: rgb(var(--acc) / .08); }
.flow .node text { fill: var(--text); font: 400 13px var(--sans); }
.flow .node .v { fill: var(--accent); font: 500 13px var(--mono); }
.flow .node .s { fill: var(--faint); font: 400 12px var(--mono); }
.flow .edge { fill: none; stroke: var(--line-2); stroke-width: 1; }
.flow .edge-label { fill: var(--faint); font: 400 12px var(--mono); }
.flow .pulse { fill: var(--accent); }
.flow-cap { margin-top: 18px; font: 400 12px/1.5 var(--mono); color: var(--faint); }
.flow-mobile { display: none; }
@media (max-width: 760px) {
  .flow svg { display: none; }
  .flow-mobile { display: block; list-style: none; padding: 0; margin: 0; counter-reset: f; }
  .flow-mobile li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .flow-mobile li:last-child { border-bottom: 0; }
  .flow-mobile b { font-weight: 500; }
  .flow-mobile .mono { color: var(--accent); }
  .flow-mobile small { grid-column: 1 / -1; color: var(--faint); font: 400 12px var(--mono); }
}

/* ---------- log ---------- */
.log { list-style: none; margin: 0; padding: 0; }
.log li {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.log li:last-child { border-bottom: 0; }
.log .date { font: 400 13px/1.3 var(--mono); color: var(--muted); }
.log .mix { display: flex; height: 8px; border-radius: 0; overflow: hidden; gap: 2px; }
.log .mix span { display: block; background: var(--accent); opacity: var(--o); }
.log .amt { font: 400 14px/1.2 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.log .amt small { display: block; font-size: 12px; color: var(--faint); margin-top: 4px; }
@media (max-width: 600px) {
  .log li { grid-template-columns: 1fr auto; }
  .log .mix { grid-column: 1 / -1; order: 3; }
}
.empty { padding: 40px 24px; text-align: left; }
.empty .h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 52ch; }

/* ---------- key-value sheet ---------- */
.sheet { margin: 0; }
.sheet .row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 16px; align-items: baseline; padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.sheet .row:last-child { border-bottom: 0; }
.sheet dt { color: var(--muted); font-size: 14px; }
.sheet dd { margin: 0; font: 400 14px/1.4 var(--mono); word-break: break-all; }
.sheet .why { grid-column: 2 / -1; color: var(--faint); font: 400 13px/1.5 var(--sans); }
.tag {
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 0; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--muted);
}
.tag.lock { color: var(--accent); border-color: rgb(var(--acc) / .35); }
.tag.edit { color: var(--warn); border-color: rgba(255,92,157,.35); }
.copy {
  background: none; border: 0; color: var(--faint); cursor: pointer; padding: 4px 6px; margin-left: 6px;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 0;
}
.copy:hover { color: var(--accent); }
@media (max-width: 600px) {
  .sheet .row { grid-template-columns: 1fr auto; }
  .sheet dd { grid-column: 1 / -1; order: 3; }
  .sheet .why { grid-column: 1 / -1; order: 4; }
}

/* ---------- lists / rules ---------- */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules li {
  counter-increment: r; position: relative;
  display: grid; grid-template-columns: 44px 1fr; gap: 8px;
  padding: 20px 20px 20px 16px; border-bottom: 1px solid var(--line);
}
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: counter(r, decimal-leading-zero); font: 500 12px/1.6 var(--mono); color: var(--accent); }
.rules b { font-weight: 500; }
.rules p { color: var(--muted); margin-top: 4px; font-size: 15px; }

.risk { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.risk:last-child { border-bottom: 0; }
.risk.head { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding-top: 16px; padding-bottom: 16px; }
.risk .what { color: var(--muted); }
.risk .fix { color: var(--text); }
@media (max-width: 700px) {
  .risk { grid-template-columns: 1fr; gap: 4px; }
  .risk.head { display: none; }
  .risk b { font-weight: 500; }
}

.notice { padding: 24px; display: grid; gap: 16px; }
.notice .weights { display: flex; flex-wrap: wrap; gap: 8px; }
.notice .w { font: 400 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 0; }
.notice .w.up { border-color: rgba(143,211,168,.4); color: var(--good); }
.notice .w.down { border-color: rgba(255,122,107,.4); color: var(--bad); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.controls { padding: 8px 0; }
.ctl { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ctl:last-child { border-bottom: 0; }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ctl label { font-size: 14px; color: var(--muted); }
.ctl output { font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.ctl .hint { font: 400 12px/1.5 var(--mono); color: var(--faint); margin-top: 8px; }
.ctl.locked label::after { content: " · fixed at launch"; color: var(--faint); font: 400 11px var(--mono); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 10px 0 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 0;
  background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line-2) var(--p, 50%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 0; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 0; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; margin-top: -7px;
  background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent);
  transition: transform 120ms ease-out;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  font: 500 11px/1 var(--mono); padding: 9px 10px; border-radius: 0; cursor: pointer;
  border: 1px solid var(--line-2); background: none; color: var(--muted); touch-action: manipulation;
  transition: color 120ms ease-out, border-color 120ms ease-out, transform 100ms ease-out;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { color: var(--accent); border-color: rgb(var(--acc) / .5); }

.result { padding: clamp(20px, 3vw, 32px); }
.result-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .result-top { grid-template-columns: 1fr; } }
.result .giant { margin-top: 14px; }
.split { margin-top: 28px; }
.split-bar { display: flex; height: 40px; border-radius: 0; overflow: hidden; gap: 2px; }
.split-bar span { display: block; height: 100%; transition: flex-grow 500ms var(--ease); min-width: 2px; }
.split-bar .s-treas { background: var(--split-1); }
.split-bar .s-stock { background: var(--accent); }
.split-bar .s-prem { background: rgb(var(--acc) / .35); }
.split-bar .s-creat { background: var(--split-2); }
.split-bar .s-hold { background: var(--accent-hi); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; margin-top: 18px; }
.legend div { display: grid; grid-template-columns: 10px 1fr; gap: 4px 10px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 0; }
.legend span { font-size: 13px; color: var(--muted); }
.legend b { grid-column: 2; font: 400 14px/1 var(--mono); font-variant-numeric: tabular-nums; font-weight: 400; }
.math { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 12.5px/1.8 var(--mono); color: var(--muted); }
.math b { color: var(--text); font-weight: 500; }
.table-wrap { overflow-x: auto; }
table.ref { width: 100%; border-collapse: collapse; font: 400 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; min-width: 560px; }
table.ref th { text-align: right; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 14px 20px; border-bottom: 1px solid var(--line); }
table.ref td { text-align: right; padding: 16px 20px; border-bottom: 1px solid var(--line); }
table.ref th:first-child, table.ref td:first-child { text-align: left; }
table.ref tr:last-child td { border-bottom: 0; }
table.ref tr.hot td { color: var(--accent); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; background: rgb(var(--bg-rgb) / .7); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font: 400 12px/1.6 var(--mono); color: var(--faint); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { transform: none; transition: opacity 200ms ease-out; }
  .wbar .fill { transition: none; }
  .pill[data-state="sample"] .dot { animation: none; }
}


/* =========================================================
   Abyss Art Deco layer
   ========================================================= */
body {
  background:
    radial-gradient(960px 448px at 62% -96px, rgb(var(--glow-rgb) / .55), transparent 70%),
    var(--bg);
  font-weight: 400;
}
.grain {
  background-image: var(--pattern);
  background-size: var(--pattern-size);
  mask-image: radial-gradient(ellipse 90% 80% at 55% 20%, #000 20%, transparent 80%);
}

/* type */
.label {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .22em; color: var(--label);
}
.label .idx { color: var(--accent); letter-spacing: .1em; }
.h1 {
  font: var(--display-weight) clamp(48px, 6.2vw, 100px)/.98 var(--display);
  letter-spacing: calc(var(--display-track) - .005em); font-stretch: var(--display-stretch);
}
.h2 {
  font: var(--display-weight) clamp(36px, 3.8vw, 60px)/1.02 var(--display);
  letter-spacing: var(--display-track); font-stretch: var(--display-stretch);
}
.h1 em, .h2 em { font-style: normal; font-weight: var(--display-em-weight); color: var(--accent-hi); }
.h3 { font: 500 18px/1.3 var(--sans); letter-spacing: .005em; }
.lead { font-weight: 300; color: var(--muted); }
.giant, .stat .v {
  font-family: var(--mono); font-weight: 400; font-stretch: normal;
  letter-spacing: -.02em; color: var(--accent-hi);
}
.giant { font-size: clamp(44px, 5.4vw, 88px); line-height: 1; }
.stat .v { font-size: clamp(26px, 2.6vw, 40px); }

/* rule: hairline + lozenge, as under Abyss page titles */
.col-head .h2::after, .hero-copy .h1::after, .col-body > .h1::after {
  content: ""; display: block; width: 132px; height: 9px; margin-top: 24px;
  background:
    var(--rule-mark) 92px 0 / 9px 9px no-repeat,
    linear-gradient(90deg, var(--accent), rgb(var(--acc) / .25)) 0 4px / 100% 1px no-repeat;
}

/* nav */
.nav {
  background: rgb(var(--deep-rgb) / .9);
  box-shadow: inset 0 -1px 0 rgb(var(--acc) / .26);
}
.nav::after { display: none; }
.nav-in { height: 72px; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.brand b {
  font: 600 17px/1 var(--display); font-stretch: normal;
  letter-spacing: .28em; text-transform: uppercase; color: var(--text);
}
.brand i { font-family: var(--mono); color: var(--faint); }
.nav-links a { font: 400 15px/1 var(--sans); padding: 10px 14px; position: relative; }
.nav-links a:hover { background: rgb(var(--acc) / .06); }
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(90deg, rgb(var(--acc) / .16), rgb(var(--acc) / .05));
  box-shadow: inset 0 -1px 0 var(--accent);
}
.pill { font-family: var(--sans); font-weight: 600; letter-spacing: .16em; border-color: var(--line-2); background: rgb(var(--deep-rgb) / .6); }
.switch { font-family: var(--sans); font-weight: 600; letter-spacing: .16em; }
.switch .track { border-radius: 0; background: rgb(var(--acc) / .2); }
.switch .track::after { border-radius: 0; }
.icon-btn { border-radius: 0; border-color: var(--line-2); color: var(--accent); }

/* buttons */
.btn { font: 600 14px/1 var(--sans); letter-spacing: .04em; border-radius: 0; padding: 15px 20px; }
.btn-primary { background: var(--gold-grad); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background: var(--gold-grad); filter: brightness(1.08); }
.btn-ghost { background: var(--bg-deep); border-color: rgb(var(--acc) / .55); color: var(--accent-hi); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* framed panels with deco corner marks */
.panel {
  background: linear-gradient(135deg, rgb(var(--s2-rgb) / .92), rgb(var(--bg-rgb) / .92));
  border: 1px solid rgb(var(--acc) / .32);
  box-shadow: none;
}
.panel::before {
  content: ""; position: absolute; inset: -5px; pointer-events: none;
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px 14px no-repeat;
}
.sample-mark { font-family: var(--sans); font-weight: 600; letter-spacing: .18em; top: -24px; }

/* hero stats: framed row */
.hero-stats { border-top: 1px solid var(--line-2); }
.stat + .stat { border-left-color: var(--line); }
.stat .s { font-family: var(--sans); font-weight: 300; font-size: 13px; color: var(--faint); }

/* composition */
.comp-head, .risk.head, table.ref th { font-family: var(--sans); font-weight: 600; letter-spacing: .18em; color: var(--label); }
.tick { font: 500 22px/1 var(--display); letter-spacing: .04em; }
.role { font-weight: 300; }
.wbar .track { background: rgb(var(--acc) / .14); height: 4px; }
.wbar .fill { background: var(--gold-grad); }
.wbar .pct, .cell-num, .comp-foot, .log .date, .log .amt, .sheet dd, .ctl output, .math, table.ref { color: var(--text); }
.cell-num { color: var(--accent-hi); }
.comp-foot { font-family: var(--sans); font-weight: 300; }
.comp-foot b { font-family: var(--mono); color: var(--muted); font-weight: 400; }

/* flow */
.flow .node rect { fill: rgb(var(--deep-rgb) / .92); stroke: rgb(var(--acc) / .38); }
.flow .node.hot rect { stroke: var(--accent); fill: rgb(var(--acc) / .1); }
.flow .node text { fill: var(--text); font: 400 14px var(--sans); }
.flow .node .v { fill: var(--accent-hi); font: 400 14px var(--mono); }
.flow .edge { stroke: rgb(var(--acc) / .45); }
.flow .edge-label, .flow .node .s { fill: var(--faint); font-family: var(--sans); }
.flow .pulse { fill: var(--accent-hi); }
.flow-cap { font-family: var(--sans); font-weight: 300; font-size: 13px; }

/* log / sheet / rules */
.log .mix span { background: var(--accent); }
.sheet dt { font-weight: 400; }
.sheet .why { font-weight: 300; }
.tag { font-family: var(--sans); font-weight: 600; letter-spacing: .14em; border-radius: 0; }
.tag.lock { color: var(--accent-hi); border-color: rgb(var(--acc) / .5); }
.rules li::before { content: counter(r, upper-roman); font: 500 20px/1.2 var(--display); color: var(--accent); }
.rules b { font: 500 22px/1.2 var(--display); display: block; }
.risk b { font: 500 20px/1.2 var(--display); }
.notice .w { border-radius: 0; }
.empty .h3 { font: 500 24px/1.2 var(--display); }

/* calculator */
.ctl label { font-weight: 400; }
.ctl .hint { font-family: var(--sans); font-weight: 300; font-size: 13px; }
.chip { border-radius: 0; font-family: var(--sans); font-weight: 500; letter-spacing: .04em; font-size: 12px; }
.chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--gold-grad); border-color: transparent; }
input[type="range"]::-webkit-slider-thumb { border-radius: 0; transform: rotate(45deg); background: var(--accent-hi); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: rotate(45deg) scale(1.15); }
input[type="range"]::-moz-range-thumb { border-radius: 0; transform: rotate(45deg); background: var(--accent-hi); }
.math { font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.8; }
.math b { font-family: var(--mono); font-weight: 400; color: var(--accent-hi); }
.legend b { color: var(--text); }

/* footer */
footer { background: var(--bg-deep); border-top: 1px solid rgb(var(--acc) / .26); }
.foot { font-family: var(--sans); font-weight: 300; font-size: 13px; }

@media (max-width: 760px) {
  .nav-in { height: auto; }
  .brand b { font-size: 14px; letter-spacing: .16em; }
  .brand svg { width: 22px; height: 22px; }
  .pill { padding: 6px 8px; letter-spacing: .1em; }
  .nav-right { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; }
}

/* =========================================================
   Motion layer
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
html.motion { scroll-behavior: auto; }
.ln { padding-bottom: .06em; }

/* gold rule draws in once the title has risen */
.motion .h1::after, .motion .h2::after {
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease) .15s;
}
.motion .h1.drawn::after, .motion .h2.drawn::after { transform: none; }

/* pointer-following gold light inside panels */
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--acc) / .09), transparent 60%);
  transition: opacity .25s ease-out;
}
.panel:hover::after { opacity: 1; }

/* marquee band */
.band {
  position: relative; z-index: 1; overflow: hidden;
  border-top: 1px solid rgb(var(--acc) / .3); border-bottom: 1px solid rgb(var(--acc) / .3);
  background: linear-gradient(90deg, rgb(var(--deep-rgb) / .92), rgb(var(--s2-rgb) / .85), rgb(var(--deep-rgb) / .92));
  padding: 20px 0;
}
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgb(var(--acc) / .14);
}
.band::before { top: 4px; } .band::after { bottom: 4px; }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-run { display: flex; align-items: center; flex-shrink: 0; }
.band-run span {
  font: 500 clamp(22px, 2.2vw, 32px)/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); white-space: nowrap; padding: 0 28px;
}
.band-run b { font: 400 .62em/1 var(--mono); letter-spacing: 0; color: var(--accent-hi); vertical-align: .2em; margin-left: 8px; }
.band-run em { font-style: normal; color: var(--accent-hi); }
.loz { width: 9px; height: 9px; flex-shrink: 0; transform: rotate(45deg); border: 1px solid var(--accent); background: var(--bg); }

/* follow-one-trade readout */
.flow-steps { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 380px; }
.fs-value { font: 400 clamp(44px, 4.6vw, 72px)/1 var(--mono); color: var(--accent-hi); letter-spacing: -.02em; margin-top: 16px; }
.fs-text { margin-top: 14px; color: var(--muted); font-weight: 300; font-size: 17px; line-height: 1.55; min-height: 3.2em; }
.fs-bar { display: block; height: 1px; background: rgb(var(--acc) / .2); margin-top: 22px; }
.fs-bar i { display: block; height: 1px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }

/* composition tour: active row */
.comp-row { position: relative; }
.comp-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold-grad);
  transform: scaleY(0); transition: transform .35s var(--ease);
}
.comp-row.is-hot::before { transform: none; }
.comp-row.is-hot .tick { color: var(--accent-hi); }
.comp-row .tick { transition: color .2s ease-out; }

/* page to page: a sunrise reveal from the bottom center */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .5s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .9s var(--ease) both; }
@keyframes vt-out { to { opacity: .2; transform: scale(.985); } }
@keyframes vt-in { from { clip-path: circle(0% at 50% 100%); } to { clip-path: circle(150% at 50% 100%); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .motion .h1::after, .motion .h2::after { transform: none; transition: none; }
}

/* ---------- rules: struck-through claims ---------- */
.claim {
  display: block; width: fit-content; position: relative; text-decoration: none;
  font: italic 500 20px/1.2 var(--display); color: var(--muted); margin-bottom: 10px;
}
.claim::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 54%; height: 1.5px;
  background: var(--gold-grad); transform: scaleX(var(--k, 1)); transform-origin: left;
}

/* ---------- rules: 7-day notice track + weight bars ---------- */
.days { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.days i {
  width: 22px; height: 22px; transform: rotate(45deg); border: 1px solid rgb(var(--acc) / .5);
  display: grid; place-items: center; background: var(--bg-deep);
}
.days i span { transform: rotate(-45deg); font: 400 10px/1 var(--mono); color: var(--faint); }
.days i.done { background: var(--gold-grad); border-color: transparent; }
.days i.done span { color: var(--accent-ink); }
.days-txt { margin-left: 8px; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hi); }
.notice .w { display: inline-flex; align-items: center; gap: 4px; }
.notice .w b { font-weight: 500; }
.wbar-mini { display: block; width: 46px; height: 3px; margin-left: 8px; background: rgb(var(--acc) / .18); }
.wbar-mini i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--a)); transition: transform 1.4s cubic-bezier(.65,0,.35,1) .7s; }
.notice.go .wbar-mini i { transform: scaleX(var(--b)); }
.notice .w.up .wbar-mini i { background: var(--good); }
.notice .w.down .wbar-mini i { background: var(--bad); }

/* ---------- calculator: fee fan ---------- */
.stream-src { margin-top: 16px; text-align: center; font: 300 13px/1.4 var(--sans); color: var(--muted); }
.stream-src b { font: 400 18px/1 var(--mono); color: var(--accent-hi); margin-right: 4px; }
.stream { display: block; width: 100%; height: 132px; margin-top: 10px; }
.split-bar { margin-top: 0; }
@media (max-width: 600px) { .stream { height: 104px; } }

.claim-how { margin-top: 18px; max-width: 46ch; padding-left: 14px; border-left: 1px solid var(--accent); font: 300 15px/1.6 var(--sans); color: var(--muted); }
.claim-how b { font-weight: 500; color: var(--accent-hi); }

/* =========================================================
   Lab page
   ========================================================= */
.lab-toggle { gap: 8px; }
table.sig { width: 100%; border-collapse: collapse; min-width: 640px; font: 400 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
table.sig th { text-align: left; font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--label); padding: 14px 14px; border-bottom: 1px solid var(--line); }
table.sig td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.sig tr:last-child td { border-bottom: 0; }
table.sig .r { text-align: right; }
table.sig .rk { color: var(--faint); width: 36px; }
table.sig .tick { display: block; font: 500 21px/1 var(--display); letter-spacing: .04em; color: var(--text); }
table.sig small { display: block; margin-top: 5px; font: 300 12px/1 var(--sans); color: var(--faint); }
table.sig .pos { color: var(--good); }
table.sig .neg { color: var(--bad); }
table.sig tr.st-watch td, table.sig tr.st-out td { opacity: .62; }
table.sig tr { transition: background .2s ease-out; }
table.sig tbody tr:hover { background: rgb(var(--acc) / .05); }
.spark { width: 96px; height: 26px; display: block; }
.spark polyline { fill: none; stroke-width: 1.4; stroke-linejoin: round; }
.spark.up polyline { stroke: var(--good); }
.spark.down polyline { stroke: var(--accent); }
.score { position: relative; display: block; width: 110px; height: 6px; background: rgb(var(--acc) / .12); }
.score::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgb(var(--acc) / .5); }
.score i { position: absolute; top: 0; bottom: 0; width: var(--w); }
.score i.pos { left: 50%; background: var(--gold-grad); }
.score i.neg { right: 50%; background: rgba(255,122,107,.75); }
.tag.st { white-space: nowrap; }
tr.st-hold .tag.st { color: var(--accent-hi); border-color: rgb(var(--acc) / .5); }
tr.st-join .tag.st, tr.st-queue .tag.st { color: var(--good); border-color: rgba(143,211,168,.45); }
tr.st-trim .tag.st, tr.st-out .tag.st { color: var(--bad); border-color: rgba(255,122,107,.45); }

.slope-wrap { padding: clamp(18px, 3vw, 32px); }
.slope { width: 100%; height: auto; display: block; overflow: visible; }
.slope .col-l { font: 600 11px var(--sans); letter-spacing: .2em; fill: var(--label); }
.slope .bar { fill: var(--accent); }
.slope .tk { font: 500 18px var(--display); fill: var(--text); letter-spacing: .04em; }
.slope .wt { font: 400 12px var(--mono); fill: var(--accent-hi); }
.slope .rib { fill: rgb(var(--acc) / .2); stroke: rgb(var(--acc) / .45); stroke-width: .75; }
.slope .rib.up { fill: rgba(143,211,168,.2); stroke: rgba(143,211,168,.5); }
.slope .rib.down { fill: rgba(255,122,107,.14); stroke: rgba(255,122,107,.4); }
.slope .rib.join { fill: rgba(143,211,168,.3); }
.slope .rib.out { fill: rgba(255,122,107,.24); }
.next-stats { display: grid; gap: 18px; margin-top: 34px; }
.next-stats div { padding-top: 14px; border-top: 1px solid var(--line); }
.next-stats b { display: block; margin-top: 10px; font: 400 26px/1 var(--mono); color: var(--accent-hi); }
.log .moves { font: 400 13px/1.5 var(--mono); color: var(--muted); }

/* =========================================================
   My basket page
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.connect { padding: clamp(20px, 3vw, 32px); }
.connect-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.connect .or { font: 300 14px var(--sans); color: var(--faint); }
.addr-form { display: flex; gap: 10px; flex: 1; min-width: 280px; }
.addr-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 0;
  background: var(--bg-deep); border: 1px solid rgb(var(--acc) / .38); color: var(--text);
  font: 400 15px/1 var(--mono); transition: border-color .15s ease-out;
}
.addr-form input::placeholder { color: var(--faint); }
.addr-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--acc) / .15); }
.connect-note { margin-top: 16px; font: 300 14px/1.5 var(--sans); color: var(--faint); }
.connect-note.bad { color: var(--bad); }
.btn[aria-busy="true"] { opacity: .7; }
.vest { padding: clamp(20px, 3vw, 32px); }
.vest .giant { margin-top: 14px; }
.vest .days { margin-top: 26px; }
.days i.now { border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgb(var(--acc) / .18); animation: pulse-l 1.6s ease-in-out infinite; }
@keyframes pulse-l { 50% { box-shadow: 0 0 0 7px rgb(var(--acc) / .05); } }
.my-head, .my-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 160px; gap: 16px; align-items: center; padding: 0 20px; }
.my-head { height: 44px; border-bottom: 1px solid var(--line); font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.my-head .r, .my-row .r { text-align: right; }
.my-row { min-height: 60px; border-bottom: 1px solid var(--line); }
.my-row .tick { font: 500 22px/1 var(--display); letter-spacing: .04em; }
.my-row .wbar .pct { width: auto; min-width: 70px; color: var(--accent-hi); }
@media (max-width: 600px) {
  .my-head { display: none; }
  .my-row { grid-template-columns: 64px 1fr; padding: 14px 16px; row-gap: 8px; }
  .my-row .r { grid-column: 1 / -1; text-align: left; }
  .addr-form { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .days i.now { animation: none; } }

.nav-links a { white-space: nowrap; }

/* My basket: exact claim */
.claim-box { padding: clamp(20px, 3vw, 32px); }
.claim-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.claim-top .giant { margin-top: 14px; }
.claim-assets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.claim-assets span { font: 400 13px/1 var(--mono); padding: 9px 10px; border: 1px solid rgb(var(--acc) / .38); color: var(--text); }
.claim-assets span b { color: var(--accent-hi); font-weight: 400; margin-left: 6px; }
.claim-box .connect-note a { color: var(--accent-hi); }
#btn-claim[disabled] { opacity: .5; cursor: not-allowed; }


/* =========================================================
   DA directions: our own Art Deco, still in the Abyss family.
   Pick with ?da=weave | lab | rose (Abyss-like look without it).
   ========================================================= */

/* A · Vannerie — copper on teal night, Bodoni Moda, woven basket motif */
html[data-da="weave"] {
  --acc: 212 138 90; --hi-rgb: 240 185 143; --text-rgb: 246 239 230;
  --bg-rgb: 6 23 25; --deep-rgb: 4 16 17; --s1-rgb: 8 30 32; --s2-rgb: 10 38 40; --glow-rgb: 12 66 66;
  --muted: #bcc4bd; --faint: #8f9b95; --accent-hi: #f0b98f; --label: #dba27c; --accent-ink: #1c0e05;
  --gold-grad: linear-gradient(115deg, #b56d3f, #f2c29c 50%, #c47a4a);
  --split-1: #123536; --split-2: #45595a;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' fill='none' stroke='%23d48a5a' stroke-width='1' opacity='.09'%3E%3Cpath d='M2 6h24M2 14h24M2 22h24M34 2v24M42 2v24M50 2v24M6 30v24M14 30v24M22 30v24M30 34h24M30 42h24M30 50h24'/%3E%3C/svg%3E");
  --pattern-size: 56px 56px;
  --rule-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' fill='none' stroke='%23d48a5a'%3E%3Crect x='.5' y='.5' width='8' height='8' fill='%23061719'/%3E%3Cpath d='M.5 3.5h8M.5 5.5h8M3.5 .5v8M5.5 .5v8' opacity='.8'/%3E%3C/svg%3E");
  --display: "Bodoni Moda", "Didot", serif;
  --display-weight: 500; --display-em-weight: 500; --display-track: -.01em;
}
html[data-da="weave"] .h1 em, html[data-da="weave"] .h2 em { font-style: italic; }

/* B · Laboratoire — verdigris on petrol night, Mona Sans wide and light, measuring marks */
html[data-da="lab"] {
  --acc: 108 200 173; --hi-rgb: 168 234 215; --text-rgb: 238 245 242;
  --bg-rgb: 5 19 26; --deep-rgb: 3 12 17; --s1-rgb: 7 26 34; --s2-rgb: 9 33 42; --glow-rgb: 10 70 78;
  --muted: #a9bcb7; --faint: #869a95; --accent-hi: #a8ead7; --label: #7fd0b8; --accent-ink: #04140f;
  --gold-grad: linear-gradient(115deg, #3f9c83, #b5f0de 50%, #4fae93);
  --split-1: #11323a; --split-2: #3c5a5f;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' fill='none' stroke='%236cc8ad' stroke-width='1' opacity='.07'%3E%3Cpath d='M0 .5h64M.5 0v64'/%3E%3Cpath d='M16 0v4M32 0v7M48 0v4M0 16h4M0 32h7M0 48h4' opacity='.9'/%3E%3Ccircle cx='32' cy='32' r='1.5'/%3E%3C/svg%3E");
  --pattern-size: 64px 64px;
  --rule-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' fill='none' stroke='%236cc8ad'%3E%3Ccircle cx='4.5' cy='4.5' r='3.2' fill='%2305131a'/%3E%3Cpath d='M4.5 0v9M0 4.5h9' opacity='.8'/%3E%3C/svg%3E");
  --display: "Mona Sans", "Hubot Sans", system-ui, sans-serif;
  --display-weight: 260; --display-em-weight: 480; --display-stretch: 125%; --display-track: -.035em;
}
html[data-da="lab"] .brand b { font-weight: 560; letter-spacing: .14em; }
html[data-da="lab"] .tick, html[data-da="lab"] table.sig .tick, html[data-da="lab"] .my-row .tick { font-weight: 420; font-stretch: 112%; letter-spacing: 0; font-size: 18px; }

/* C · Or rose — rose gold on deep sea-night, Italiana, sunrise fans */
html[data-da="rose"] {
  --acc: 224 161 132; --hi-rgb: 245 203 182; --text-rgb: 251 241 236;
  --bg-rgb: 10 21 23; --deep-rgb: 6 14 16; --s1-rgb: 13 28 31; --s2-rgb: 16 35 38; --glow-rgb: 30 60 66;
  --muted: #c4bfb9; --faint: #9a9690; --accent-hi: #f5cbb6; --label: #e4ab92; --accent-ink: #1d0c06;
  --gold-grad: linear-gradient(115deg, #c27f62, #f7d3c1 50%, #cf8c6f);
  --split-1: #1a3134; --split-2: #4c5a59;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48' fill='none' stroke='%23e0a184' stroke-width='1' opacity='.08'%3E%3Cpath d='M0 48a48 48 0 0 1 96 0M12 48a36 36 0 0 1 72 0M24 48a24 24 0 0 1 48 0M36 48a12 12 0 0 1 24 0'/%3E%3Cpath d='M48 48 48 0M48 48 14 14M48 48 82 14' opacity='.5'/%3E%3C/svg%3E");
  --pattern-size: 96px 48px;
  --rule-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' fill='none' stroke='%23e0a184'%3E%3Cpath d='M.5 8.5a4 4 0 0 1 8 0z' fill='%230a1517'/%3E%3Cpath d='M4.5 8.5V4.5M4.5 8.5 1.8 5.8M4.5 8.5 7.2 5.8' opacity='.8'/%3E%3C/svg%3E");
  --display: "Italiana", "Didot", serif;
  --display-weight: 400; --display-em-weight: 400; --display-track: .005em;
}

/* =========================================================
   Abyssal Basket — "Abysses" skin for the inner pages
   (the home page has its own stylesheet: assets/abyss/abysse.css)
   ========================================================= */
html[data-da="abyss"] {
  --acc: 94 242 224; --hi-rgb: 168 248 238; --text-rgb: 230 246 245;
  --bg-rgb: 2 6 12; --deep-rgb: 1 4 8; --s1-rgb: 3 14 20; --s2-rgb: 5 20 28; --glow-rgb: 10 44 60;
  --muted: #a3c2c3; --faint: #86a8aa; --accent-hi: #a8f8ee; --label: #8fe9dd; --accent-ink: #021412;
  --gold-grad: linear-gradient(115deg, #3fd6c3, #a9f7ee 50%, #4fe3d0);
  --split-1: #0f2a33; --split-2: #2c4a52;
  --pattern: none; --rule-mark: none;
  --display: "Mona Sans", system-ui, sans-serif;
  --sans: "Mona Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --display-weight: 240; --display-em-weight: 460; --display-stretch: 125%; --display-track: -.04em;
  --radius: 14px;
  background: #02060c;
}
html[data-da="abyss"] body { background: #02060c; }
html[data-da="abyss"] #deep, html[data-da="abyss"] #creatures, html[data-da="abyss"] #sea, html[data-da="abyss"] #jelly-gl {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block;
}
html[data-da="abyss"] #jelly-img {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; height: 360px; width: auto;
  mix-blend-mode: screen; opacity: 0; transition: opacity .6s ease-out;
}
html[data-da="abyss"] #jelly-img.ready { opacity: .85; }
html[data-da="abyss"] #jelly-img.warped { visibility: hidden; }
html[data-da="abyss"] .grain, html[data-da="abyss"] #scene { display: none; }

/* type */
html[data-da="abyss"] .h1 em, html[data-da="abyss"] .h2 em { color: var(--accent); text-shadow: 0 0 28px rgb(var(--acc) / .45); }
html[data-da="abyss"] .label { font: 500 12px/1.3 var(--mono); letter-spacing: .18em; color: var(--muted); }
html[data-da="abyss"] .label .idx { color: var(--accent); }
html[data-da="abyss"] .lead { font-weight: 300; line-height: 1.6; }
html[data-da="abyss"] .col-head .h2::after, html[data-da="abyss"] .hero-copy .h1::after, html[data-da="abyss"] .col-body > .h1::after {
  width: 96px; height: 2px; margin-top: 26px;
  background: linear-gradient(90deg, var(--accent), rgb(var(--acc) / 0));
  box-shadow: 0 0 12px rgb(var(--acc) / .5);
}
html[data-da="abyss"] .giant, html[data-da="abyss"] .stat .v, html[data-da="abyss"] .fs-value {
  font-family: var(--display); font-stretch: 125%; font-weight: 220; letter-spacing: -.04em;
  color: var(--text); text-shadow: 0 0 36px rgb(var(--acc) / .22);
}
html[data-da="abyss"] .tick, html[data-da="abyss"] table.sig .tick, html[data-da="abyss"] .my-row .tick {
  font-family: var(--display); font-weight: 300; font-stretch: 125%; letter-spacing: -.02em;
}
html[data-da="abyss"] .rules li::before { font: 500 13px/1.6 var(--mono); }
html[data-da="abyss"] .rules b, html[data-da="abyss"] .risk b, html[data-da="abyss"] .empty .h3 {
  font-family: var(--display); font-weight: 400; font-stretch: 112%; letter-spacing: -.01em;
}
html[data-da="abyss"] .claim { font-family: var(--sans); font-style: italic; font-weight: 300; }

/* nav: dark water glass, like the home page */
html[data-da="abyss"] .nav { background: rgb(2 6 12 / .72); box-shadow: inset 0 -1px 0 rgb(var(--acc) / .14); }
html[data-da="abyss"] .brand svg { color: var(--accent); filter: drop-shadow(0 0 6px rgb(var(--acc) / .6)); width: 26px; height: 26px; }
html[data-da="abyss"] .brand b { font: 560 16px/1 var(--display); font-stretch: 118%; letter-spacing: -.01em; text-transform: none; white-space: nowrap; }
html[data-da="abyss"] .brand i { display: none; }
html[data-da="abyss"] .nav-links a { border-radius: 99px; }
html[data-da="abyss"] .nav-links a[aria-current="page"] { color: var(--accent); background: none; box-shadow: none; text-shadow: 0 0 12px rgb(var(--acc) / .5); }
html[data-da="abyss"] .pill, html[data-da="abyss"] .icon-btn, html[data-da="abyss"] .tag,
html[data-da="abyss"] .chip, html[data-da="abyss"] .notice .w { border-radius: 99px; }
html[data-da="abyss"] .switch .track, html[data-da="abyss"] .switch .track::after { border-radius: 99px; }

/* buttons: glowing pills */
html[data-da="abyss"] .btn { border-radius: 99px; font: 500 15px/1 var(--sans); letter-spacing: 0; }
html[data-da="abyss"] .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 30px rgb(var(--acc) / .35); filter: none; }
html[data-da="abyss"] .btn-primary:hover { background: var(--accent); filter: none; box-shadow: 0 0 0 6px rgb(var(--acc) / .12), 0 0 44px rgb(var(--acc) / .5); }
html[data-da="abyss"] .btn-ghost { background: rgb(2 6 12 / .4); border-color: rgb(var(--acc) / .32); color: var(--text); }

/* panels: dark water glass, no Art Deco corners */
html[data-da="abyss"] .panel {
  background: linear-gradient(180deg, rgb(4 16 24 / .62), rgb(2 8 14 / .7));
  border: 1px solid rgb(var(--acc) / .14); border-radius: 16px;
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04), 0 30px 80px rgb(0 0 0 / .35);
}
html[data-da="abyss"] .panel::before { display: none; }
html[data-da="abyss"] .panel::after { border-radius: 16px; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--acc) / .08), transparent 60%); }
html[data-da="abyss"] .sample-mark { color: #ff8ac1; }

/* data bits */
html[data-da="abyss"] .wbar .fill, html[data-da="abyss"] .fs-bar i { background: var(--accent); box-shadow: 0 0 10px rgb(var(--acc) / .6); }
html[data-da="abyss"] .days i { transform: none; border-radius: 50%; }
html[data-da="abyss"] .days i span { transform: none; }
html[data-da="abyss"] .days i.done { background: var(--accent); box-shadow: 0 0 12px rgb(var(--acc) / .55); }
html[data-da="abyss"] input[type="range"]::-webkit-slider-thumb { border-radius: 50%; transform: none; background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--acc) / .15), 0 0 14px rgb(var(--acc) / .6); }
html[data-da="abyss"] input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
html[data-da="abyss"] input[type="range"]::-moz-range-thumb { border-radius: 50%; transform: none; background: var(--accent); }
html[data-da="abyss"] .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
html[data-da="abyss"] .addr-form input { border-radius: 99px; padding: 0 18px; background: rgb(2 6 12 / .55); border-color: rgb(var(--acc) / .3); }
html[data-da="abyss"] .lab-toggle { display: none; }          /* the wafer morph it drove is gone */
html[data-da="abyss"] .slope .rib { fill: rgb(var(--acc) / .14); stroke: rgb(var(--acc) / .4); }
html[data-da="abyss"] footer { background: rgb(1 4 8 / .8); border-top-color: rgb(var(--acc) / .14); }
html[data-da="abyss"] .foot { font-family: var(--sans); }
@media (max-width: 760px) { html[data-da="abyss"] .nav-links { gap: 0; } html[data-da="abyss"] .nav-links a { padding: 10px 9px; font-size: 13.5px; } }

/* ===================== type & layout pass (2026-11-24) =====================
   Same scale as the home page. Body text is never 300 below 22px, small text never under 13px,
   table heads and tags are mono labels, section titles fit their column on two lines. */
html[data-da="abyss"] { --muted: #b1cccc; }
html[data-da="abyss"] :is(.lead, .hint, .flow-cap, .math, .claim-how, .connect-note, .or, .why, small, .muted) { font-weight: 400; }
html[data-da="abyss"] .lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 46ch; }
html[data-da="abyss"] :is(.hint, .flow-cap, .why) { font-size: 14px; line-height: 1.55; }
html[data-da="abyss"] small { font-size: 13px; }
html[data-da="abyss"] :is(.what, .fix, dt) { font-size: 15px; }
html[data-da="abyss"] .h1 { font-size: clamp(44px, 6vw, 96px); line-height: .98; letter-spacing: -.042em; }
html[data-da="abyss"] .col-head .h2 { font-size: clamp(30px, 2.9vw, 46px); font-stretch: 112%; line-height: 1.04; letter-spacing: -.03em; }
html[data-da="abyss"] th, html[data-da="abyss"] .tag, html[data-da="abyss"] .days-txt,
html[data-da="abyss"] .my-head span, html[data-da="abyss"] .sample-mark {
  font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
}
html[data-da="abyss"] .chip { font: 500 12.5px/1 var(--mono); letter-spacing: .04em; }
html[data-da="abyss"] .tick { font-size: 22px; }

/* the section title follows its panel on desktop */
@media (min-width: 901px) {
  html[data-da="abyss"] .col-head { position: sticky; top: 112px; align-self: start; }
}
/* leave a corridor on the right for the jellyfish */
@media (min-width: 1100px) {
  html[data-da="abyss"] main .wrap { padding-right: calc(var(--gutter) + clamp(60px, 9vw, 160px)); }
}
html[data-da="abyss"] :is(.giant, .stat .v, .fs-value) { font-variant-numeric: proportional-nums lining-nums; }
/* phone nav: same left edge as the page text */
@media (max-width: 900px) {
  html[data-da="abyss"] .nav-in { padding-left: var(--gutter); padding-right: var(--gutter); }
  html[data-da="abyss"] .nav-links { margin-left: -9px; }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-da="abyss"] :is(.nav, .panel) { backdrop-filter: none; -webkit-backdrop-filter: none; background: #040c14; }
}

/* ===================== performance pass =====================
   Panels used to blur the animated water behind them: every panel re-blurred every frame.
   A deeper tinted glass reads the same over dark water at a fraction of the cost. */
html[data-da="abyss"] .panel {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(180deg, rgb(4 16 24 / .86), rgb(2 8 14 / .9));
}
html[data-da="abyss"] .nav { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* the panel spotlight follows the pointer through --mx/--my: non-inherited, so a mouse move
   restyles the panel alone, not every row and cell inside it */
@property --mx { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
html[data-da="abyss"] .h1 em, html[data-da="abyss"] .h2 em { text-shadow: none; }   /* same clipped-glow box as the home titles */
