: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; }
}
