:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
html, body { margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: #05040a; color: #f6eef1; }
[hidden] { display: none !important; }

.openbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #141218; border-bottom: 1px solid #262330; font-size: 14px; }
.body { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 16px; box-sizing: border-box; }
.kicker { margin: 8px 0 6px; color: #ffc46b; font: 12px ui-monospace, Menlo, monospace; letter-spacing: .2em; }
h1 { margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.note { margin: 12px 0 0; font-size: 12px; color: #9a8f95; }
.error { font-weight: 600; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border: 0; border-radius: 24px; background: #f6eef1; color: #160a10; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { display: inline-flex; width: auto; height: 36px; padding: 0 14px; background: rgba(255, 255, 255, .1); color: #f6eef1; font-size: 14px; white-space: nowrap; }
/* As the prototype: holding it up is the gold call to action, making one back the quieter one (AC-462). */
#fullscreen { margin-top: 16px; background: #ffc46b; color: #160a10; }
.btn.back { background: rgba(255, 255, 255, .1); color: #f6eef1; }

.marquee { position: relative; overflow: hidden; background: #000; }
.preview { aspect-ratio: 16 / 9; border-radius: 12px; }
.full { position: fixed; inset: 0; z-index: 10; cursor: pointer; }
/* pre: one line with every space kept, as the app's Canvas.drawText shows it. */
.track { position: absolute; top: 0; left: 0; white-space: pre; font-weight: 800; unicode-bidi: plaintext; will-change: transform; }
.hint { position: absolute; top: 8px; right: 8px; font-size: 12px; color: #888; }

.dl { position: sticky; bottom: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: #05040a; border-top: 1px solid #1d1a24; }
.center { margin: 0; text-align: center; font-size: 14px; color: #9a8f95; }
