.site-ad-banner[hidden] { display: none; }
.site-ad-banner {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 0;
  flex-shrink: 0;
  text-align: center;
  overflow: hidden;
}
.site-ad-label { display: block; margin-bottom: 8px; color: #8e929a; font: 14px 'Outfit', sans-serif; }
#site-ad-content { margin: 0 auto; }
.cookie-settings-button {
  display: block;
  margin: 20px auto;
  padding: 8px 12px;
  color: #bda07a;
  background: transparent;
  border: 1px solid #635540;
  border-radius: 6px;
  font: 14px 'Outfit', sans-serif;
  cursor: pointer;
}
.app-container > .app-footer {
  height: auto;
  min-height: 36px;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.app-footer > .footer-links:first-child { flex-basis: 100%; }
.app-footer > .cookie-settings-button { margin: 0; }
.privacy-choices {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  box-sizing: border-box;
  width: min(360px, calc(100% - 48px));
  padding: 20px;
  color: #f3f4f6;
  background: #16171b;
  border: 1px solid #635540;
  border-radius: 12px;
  font: 16px/1.5 'Outfit', sans-serif;
}
.privacy-choices[hidden] { display: none; }
.privacy-choices p { margin: 0 0 16px; }
.privacy-choices a { color: #bda07a; }
.privacy-choices button { margin: 0 8px 0 0; padding: 8px 12px; cursor: pointer; font: inherit; }
.crt-screen-container { position: relative; }
.playnes-tv-sponsor[hidden] { display: none; }
.playnes-tv-sponsor {
  position: absolute; inset: 0; z-index: 50; background: #121214;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; overflow: auto; color: #f3f4f6; padding: 8px;
}
.playnes-tv-sponsor p { margin: 0; font: 14px 'Outfit', sans-serif; }
.playnes-tv-sponsor iframe { flex-shrink: 0; }
.playnes-tv-sponsor button { padding: 8px 16px; cursor: pointer; font: 16px 'Outfit', sans-serif; }
.playnes-access-gate { max-width: 520px; width: calc(100% - 40px); margin: auto; padding: 32px; border: 1px solid #bda07a; border-radius: 16px; background: #16171b; color: #f3f4f6; font: 16px/1.6 'Outfit',sans-serif; }
.playnes-access-gate::backdrop { background: #08090df5; }
.playnes-access-gate h2 { margin: 0 0 16px; font-size: 24px; }
.playnes-access-gate button { cursor: pointer; padding: 10px 18px; margin: 12px 6px 12px 0; font: inherit; }
.playnes-access-gate a { color: #bda07a; }
.playnes-leaderboard { overflow-x: auto; }
/* Give the top banner row the same full-width presentation as content ads. */
.app-container > .site-ad-banner { background: rgba(22,23,27,.85); border-bottom: 1px solid rgba(189,160,122,.18); }
.app-container > .playnes-leaderboard { padding: 12px 0 16px; min-height: 122px; }
.app-container > .playnes-leaderboard iframe { display: block; margin: 0 auto; }
.sidebar-ad-rail { width: 320px; flex-shrink: 0; height: 100%; overflow-y: auto; background: rgba(22,23,27,.85); border: 1px solid rgba(189,160,122,.2); border-radius: 16px; padding: 16px 10px; box-sizing: border-box; }
.sidebar-ad-rail[hidden] { display: none; }
#sidebar-ad-content { min-height: 500px; }
#btn-toggle-controls { display: flex; }
.tv-ad-notice { position: absolute; bottom: 4px; left: 8px; z-index: 5; font: 12px 'Outfit',sans-serif; color: #bda07a; pointer-events: none; }
@media(max-width:1349px) { .sidebar-ad-rail { width: 220px; } }
@media(max-width:999px) { .sidebar-ad-rail { display: none; } }
/* Controls float over the TV, leaving the sponsored column visible. */
.sidebar-controls,
.sidebar-controls.desktop-hidden {
  display: flex !important;
  position: fixed;
  top: 72px;
  right: 350px;
  width: 320px;
  height: calc(100dvh - 96px);
  z-index: 250;
  padding: 16px;
  box-sizing: border-box;
  background: #121419;
  border: 1px solid rgba(189,160,122,.4);
  border-radius: 16px;
  transform: none;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
.sidebar-controls.sidebar-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: none;
  box-shadow: 0 12px 40px #0009;
}
@media (max-width:1349px) { .sidebar-controls, .sidebar-controls.desktop-hidden { right: 245px; } }
@media (max-width:999px) { .sidebar-controls, .sidebar-controls.desktop-hidden { right: 16px; width: min(320px,calc(100vw - 32px)); } }
.additional-ad-strip { margin: 24px auto; padding: 20px 12px; max-width: 1200px; border: 1px solid rgba(189,160,122,.18); border-radius: 12px; background: rgba(22,23,27,.85); }
.additional-ad-strip > div { display: flex; justify-content: center; overflow-x: auto; }

.arcade-intro {
  padding: 0 4px;
}

.arcade-intro h1 {
  margin: 0;
  color: #d2b793;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.arcade-intro p {
  margin: 4px 0 0;
  color: #c0bac0;
}

.playnes-cookie-prompt:not(dialog) {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  align-self: center;
  width: min(100%, 850px);
  padding: 8px 12px;
  border: 1px solid #635540;
  border-radius: 10px;
  color: #f3f4f6;
  background: #16171b;
  font: 0.9rem/1.4 'Outfit', sans-serif;
}

.playnes-cookie-prompt p {
  margin: 0;
  text-align: start;
}

.playnes-cookie-prompt button {
  min-height: 32px;
  border: 1px solid #635540;
  border-radius: 6px;
  padding: 4px 10px;
  background: #222126;
  color: #f3f4f6;
  cursor: pointer;
  font: inherit;
}

.playnes-cookie-prompt button[data-value="accepted"] {
  color: #121214;
  background: #d2b793;
}

.public-page .meta {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .public-page .container {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 18px;
    overflow-wrap: anywhere;
  }

  .public-page h1 {
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.25;
  }

  .public-page .container p {
    text-align: start;
  }
}
