:root, :root[data-theme="night"] {
  --bg: #080c0b;
  --bg-2: #0e1513;
  --plate: #0f1815;
  --plate-2: #0a100e;
  --ink: #efe7d6;
  --ink-2: #c9bfa9;
  --muted: #7f877f;
  --hair: rgba(214, 176, 106, 0.22);
  --hair-2: rgba(214, 176, 106, 0.45);
  --brass: #d6b06a;
  --brass-2: #f3d79a;
  --verm: #ec6a4c;
  --celadon: #8fd3b6;
  --future: rgba(239, 231, 214, 0.16);
  --unknown: rgba(239, 231, 214, 0.42);
  --card: rgba(16, 24, 21, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --texture: sunray;
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #ece5d6;
  --bg-2: #f4efe4;
  --plate: #f7f2e7;
  --plate-2: #e9e1cf;
  --ink: #1d1a15;
  --ink-2: #3d362b;
  --muted: #7a7062;
  --hair: rgba(120, 82, 22, 0.22);
  --hair-2: rgba(120, 82, 22, 0.5);
  --brass: #9a6b1f;
  --brass-2: #6f4b0f;
  --verm: #c2410c;
  --celadon: #2f7d64;
  --future: rgba(29, 26, 21, 0.16);
  --unknown: rgba(29, 26, 21, 0.4);
  --card: rgba(250, 246, 237, 0.8);
  --shadow: 0 30px 70px rgba(80, 60, 20, 0.18);
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 900px at 35% 45%, var(--bg-2), var(--bg) 70%);
  overflow-x: clip;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.small { font-size: 11px; }
button { font: inherit; color: inherit; }

/* ------------------------------------------------------------ header */
.bar { display: flex; align-items: center; gap: 16px; padding: 18px clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.4; }
.logo .in { stroke: var(--hair-2); stroke-dasharray: 1 2.2; }
.logo .hand { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; transform-origin: 20px 20px; animation: sweep 60s linear infinite; }
.logo .hand2 { stroke: var(--brass); stroke-width: 2.2; stroke-linecap: round; }
.logo .pin { fill: var(--brass); stroke: none; }
@keyframes sweep { to { transform: rotate(360deg); } }
.brand h1 { margin: 0; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; }
.brand .tag { margin: 1px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.live.on i { background: var(--celadon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--celadon) 22%, transparent); }
.live.err i { background: var(--verm); }
.btn { border: 1px solid var(--hair-2); background: transparent; color: var(--ink); padding: 7px 13px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: 0.04em; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--brass); color: var(--brass-2); }
.btn.solid { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.btn.solid:hover { background: var(--brass-2); color: var(--bg); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
#themeBtn .sun { display: inline; } #themeBtn .moon { display: none; }
:root[data-theme="day"] #themeBtn .sun { display: none; } :root[data-theme="day"] #themeBtn .moon { display: inline; }
.brand-ca { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border: 1px solid var(--hair-2); border-radius: 999px; min-width: 0; max-width: 100%; }
.brand-ca .tk { font: 600 11px var(--mono); color: var(--brass); letter-spacing: 0.08em; }
.brand-ca code { font: 12px var(--mono); color: var(--ink-2); word-break: break-all; min-width: 0; }
.brand-ca .btn { padding: 4px 10px; font-size: 11px; }

/* ------------------------------------------------------------ stage */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(16px, 3vw, 48px); align-items: center; padding: 0 clamp(16px, 3vw, 40px) 24px; max-width: 1640px; margin: 0 auto; }
.dial { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: calc(100vh - 120px); justify-self: center; max-width: calc(100vh - 120px); min-width: 0; }
.dial canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.face { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44%; text-align: center; display: grid; justify-items: center; gap: 0.3em; font-size: clamp(9px, calc(var(--d, 600px) / 46), 22px); pointer-events: none; }
.face .cap { font: 500 0.62em var(--mono); letter-spacing: 0.36em; text-transform: uppercase; color: var(--brass); padding-left: 0.36em; }
.face .ep { font-weight: 900; font-size: 4.6em; line-height: 0.92; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; font-variant-numeric: lining-nums tabular-nums; }
.face .pct { font: 500 1.05em var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.face .eta { font-weight: 300; font-size: 2em; letter-spacing: 0.01em; font-variant-numeric: lining-nums tabular-nums; margin-top: 0.15em; }
.face .sub { letter-spacing: 0.14em; color: var(--muted); text-transform: none; font-size: 0.66em; }
.face .slot { font: 0.78em var(--mono); color: var(--muted); margin-top: 0.4em; font-variant-numeric: tabular-nums; }
.pips { display: flex; gap: 0.35em; }
.pips i { width: 1.6em; height: 0.32em; border-radius: 0.2em; background: var(--hair); transition: background 0.12s; }
.pips i.on { background: var(--brass); }
.pips i.done { background: color-mix(in srgb, var(--brass) 55%, transparent); }

.tip { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; transform: translate(14px, -50%); background: var(--card); border: 1px solid var(--hair-2); padding: 7px 10px; border-radius: 3px; box-shadow: var(--shadow); white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tip b { display: block; font-size: 14px; font-weight: 700; }
.tip span { display: block; font: 11px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.tip .k-ok { color: var(--ink); } .tip .k-sk { color: var(--verm); } .tip .k-un, .tip .k-fu { color: var(--brass); }
.dial canvas { cursor: crosshair; }

/* ------------------------------------------------------------ ledger */
.ledger { display: grid; gap: 12px; align-content: center; min-width: 0; }
.card { border: 1px solid var(--hair); background: var(--card); padding: 14px 16px; border-radius: 3px; position: relative; min-width: 0; box-shadow: var(--shadow); }
.card::before, .card::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--brass); }
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.card h2 { margin: 0 0 10px; font: 500 10.5px var(--mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); display: flex; justify-content: space-between; gap: 8px; }
.card h2 em { font-style: normal; letter-spacing: 0.06em; color: var(--muted); text-transform: none; }
.card p { margin: 4px 0 0; }
.time .big { font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.lead-now { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.lead-now b { font-weight: 700; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; counter-reset: n; }
.next li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: 14px; align-items: baseline; }
.next li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next li small { font: 11px var(--mono); color: var(--muted); margin-left: 6px; }
.next li em { font: 12px var(--mono); font-style: normal; color: var(--brass); font-variant-numeric: tabular-nums; }
.meter { height: 3px; background: var(--hair); margin: 2px 0 12px; }
.meter i { display: block; height: 100%; width: 0; background: var(--brass); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.facts div { min-width: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font: 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { width: 100%; height: 54px; display: block; margin: -2px 0 10px; }
.legend { font: 11px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 12px !important; }
.legend .k { display: inline-block; width: 3px; height: 12px; margin-right: -4px; vertical-align: -2px; }
.legend .ok { background: var(--ink); } .legend .sk { background: var(--verm); } .legend .un { background: var(--unknown); } .legend .fu { background: var(--future); }

.foot { text-align: center; color: var(--muted); font-size: 12px; font-style: italic; padding: 8px 16px 22px; }

/* ------------------------------------------------------------ ambient */
.amb { display: none; }
body.ambient { overflow: hidden; cursor: none; }
body.ambient.cursor { cursor: default; }
body.ambient .bar, body.ambient .ledger, body.ambient .foot { display: none; }
body.ambient .stage { display: block; padding: 0; max-width: none; height: 100vh; transition: transform 3s ease; transform: translate(var(--dx, 0px), var(--dy, 0px)); }
body.ambient .dial { width: min(94vh, 94vw); max-width: none; max-height: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
body.ambient .amb { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.amb > div[data-corner] { position: absolute; font-variant-numeric: lining-nums tabular-nums; }
.amb-w { display: grid; gap: 2px; }
.amb-tr .amb-w, .amb-br .amb-w { justify-items: end; }
.amb .cap { font: 500 10px var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); }
.amb b { font-weight: 300; font-size: clamp(18px, 2.6vw, 40px); }
.amb span:not(.cap) { font: 12px var(--mono); color: var(--muted); }
.amb-tl { top: 3vh; left: 3vw; } .amb-tr { top: 3vh; right: 3vw; text-align: right; justify-items: end; }
.amb-bl { bottom: 3vh; left: 3vw; max-width: 30vw; } .amb-bl b, .amb-tl b, .amb-tr b, .amb-br b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.amb-br { bottom: 3vh; right: 3vw; text-align: right; justify-items: end; }
.amb-exit { position: absolute; top: 3vh; left: 50%; transform: translateX(-50%); pointer-events: auto; opacity: 0; transition: opacity 0.3s; background: var(--card); }
body.ambient.cursor .amb-exit { opacity: 1; }
@media (max-aspect-ratio: 1/1) { body.ambient .dial { width: 94vw; } }

/* ------------------------------------------------------------ Atelier (burn-to-unlock) */
.atelier-btn { display: inline-flex; align-items: center; gap: 7px; }
.atelier-btn i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--brass); }
.atelier-btn.on i { background: var(--brass); }
.atelier-btn[aria-expanded="true"] { border-color: var(--brass); color: var(--brass-2); }
.next li.pinned span { color: var(--brass-2); font-weight: 700; }

.atelier { position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(440px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-left: 1px solid var(--hair-2); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35); padding: 22px 24px 32px; }
.atelier::before { content: ""; position: absolute; left: -1px; top: 22px; width: 1px; height: 64px; background: var(--brass); }
.at-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.at-kicker { font: 500 10px var(--mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); }
.at-head h2 { margin: 4px 0 0; font-weight: 700; font-size: 30px; letter-spacing: -0.01em; font-variation-settings: "opsz" 96; }
.at-x { border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.at-x:hover { color: var(--ink); }
.at-x:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.at-lede { margin: 10px 0 16px; color: var(--ink-2); font-style: italic; font-size: 15px; line-height: 1.45; }
.at-sec { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); }
.at-sec h3 { margin: 0 0 12px; font: 500 10.5px var(--mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); display: flex; justify-content: space-between; gap: 8px; }
.at-sec h3 em { font-style: normal; letter-spacing: 0.06em; color: var(--muted); }
.at-pass { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--hair-2); position: relative; }
.at-pass .cap, .review .cap, .choose .cap { font: 500 10px var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.at-pass b { font-size: 18px; font-weight: 500; }
.at-pass.on { border-color: var(--brass); }
.at-pass.on .cap { color: var(--brass); }
.at-soon { display: grid; gap: 4px; padding: 12px 14px; border: 1px dashed var(--hair-2); }
.at-soon b { font: 600 11px var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.at-soon span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }

.skins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skin { position: relative; display: grid; gap: 2px; text-align: left; padding: 10px 10px 10px 54px; min-height: 58px; border: 1px solid var(--hair); background: var(--card); cursor: pointer; border-radius: 3px; }
.skin b { font-size: 14px; font-weight: 700; }
.skin small { font-size: 11.5px; color: var(--muted); line-height: 1.3; font-style: italic; }
.skin .swatch { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair-2); }
.skin[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.skin:hover:not(:disabled) { border-color: var(--brass); }
.skin:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.skin .lock { position: absolute; top: 6px; right: 8px; font: 500 9px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.skin.locked .swatch { filter: saturate(0.6); opacity: 0.75; }
.skin:disabled { cursor: default; }
.sw-classic .swatch { background: radial-gradient(circle at 50% 50%, #0f1815 0 42%, transparent 43%), conic-gradient(from 0deg, #d6b06a 0 72%, #3a3426 72% 100%); }
.sw-meteorite .swatch { background: repeating-linear-gradient(60deg, #2a313a 0 2px, #1b2027 2px 5px), repeating-linear-gradient(-60deg, rgba(156, 201, 230, 0.25) 0 1px, transparent 1px 6px); box-shadow: inset 0 0 0 3px #9cc9e6; }
.sw-grandfeu .swatch { background: radial-gradient(circle at 35% 30%, #ffffff, #ebe7dc 70%); box-shadow: inset 0 0 0 3px #1e3a8a; }
.sw-bordeaux .swatch { background: repeating-linear-gradient(45deg, #3a1420 0 3px, #2b0f18 3px 6px), repeating-linear-gradient(-45deg, rgba(232, 166, 143, 0.3) 0 1px, transparent 1px 6px); box-shadow: inset 0 0 0 3px #e8a68f; }
.sw-lumiere .swatch { background: radial-gradient(circle, #0c1410 0 55%, #020302 56%); box-shadow: inset 0 0 0 3px #8cffaa, 0 0 10px rgba(140, 255, 170, 0.35); }

.corners .screen { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 54px auto; gap: 8px; padding: 10px; border: 1px solid var(--hair-2); aspect-ratio: 16 / 9; align-content: space-between; background: var(--plate-2); }
.corners .corner { min-width: 0; }
.corners .c-tl, .corners .c-tr { grid-row: 1; } .corners .c-bl, .corners .c-br { grid-row: 3; }
.corners .c-tr, .corners .c-br { justify-self: end; }
.corners select { max-width: 100%; font: 500 11.5px var(--mono); color: var(--ink); background: var(--card); border: 1px solid var(--hair-2); border-radius: 2px; padding: 5px 6px; }
.corners select:disabled { opacity: 0.55; }
.corners select:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.mini-dial { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--brass); box-shadow: inset 0 0 0 6px var(--hair); pointer-events: none; }

.pinsearch { position: relative; }
.pinsearch input { width: 100%; font: 14px var(--serif); color: var(--ink); background: var(--card); border: 1px solid var(--hair-2); border-radius: 2px; padding: 9px 11px; }
.pinsearch input:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.pinsearch input:disabled { opacity: 0.6; }
.pinresults { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2; list-style: none; margin: 0; padding: 4px; background: var(--bg-2); border: 1px solid var(--hair-2); box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.pinresults button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; text-align: left; background: transparent; border: 0; padding: 7px 8px; cursor: pointer; }
.pinresults button:hover, .pinresults button:focus-visible { background: color-mix(in srgb, var(--brass) 14%, transparent); outline: none; }
.pinresults span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinresults small { color: var(--muted); font-size: 11px; }
.pinresults .none, .pinlist .none { color: var(--muted); font-style: italic; font-size: 13.5px; padding: 6px 8px; line-height: 1.45; }
.pinlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.pinlist li[data-id] { display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "who x" "when x"; gap: 1px 8px; padding: 8px 4px 8px 0; border-bottom: 1px solid var(--hair); }
.pinlist li[data-id] > div { grid-area: who; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pinlist b { font-weight: 700; color: var(--brass-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinlist small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.pinlist .when { grid-area: when; font-size: 11.5px; color: var(--ink-2); }
.pinlist .x { grid-area: x; align-self: center; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.pinlist .x:hover { color: var(--verm); }

.burnsec { display: grid; gap: 10px; }
.burnsec h3 { margin-bottom: 2px; }
.btn.wide { width: 100%; padding: 11px 14px; font-size: 13px; }
.btn.ghost { border-color: var(--hair); color: var(--ink-2); }
.btn:disabled { opacity: 0.5; cursor: default; }
.signed { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.choose { display: grid; gap: 6px; }
.btn.wallet { display: flex; align-items: center; gap: 10px; justify-content: flex-start; border-radius: 3px; padding: 9px 12px; }
.btn.wallet img { width: 16px; height: 16px; border-radius: 3px; }
.review { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--brass); background: color-mix(in srgb, var(--brass) 7%, transparent); }
.review .amt { font-weight: 900; font-size: 28px; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; word-break: break-word; }
.review .warn { margin: 4px 0 0; font-weight: 700; color: var(--verm); font-size: 14.5px; }
.review .row { display: flex; gap: 8px; margin-top: 4px; }
.review .row .btn.solid { flex: 1; }
.note { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); font-style: italic; }
.note .tick { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1px solid var(--hair-2); border-top-color: var(--brass); animation: sweep 1s linear infinite; }
.err { margin: 0; color: var(--verm); font-size: 13.5px; line-height: 1.45; }
.fine { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fine b { color: var(--ink); font-weight: 500; }
.fine a, .burnlist a { color: var(--brass); }
.honest { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); padding: 10px 12px; border-left: 2px solid var(--brass); background: color-mix(in srgb, var(--brass) 5%, transparent); }

.card.burns .facts { margin-bottom: 8px; }
.card.burns .fine { margin-top: 8px; }
.burnlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; font-size: 12px; }
.burnlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--hair); }
.burnlist b { font-weight: 500; }
.atelier-open { margin-top: 12px; }
body.at-open { overflow: hidden; }
body.ambient .atelier { display: none; }

/* ------------------------------------------------------------ responsive */
@media (min-width: 1101px) {
  .stage { align-items: start; }
  .dial { position: sticky; top: 12px; }
}
@media (min-width: 1500px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 740px); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .dial { max-width: min(720px, 100%); max-height: none; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 640px) {
  .bar { gap: 10px 12px; padding: 14px 16px 6px; }
  .brand h1 { font-size: 18px; }
  .brand .tag { font-size: 12px; }
  .tools { width: 100%; margin-left: 0; justify-content: space-between; }
  .brand-ca { order: 5; width: 100%; border-radius: 10px; }
  .brand-ca code { font-size: 10.5px; flex: 1; }
  .stage { padding: 0 12px 16px; gap: 14px; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .time .big { font-size: 38px; }
  .amb-bl { max-width: 44vw; }
  .atelier { padding: 18px 16px 28px; border-left: 0; }
  .at-head h2 { font-size: 26px; }
  .skins { grid-template-columns: minmax(0, 1fr); }
  .tools { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo .hand, .note .tick { animation: none; }
  body.ambient .stage { transition: none; }
}

/* ============================================================ written sections below the live dial */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.cx-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
body.ambient .cx-nav, body.ambient .cx, body.ambient .cx-foot { display: none; }

.cx-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cx-nav-in { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); height: 52px; display: flex; align-items: center; gap: 18px; }
.cx-nav-brand { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; flex: none; font-variation-settings: "opsz" 48; }
.cx-nav-links { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.cx-nav-links::-webkit-scrollbar { display: none; }
.cx-nav-links a { flex: none; padding: 7px 11px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.cx-nav-links a:hover { color: var(--brass-2); }
.cx-nav-links a[aria-current="true"] { color: var(--brass); border-bottom-color: var(--brass); }
.cx-nav a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.cx { position: relative; font-weight: 300; } /* the page loads Fraunces 300/500/700/900: 300 keeps long text light */
.cx b, .cx strong { font-weight: 700; }
.cx-foot { font-weight: 300; }
.cx-sec { position: relative; max-width: 1180px; margin: 0 auto; padding: 92px clamp(16px, 3vw, 40px) 4px; scroll-margin-top: 52px; }
.cx-sec + .cx-sec::before { content: ""; position: absolute; top: 44px; left: 50%; width: 120px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: 0.55; }
.cx-sec + .cx-sec::after { content: ""; position: absolute; top: 41px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); border: 1px solid var(--brass); background: var(--bg); }
.cx-kicker { margin: 0 0 12px; font: 500 10.5px var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); display: flex; align-items: baseline; gap: 14px; }
.cx-kicker span { font: italic 400 22px var(--serif); letter-spacing: 0; color: var(--brass-2); text-transform: none; min-width: 1.4em; }
.cx h2 { margin: 0 0 20px; font-weight: 700; font-size: clamp(28px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; max-width: 22ch; text-wrap: balance; }
.cx h3 { margin: 0 0 6px; font-weight: 700; font-size: 17px; line-height: 1.3; font-variation-settings: "opsz" 24; }
.cx p { line-height: 1.65; }
.cx-lede { margin: 0 0 32px; max-width: 64ch; font-size: clamp(17px, 1.7vw, 20px); font-weight: 300; color: var(--ink-2); line-height: 1.6 !important; }
.cx-sub { margin: 26px 0 0; max-width: 70ch; font-size: 15px; color: var(--muted); font-style: italic; }
.cx kbd, .cx code, .cx-foot code { font: 500 12px var(--mono); }
.cx kbd { padding: 1px 6px; border: 1px solid var(--hair-2); border-bottom-width: 2px; border-radius: 3px; color: var(--ink); }

/* shared bracketed card (same corners as the live cards) */
.cx-v, .cx-box, .cx-plan { position: relative; border: 1px solid var(--hair); background: var(--card); padding: 18px 20px; border-radius: 3px; min-width: 0; }
.cx-v::before, .cx-v::after, .cx-box::before, .cx-box::after, .cx-plan::before, .cx-plan::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--brass); }
.cx-v::before, .cx-box::before, .cx-plan::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cx-v::after, .cx-box::after, .cx-plan::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* I · values */
.cx-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair); max-width: 1000px; }
.cx-values li { display: grid; gap: 6px; padding: 20px 28px 22px 0; border-bottom: 1px solid var(--hair); }
.cx-values li:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--hair); }
.cx-values li:nth-child(even) { padding-left: 32px; }
.cx-values b { font: 500 10.5px var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.cx-values span { font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.cx-values li:last-child span { font-style: italic; font-size: 22px; font-weight: 300; }

/* II · legend */
.cx-legend { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cx-fig { margin: 0; position: sticky; top: 72px; }
.cx-dial { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.35)); }
.cx-fig figcaption { margin-top: 10px; font-size: 13px; font-style: italic; color: var(--muted); text-align: center; }
.d-plate { fill: var(--plate); }
.d-hair { fill: none; stroke: var(--hair); stroke-width: 0.8; } .d-hair2 { fill: none; stroke: var(--hair-2); stroke-width: 1; }
.d-tk { stroke: var(--ink); stroke-opacity: 0.32; stroke-width: 0.7; } .d-tk-mid { stroke: var(--ink); stroke-opacity: 0.55; stroke-width: 0.8; } .d-tk-major { stroke: var(--brass); stroke-width: 1.6; }
.d-prog { fill: none; stroke: var(--brass); stroke-opacity: 0.85; stroke-width: 3.5; }
.d-head { fill: var(--brass-2); }
.d-ok, .d-sk, .d-un, .d-fu, .d-lb { stroke-linecap: round; stroke-width: 1.3; }
.d-ok { stroke: var(--ink); stroke-opacity: 0.8; } .d-sk { stroke: var(--verm); stroke-width: 2.2; } .d-un { stroke: var(--unknown); } .d-fu { stroke: var(--future); } .d-lb { stroke: var(--brass); stroke-opacity: 0.65; }
.d-seg { stroke: var(--brass); stroke-opacity: 0.35; stroke-width: 0.8; }
.d-cur { fill: none; stroke: var(--brass); stroke-opacity: 0.16; stroke-width: 19; }
.d-pip { fill: none; stroke: var(--ink); stroke-opacity: 0.18; stroke-width: 2.2; } .d-pip.on { stroke: var(--brass-2); stroke-opacity: 1; }
.d-name { fill: none; stroke: var(--ink-2); stroke-opacity: 0.5; stroke-width: 3; stroke-linecap: round; } .d-name.past { stroke-opacity: 0.22; }
.d-tps { stroke: var(--celadon); stroke-opacity: 0.55; stroke-width: 3; } .d-tps.now { stroke: var(--brass); stroke-opacity: 1; }
.d-index { stroke: var(--brass); stroke-width: 1.4; }
.d-sec { fill: none; stroke: var(--brass); stroke-opacity: 0.5; stroke-width: 1; }
.d-cap { font: 500 8px var(--mono); letter-spacing: 0.3em; fill: var(--brass); text-anchor: middle; }
.d-ph { fill: var(--ink); fill-opacity: 0.16; } .d-ph.big { fill-opacity: 0.3; }
.d-call circle { fill: var(--bg); stroke: var(--brass-2); stroke-width: 1.2; }
.d-call text { font: 600 11px var(--mono); fill: var(--brass-2); text-anchor: middle; }
.cx-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: key; }
.cx-keys li { counter-increment: key; position: relative; padding: 16px 0 18px 46px; border-bottom: 1px solid var(--hair); display: grid; gap: 5px; }
.cx-keys li:first-child { border-top: 1px solid var(--hair); }
.cx-keys li::before { content: counter(key); position: absolute; left: 0; top: 15px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--brass-2); display: grid; place-items: center; font: 600 11px var(--mono); color: var(--brass-2); }
.cx-keys b { font-weight: 700; font-size: 17px; }
.cx-keys span { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.cx-keys .k { display: inline-block; width: 3px; height: 13px; margin: 0 5px 0 4px; vertical-align: -2px; }
.cx-keys .k.ok { background: var(--ink); } .cx-keys .k.sk { background: var(--verm); height: 16px; width: 4px; } .cx-keys .k.un { background: var(--unknown); height: 8px; vertical-align: 0; }
.cx-keys .k.fu { background: var(--future); } .cx-keys .k.lb { background: var(--brass); height: 16px; }

/* III · movement */
.cx-flow { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.cx-step { position: relative; display: grid; min-width: 0; }
.cx-step:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: 100%; width: 30px; height: 1px; background: repeating-linear-gradient(90deg, var(--brass) 0 4px, transparent 4px 8px); background-size: 16px 1px; animation: cx-flow-x 1.2s linear infinite; }
@keyframes cx-flow-x { to { background-position: 16px 0; } }
@keyframes cx-flow-y { to { background-position: 0 16px; } }
.cx-step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brass); font: italic 400 15px var(--serif); color: var(--brass-2); margin-bottom: 12px; }
.cx-box p { margin: 0; font-size: 15px; color: var(--ink-2); }
.cx-calls { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font: 11.5px var(--mono); color: var(--muted); line-height: 1.5; }
.cx-calls b { color: var(--ink); font-weight: 500; font-size: 12px; }
.cx-limits { border: 1px dashed var(--hair-2); padding: 20px 22px 8px; max-width: 920px; }
.cx-limits h3 { font: 500 10.5px var(--mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.cx-limits ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.cx-limits li { padding-bottom: 8px; }
.cx-limits li::marker { color: var(--brass); }

/* IV · built with */
.cx-tech { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.cx-tech div { padding: 18px 20px 22px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-width: 0; }
.cx-tech dt { font: 500 10.5px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.cx-tech dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* V · features */
.cx-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cx-plan { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.cx-plan header { display: grid; gap: 8px; }
.cx-plan h3 { margin: 0; font-size: 28px; font-variation-settings: "opsz" 96; }
.cx-tag { font: 500 10px var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.cx-plan.pro { border-color: var(--hair-2); background: linear-gradient(170deg, color-mix(in srgb, var(--brass) 9%, var(--card)), var(--card) 60%); }
.cx-plan.pro .cx-tag { color: var(--brass); }
.cx-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.cx-plan li { position: relative; padding-left: 20px; }
.cx-plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--brass); }
.cx-plan.pro li::before { background: var(--brass); }
.cx-plan li b { color: var(--ink); }
.cx-price { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--hair); display: grid; gap: 4px; }
.cx-price b { font-weight: 900; font-size: 26px; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; word-break: break-word; }
.cx-price span { font-size: 14px; color: var(--muted); font-style: italic; }
.cx[data-burn="live"] .if-soon, .cx[data-burn="soon"] .if-live { display: none; }

/* VI · coin */
.cx-burnflow { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: bf; border-top: 1px solid var(--hair); }
.cx-burnflow li { counter-increment: bf; position: relative; padding: 16px 20px 6px 0; display: grid; gap: 6px; align-content: start; }
.cx-burnflow li::before { content: counter(bf, upper-roman) "."; font: italic 400 18px var(--serif); color: var(--brass-2); }
.cx-burnflow li::after { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: var(--brass); }
.cx-burnflow b { font-size: 17px; }
.cx-burnflow span { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.cx-coin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.cx-card { display: grid; gap: 12px; align-content: start; padding: 20px 22px; }
.cx-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.cx-card > .btn { justify-self: start; }
.cx-ca { display: grid; gap: 10px; }
.cx-k { font: 500 10.5px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.cx-ca code { color: var(--ink); word-break: break-all; padding: 10px 12px; border: 1px solid var(--hair-2); background: var(--plate-2); line-height: 1.5; }
.cx-ca-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-ca.soon p { margin: 0; font-size: 15px; font-style: italic; color: var(--ink-2); }
.cx-honest { margin: 24px 0 0; max-width: 70ch; font-size: 16px; line-height: 1.6; color: var(--ink); padding: 14px 18px; border-left: 2px solid var(--brass); background: color-mix(in srgb, var(--brass) 6%, transparent); }

/* VII · safety */
.cx-safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.cx-safe > div { border-top: 1px solid var(--hair-2); padding-top: 14px; }
.cx-safe p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.65; }

/* VIII · faq */
.cx-faq { max-width: 880px; border-top: 1px solid var(--hair-2); }
.cx-faq details { border-bottom: 1px solid var(--hair); }
.cx-faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 500; font-size: 19px; font-variation-settings: "opsz" 36; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 24px var(--mono); color: var(--brass); transition: transform 0.2s; }
.cx-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.cx-faq summary:hover { color: var(--brass-2); }
.cx-faq summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.cx-faq p { margin: 0; padding: 0 0 20px; font-size: 15.5px; color: var(--ink-2); max-width: 70ch; }

/* footer */
.cx-foot { margin-top: 100px; border-top: 1px solid var(--hair-2); }
.cx-foot-in { max-width: 1180px; margin: 0 auto; padding: 30px clamp(16px, 3vw, 40px) 40px; display: grid; gap: 12px; color: var(--muted); font-size: 13px; }
.cx-foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cx-foot-brand b { color: var(--ink); font-size: 19px; font-weight: 700; }
.cx-foot-brand span { font-style: italic; }
.cx-foot p { margin: 0; line-height: 1.6; }
.cx-foot-coin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cx-foot-ca { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.cx-foot-ca > span { font: 600 10px var(--mono); letter-spacing: 0.16em; color: var(--brass); }
.cx-foot-ca code { color: var(--ink-2); word-break: break-all; min-width: 0; }
.cx-foot .btn { padding: 4px 10px; font-size: 11px; }
.cx-fine { font-style: italic; }

@media (max-width: 960px) {
  .cx-legend { grid-template-columns: minmax(0, 1fr); }
  .cx-fig { position: static; max-width: 400px; margin: 0 auto; width: 100%; }
  .cx-flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cx-step:not(:last-child)::after { top: 100%; left: 35px; width: 1px; height: 24px; background: repeating-linear-gradient(180deg, var(--brass) 0 4px, transparent 4px 8px); background-size: 1px 16px; animation-name: cx-flow-y; }
  .cx-safe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-burnflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cx-nav-brand { display: none; }
  .cx-nav-links { margin-left: 0; width: 100%; justify-content: space-between; }
  .cx-nav-links a { padding: 7px 4px; letter-spacing: 0.08em; font-size: 10.5px; }
  .cx-sec { padding-top: 72px; }
  .cx-sec + .cx-sec::before { top: 34px; } .cx-sec + .cx-sec::after { top: 31px; }
  .cx-values, .cx-plans, .cx-coin-grid, .cx-safe, .cx-burnflow { grid-template-columns: minmax(0, 1fr); }
  .cx-values li:nth-child(odd), .cx-values li:nth-child(even) { padding: 18px 0; border-right: 0; }
  .cx-keys li { padding-left: 40px; }
  .cx-plan { padding: 22px 18px; }
  .cx-burnflow { border-top: 0; }
  .cx-burnflow li { border-top: 1px solid var(--hair); padding-top: 14px; margin-bottom: 6px; }
  .cx-faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-step:not(:last-child)::after { animation: none; }
  .cx-faq summary::after { transition: none; }
}
