/* Celestial is the dark companion to the unchanged ink-and-paper edition. */
:root[data-theme=dark]{--bg:#080E1B;--panel:#111D33;--card:#0E182B;--ink:#F1EDE2;--muted:#ADBBD1;--line:#2B3B55;--gold:#E8D5A2;--gold-text:#E8D5A2;color-scheme:dark}
:root[data-theme=dark] .tomorrow-hero{background:#0B1428 url('assets/celestial-sky.svg') center/cover no-repeat;border-color:#2B3B55}
:root[data-theme=dark] .tomorrow-hero .hero-word{color:#F1EDE2}
:root[data-theme=dark] .tomorrow-hero .hero-word::before{background:transparent}
:root[data-theme=dark] .tomorrow-hero .spec-label{background:transparent;color:#ADBBD1}
.pattern-dark{background:#0B1428 url('assets/celestial-sky.svg') center/cover no-repeat;color:#F1EDE2;border-color:#2B3B55}
:root[data-theme=dark] .frame-display{background:#0B1428 url('assets/celestial-sky.svg') center/cover no-repeat;color:#F1EDE2}
:root[data-theme=dark] .frame-disc{background:#142542;border:1px solid #34496B}
:root[data-theme=dark] .frame-beat{color:#E8D5A2}
:root[data-theme=dark] .idle-stage{background:#0B1428}
:root[data-theme=dark] .cartoon-cast .art{background:color-mix(in srgb,var(--character-main) 16%,#0B1428)}
:root[data-theme=dark] .hello-stage{background:#0B1428 url('assets/celestial-sky.svg') center/cover no-repeat}
:root[data-theme=dark] .web-identity{background:#142542;color:#F1EDE2}
:root[data-theme=dark] .story-line{background:#0E182B;color:#F1EDE2;border:1px solid #2B3B55}
:root[data-theme=dark] .story-footer span{background:#0E182B;color:#F1EDE2}
:root[data-theme=dark] .story-progress span{background:#E8D5A2}
:root[data-theme=dark] .app-ink{background:#0B1428 url('assets/celestial-sky.svg') center/cover no-repeat;color:#F1EDE2}
.celestial-tokens{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.celestial-tokens button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;border-radius:10px;min-height:112px;padding:18px;background:var(--chip);color:var(--chip-text);border:1px solid #2B3B55}.celestial-tokens b{font-weight:500}.celestial-tokens code{font-size:12px}.celestial-caption{font-size:14px;color:var(--muted);margin-top:18px;max-width:65ch}
@media(max-width:680px){.celestial-tokens{grid-template-columns:repeat(2,1fr)}.celestial-tokens button{padding:14px;min-height:100px}}
@media print{.celestial-tokens{break-inside:avoid}.pattern-dark{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media(max-width:600px){:root[data-theme=dark] .tomorrow-hero{background-size:auto 50%;background-position:right top;background-repeat:no-repeat;background-color:#0B1428}}
