.classroom-debate-options,
.classroom-stance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.classroom-stance-body {
  display: grid;
  gap: 16px;
}

.classroom-stance-body > :is(h2, h3, p) { margin: 0; }
.chooser-dialog .classroom-stance-body > p { color: #d5e0f3; line-height: 1.55; }
.classroom-choices .lesson-header:has(.chooser-identity) { padding-bottom: 18px; }

.classroom-position-picker .classroom-stance-body {
  justify-items: center;
  gap: clamp(12px, 2.4vw, 24px);
  text-align: center;
}
.chooser-dialog .classroom-stance-body .classroom-case-context {
  width: min(100%, 680px);
  padding: clamp(13px, 2.5vw, 23px) clamp(15px, 3vw, 29px);
  border: 1px solid #a7bae9;
  border-radius: 14px;
  background: #e6eeff;
  color: #213956;
  font-size: clamp(.95rem, 2vw, 1.09rem);
}
.classroom-stance-body h3 { color: #f2f5ff; font-size: clamp(1.02rem, 2.2vw, 1.24rem); }
.classroom-stance-options { width: min(100%, 680px); gap: clamp(12px, 2vw, 24px); }
.classroom-stance-options .classroom-stance {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid #91acee;
  border-radius: 16px;
  background: linear-gradient(160deg, #f5f8ff, #c0d2f9);
  box-shadow: inset 0 1px #fff, 0 5px 0 #48689b, 0 10px 16px #09172c75;
  color: #142b51;
  text-align: center;
  font: 900 clamp(1.1rem, 2.55vw, 1.55rem)/1.23 Nunito, sans-serif;
}
.classroom-stance-options .classroom-stance + .classroom-stance {
  border-color: #b0a9e7;
  background: linear-gradient(160deg, #f8f6ff, #cec7f3);
  box-shadow: inset 0 1px #fff, 0 5px 0 #625786, 0 10px 16px #09172c75;
}
.classroom-stance-options .classroom-stance:hover { border-color: #fff; filter: brightness(1.06); }
.classroom-stance-options .classroom-stance:active { transform: translateY(3px); }
.classroom-brief-note { font-size: .93rem; }
.classroom-exit .learning-sheet { max-width: 520px; }
.classroom-playing :is(.deckbar, #recenter) { display: none; }

.classroom-practice {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.classroom-practice [hidden],
.classroom-practice[hidden] { display: none; }
.classroom-practice button { pointer-events: auto; }

.classroom-hud {
  position: absolute;
  top: max(66px, calc(env(safe-area-inset-top) + 58px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 9px 11px 9px 16px;
  border: 1px solid #667e9b;
  border-radius: 17px;
  background: #12263cef;
  color: #f5f7ff;
  box-shadow: 0 8px 28px #0b162763;
}

.classroom-phase {
  font-size: .73rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .075em;
  white-space: nowrap;
}

.classroom-clock { font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }

.classroom-hud button {
  border: 1px solid #5f7592;
  border-radius: 40px;
  padding: 7px 11px;
  color: inherit;
  background: transparent;
  min-height: 36px;
}

.classroom-prompt {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(580px, calc(100% - 24px));
  padding: 13px 19px 15px;
  border: 1px solid #bdcdf5;
  border-radius: 17px;
  background: #e7edff;
  color: #142741;
  box-shadow: 0 10px 30px #10203c45;
  text-align: center;
}

.classroom-prompt :is(h2, p) { margin: 0; }
.classroom-practice .classroom-prompt > p { color: #294568; }
.classroom-prompt h2 { font-size: clamp(1.14rem, 2.7vw, 1.52rem); line-height: 1.24; }
.classroom-prompt h2:focus { outline: none; }
.classroom-prompt p + h2 { margin-top: 4px; }
.classroom-prompt h2 + p { margin-top: 6px; }
.classroom-practice .classroom-prompt .classroom-eyebrow { font-size: .76rem; font-weight: 850; color: #395783; }
.classroom-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.classroom-actions:not(:empty) { margin-top: 10px; }
.classroom-actions button { min-height: 41px; padding: 8px 13px; border-radius: 9px; }
.classroom-actions .primary { background: #414dc4; color: white; }
.classroom-secondary { border: 1px solid #a7b9e1; background: #f7f9ff; color: #183252; }

.classroom-hand {
  position: absolute;
  transform: translate(-50%, -56%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #1b4677;
  border: 2px solid #dbeaff;
  border-radius: 50%;
  color: white;
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 0 0 4px #233c5e52, 0 3px 15px #10213c8f;
}

.classroom-hand:hover,
.classroom-hand:focus-visible { background: #3959c7; outline: 3px solid white; outline-offset: 3px; }
.classroom-practice button:disabled { opacity: .58; cursor: default; }

@media (min-width: 1070px) and (max-height: 710px) {
  .classroom-hud { top: 8px; }
}

@media (max-width: 580px) {
  .classroom-debate-options,
  .classroom-stance-options { grid-template-columns: 1fr; gap: 8px; }
  .classroom-stance-options .classroom-stance { min-height: 68px; padding: 11px 14px; }
  .classroom-prompt { padding-inline: 11px; }
}

@media (max-width: 360px) {
  .classroom-phase { white-space: normal; }
  .classroom-hud { gap: 5px; padding-left: 9px; }
}

.hypothesis-playing :is(.deckbar, #recenter) { display: none; }
.hypothesis-practice .classroom-hud {
  gap: 12px;
  padding: 10px 14px;
  background: #162a45f5;
  border-color: #5a759c;
  pointer-events: auto;
}
.hypothesis-practice .classroom-clock { font-size: clamp(1.95rem, 3.5vw, 2.75rem); }
.hypothesis-practice .classroom-phase { color: #e2e9ff; }
.hypothesis-practice .classroom-hud button { background: #243c60; min-height: 40px; font-weight: 750; }
.hypothesis-practice .classroom-hud button:hover { background: #335381; }
.classroom-practice .classroom-prompt--center {
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(660px, calc(100% - 32px));
  max-height: min(68dvh, calc(100dvh - 130px));
  padding: clamp(18px, 3.8vw, 32px);
  overflow: auto;
  background: linear-gradient(145deg, #203653f7, #151f34fc 82%);
  border-color: #526b95;
  color: #f5f7ff;
  text-align: left;
  pointer-events: auto;
  box-shadow: 0 12px 36px #081628a3;
}
.classroom-practice .classroom-prompt--center .classroom-eyebrow {
  font-size: .76rem;
  color: #b8caff;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.classroom-prompt--center h2 { font-size: clamp(1.42rem, 3.6vw, 2.18rem); }
.classroom-practice .classroom-prompt--center h2 + p {
  margin-top: 10px;
  color: #eef3ff;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.52;
}
.hypothesis-copy .hypothesis-instruction {
  margin-top: 12px;
  color: #c3d2ef;
  font-size: .98rem;
  line-height: 1.45;
}
.classroom-prompt--center .classroom-actions {
  justify-content: flex-start;
  margin-top: 20px;
}
.classroom-prompt--center .classroom-actions button { min-height: 48px; padding: 9px 16px; font-weight: 800; }
.classroom-practice .classroom-debate-gate {
  width: min(700px, calc(100% - 32px));
  border-color: #7898c7;
  background: radial-gradient(ellipse at top, #304a71, #15243cec 72%), #15243c;
  box-shadow: inset 0 1px #a6bdec55, 0 20px 48px #091528ab;
  text-align: center;
}
.classroom-debate-gate .classroom-actions { justify-content: center; }
.classroom-debate-gate .classroom-actions .primary {
  background: linear-gradient(155deg, #5061d4, #3d49ad);
  border: 1px solid #8795ed;
  box-shadow: 0 4px 0 #26316f, 0 8px 19px #0a142c75;
}
.classroom-case-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 16px 0 0;
}
.classroom-case-summary > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #aeccfc;
  border-radius: 10px;
  background: #e6eeff;
  color: #193555;
}
.classroom-case-summary > div + div { background: #dddff8; border-color: #c2c6f4; }
.classroom-case-summary dt { color: #38517b; font-size: .72rem; font-weight: 850; }
.classroom-case-summary dd { margin: 0; font: 850 clamp(.94rem, 2vw, 1.12rem)/1.2 Nunito, sans-serif; }
.hypothesis-practice .hypothesis-practice-actions {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 26px);
  padding: 4px;
}
.classroom-practice:not(.hypothesis-practice)[data-phase="preparation"] .classroom-prompt {
  width: max-content;
  max-width: calc(100% - 26px);
  padding: 4px;
  background: none;
  border: 0;
  box-shadow: none;
}
.classroom-practice:not(.hypothesis-practice)[data-phase="preparation"] .classroom-prompt > :is(h2,p) { display: none; }
.classroom-practice:not(.hypothesis-practice)[data-phase="preparation"] .classroom-actions { margin: 0; }
.hypothesis-practice .classroom-secondary,
.classroom-practice[data-phase="preparation"] .classroom-secondary { background: #29446a; border-color: #6b83ad; color: #f3f6ff; }
.hypothesis-practice .classroom-secondary:hover,
.classroom-practice[data-phase="preparation"] .classroom-secondary:hover { background: #385780; }
.hypothesis-practice .classroom-actions .primary:hover { background: #535fda; }
.hypothesis-exit .chooser-body > p {
  padding: 14px 16px;
  border-radius: 10px;
  background: #e7edff;
  color: #294568;
}

@media (min-width: 580px) and (max-height: 545px) {
  .classroom-practice .classroom-hud { top: 8px; }
  .classroom-practice .classroom-prompt--center {
    max-height: calc(100dvh - 138px);
    padding: 16px 20px;
  }
  .classroom-prompt--center .classroom-actions { margin-top: 12px; }
  .classroom-prompt--center .classroom-actions button { min-height: 42px; }
}

@media (max-width: 579px) {
  .hypothesis-practice .classroom-hud { gap: 7px; padding-inline: 10px; }
  .classroom-prompt--center .classroom-actions button { min-height: 44px; }
  .classroom-case-summary { grid-template-columns: 1fr; }
}
