#app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { font-weight: 800; display: flex; align-items: center; gap: .5em; font-size: 1.05rem; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 20px 0 40px; }
.screen h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.bigicon { font-size: 3.4rem; line-height: 1; }
#joinForm { display: grid; gap: 14px; width: min(360px, 100%); margin-top: 8px; }
.codebox { text-align: center; font-size: 2.4rem !important; letter-spacing: .3em; font-weight: 800; text-transform: uppercase; min-height: 76px !important; border-width: 2px !important; border-radius: 16px !important; padding-left: .3em !important; }
.err { color: var(--danger); font-weight: 600; min-height: 1.4em; margin: 0; }
.anon { font-size: .88rem; color: var(--ink-3); margin-top: 18px; }

.q { justify-content: flex-start; align-items: stretch; text-align: left; padding-top: 6px; }
.qtext { font-size: clamp(1.35rem, 4.2vw, 2rem) !important; font-weight: 750; margin: 10px 0 6px; overflow-wrap: anywhere; }
.choices { display: grid; gap: 12px; }
@media (min-width: 640px) { .choices.four { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; min-height: 68px; padding: 12px 16px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.15rem; font-weight: 650; box-shadow: var(--shadow);
  transition: border-color .12s, background .12s, transform .06s; overflow-wrap: anywhere; }
.choice .letter { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 12px; }
.choice:hover { border-color: var(--c); }
.choice:active { transform: scale(.99); }
.choice.picked { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.choice.picked::after { content: "✓"; margin-left: auto; font-weight: 900; color: var(--c); font-size: 1.4rem; }
.choice:disabled { cursor: default; }
.choice.dim { opacity: .45; }
.choice.correct { border-color: var(--good); }
.openform { display: grid; gap: 10px; }
.openform textarea { font-size: 1.2rem; min-height: 120px; border-width: 2px; border-radius: 16px; padding: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.small { font-size: .85rem; }
.sent { background: var(--good-soft); color: var(--good); font-weight: 700; border-radius: 12px; padding: .7em 1em; text-align: center; margin: 8px 0 0; }

.timer { position: relative; height: 34px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.timer .bar { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); transition: width 1s linear; }
.timer span { position: relative; }
.timer.low .bar { background: var(--warn-soft); }
.timer.low { color: var(--warn); }
.reveal { font-weight: 700; font-size: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8em 1.1em; margin: 6px 0; }
