/* Hill Climb manages its own responsive scene and controls; no iframe scaling. */
body.hill-climb-page {
  margin: 0;
  min-width: 280px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #132c31;
}
body.hill-climb-page .play-header {
  position: relative;
  inset: auto;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px;
  background: #132c31;
  border-bottom: 1px solid #35565b;
}
body.hill-climb-page .play-title { min-width: 0; flex: 1; line-height: 1.25; }
body.hill-climb-page .play-title strong { display: block; font-size: .85rem; color: #fff8df; }
body.hill-climb-page .play-title small { display: block; font-size: .65rem; color: #c7d8d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.hill-climb-page .back-button,
body.hill-climb-page .play-header .icon-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid #436469;
  border-radius: 11px;
  background: #203d42;
  color: #fff8df;
  display: grid;
  place-items: center;
  text-decoration: none;
}
body.hill-climb-page .back-button:focus-visible,
body.hill-climb-page .play-header .icon-button:focus-visible { outline: 3px solid #ffd46b; outline-offset: 2px; }
body.hill-climb-page .game-stage {
  position: relative;
  inset: auto;
  display: block;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #b8e6df;
}
body.hill-climb-page #gameFrame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  transform: none !important;
  display: block;
  background: #b8e6df;
}
body.hill-climb-page .play-status {
  display: block;
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  padding: 10px 16px;
  background: #fff0e3;
  color: #82401d;
  font-size: .85rem;
}
body.hill-climb-page .play-status.hidden,
body.hill-climb-page .play-status[hidden] { display: none; }
@media (max-width: 500px) {
  body.hill-climb-page .play-header { gap: 6px; padding: 4px 7px; }
  body.hill-climb-page .play-title small { display: none; }
}
@media (max-height: 460px) and (orientation: landscape) {
  body.hill-climb-page .play-header { min-height: 40px; padding: 3px 10px; }
  body.hill-climb-page .back-button,
  body.hill-climb-page .play-header .icon-button { min-height: 32px; width: 36px; min-width: 36px; padding: 3px; }
  body.hill-climb-page .play-title small { display: none; }
}
