/* Player phone screen */
body.player { min-height: 100dvh; font-size: 17px; }
.p-shell { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; max-width: 560px; margin: 0 auto; padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); }
.p-top { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0 0.6rem; gap: 0.5rem; }
.p-top .wordmark { font-size: 1.25rem; }
.chip { font-family: var(--display); font-size: 0.95rem; color: var(--mute); white-space: nowrap; }
.chip b { color: var(--gold); font-weight: 600; font-size: 1.1rem; }
.p-main { display: grid; align-content: center; gap: 1.2rem; padding: 0.5rem 0 1rem; }
.p-main.top { align-content: start; }

.p-hero { text-align: center; display: grid; gap: 0.7rem; justify-items: center; }
.p-hero h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); line-height: 1; }
.p-hero .sub { color: var(--mute); font-size: 1.05rem; margin: 0; max-width: 30ch; }
.p-hero .badge { width: 5.5rem; height: 5.5rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 2.6rem; font-weight: 700; }
.badge.gold { border: 3px solid var(--gold); color: var(--gold); }
.badge.ok { border: 3px solid var(--ok); color: var(--ok); }
.badge.out { border: 3px solid var(--out); color: var(--out); }
.badge.mute { border: 3px solid var(--line); color: var(--mute); }

.join-form { display: grid; gap: 1rem; }
.join-form h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.join-form .lead { color: var(--mute); margin: 0; }
.join-form .btn { min-height: 56px; font-size: 1.15rem; }
.err-line { color: #FFC4C8; font-size: 0.95rem; min-height: 1.3em; margin: 0; }

.q-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); color: var(--gold); font-size: 1.05rem; letter-spacing: 0.04em; }
.q-head .time { font-size: 1.6rem; color: var(--white); font-variant-numeric: tabular-nums; }
.q-head .time.crit { color: var(--out); }
.timebar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.timebar i { display: block; height: 100%; background: var(--gold); width: 100%; transform-origin: left; }
.timebar.crit i { background: var(--out); }
.p-question { font-size: clamp(1.15rem, 5vw, 1.45rem); font-weight: 600; line-height: 1.35; margin: 0; }
.p-question.long { font-size: clamp(1.02rem, 4.4vw, 1.25rem); }

.answers { display: grid; gap: 0.7rem; }
.ans {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.8rem; align-items: center; text-align: left;
  min-height: 64px; padding: 0.7rem 0.9rem; border-radius: var(--r-md); border: 2px solid var(--line);
  background: var(--navy-2); color: var(--white); cursor: pointer; font-size: 1.05rem; font-weight: 600; line-height: 1.3;
}
.ans .l { font-family: var(--display); font-size: 1.4rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--blue); color: var(--blue); }
.ans[aria-pressed="true"] { border-color: var(--blue); background: #1B3270; }
.ans[aria-pressed="true"] .l { background: var(--blue); color: #061026; }
.ans:disabled { cursor: default; }
.lock-btn { min-height: 60px; font-size: 1.2rem; }

.locked-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; text-align: center; display: grid; gap: 0.4rem; background: rgba(19,33,74,0.5); }
.locked-card .big { font-family: var(--display); font-size: 1.8rem; letter-spacing: 0.04em; }
.locked-card .your { font-size: 1.05rem; color: var(--mute); }
.locked-card .your b { color: var(--white); }

.choice { display: grid; gap: 0.8rem; }
.choice-btn {
  display: grid; gap: 0.2rem; text-align: left; padding: 1.1rem 1.2rem; min-height: 88px;
  border-radius: var(--r-md); border: 2px solid var(--line); background: var(--navy-2); color: var(--white); cursor: pointer;
}
.choice-btn .t { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.choice-btn .s { color: var(--mute); font-size: 0.95rem; }
.choice-btn[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: rgba(233,185,73,0.08); }
.fine { font-size: 0.8rem; color: var(--mute); line-height: 1.45; margin: 0; }

.winner-list { display: grid; gap: 0.4rem; font-family: var(--display); font-size: 1.6rem; text-align: center; }
.veil { position: fixed; inset: 0; background: rgba(4, 8, 18, 0.9); display: grid; place-items: center; z-index: 30; text-align: center; padding: 2rem; }
.veil h2 { font-size: 2.4rem; }
