/* Atomic Snake owns its full iframe viewport, including touch controls. */
body.atomic-snake-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #071321;
}
.atomic-snake-page .play-header {
  flex: 0 0 48px;
  height: 48px;
  min-height: 0;
  gap: 8px;
  padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
}
.atomic-snake-page .back-button,
.atomic-snake-page .icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
}
.atomic-snake-page .play-title strong { font-size: 14px; line-height: 1.15; }
.atomic-snake-page .play-title small { font-size: 10px; line-height: 1.3; }
.atomic-snake-page .game-stage {
  flex: 1 1 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
}
.atomic-snake-page .game-stage iframe {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transform: none;
}
.atomic-snake-page .game-stage:fullscreen,
.atomic-snake-page .game-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
.atomic-snake-page .play-status {
  top: 54px;
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 12px;
  text-align: center;
}
.atomic-snake-page .play-status.hidden { visibility: hidden; }
.atomic-snake-page .play-status button {
  min-height: 44px;
  margin: 4px 6px;
  padding: 8px 12px;
  border: 1px solid #8ddbf5;
  border-radius: 8px;
  color: #e8f9ff;
  background: #153a52;
  font: inherit;
  cursor: pointer;
}
.atomic-snake-page .play-status button:focus-visible,
.atomic-snake-page .play-header a:focus-visible,
.atomic-snake-page .play-header button:focus-visible {
  outline: 3px solid #fbd05d;
  outline-offset: 2px;
}
@media (orientation: landscape) and (max-height: 500px) {
  .atomic-snake-page .play-header { flex-basis: 42px; height: 42px; gap: 6px; }
  .atomic-snake-page .back-button,
  .atomic-snake-page .icon-button { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
  .atomic-snake-page .play-title small { display: none; }
  .atomic-snake-page .play-status { top: 48px; }
}
