/* Flight art/physics stay unchanged; entry owns its actual loading state. */
.teacher-hero { padding-block: 12px; margin-block: 0 12px; }
.teacher-hero h1 { font-size: clamp(24px, 4vw, 32px); }
#gameIntro { padding: 12px; }
#gameIntro .arcade-dialog { padding: 16px; max-width: 360px; }
#gameIntro h2 { margin: 0 0 12px; font-size: 22px; }
#assetLoadStatus { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: #183d50; }
#assetLoadStatus:empty { display: none; }
#assetLoadProgress { display: block; width: 100%; height: 10px; margin: 0 0 12px; accent-color: #245f87; }
#assetLoadProgress[hidden], #startGame[hidden], #retryAssets[hidden] { display: none; }
#startGame, #retryAssets, #retryGame, #submitRecord, .arcade-touch button {
  min-height: 44px; border: 1px solid #235572; border-radius: 10px;
  padding: 10px 16px; background: #245f87; color: #fff;
  font: inherit; font-size: 15px; font-weight: 750; line-height: 1.2;
  transform: none; box-shadow: inset 0 -2px 0 #1d4966; filter: none;
}
#startGame:hover, #retryAssets:hover, #retryGame:hover, #submitRecord:hover, .arcade-touch button:hover { background: #1d4966; filter: none; }
#startGame:active, #retryAssets:active, #retryGame:active, #submitRecord:active, .arcade-touch button:active { background: #173d55; transform: none; box-shadow: inset 0 2px 0 #102e43; }
#startGame:focus-visible, #retryAssets:focus-visible, #retryGame:focus-visible, #submitRecord:focus-visible, .arcade-touch button:focus-visible, #assetReturnLink:focus-visible { outline: 3px solid #183d50; outline-offset: 3px; }
#startGame:disabled, #retryAssets:disabled, #submitRecord:disabled, .arcade-touch button:disabled { opacity: 1; background: #e4ebed; border-color: #b9c9ce; color: #546b74; box-shadow: none; cursor: not-allowed; }
#assetReturnLink { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; color: #183d50; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.arcade-touch button { min-width: 44px; }
#bombButton { min-width: 78px; white-space: nowrap; }
.arcade-touch .accent { background: #754a23; border-color: #5c391c; box-shadow: inset 0 -2px 0 #5c391c; }
@media (min-width: 521px) and (min-height: 521px) {
  .arcade-stage canvas { width: min(100%, 960px); height: auto; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .arcade-stage canvas { width: min(100%, calc((100dvh - 154px) * 16 / 9)); height: auto; }
  .teacher-hero { padding-block: 4px; margin-bottom: 6px; }
  #gameIntro .arcade-dialog { padding: 12px; }
  #gameIntro h2 { font-size: 20px; margin-bottom: 8px; }
}
