/* ゲーム中は移動・進捗を一つの小さなヘッダーへまとめる。 */
.corner-voice {
  display: none !important;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: rgba(52, 57, 61, .72);
  background: rgba(255, 255, 255, .72);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.game-screen {
  padding-top: max(14px, calc(env(safe-area-inset-top) + 8px)) !important;
}

.game-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 7px 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .92);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.game-active > .back-link,
body.game-active > .games-back-link,
body.game-active .app-shell > .back-link,
body.game-active .app-shell > .games-back-link {
  display: none !important;
}

body.game-active .game-header {
  display: grid !important;
  grid-template-columns: auto 48px minmax(120px, 1fr) auto !important;
  align-items: center;
  gap: 9px !important;
}

body.game-active .game-header .round-button {
  width: 48px;
  height: 48px;
}

body.game-active .game-header > :is(#level-badge, .level-badge, #place-badge) {
  grid-column: auto !important;
}

@media (max-width: 620px) {
  .game-list-button {
    min-height: 44px;
    padding-inline: 8px;
    font-size: .72rem;
  }

  body.game-active .game-header {
    grid-template-columns: auto 46px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  body.game-active .game-header .round-button {
    width: 46px;
    height: 46px;
  }

  body.game-active .game-header > :is(#level-badge, .level-badge, #place-badge) {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 650px) {
  .game-screen {
    padding-top: max(8px, env(safe-area-inset-top)) !important;
  }
}
