.classroom {
  --arena-red: #e55a59;
  --arena-blue: #4b7ce2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  color: #25334c;
}
.classroom button { transition: transform .15s, box-shadow .15s, background .15s; }
.classroom button:focus-visible { outline: 3px solid #0d9488; outline-offset: 4px; }
.classroom button:disabled { cursor: default; }
.classroom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.classroom-eyebrow { display: block; color: #7b8a9c; font-size: 11px; letter-spacing: 1.8px; font-weight: 700; }
.classroom-toolbar h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.6px; }
.classroom-toolbar h2 > span { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 9px; border-radius: 6px; background: #e4f4ef; color: #228573; font-size: 11px; letter-spacing: 0; }
.classroom-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.classroom-tools button, .classroom-question-actions > button:not(.classroom-start), .classroom-form-actions > button:not(.classroom-start) { padding: 9px 13px; border: 1px solid #dde4ee; border-radius: 9px; background: white; color: #617087; font-size: 12px; }
.classroom-tools button:disabled { opacity: .4; }
.classroom-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); align-items: center; margin-bottom: 24px; }
.classroom-team { padding: 22px 25px 16px; background: #fff; border: 1px solid #f2dbdb; border-radius: 17px; box-shadow: 0 5px 20px #25334c03; }
.classroom .team-0 { --team-color: var(--arena-red); --team-light: #fff1ee; --team-border: #f1d4d1; }
.classroom .team-1 { --team-color: var(--arena-blue); --team-light: #edf3ff; --team-border: #d4e1fb; }
.classroom-team.team-1 { border-color: #dce6f7; }
.classroom-team.is-active { border-color: var(--team-color); box-shadow: 0 0 0 3px var(--team-light); }
.classroom-team-head { display: flex; align-items: center; gap: 13px; }
.classroom-avatar { background: var(--team-light); color: var(--team-color); display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; font-size: 25px; flex-shrink: 0; }
.classroom-team-head small { color: var(--team-color); font-size: 9px; letter-spacing: 2px; font-weight: 750; }
.classroom-team h3 { margin: 3px 0 0; font-size: 21px; overflow-wrap: anywhere; }
.classroom-hp { margin-left: auto; white-space: nowrap; color: var(--team-color); }
.classroom-hp b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.classroom-hp > span { margin-left: 4px; font-size: 11px; color: #91a0b2; }
.classroom-health { height: 13px; margin-top: 18px; background: var(--team-light); border-radius: 8px; overflow: hidden; }
.classroom-health > div { height: 100%; background: var(--team-color); border-radius: 8px; transition: width .5s ease; background-image: repeating-linear-gradient(115deg, transparent 0 12px, #ffffff20 12px 15px); }
.classroom-team-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10px; color: #8a96a8; gap: 8px; }
.classroom-team-foot b { color: var(--team-color); }
.classroom-team-score { font-size: 17px; font-variant-numeric: tabular-nums; }
.classroom-versus { text-align: center; }
.classroom-versus b { display: block; font-size: 35px; font-style: italic; font-weight: 900; color: #b5c1d2; letter-spacing: -3px; }
.classroom-versus span { font-size: 9px; letter-spacing: 1px; color: #94a1b3; }
.classroom-question { padding: 26px 38px 23px; background: white; border: 1px solid #e1e7f0; border-radius: 18px; box-shadow: 0 7px 25px #25334c04; }
.classroom-question-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #96a0b1; flex-wrap: wrap; }
.classroom-pill { display: inline-block; padding: 6px 12px; background: #eaf5f1; color: #26917d; border-radius: 6px; font-size: 11px; font-weight: 650; }
.classroom-bank-label { margin-left: auto; font-size: 11px; }
.classroom-clock { margin-left: auto; min-width: 200px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border: 2px solid #99d8cc; border-radius: 14px; background: #ecf9f5; color: #116858; font-size: 16px; font-weight: 700; white-space: nowrap; }
.classroom-clock-label { font-size: 12px; }
.classroom-clock b { min-width: 2ch; font-size: 56px; line-height: 1; font-weight: 850; color: #087965; font-variant-numeric: tabular-nums; text-align: center; }
.classroom-clock.is-urgent { color: #a61b2c; border-color: #e96a79; background: #fff0f2; animation: classroom-clock-pulse 1s ease-in-out infinite; }
.classroom-clock.is-urgent b { color: #bd2036; }
.classroom-clock.is-paused { animation: none; }
@keyframes classroom-clock-pulse { 50% { box-shadow: 0 0 0 5px #e96a7926; } }
.classroom-question > h3 { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.65; margin: 25px 0 26px; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.classroom-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.classroom-choice { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 19px; border: 2px solid #eaf0f5; border-radius: 12px; color: #4c5b70; background: #f9fbfd; text-align: left; }
.classroom-choice > span { flex-shrink: 0; display: grid; place-items: center; width: 33px; height: 33px; background: white; border: 1px solid #e3e9f0; border-radius: 8px; color: #8996a8; font-size: 15px; font-weight: 750; }
.classroom-choice > b { font-size: 17px; font-weight: 550; overflow-wrap: anywhere; white-space: pre-wrap; }
.classroom-choice:enabled:hover { border-color: #8bcabd; transform: translateY(-2px); }
.classroom-choice.selected { border-color: #1a9c86; background: #ecf9f5; color: #15816d; }
.classroom-choice.selected > span, .classroom-choice.correct > span { background: #1a9c86; color: white; border-color: #1a9c86; }
.classroom-choice.correct { background: #ecf9f5; border-color: #1a9c86; }
.classroom-choice.incorrect { border-color: #f0a1a1; background: #fff4f3; }
.classroom-choice.incorrect > span { background: #e66a6a; border-color: #e66a6a; }
.classroom-choice i { margin-left: auto; color: #1a9c86; font-size: 20px; font-style: normal; }
.classroom-choices.is-judge .classroom-choice { justify-content: center; min-height: 100px; }
.classroom-choices.is-judge .classroom-choice > b { font-size: 24px; }
.classroom-question-hint { text-align: center; margin: 24px 0 15px; color: #8795a7; font-size: 13px; }
.classroom-question-actions { display: flex; justify-content: center; margin-top: 18px; min-height: 35px; }
.classroom-auto-next { align-self: center; color: #8795a7; font-size: 13px; }
.classroom-auto-next b { color: #118f7b; font-variant-numeric: tabular-nums; }
.classroom-start { display: inline-flex; justify-content: center; align-items: center; gap: 24px; background: #118f7b; border: 0; border-radius: 10px; color: #fff; padding: 13px 27px; font-weight: 650; font-size: 14px; box-shadow: 0 4px 10px #118f7b17; }
.classroom-start:hover { background: #087965; }
.classroom-start:disabled { opacity: .45; }
.classroom-start small { font-size: 10px; opacity: .7; font-weight: 400; }
.classroom-buzzers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.classroom-buzzer { display: flex; align-items: center; gap: 17px; width: 100%; padding: 18px 24px; background: var(--team-color); color: #fff; border: 0; border-radius: 14px; box-shadow: 0 5px 0 color-mix(in srgb, var(--team-color) 78%, #263146); text-align: left; }
.classroom-buzzer:enabled:hover { transform: translateY(-3px); filter: brightness(1.03); }
.classroom-buzzer:enabled:active { transform: translateY(4px); box-shadow: none; }
.classroom-buzzer:disabled { box-shadow: none; background: var(--team-light); color: var(--team-color); }
.classroom-buzzer-icon { font-size: 29px; width: 38px; text-align: center; }
.classroom-buzzer b { display: block; font-size: 20px; }
.classroom-buzzer small { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.classroom-buzzer kbd { display: grid; place-items: center; margin-left: auto; width: 42px; height: 40px; background: #ffffff26; border: 1px solid #ffffff40; border-radius: 8px; font-family: inherit; font-size: 20px; font-weight: 700; }
.classroom-key-hint { grid-column: 1 / -1; text-align: center; font-size: 11px; color: #97a4b5; margin: 0; }
.classroom-rules { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0 8px; font-size: 10px; color: #98a4b5; }
.classroom-answer { margin-top: 22px; padding: 16px 20px; background: #edf9f4; border-radius: 10px; border-left: 3px solid #29a884; color: #28705d; font-size: 13px; line-height: 1.7; }
.classroom-answer strong { display: block; font-size: 16px; margin-bottom: 5px; }
.classroom-answer p { margin: 6px 0 0; white-space: pre-wrap; }
.classroom-answer.is-wrong { background: #fff4f2; color: #a65650; border-color: #e88d83; }
.classroom-answer.is-skipped { background: #f3f6fc; color: #66748c; border-color: #a4b4ca; }
.classroom-setup { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid #e1e8f0; border-radius: 18px; overflow: hidden; }
.classroom-setup-intro { padding: 45px 38px; background: radial-gradient(ellipse at 0 100%, #e0f3ec, transparent 80%), #f4faf7; }
.classroom-setup-intro h3 { font-size: clamp(25px, 2.6vw, 38px); line-height: 1.5; margin: 24px 0 16px; letter-spacing: -1px; color: #234b42; }
.classroom-setup-intro > p { color: #7f968f; font-size: 13px; line-height: 2; }
.classroom-steps { display: flex; flex-wrap: wrap; gap: 14px; color: #5a8b7b; font-size: 11px; margin-top: 40px; }
.classroom-setup form { padding: 29px 34px; }
.classroom-setup form > h3 { margin: 0 0 23px; font-size: 18px; }
.classroom-setup label { display: flex; flex-direction: column; gap: 9px; color: #617086; font-size: 12px; }
.classroom-setup input, .classroom-setup select { min-width: 0; width: 100%; height: 42px; padding: 9px 11px; border: 1px solid #dfe6ee; border-radius: 8px; background: #fcfdff; color: #3c4c63; font-size: 13px; }
.classroom-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.classroom-field-note { font-size: 10px; line-height: 1.7; color: #94a2b3; margin: 10px 0 17px; }
.classroom-form-actions { display: flex; gap: 10px; margin-top: 23px; }
.classroom-form-actions .classroom-start { flex: 1; }
.classroom-finish { padding: 33px; text-align: center; border-radius: 18px; border: 1px solid #e1e8f0; background: radial-gradient(ellipse at 50% 0%, #fff7dd, transparent 65%), white; }
.classroom-trophy { font-size: 60px; margin-bottom: 15px; }
.classroom-finish h3 { font-size: 32px; margin: 18px 0 13px; overflow-wrap: anywhere; }
.classroom-finish > p { color: #8b96a7; font-size: 13px; }
.classroom-final-scores { display: flex; justify-content: center; gap: 30px; margin: 30px auto; }
.classroom-final-scores > div { display: flex; flex-direction: column; gap: 13px; padding: 22px 28px; background: var(--team-light); color: var(--team-color); border-radius: 14px; }
.classroom-final-scores strong { font-size: 36px; }
.classroom-final-scores small { font-size: 12px; }
.classroom-final-scores span { font-size: 12px; }
.classroom-feedback { color: #8b96a7; font-size: 12px; text-align: center; }
#app:fullscreen { display: block; overflow: auto; padding: 25px 5vw; background: #f5f7fb; }
#app:fullscreen .classroom-clock b { font-size: 72px; }
@media (min-width: 1600px) {
  #app:fullscreen .classroom-question { padding: 36px 55px; }
  #app:fullscreen .classroom-question > h3 { font-size: 38px; margin: 35px 0; }
  #app:fullscreen .classroom-choice { min-height: 95px; }
  #app:fullscreen .classroom-choice > b { font-size: 24px; }
}
@media (max-width: 1100px) {
  .classroom-toolbar { align-items: flex-start; flex-direction: column; }
  .classroom-scoreboard { grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr); }
  .classroom-team { padding: 17px 16px; }
  .classroom-avatar { width: 36px; height: 36px; font-size: 20px; }
  .classroom-team h3 { font-size: 17px; }
  .classroom-hp > span { display: none; }
  .classroom-question { padding: 24px; }
  .classroom-setup-intro { padding: 35px 24px; }
  .classroom-setup form { padding: 27px 23px; }
}
@media (max-width: 700px) {
  .classroom-toolbar h2 { font-size: 21px; }
  .classroom-scoreboard { grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr); }
  .classroom-team-head { flex-wrap: wrap; gap: 7px; }
  .classroom-avatar { display: none; }
  .classroom-team { padding: 14px 12px; }
  .classroom-team h3 { font-size: 15px; }
  .classroom-hp b { font-size: 24px; }
  .classroom-team-foot > span:last-child, .classroom-versus span { display: none; }
  .classroom-versus b { font-size: 23px; }
  .classroom-setup { grid-template-columns: 1fr; }
  .classroom-setup-intro { padding: 24px; }
  .classroom-setup-intro h3 { font-size: 26px; margin: 15px 0; }
  .classroom-setup-intro > p, .classroom-steps { display: none; }
  .classroom-question { padding: 20px 16px; }
  .classroom-question > h3 { font-size: 22px; }
  .classroom-choices { grid-template-columns: 1fr; }
  .classroom-choices.is-judge { grid-template-columns: 1fr 1fr; }
  .classroom-choice { min-height: 60px; padding: 12px; }
  .classroom-choice > b { font-size: 16px; }
  .classroom-buzzers { gap: 12px; }
  .classroom-buzzer { padding: 16px 12px; gap: 7px; }
  .classroom-buzzer-icon { display: none; }
  .classroom-buzzer b { font-size: 16px; }
  .classroom-buzzer kbd { width: 26px; font-size: 16px; }
  .classroom-final-scores { gap: 12px; }
  .classroom-final-scores > div { padding: 17px 12px; }
  .classroom-bank-label { display: none; }
  .classroom-clock { min-width: 180px; padding: 9px 12px; gap: 6px; }
  .classroom-clock b, #app:fullscreen .classroom-clock b { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .classroom *, .classroom *::before, .classroom *::after { transition: none !important; animation: none !important; }
}
