.play-only { display: none; }
.play-only[hidden] { display: none !important; }
.is-playing { overflow: hidden; }
.is-playing .site-header,
.is-playing .intro,
.is-playing .how-to,
.is-playing .site-footer { display: none; }
.is-playing .app-shell { max-width: none; padding: 0; }
.focused-arcade {
  --play-controls-space: 128px;
  position: fixed;
  inset: 0;
  z-index: 40;
  height: 100vh;
  height: 100dvh;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at center, #1a1930, #0c1020 80%);
  box-shadow: none;
}
.focused-arcade .play-only { display: inline-flex; }
.focused-arcade .game-toolbar {
  width: min(100%, 1280px);
  height: 64px;
  flex: none;
  padding: 0 16px;
  gap: 30px;
}
.focused-arcade .stat strong { font-size: 20px; }
.focused-arcade .round-controls { gap: 8px; }
.focused-arcade .round-controls > #pace { display: none; }
.focused-arcade #sound { white-space: nowrap; }
#play-sound-slot { display: none; gap: 8px; }
.focused-arcade #play-sound-slot { display: inline-flex; }
.audio-settings { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 16px 0; }
.audio-settings legend { padding: 0 6px; color: var(--gold); }
.audio-settings label { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-right: 20px; cursor: pointer; }
.audio-settings input { width: 18px; height: 18px; accent-color: var(--gold); }
.audio-settings p { margin: 6px 0; }
#music-status:empty { display: none; }
.focused-arcade .icon-button { white-space: nowrap; }
.focused-arcade .stage {
  width: min(100%, calc((100vh - var(--play-controls-space)) * 1.6));
  width: min(100%, calc((100dvh - var(--play-controls-space) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 1.6));
  height: auto;
  aspect-ratio: 960 / 600;
  max-height: none;
  flex: none;
  border: 0;
  outline: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 0 70px rgba(83, 73, 139, .1);
}
.focused-arcade canvas { width: 100%; height: 100%; }
.focused-arcade .stage-caption { display: none; }
.focused-arcade .hero-star { display: none; }
.focused-arcade .overlay-content { max-width: 95%; padding: 12px; }
.focused-arcade .overlay .eyebrow { margin: 0 0 8px; }
.focused-arcade h2 { margin-bottom: 10px; font-size: clamp(20px, 2.8vw, 34px); }
.focused-arcade .overlay p:not(.eyebrow) { font-size: 12px; margin-bottom: 14px; }
.focused-arcade .primary-button { padding: 11px 22px; }
.focused-arcade .overlay .start-hint { margin-top: 8px !important; }
.focused-arcade .game-footer {
  width: min(100%, 1280px);
  height: 44px;
  flex: none;
  padding: 0 16px;
}
.focused-arcade #view-notice { color: var(--gold); font-size: 10px; }
@media (max-width: 1000px) {
  .focused-arcade #sound-label, .focused-arcade #music-label { display: none; }
  .focused-arcade .game-toolbar { gap: 16px; }
}
@media (max-width: 760px) {
  .focused-arcade .game-toolbar { padding: 0 4px; gap: 16px; }
  .focused-arcade #sound-label { display: none; }
  #music-label { display: none; }
  .focused-arcade .icon-button { padding: 8px 9px; font-size: 11px; }
}
@media (max-width: 580px) {
  .focused-arcade { --play-controls-space: 184px; padding-left: 12px; padding-right: 12px; }
  .focused-arcade .game-toolbar {
    height: 112px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px 12px;
    padding: 4px 6px 10px;
  }
  .focused-arcade .stat { gap: 3px; }
  .focused-arcade .stat strong { font-size: 18px; }
  .focused-arcade .round-controls { grid-column: 1 / -1; margin: 0; justify-content: center; }
  .focused-arcade #fullscreen span { display: none; }
  .focused-arcade .round-controls, .focused-arcade #play-sound-slot { gap: 4px; }
  .focused-arcade .game-footer { padding: 0 4px; }
  .focused-arcade .game-footer > span + span { display: none; }
  .focused-arcade h2 { font-size: 20px; }
  .focused-arcade .overlay-content { padding: 8px; }
  .focused-arcade .overlay p:not(.eyebrow) { font-size: 11px; margin-bottom: 10px; }
  .focused-arcade .primary-button { padding: 9px 16px; }
  .focused-arcade .overlay .start-hint { display: none; }
}
@media (max-height: 460px) {
  .focused-arcade .game-toolbar { height: 52px; }
  .focused-arcade .game-footer { height: 28px; }
  .focused-arcade { --play-controls-space: 104px; }
  .focused-arcade .overlay .eyebrow,
  .focused-arcade .overlay .start-hint { display: none; }
  .focused-arcade h2 { font-size: 20px; margin-bottom: 8px; }
  .focused-arcade .overlay p:not(.eyebrow) { font-size: 11px; margin-bottom: 10px; }
  .focused-arcade .primary-button { padding: 8px 16px; }
}
@media (max-width: 580px) and (max-height: 460px) {
  .focused-arcade { --play-controls-space: 168px; }
  .focused-arcade .game-toolbar { height: 112px; }
  .focused-arcade .stat strong { font-size: 16px; }
}
