@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #F6F1E9; --surface: #FFFDF9; --surface-2: #EFE7DA; --line: #E2D7C4;
  --ink: #1E2740; --muted: #5B6075; --gold: #B08D57; --gold-soft: #EAD9B8; --blush: #F1DED5;
  --good: #3D7A5C; --warn: #B0563E;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, system-ui, 'Segoe UI', sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(30,39,64,.05), 0 8px 24px -12px rgba(30,39,64,.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 2.4rem; } h2 { font-size: 1.7rem; } h3 { font-size: 1.3rem; }
p { margin: 0; }
.grow { flex: 1; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.err { color: var(--warn); font-size: .9rem; margin-top: 10px; }
.label, .lbl { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.lbl .opt { color: var(--muted); letter-spacing: .05em; text-transform: none; font-weight: 500; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 8px; }

.page { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; min-height: 100vh; }
.top { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 600 1.35rem/1 var(--serif); letter-spacing: .01em; }
.glass-mark { color: var(--ink); }
.link { background: none; border: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; padding: 4px 0; font-size: .95rem; }
.link.small { font-size: .85rem; color: var(--muted); }
.link.center { display: block; margin: 18px auto 0; }
.days-pill { background: var(--gold-soft); color: var(--ink); border-radius: 99px; padding: 5px 12px; font-size: .8rem; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 11px 20px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .08s, background .15s; min-height: 44px; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.big { padding: 15px 28px; font-size: 1.05rem; }
.btn.small { padding: 7px 14px; font-size: .85rem; min-height: 36px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.light { color: #fff; border-color: rgba(255,255,255,.3); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #E05A4F; display: inline-block; }
.btn.primary .dot { box-shadow: 0 0 0 3px rgba(224,90,79,.25); }

.field { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px 14px; font-size: 1rem; outline: none; transition: border .15s, box-shadow .15s; }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.field.area { resize: none; min-height: 96px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font-size: .9rem; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.busy { background: var(--gold-soft); }
.chip:disabled { opacity: .5; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: .95rem; }
.toggle input { width: 20px; height: 20px; accent-color: var(--ink); }

/* Home */
.hero { padding: 28px 0 10px; text-align: center; }
.eyebrow { font: 600 .74rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1.02; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.lede { max-width: 30em; margin: 20px auto 28px; color: var(--muted); font-size: 1.08rem; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.steps { display: grid; gap: 14px; margin: 44px 0 10px; text-align: left; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.step .num { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 600 1.2rem/1 var(--serif); }
.step b { font: 600 1.3rem/1.2 var(--serif); } .step p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.home { padding-top: 12px; }
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toast-list { display: grid; gap: 12px; }
.toast-card { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.tc-main { flex: 1; display: grid; gap: 3px; } .tc-title { font: 600 1.4rem/1.15 var(--serif); } .tc-sub { color: var(--muted); font-size: .88rem; }
.tc-days { display: grid; text-align: center; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.tc-days b { font: 600 1.8rem/1 var(--serif); color: var(--gold); letter-spacing: 0; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 56px; }
.empty { text-align: center; padding: 48px 12px; display: grid; gap: 18px; justify-items: center; color: var(--muted); }

/* Toast view */
.toast-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 14px; }
.toast-head h1 { flex: 1; font-size: 2rem; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 99px; padding: 4px; margin-bottom: 22px; position: sticky; top: 8px; z-index: 5; }
.tab { flex: 1; border: 0; background: transparent; border-radius: 99px; padding: 10px 6px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h2 { margin-bottom: 8px; }

/* Write */
.start-choice, .choice-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .start-choice { grid-template-columns: 1fr 1fr; } .choice-grid { grid-template-columns: 1fr 1fr 1fr; } }
.choice { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.choice b { font: 600 1.45rem/1.15 var(--serif); } .choice span { color: var(--muted); font-size: .92rem; }
.choice:hover { border-color: var(--gold); }
.basics h2 { margin-bottom: 18px; }
.fieldset { margin-bottom: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.ask-nav { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

.interview { display: grid; gap: 14px; }
.iv-intro { background: var(--blush); border-radius: var(--r); padding: 16px 18px; font-size: .95rem; display: grid; gap: 6px; justify-items: start; }
.chat { display: grid; gap: 10px; padding: 6px 0; }
.bubble { max-width: 86%; padding: 13px 16px; border-radius: 18px; white-space: pre-wrap; }
.bubble.q { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; font: 500 1.22rem/1.35 var(--serif); justify-self: start; }
.bubble.q.current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.12); }
.bubble.a { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; justify-self: end; font-size: .95rem; }
.bubble.a.skipped { background: var(--surface-2); color: var(--muted); font-style: italic; }
.bubble .via { margin-right: 6px; opacity: .8; }
.typing { display: flex; gap: 5px; padding: 16px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.composer .field.area { min-height: 72px; background: var(--bg); }
.voice .mic { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; padding: 16px; font-weight: 600; font-size: 1.02rem; min-height: 60px; }
.voice .mic.on { background: #2B3657; flex-wrap: wrap; }
.voice .mic.on .meter { width: 100%; height: 26px; margin: 0; }
.voice .mic.busy { background: var(--gold-soft); color: var(--ink); }
.write-bar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--gold); border-radius: 99px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); font-size: .85rem; color: var(--muted); }

.editor { display: grid; gap: 18px; }
.ed-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .88rem; color: var(--muted); }
.ed-stats b { color: var(--ink); font-weight: 600; }
.ed-target { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gauge { position: relative; width: 90px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: visible; }
.gauge i { position: absolute; inset: 0 auto 0 0; background: var(--good); border-radius: 3px; }
.gauge.over i { background: var(--warn); }
.gauge em { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink); }
.script { width: 100%; min-height: 50vh; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 22px; font: 500 1.28rem/1.6 var(--serif); resize: none; outline: none; box-shadow: var(--shadow); }
.script:focus { border-color: var(--gold); }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.check i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: .75rem; flex: none; }
.check.ok { color: var(--ink); } .check.ok i { background: var(--good); border-color: var(--good); color: #fff; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.version { border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; gap: 8px; justify-items: start; }
.v-head { display: flex; gap: 10px; width: 100%; font-size: .85rem; } .v-head span { color: var(--muted); margin-left: auto; }
.version p { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); }

/* Practice */
.rec-card .rec-btn, .day-card .rec-btn { width: 100%; margin-top: 6px; }
.day-card .btn.ghost { width: 100%; margin-top: 10px; }
.day-tips { color: var(--muted); font-size: .92rem; padding-left: 20px; margin: 14px 0; }
.day-tips li { margin: 4px 0; }
.working { padding: 30px 22px; }
.progress-label { font: 500 1.2rem/1.3 var(--serif); margin-bottom: 12px; }
.progress .bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.recording { position: fixed; inset: 0; background: var(--ink); color: #fff; z-index: 50; display: flex; flex-direction: column; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.rec-top { display: flex; justify-content: space-between; align-items: center; max-width: 760px; width: 100%; margin: 0 auto; }
.live { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.live .dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.clock { font: 600 2rem/1 var(--serif); } .clock small { font-size: 1rem; opacity: .6; } .clock.over { color: #F2A48F; }
.meter { display: flex; align-items: center; gap: 3px; height: 40px; max-width: 760px; width: 100%; margin: 14px auto; }
.meter i { flex: 1; background: rgba(255,255,255,.15); border-radius: 2px; transition: background .1s; }
.meter i.on { background: var(--gold); }
.rec-script { flex: 1; overflow-y: auto; max-width: 760px; width: 100%; margin: 0 auto; font: 500 1.55rem/1.55 var(--serif); padding: 8px 4px 30px; }
.rec-script p { margin-bottom: 1em; }
.rec-memory { flex: 1; display: grid; place-items: center; font: italic 500 1.6rem/1.3 var(--serif); opacity: .75; text-align: center; padding: 20px; }
.rec-actions { display: flex; gap: 12px; justify-content: space-between; max-width: 760px; width: 100%; margin: 0 auto; flex-wrap: wrap; }
.rec-actions .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.rec-actions .btn.primary { background: #fff; color: var(--ink); flex: 1; min-width: 140px; }
.runs { margin-top: 8px; } .runs h3 { margin-bottom: 10px; }
.run-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.run-n { font: 600 1.25rem/1 var(--serif); color: var(--muted); min-width: 34px; } .run-n.gold { color: var(--gold); font-size: 1.6rem; }
.run-main { flex: 1; display: grid; } .run-main b { font: 600 1.2rem/1.2 var(--serif); } .run-main span { color: var(--muted); font-size: .85rem; }
.run-when { color: var(--muted); font-size: .8rem; }
.trend-head { display: flex; justify-content: space-between; align-items: baseline; }
.legend { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; display: inline-block; border-radius: 2px; } .lt { background: var(--ink); } .lm { background: var(--gold); }
.trend-svg { width: 100%; height: 100px; margin: 8px 0; overflow: visible; }
.trend-svg .target { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; }
.trend-svg .pl-time { fill: none; stroke: var(--ink); stroke-width: 2; }
.trend-svg .pl-match { fill: none; stroke: var(--gold); stroke-width: 2; }
.trend-svg .pt-time { fill: var(--ink); }

/* Sheets */
.sheet-wrap { position: fixed; inset: 0; background: rgba(30,39,64,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); width: 100%; max-width: 620px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; }
.sheet.wide { max-width: 720px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }
.sheet-head { display: flex; align-items: center; padding: 18px 20px 10px; } .sheet-head h2 { flex: 1; }
.sheet-head .x { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.sheet-body { overflow-y: auto; padding: 6px 20px max(24px, env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.sheet-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
body.sheet-open { overflow: hidden; }
.big-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.bs { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.bs b { font: 600 2rem/1 var(--serif); } .bs span { color: var(--muted); font-size: .78rem; }
.bs.good { border-left: 3px solid var(--good); } .bs.warn { border-left: 3px solid var(--warn); }
.player { width: 100%; }
.note { background: var(--gold-soft); border-radius: 12px; padding: 14px; display: grid; gap: 10px; justify-items: start; font-size: .92rem; }
.tips { display: grid; gap: 10px; }
.tip { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.tip i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .8rem; }
.tip.good i { background: var(--good); color: #fff; } .tip.bad i { background: var(--warn); color: #fff; }
.coverage h3, .adlibs h3, .lines h3 { margin-bottom: 8px; }
.legend2 { display: flex; gap: 12px; font-size: .78rem; margin-bottom: 10px; }
.legend2 span { padding: 2px 8px; border-radius: 6px; }
.cov-text { font: 500 1.15rem/1.65 var(--serif); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.said { color: var(--ink); } .changed { background: var(--gold-soft); } .skipped { background: #F5D3CA; text-decoration: line-through; text-decoration-color: rgba(176,86,62,.5); }
.legend2 .said { background: var(--surface-2); }
.adlibs p { font-family: var(--serif); font-size: 1.08rem; margin: 4px 0; }
.transcript summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.transcript p { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.filler { background: #F5D3CA; color: var(--warn); border-radius: 4px; padding: 0 2px; }

/* Cards */
.cards-home { display: grid; gap: 16px; }
.card-preview { display: grid; gap: 14px; }
@media (min-width: 640px) { .card-preview { grid-template-columns: 1fr 1fr; } }
.cue-card, .print-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 22px 22px; font: 500 1.15rem/1.5 var(--serif); box-shadow: var(--shadow); background-image: linear-gradient(transparent 27px, rgba(176,141,87,.12) 28px); background-size: 100% 28px; background-position: 0 30px; }
.cue-card::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; border-top: 1px solid rgba(224,90,79,.35); }
.cue-n { position: absolute; top: 4px; right: 10px; font: 600 .72rem/1 var(--sans); color: var(--muted); letter-spacing: .1em; }
.cue-card ul, .deck-card ul, .print-card ul { margin: 0; padding-left: 18px; }
.deck { position: fixed; inset: 0; z-index: 50; background: var(--ink); display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); color: #fff; user-select: none; }
.deck-top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; opacity: .9; }
.deck-card { flex: 1; margin: 16px auto; width: 100%; max-width: 720px; background: #FFFDF6; color: var(--ink); border-radius: 10px; padding: 34px 26px; display: flex; flex-direction: column; justify-content: center; position: relative; font-family: var(--serif); font-weight: 500; line-height: 1.45; overflow-y: auto; }
.deck-card ul { font-size: 1.9rem; } .deck-card li { margin: 10px 0; }
.deck-card.inline { flex: 1; color: var(--ink); font-size: 1.5rem; }
.deck-end { margin-top: 24px; font: italic 500 1.2rem/1 var(--serif); color: var(--gold); text-align: center; }
.deck-dots { display: flex; gap: 6px; justify-content: center; } .deck-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); } .deck-dots i.on { background: var(--gold); }
.prompter { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; display: flex; flex-direction: column; }
.pr-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: #111; font-size: .85rem; }
.pr-bar label { display: flex; align-items: center; gap: 6px; }
.pr-bar label button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #444; background: #1c1c1c; color: #fff; font-size: 1.1rem; line-height: 1; }
.pr-bar .mir input { accent-color: var(--gold); }
.pr-text { flex: 1; overflow-y: auto; padding: 0 7vw; font-family: var(--serif); font-weight: 500; line-height: 1.45; scrollbar-width: none; }
.pr-text::-webkit-scrollbar { display: none; }
.pr-text.mirror { transform: scaleX(-1); }
.pr-text p { margin: 0 0 1em; }
.pr-pad { height: 40vh; }
.pr-end { color: var(--gold); font-style: italic; }
.pr-line { position: fixed; left: 0; right: 0; top: 42%; height: 0; border-top: 2px solid rgba(176,141,87,.5); pointer-events: none; }
.pr-count { position: fixed; inset: 0; display: grid; place-items: center; font: 600 9rem/1 var(--serif); color: var(--gold); pointer-events: none; }
.pr-go { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--gold); color: #000; border: 0; border-radius: 99px; padding: 14px 40px; font-weight: 700; font-size: 1.05rem; }
.print-only { display: none; }

/* The day */
.room { display: grid; justify-items: center; gap: 6px; }
.room-dial { position: relative; width: 220px; }
.room-dial svg { width: 100%; display: block; }
.dial-bg, .dial-fg { fill: none; stroke-width: 9; stroke-linecap: round; } .dial-bg { stroke: var(--surface-2); } .dial-fg { stroke: var(--gold); transition: stroke-dasharray .8s; }
.room-dial b { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 600 3.4rem/1 var(--serif); }
.room-word { font-style: italic; font-weight: 500; color: var(--gold); font-size: 1.6rem; }
.wave { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; } .wave rect { fill: var(--ink); opacity: .55; }
.wave-hit { position: absolute; top: 0; bottom: 0; background: var(--gold-soft); }
.wave-hit.t-big, .wave-hit.t-roll { background: #E5C792; } .wave-hit.t-applause { background: #CFE1D5; }
.wave-cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--warn); }
.best { background: var(--surface); border: 1px solid var(--gold); border-radius: 12px; padding: 16px; display: grid; gap: 6px; justify-items: start; }
.best p { font: italic 500 1.3rem/1.4 var(--serif); }
.line-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
.line-row .lt { flex: 1; font-family: var(--serif); font-size: 1.05rem; } .line-row .at { color: var(--muted); font-size: .8rem; }
.tier { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.tier.t-big, .tier.t-roll { background: var(--gold-soft); } .tier.t-applause { background: #CFE1D5; }
.card-img { width: 100%; max-width: 360px; justify-self: center; border-radius: 8px; box-shadow: var(--shadow); }

/* Help */
.help { padding-top: 10px; display: grid; gap: 10px; justify-items: start; }
.help h1 { margin-bottom: 10px; }
.qa { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.qa summary { cursor: pointer; font: 600 1.2rem/1.3 var(--serif); }
.qa p { margin-top: 10px; color: var(--muted); }
.snack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

@media print {
  body { background: #fff; }
  .page > *:not(.tab-body), .tab-body > .cards-home > *:not(.print-only) { display: none !important; }
  .print-only { display: block; }
  .print-card { width: 6in; height: 4in; page-break-inside: avoid; break-inside: avoid; margin: 0 auto .3in; box-shadow: none; border: 1px dashed #999; font-size: 15pt; overflow: hidden; }
  .print-card ul { font-size: 18pt; }
}

/* Hear it first */
.hear { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--blush); border: 0; border-radius: 12px; padding: 14px 16px; margin: 16px 0 4px; }
.hear-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; padding-left: 3px; }
.hear b { display: block; font: 600 1.2rem/1.2 var(--serif); } .hear small { color: var(--muted); font-size: .85rem; }
.voices .chips { margin-bottom: 14px; }
.listen-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listen-bar .speed { margin: 0; } .listen-bar .speed .chip { padding: 6px 11px; font-size: .8rem; }
.listen-text { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font: 500 1.25rem/1.6 var(--serif); max-height: 46vh; overflow-y: auto; }
.listen-text p { margin-bottom: .9em; }
.listen-text .w { transition: color .15s, background .15s; border-radius: 4px; }
.listen-text .w.past { color: var(--muted); }
.listen-text .w.on { background: var(--gold-soft); color: var(--ink); }
