html { scrollbar-gutter: stable both-edges; }
.youtube-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 19px; color: var(--gold); font: 16px/1.4 Georgia,serif; text-decoration: none; }
.youtube-button svg { width: 24px; height: 24px; flex: none; }
.shows-soon { text-align: center; color: var(--gold); font: 23px/1.5 Georgia,serif; margin: 0 0 20px; }
.gallery-grid { --cover-columns: 4; --cover-gap: 22px; }
.ready-show { display: block; overflow: hidden; padding: 0; border-radius: 13px; }
.ready-show img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; pointer-events: none; }
.show-page { max-width: 1200px; }
.show-intro { display: grid; grid-template-columns: minmax(140px,220px) 1fr; align-items: center; gap: 30px; margin: 10px 0 30px; }
.show-cover { display: block; width: 100%; height: auto; border-radius: 12px; }
.show-intro h1 { font: 400 clamp(30px,4vw,46px)/1.2 Georgia,serif; }
.wallpaper { display: inline-block; padding: 11px 20px; margin-top: 16px; color: var(--gold); }
.activity-ribbon { display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #dfc99c; font: 15px/1.5 Georgia,serif; }
.activity-ribbon span { color: var(--gold); text-shadow: 0 0 12px #e6ad49; }
.episode-teaser { margin: 30px 0 12px; }
.episode-teaser h2 { font-size: 27px; margin-bottom: 16px; }
.first-episode { display: flex; gap: 25px; align-items: center; }
.player-launch { position: relative; display: block; padding: 0; width: 160px; flex: 0 0 160px; overflow: hidden; cursor: pointer; border-radius: 11px; }
.player-launch img { width: 100%; height: auto; display: block; }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 58px; height: 42px; border-radius: 13px; color: #fff; background: #a20f13e6; box-shadow: 0 5px 24px #0008; }
.play-icon svg { width: 30px; height: 30px; }
.first-episode-copy { max-width: 480px; }
.first-episode-copy h3 { font-size: 21px; line-height: 1.35; }
.first-episode-copy p { color: var(--muted); margin: 12px 0 16px; }
.gallery-intro { text-align: center; margin: 8px auto 30px; }
.gallery-intro h1 { color: #f4d8a1; font: 400 clamp(27px,3.2vw,41px)/1.25 Georgia,serif; text-shadow: 0 0 28px #daa85130; }
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cover-columns),minmax(0,1fr)); gap: var(--cover-gap); margin-bottom: 16px; }
.gallery-card { display: block; padding: 0; width: 100%; overflow: hidden; cursor: pointer; border-radius: 13px; }
.gallery-card img { display: block; width: 100%; height: auto; }
.gallery-soon { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 8px 12px; background: linear-gradient(transparent,#080b15e6); color: #f7d596; text-align: center; font: 16px/1.4 Georgia,serif; }
#picture-viewer { width: fit-content; height: fit-content; max-width: 96vw; max-height: 96dvh; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
#picture-viewer .viewer-layout { display: block; height: auto; }
#picture-viewer .viewer-toolbar { position: fixed; top: 14px; right: 20px; z-index: 2; }
#picture-viewer .viewer-toolbar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#picture-viewer .viewer-stage { display: block; }
#picture-image { width: auto; height: auto; max-width: 94vw; max-height: 90dvh; object-fit: contain; }
.fit-viewport > .about-world { min-width: 0; display: grid; align-content: center; background: radial-gradient(ellipse at 50% 25%,#d2a65d16,transparent 65%); }
.about-message { width: 100%; max-width: 960px; padding: clamp(16px,3dvh,28px) 24px; margin: 0 auto; text-align: center; }
.about-message h1 { color: var(--gold); font: 400 clamp(28px,3vw,40px)/1.2 Georgia,serif; text-shadow: 0 0 24px #daa85126; }
.about-message p { max-width: 760px; margin: 16px auto 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
@media (max-width:760px) {
  .gallery-grid { --cover-columns: 2; --cover-gap: 14px; }
  .show-intro { grid-template-columns: minmax(110px,150px) 1fr; gap: 20px; }
  .show-intro h1 { font-size: 30px; }
  .activity-ribbon { font-size: 14px; }
  .first-episode { gap: 18px; align-items: flex-start; }
  .first-episode-copy h3 { font-size: 19px; }
  .first-episode-copy .youtube-button { font-size: 15px; padding: 10px 12px; }
  footer { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (max-width:480px) {
  .show-intro { grid-template-columns: 110px minmax(0,1fr); gap: 15px; }
  .show-intro h1 { font-size: 27px; }
  .wallpaper { padding: 9px 12px; font-size: 15px; }
  .player-launch { width: 125px; flex-basis: 125px; }
  .first-episode { gap: 16px; }
  .first-episode-copy p { font-size: 15px; }
}


.saved-preview-banner { padding: 8px 16px; text-align: center; color: var(--gold); background: #251c12; }
.saved-premiere { width: 125px; height: auto; border-radius: 10px; }

.gallery-empty { text-align: center; color: var(--muted); }
.coming-soon-cover { overflow: hidden; border-radius: 13px; border: 1px solid var(--border); }
.coming-soon-cover img { display: block; width: 100%; height: auto; }
.mobile-wallpapers { max-width: 590px; margin: 0 auto 25px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 26px); text-align: center; }
.mobile-wallpapers img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.mobile-wallpapers .wallpaper { margin-top: 12px; }

.site-footer { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 14px 24px; padding-block: 24px; }
.footer-identity { grid-column: 1; display: grid; gap: 5px; justify-self: start; }
.footer-actions { grid-column: 3; grid-row: 1; justify-self: end; display: grid; gap: 4px; }
.footer-fullscreen { cursor: pointer; }
.footer-fullscreen:disabled { cursor: default; opacity: .6; }
.fullscreen-status { max-width: 180px; font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.footer-links { grid-column: 2; display: grid; gap: 12px; min-width: 0; }
.site-footer .footer-resources { align-items: center; gap: 9px 20px; }
.site-footer .footer-legal { justify-content: center; gap: 9px 18px; }
.footer-brand { font: italic 26px Georgia, serif; color: var(--gold); }
.footer-identity small { color: #dfc99c; font: 400 16px/1.5 Georgia, serif; }
.site-footer nav { font-size: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; }
.site-footer nav a { color: #dfc99c; }
.site-footer nav a:hover { color: #fff3cf; }
.upcoming-games, .downloads-page section { margin-top: 36px; }
.wallpaper-links { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
@media (max-width: 900px) {
  .site-footer { grid-template-columns: minmax(0,1fr); justify-items: center; }
  .footer-links { grid-column: 1; width: 100%; }
  .footer-actions { grid-column: 1; grid-row: auto; justify-self: center; }
}

/* Public information pages for the locally run Posting Kit. */
.policy-page { width: min(900px, calc(100% - 36px)); margin-inline: auto; }
.policy-page h1 { font-size: clamp(30px, 5vw, 44px); }
.policy-page h2 { margin-top: 30px; font-size: clamp(23px, 3vw, 29px); }
.policy-page p, .policy-page li { font-size: 16px; line-height: 1.75; }
.policy-page ul { padding-left: 22px; }
.policy-page li { margin-block: 8px; color: var(--muted); }
.policy-page a { overflow-wrap: anywhere; }
.policy-page .policy-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-block: 24px; }
.policy-page .policy-date { font-size: 14px; }

.coming-soon-extra { margin: clamp(20px,3.5dvh,32px) auto 0; text-align: center; }
.coming-soon-extra h2 { margin: 0 0 12px; color: #f4d8a1; font: 400 clamp(23px, 3vw, 31px)/1.3 Georgia, serif; }
.coming-soon-extra p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Short pages use the actual header and footer heights instead of a fixed subtraction. */
body.fit-viewport { min-height: 100dvh; display: flex; flex-direction: column; }
.fit-viewport > .site-header, .fit-viewport > .saved-preview-banner, .fit-viewport > .site-footer { flex: none; }
.fit-viewport > main { flex: 1 0 auto; min-height: 0; width: 100%; }
.fit-viewport .gallery-intro { margin-bottom: clamp(18px,3dvh,30px); }
.fit-viewport > .site-footer { width: min(1488px,100%); margin: 0 auto; }
@media (max-width: 760px) {
  .site-footer { gap: 16px; padding-block: 20px; }
}

@media (min-width: 761px) and (max-height: 600px) {
  .fit-viewport > .page { padding-block: 20px; }
}

.site-header nav .header-youtube, .footer-actions > :is(.footer-channel, .footer-fullscreen) { border-radius: 18px; padding: 10px 14px; min-height: 44px; color: var(--gold); font: 400 18px/1.25 Georgia,serif; gap: 9px; }
.header-youtube svg, .footer-channel svg { width: 21px; height: 21px; }

.episode-player { width: 240px; max-width: 100%; flex: 0 0 240px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 11px; background: #050813; }
.episode-player :is(.player-launch, .saved-premiere, iframe) { display: block; width: 100%; height: 100%; max-width: none; border: 0; border-radius: inherit; }
.episode-player .player-launch { padding: 0; }
.episode-player .player-launch img { width: 100%; height: 100%; object-fit: contain; }
.episode-player .saved-premiere { object-fit: contain; }
.episode-player .player-launch:hover { transform: none; }
@media (max-width: 640px) {
 .first-episode { flex-direction: column; align-items: center; }
 .episode-player { flex: none; }
 .first-episode-copy { width: 100%; text-align: center; }
}
