:root {
  color-scheme: dark;
  --ink: #f9f3ff;
  --muted: #c2b7d7;
  --accent: #fbc477;
  --lilac: #d9c9ff;
  --line: #534466;
  --surface: #241d36;
  font-family: system-ui, sans-serif;
  background: #15122a;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100dvh; margin: 0; background: radial-gradient(ellipse at 85% 0%, #422958 0, transparent 35rem), radial-gradient(ellipse at 0% 65%, #262444 0, transparent 42rem); }
.masthead, main, footer { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.brand, .tag, .eyebrow, footer { font-size: .72rem; letter-spacing: .15em; font-weight: 800; }
.brand { text-decoration: none; color: var(--ink); display: inline-flex; gap: .7rem; align-items: center; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .65rem; color: var(--lilac); }
main { padding-block: clamp(1.4rem, 5vw, 3.75rem) 1rem; }
.card { border: 1px solid var(--line); border-radius: 1.5rem; background: var(--surface); padding: clamp(1rem, 4vw, 2rem); margin-bottom: 1rem; box-shadow: 0 18px 42px #09071740; min-width: 0; }
.intro, #player > * { max-width: 40rem; margin-inline: auto; }
.intro { background: radial-gradient(ellipse at 100% 0%, #543668 0, transparent 65%), var(--surface); }
.eyebrow { color: var(--lilac); margin: 0 0 .65rem; }
h1, h2 { margin: 0 0 .6rem; font-family: Georgia, serif; font-weight: 500; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.45rem, 8vw, 5rem); line-height: 1; letter-spacing: -.055em; }
h1 span, footer span { color: var(--accent); }
h2 { font-size: clamp(1.5rem, 4vw, 2.45rem); line-height: 1.12; letter-spacing: -.025em; white-space: pre-wrap; }
p { color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
form, .stack { display: grid; gap: .85rem; }
.intro form { margin-top: 1.5rem; }
label { display: grid; gap: .4rem; font-weight: 650; }
input, textarea, select, button { font: inherit; color: inherit; }
input:not([type=radio],[type=checkbox]), textarea, select { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: .75rem; background: #151124; padding: .72rem .85rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex: none; }
textarea { resize: vertical; }
small { font-size: .8rem; color: var(--muted); font-weight: 400; }
button { min-height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: .7rem; padding: .55rem .9rem; background: #37294c; font-weight: 750; }
button:hover:not(:disabled) { border-color: var(--lilac); }
button:disabled { opacity: .62; cursor: default; }
button.primary { background: var(--accent); color: #231a36; border-color: transparent; }
button.primary span { margin-left: .35rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
.actions, .check, .row, .heading { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.row, .heading { justify-content: space-between; }
.row { border-top: 1px solid var(--line); padding: .65rem 0; overflow-wrap: anywhere; }
.row:last-child { padding-bottom: 0; }
.row p { margin: .3rem 0; white-space: pre-wrap; }
.room-code { font: 800 clamp(1.35rem, 5vw, 2.65rem) ui-monospace, monospace; letter-spacing: .12em; color: var(--accent); }
.photo { display: block; width: 100%; max-height: min(50dvh, 32rem); object-fit: contain; background: #151124; border-radius: .9rem; margin: .85rem 0; }
.option { border: 1px solid var(--line); border-radius: .85rem; display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; min-height: 50px; cursor: pointer; overflow-wrap: anywhere; }
.option:has(:checked) { background: #463258; border-color: var(--accent); }
.pill { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 800; }
.notice { max-width: 40rem; padding: .7rem .9rem; border-radius: .7rem; background: #572c48; color: var(--ink); margin: 0 auto 1rem; }
footer { color: var(--muted); border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; }
footer span { margin: 0 .45rem; }
@media (max-width: 730px) { .columns { grid-template-columns: 1fr; } }
