.hm-game-mode-teacher-card {
  background: #0b1220;
  border-radius: 8px;
  color: #fff;
  margin: 1rem 0;
  overflow: hidden;
}

.hm-game-mode-teacher-card.is-projector {
  inset: 0;
  margin: 0;
  overflow: auto;
  position: fixed;
  z-index: 100000;
}

.hm-game-mode-teacher-shell {
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 181, 27, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(21, 200, 168, 0.12), rgba(11, 18, 32, 0));
  padding: clamp(1rem, 2vw, 1.5rem);
}

.hm-game-mode-teacher-header,
.hm-game-mode-spectacle__top,
.hm-game-mode-team-lane__label,
.hm-game-mode-team-lane__stats {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hm-game-mode-teacher-header h4 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 900;
  margin: 0;
}

.hm-game-mode-teacher-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  margin-top: 1rem;
}

.hm-game-mode-teacher-setup,
.hm-game-mode-spectacle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1rem;
}

.hm-game-mode-panel-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hm-game-mode-panel-title span,
.hm-game-mode-panel-title strong {
  color: rgba(255, 255, 255, 0.82);
}

.hm-game-mode-form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hm-game-mode-form-grid label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.hm-game-mode-form-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0.7rem 0 0;
}

.hm-game-mode-button-row,
.hm-game-mode-control-pad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hm-game-mode-control-pad .hm-game-mode-answer-ready {
  animation: hm-game-mode-pulse 900ms ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(245, 181, 27, 0.32), 0 0 26px rgba(245, 181, 27, 0.48);
}

.hm-game-mode-session-meta {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hm-game-mode-session-meta div {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.55rem;
}

.hm-game-mode-session-meta span {
  color: rgba(255, 255, 255, 0.56);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
}

.hm-game-mode-session-meta code,
.hm-game-mode-session-meta strong {
  color: #fff;
}

.hm-game-mode-session-meta .hm-game-mode-session-meta__attention {
  background: rgba(245, 181, 27, 0.18);
  border: 1px solid rgba(245, 181, 27, 0.42);
  box-shadow: 0 0 18px rgba(245, 181, 27, 0.2);
}

.hm-game-mode-session-meta__attention span,
.hm-game-mode-session-meta__attention strong {
  color: #f8d36a;
}

.hm-game-mode-spectacle__top h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0.15rem 0 0;
}

.hm-game-mode-spectacle__top span {
  color: #f5b51b;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hm-game-mode-round-chip {
  background: #f5b51b;
  border-radius: 999px;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 0.5rem 0.85rem;
}

.hm-game-mode-teacher-answer-box {
  background: rgba(245, 181, 27, 0.1);
  border: 1px solid rgba(245, 181, 27, 0.34);
  border-left: 6px solid #f5b51b;
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.hm-game-mode-teacher-answer-box span {
  color: #f8d36a;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hm-game-mode-teacher-answer-box strong {
  color: #fff;
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 0.25rem;
}

.hm-game-mode-teacher-answer-box p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  line-height: 1.3;
  margin: 0.45rem 0 0;
}

