body { min-height: 100dvh; }
.ambient-orb { display: none; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
[hidden] { display: none !important; }
.screen { width: 100%; max-width: 1200px; margin: auto; gap: 20px; min-height: 65dvh; animation: none; }
.join-card { border-radius: 8px; }
.join-card h1 { letter-spacing: 0; }
.join-card input { border-radius: 6px; }
.session-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--panel); }
.session-bar span { overflow-wrap: anywhere; }
.connection-status { padding: 12px 24px; background: #563b0c; color: #fff; text-align: center; }
.controller-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(120px, auto)); flex: none; }
.ans-btn { border-radius: 8px; min-width: 0; min-height: 140px; }
.ans-btn[disabled] { cursor: default; opacity: .55; transform: none; }
.ans-btn .answer-text { font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.ans-btn .shape { width: 40px; height: 40px; flex-basis: 40px; }
.ans-yellow .shape, .ans-yellow .ans-shape { clip-path: none; border-radius: 50%; }
.ans-green .shape, .ans-green .ans-shape { clip-path: none; border-radius: 4px; }
.screen h1 { margin-bottom: 8px; }
#lobby-screen .nickname-display { font-size: 48px; }
#feedback-screen { text-align: center; }
#feedback-screen #points-earned { font-size: 26px; color: var(--text); }
#feedback-screen #current-score-feedback { order: -1; font-size: 14px !important; text-transform: uppercase; }
#game-screen { justify-content: space-between; padding-top: 32px !important; padding-bottom: 32px !important; }
#game-screen > div:first-child { max-width: 1100px; margin: 0 auto; }
#game-screen .controller-grid { max-width: 1100px; }
#live-question-text, #reading-question-text { font-size: 30px !important; line-height: 1.35; overflow-wrap: anywhere; border-radius: 8px !important; }
#live-question-text { min-width: 0; }
#reading-question-text { font-size: 40px !important; }
.status-msg, .nickname-display, #points-earned { overflow-wrap: anywhere; text-align: center; max-width: 100%; }
.status-icon { font-size: 64px; font-weight: 800; margin: 0; }
.standing-list { width: min(100%, 640px); display: flex; flex-direction: column; gap: 8px; }
.standing-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; border-bottom: 1px solid var(--border); background: var(--panel); border-radius: 6px; }
.standing-row strong { overflow-wrap: anywhere; }
.standing-row.is-me { outline: 2px solid var(--primary); }
.phase-number { font-size: 96px; font-weight: 800; line-height: 1.2; color: #60a5fa; font-variant-numeric: tabular-nums; }
.text-answer { display: flex; gap: 12px; width: min(100%, 640px); }
.text-answer input { margin: 0; min-width: 0; }
#live-text-submit { flex-shrink: 0; }
.host-container { padding-bottom: 110px; }
.host-container .question-text { font-size: 36px; padding: 24px; border-radius: 8px; width: 100%; overflow-wrap: anywhere; }
.host-container .answer-grid { width: 100%; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.host-container .answer-item { min-width: 0; border-radius: 8px; padding: 24px; font-size: 24px; overflow-wrap: anywhere; }
.host-container .answer-item span { min-width: 0; }
.host-container .answer-item .answer-stats { margin-left: auto; white-space: nowrap; font-size: 16px; }
#result-answer-grid { opacity: 1; transform: none; }
.join-code-box { border-radius: 8px; max-width: 100%; padding: 32px 48px; }
.join-code { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.participant-chip { border-radius: 6px; overflow-wrap: anywhere; }
.host-controls { z-index: 100; }
#version-tag { position: static !important; align-self: flex-end; margin: 6px 12px; font-size: 10px !important; }
.join-code-label { letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
#podium-list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end !important; width: min(100%, 850px); }
#podium-list .podium-row { width: 100%; min-width: 0; border-radius: 8px; flex-direction: column; justify-content: flex-start; gap: 16px; padding: 24px 16px; text-align: center; }
#podium-list .podium-row > div { text-align: center !important; overflow-wrap: anywhere; max-width: 100%; }
#podium-list .podium-row:nth-child(1) { order: 2; min-height: 270px; border-top: 5px solid #fbbf24; }
#podium-list .podium-row:nth-child(2) { order: 1; min-height: 230px; border-top: 5px solid #d1d5db; }
#podium-list .podium-row:nth-child(3) { order: 3; min-height: 200px; border-top: 5px solid #e8a56a; }
#podium-list .podium-rank { font-size: 40px; }
#podium-list .podium-row > div:nth-child(2) { font-size: 24px; flex: none !important; }
.host-error { color: #fbbf24; text-align: center; }
@media (max-width: 600px) {
  nav .logo { font-size: 16px; }
  .screen { padding: 20px 16px; }
  .screen h1, .screen h2 { font-size: 28px; }
  .ans-btn { min-height: 128px; padding: 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .ans-btn .answer-text { font-size: 18px; }
  .controller-grid { padding: 0; gap: 10px; }
  #live-question-text { font-size: 20px !important; padding: 16px !important; }
  #reading-question-text { font-size: 28px !important; padding: 24px !important; }
  #live-timer { font-size: 20px !important; padding: 12px !important; }
  .session-bar { padding: 14px 16px; font-size: 14px; }
  .host-container { padding: 24px 16px 110px; }
  .host-container .question-text { font-size: 26px; }
  .host-container .answer-item { flex-wrap: wrap; padding: 16px; gap: 12px; font-size: 18px; }
  .host-container .ans-shape { width: 30px; height: 30px; }
  .join-code { font-size: 56px; }
  .join-code-box { padding: 24px; }
  .text-answer { flex-direction: column; }
  #podium-list { gap: 8px !important; }
  #podium-list .podium-row { padding: 20px 8px; }
  #podium-list .podium-row > div:nth-child(2) { font-size: 18px; }
}
