/* Diff Hunt owns its responsive scene layout inside the shared play shell. */
body.diff-hunt-page {
  margin: 0;
  min-width: 280px;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #edf5f2;
}

body.diff-hunt-page .play-header {
  position: relative;
  inset: auto;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 58px;
  padding: 6px max(12px, env(safe-area-inset-left)) 6px max(12px, env(safe-area-inset-right));
  background: #102c3a;
  border-bottom: 1px solid #284853;
}

body.diff-hunt-page .play-title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
}

body.diff-hunt-page .play-title strong { font-size: .88rem; color: #f5fcf9; }
body.diff-hunt-page .play-title small { font-size: .64rem; color: #bdd5d8; margin-top: 3px; }
body.diff-hunt-page .play-creator-credit { font-size: .6rem; }
body.diff-hunt-page .back-button,
body.diff-hunt-page .play-header .icon-button {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid #3a5863;
  border-radius: 12px;
  background: #1c3a47;
  color: #f5fcf9;
  text-decoration: none;
}

body.diff-hunt-page .play-header a:focus-visible,
body.diff-hunt-page .play-header button:focus-visible {
  outline: 3px solid #ffd873;
  outline-offset: 2px;
}

body.diff-hunt-page .game-stage {
  position: relative;
  inset: auto;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #edf5f2;
}

body.diff-hunt-page #gameFrame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  transform: none !important;
  background: #edf5f2;
}

body.diff-hunt-page .game-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

body.diff-hunt-page .play-status {
  top: 70px;
  max-width: calc(100% - 28px);
  white-space: normal;
  text-align: center;
  background: #102c3a;
  color: #f5fcf9;
  border-color: #3a5863;
}

@media (max-width: 520px) {
  body.diff-hunt-page .play-header { min-height: 54px; padding: 5px 8px; gap: 5px; }
  body.diff-hunt-page .play-title small { display: none; }
  body.diff-hunt-page .play-title strong { font-size: .78rem; }
}

@media (max-height: 450px) and (orientation: landscape) {
  body.diff-hunt-page .play-header { min-height: 48px; padding-block: 2px; }
  body.diff-hunt-page .play-title small { display: none; }
}
