/* Player game — mobile-first layouts following PDF pages 21–26. */

.app {
  width: 100%; max-width: 560px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  padding: calc(20px + var(--safe-top)) calc(20px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(20px + var(--safe-left));
  display: flex; flex-direction: column;
}
.screen { flex: 1; display: flex; flex-direction: column; gap: 20px; animation: fade-up var(--t-med) var(--ease) both; }
.screen:focus { outline: none; }
.push { margin-top: auto; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.logo { height: 34px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.event-label { font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.audio-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 0.85rem; color: var(--muted); white-space: nowrap; flex: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.audio-toggle svg { width: 18px; height: 18px; }
.audio-toggle[aria-pressed='true'] { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.audio-toggle:hover { border-color: var(--blue); }

/* Join (p.21) */
.hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); margin-top: 10px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; max-width: 30ch; }
.join-form { display: grid; gap: 18px; }
.offices-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.offices-choice legend { padding: 0; margin-bottom: 8px; }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.office-option { position: relative; }
.office-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.office-option span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: 1.05rem;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.office-option span svg { width: 18px; height: 18px; display: none; }
.office-option input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.office-option input:checked + span svg { display: block; }
.office-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.office-option:hover span { border-color: var(--blue); }
.lobby-foot { display: grid; gap: 14px; }
.lobby-count { color: var(--muted); font-size: 0.95rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Notices */
.notice { border-radius: var(--r-lg); padding: 16px 18px; background: var(--blue-soft); color: var(--navy); display: grid; gap: 6px; }
.notice strong { font-size: 1.05rem; }
.notice.warn { background: #fff4e0; }
.notice.error { background: var(--danger-bg); color: var(--danger); }

/* Onboarding */
.onboard h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin-top: 8px; }
.onboard .intro { color: var(--muted); font-size: 1.08rem; margin-top: 10px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 6px; align-content: start; }
.step-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.step-icon svg { width: 20px; height: 20px; }
.step h2 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0; line-height: 1.25; }
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }
.prenotes { list-style: none; margin: 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--blue-soft); display: grid; gap: 8px; font-size: 0.95rem; }
.prenotes li { display: flex; gap: 10px; align-items: flex-start; }
.prenotes svg { flex: none; width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.player-pill { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-pill .who { line-height: 1.2; min-width: 0; }
.player-pill .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-pill .who small { color: var(--muted); display: block; }
.onboard-actions { display: grid; gap: 8px; }

/* Lead-in */
.lead-in { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; gap: 10px; }
.lead-in .count { font-family: var(--font-display); font-weight: 800; font-size: 6rem; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.lead-in .count.tick { animation: pop 420ms var(--ease); }
