/* Maze owns this surface; shared arcade rules and game coordinates stay intact. */
.teacher-hero { padding-block: 8px 14px; }
.teacher-hero h1 { font-size: clamp(24px, 3vw, 32px); }
.teacher-hero .teacher-kicker { display: none; }
.arcade-stage { display: flex; flex-direction: column; }
.arcade-stage > .arcade-hud {
  position: static;
  order: -1;
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  gap: 12px;
  justify-content: space-around;
  align-items: center;
  background: #183c35;
}
.arcade-stage > .arcade-hud span {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 18px;
  text-align: center;
}
.arcade-hud small { font-size: 12px; letter-spacing: 0; color: #d9ece5; }
.arcade-stage > canvas { flex: none; }
.arcade-stage > .arcade-overlay { top: 60px; padding: 12px; }
.arcade-dialog {
  width: min(340px, 100%);
  padding: 20px;
  border: 1px solid #91aaa0;
  border-radius: 12px;
  background: #fff9ec;
  color: #183c35;
  box-shadow: 0 4px 0 #132c2480;
}
.arcade-dialog h2 { margin-bottom: 16px; font-size: 24px; }
.arcade-primary, .retry-button, .arcade-touch button {
  min-height: 48px;
  border: 1px solid #4d7765;
  border-radius: 8px;
  background: #2b6c51;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: inset 0 -3px 0 #173c2e80;
  transform: none;
}
.arcade-primary, .retry-button { width: 100%; }
.arcade-touch { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
.arcade-touch button { min-width: 48px; flex: 1; max-width: 96px; padding: 0; }
.arcade-primary:hover, .retry-button:hover, .arcade-touch button:hover { background: #235a44; filter: none; }
.arcade-primary:active, .retry-button:active, .arcade-touch button:active {
  transform: none;
  box-shadow: inset 0 3px 0 #173c2e99;
  background: #1d503c;
}
.arcade-primary:focus-visible, .retry-button:focus-visible, .arcade-touch button:focus-visible {
  outline: 3px solid #794414;
  outline-offset: 3px;
}
.arcade-primary:disabled, .retry-button:disabled, .arcade-touch button:disabled {
  background: #d3d9d5; color: #53645b; box-shadow: none; opacity: 1;
}
@media (max-width: 720px) {
  .arcade-stage > .arcade-hud { gap: 8px; padding-inline: 8px; }
  .arcade-stage > .arcade-hud span { font-size: 16px; }
  .arcade-hud small { font-size: 11px; }
  .arcade-dialog { padding: 14px; }
  .arcade-dialog h2 { margin-bottom: 12px; font-size: 22px; }
  .arcade-status { min-height: 40px; padding: 8px 12px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .arcade-stage > canvas { width: min(100%, calc((100dvh - 130px) * 16 / 9)); }
  .arcade-touch { min-height: 64px; }
}