.hm-game-mode-team-board {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hm-game-mode-team-lane {
  background: rgba(255, 255, 255, 0.08);
  border-left: 7px solid var(--team-color, #f5b51b);
  border-radius: 8px;
  padding: 0.8rem;
}

.hm-game-mode-team-lane__label strong {
  color: #fff;
  font-size: 1.1rem;
}

.hm-game-mode-team-lane__label span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.hm-game-mode-team-lane__track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 14px;
  margin: 0.7rem 0;
  overflow: hidden;
}

.hm-game-mode-team-lane__track i {
  background: var(--team-color, #f5b51b);
  box-shadow: 0 0 24px var(--team-color, #f5b51b);
  display: block;
  height: 100%;
}

.hm-game-mode-team-lane__stats {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.hm-game-mode-team-lane__stats strong {
  color: #86efac;
}

.hm-game-mode-reveal-panel {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.9fr 0.7fr 1.2fr;
  margin-top: 1rem;
  padding: 1rem;
}

.hm-game-mode-reveal-panel span,
.hm-game-mode-reveal-panel em {
  color: rgba(255, 255, 255, 0.66);
  display: block;
  font-style: normal;
}

.hm-game-mode-reveal-panel strong {
  color: #fff;
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
}

.hm-game-mode-teacher-options {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hm-game-mode-lobby-roster {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1rem;
}

.hm-game-mode-lobby-roster article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 6px solid var(--team-color, #f5b51b);
  border-radius: 8px;
  padding: 0.9rem;
}

.hm-game-mode-lobby-roster strong {
  color: #fff;
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.hm-game-mode-lobby-roster span {
  color: #f5b51b;
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  margin-top: 0.2rem;
}

.hm-game-mode-lobby-roster ul {
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.hm-game-mode-lobby-roster li {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  line-height: 1.25;
}

.hm-game-mode-teacher-option {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 5px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.75rem;
}

.hm-game-mode-teacher-option strong {
  align-items: center;
  background: #f5b51b;
  border-radius: 999px;
  color: #111827;
  display: inline-flex;
  font-size: 1rem;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.hm-game-mode-teacher-option span {
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
}

.hm-game-mode-teacher-option em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.hm-game-mode-teacher-option.is-hidden {
  border-left-color: rgba(255, 255, 255, 0.18);
  opacity: 0.58;
}

.hm-game-mode-teacher-option.is-hidden strong {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
}

.hm-game-mode-teacher-option.is-visible {
  border-left-color: #f5b51b;
  box-shadow: 0 0 0 2px rgba(245, 181, 27, 0.12);
}

.hm-game-mode-distractor-bars {
  display: grid;
  gap: 0.35rem;
}

.hm-game-mode-distractor-bars p {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
}

.hm-game-mode-distractor-bars i {
  background: #f5b51b;
  border-radius: 999px;
  display: block;
  height: 8px;
}

.hm-game-mode-analytics-table-wrap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin-top: 1rem;
  max-height: min(48vh, 560px);
  overflow: auto;
}

.hm-game-mode-analytics-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  width: 100%;
}

.hm-game-mode-analytics-table th,
.hm-game-mode-analytics-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  padding: 0.65rem 0.7rem;
  vertical-align: middle;
}

.hm-game-mode-analytics-table th {
  background: rgba(7, 17, 31, 0.86);
  position: sticky;
  top: 0;
  z-index: 1;
}

.hm-game-mode-analytics-table th button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #f8d36a;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.35rem;
  padding: 0;
  text-transform: uppercase;
}

.hm-game-mode-analytics-table td:first-child,
.hm-game-mode-analytics-table td:last-child {
  color: #fff;
  font-weight: 900;
}

.hm-game-mode-response-dot {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  text-align: center;
  line-height: 1;
}

.hm-game-mode-response-dot.is-correct-0 {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hm-game-mode-response-dot.is-correct-1 {
  background: #84cc16;
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hm-game-mode-response-dot.is-correct-2 {
  background: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hm-game-mode-response-dot.is-correct-3 {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hm-game-mode-response-dot.is-correct-unknown {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hm-game-mode-response-dot.is-incorrect {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hm-game-mode-response-dot.is-empty {
  background: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hm-game-mode-analytics-legend {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.75rem;
  text-align: center;
  word-break: break-word;
}

.hm-game-mode-podium {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.hm-game-mode-podium article {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
}

.hm-game-mode-podium span,
.hm-game-mode-podium em {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-style: normal;
}

.hm-game-mode-podium strong {
  color: #fff;
  display: block;
  font-weight: 900;
}

.hm-game-mode-empty-board {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 1rem;
  padding: 1rem;
}

.hm-game-mode-teacher-status {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.9rem;
  min-height: 1.4rem;
}

.hm-game-mode-teacher-status[data-tone="danger"] {
  color: #fca5a5;
}

.hm-game-mode-teacher-status[data-tone="success"] {
  color: #86efac;
}

.hm-game-mode-teacher-status[data-tone="warning"] {
  color: #fde68a;
}

