/* PN-001: contain the page frame; only the release notes scroll. */
.changelog-page { overflow: hidden; }
.changelog-page #game-container {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.changelog-page .changelog-modal {
  position: static;
  animation: none;
  transform: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 42rem;
  max-height: 100%;
  min-height: 0;
  padding: 0;
  border-width: 2px;
  overflow: hidden;
}
.changelog-header {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.22);
}
.changelog-heading { min-width: 0; }
.changelog-header h1 { font-size: clamp(1.2rem, 5vw, 2rem); }
.changelog-header .modal-subtitle { font-size: 0.85rem; }
.changelog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}
.changelog-close svg { width: 24px; height: 24px; }
.changelog-close:hover { background: rgba(0, 243, 255, 0.12); }
.changelog-close:focus-visible,
.changelog-content:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.changelog-content {
  min-height: 0;
  padding: 0 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-blue) transparent;
}
.changelog-content > .changelog-entry:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 480px) {
  .changelog-header { padding: 14px 12px; }
  .changelog-close { top: 6px; right: 8px; }
  .changelog-content { padding: 0 16px 16px; }
}
/* Match the compact Sound Options typography and header treatment. */
.changelog-header { padding: 20px 48px; }
.changelog-header h1 { margin: 0; color: var(--neon-blue); font: 700 1.15rem system-ui, -apple-system, sans-serif; letter-spacing: .1em; }
.changelog-header .modal-subtitle { margin-top: 8px; font-size: .75rem; color: #b5c7d2; }
.changelog-close { top: 6px; right: 4px; }
.changelog-entry p, .changelog-entry li { font-size: .85rem; line-height: 1.5; }
.changelog-entry h2 { font-size: .8rem; }
.changelog-entry .changelog-meta { font-size: .75rem; }
@media (max-width: 480px) { .changelog-header { padding: 18px 44px; } }
