/* Pinball Boss Quest theme, shared by the game page and its privacy page. */
/* Palette from the game's ui_theme.py: BG, GOLD, CYAN, INK, MUTED + gold-brown frames */
.ap-page.theme-pbq {
    --wiki-bg: #0d1420;
    --wiki-surface: #18171d;
    --wiki-surface-2: #201f27;
    --wiki-slot: #0b1422;
    --wiki-border: #6b5233;
    --wiki-border-strong: #c49a5c;
    --wiki-text: #f0f5ff;
    --wiki-text-muted: #ebd7af;
    --wiki-text-dim: #919ebc;
    --wiki-accent: #c49a5c;
    --wiki-accent-text: #ffd25f;
    --wiki-accent-hover: #4bdbff;
    --wiki-radius: 8px;
    --theme-glow: rgba(75, 219, 255, 0.25);
    --theme-secondary: #4bdbff;
}
.theme-pbq a:hover { color: #4bdbff; }
.theme-pbq .mod-card h3 { color: #ffd25f; font-size: 0.75rem; line-height: 1.6; }
.theme-pbq .mod-facts dt { font-family: "Press Start 2P", monospace; font-size: 0.55rem; color: #4bdbff; }
.theme-pbq .mod-eyebrow-accent { color: #ff69be; }
.theme-pbq .button { font-family: "Press Start 2P", monospace; font-size: 0.65rem; }
.pbq-widget { display: block; width: 100%; max-width: 646px; height: 190px; border: 0; margin: 1rem auto 0; }
.pbq-hero {
    background: linear-gradient(rgba(10, 8, 20, 0.35), rgba(10, 8, 20, 0.85)), url("./assets/steam_library_hero_3840x1240.png") center / cover no-repeat;
    image-rendering: pixelated;
}
.pbq-hero .pbq-logo { max-width: min(640px, 90%); height: auto; image-rendering: pixelated; }
.pbq-hero p { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.pbq-steam { background: #1b2838; color: #c7d5e0; border-color: #66c0f4; }
.pbq-steam:hover { background: #2a475e; }

/* Gallery */
.pbq-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pbq-gallery a { display: block; }
.pbq-gallery img { border: 1px solid var(--wiki-border); }
.pbq-gallery a:hover img, .pbq-gallery a:focus-visible img { border-color: var(--wiki-accent-hover); }
.pbq-gallery img, .pbq-video { width: 100%; height: auto; border-radius: 6px; image-rendering: pixelated; display: block; }
.pbq-video {
    max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: contain;
    background: #000; border: 1px solid var(--wiki-border-strong); border-radius: var(--wiki-radius);
}
.pbq-video-link { text-align: center; margin-top: 0.75rem; }

/* Lightbox (flat 1px border, no bevel) */
.pbq-lightbox {
    padding: 0; border: 1px solid var(--wiki-border-strong); border-radius: var(--wiki-radius);
    background: var(--wiki-bg); color: var(--wiki-text); max-width: min(1280px, 95vw);
}
.pbq-lightbox::backdrop { background: rgba(5, 6, 12, 0.88); }
.pbq-lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; image-rendering: pixelated; }
.pbq-lightbox-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-top: 1px solid var(--wiki-border); }
.pbq-lightbox-caption { flex: 1; font-size: 0.9rem; color: var(--wiki-text-muted); }
.pbq-lightbox button {
    font-family: "Press Start 2P", monospace; font-size: 0.65rem; cursor: pointer;
    background: var(--wiki-surface-2); color: var(--wiki-text); border: 1px solid var(--wiki-border);
    border-radius: 4px; padding: 0.5rem 0.7rem;
}
.pbq-lightbox button:hover, .pbq-lightbox button:focus-visible { border-color: var(--wiki-accent-hover); color: var(--wiki-accent-hover); }

/* Bosses */
.pbq-bosses { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; counter-reset: boss; }
.pbq-bosses li {
    counter-increment: boss; display: flex; align-items: center; gap: 0.6rem;
    background: var(--wiki-surface); border: 1px solid var(--wiki-border); border-radius: 6px; padding: 0.6rem 0.75rem;
}
.pbq-bosses li::before {
    content: counter(boss, decimal-leading-zero); font-family: "Press Start 2P", monospace;
    font-size: 0.6rem; color: #4bdbff;
}
.pbq-bosses li:last-child { border-color: var(--wiki-border-strong); color: #ffd25f; }
.pbq-difficulties { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pbq-difficulties li {
    font-family: "Press Start 2P", monospace; font-size: 0.6rem; padding: 0.5rem 0.7rem;
    border: 1px solid var(--wiki-border); border-radius: 4px;
}
.pbq-difficulties li:nth-child(1) { color: #9be88a; }
.pbq-difficulties li:nth-child(2) { color: #4bdbff; }
.pbq-difficulties li:nth-child(3) { color: #ff69be; }
.pbq-difficulties li:nth-child(4) { color: #ffd25f; border-color: var(--wiki-border-strong); }

/* Closing call to action */
.pbq-cta { text-align: center; border: 1px solid var(--wiki-border-strong); }
.pbq-cta h2 { font-family: "Press Start 2P", monospace; font-size: 0.95rem; line-height: 1.6; color: #ffd25f; }

@media (max-width: 600px) {
    .pbq-lightbox-caption { font-size: 0.8rem; }
}

/* Body-text links: gold, cyan on hover (instead of browser default blue) */
.theme-pbq .section a:not(.button),
.theme-pbq .pbq-text-link { color: #ffd25f; text-decoration: underline; text-underline-offset: 3px; }
.theme-pbq .section a:not(.button):hover,
.theme-pbq .section a:not(.button):focus-visible { color: #4bdbff; }

/* Quick link on the right of the breadcrumb bar */
.theme-pbq .pbq-quicklinks { margin-left: auto; display: flex; gap: 1rem; }
.theme-pbq .pbq-quicklinks a { color: var(--wiki-text-dim); }
.theme-pbq .pbq-quicklinks a:hover, .theme-pbq .pbq-quicklinks a:focus-visible { color: #4bdbff; }

/* Privacy page */
.pbq-legal-hero { padding: 3rem 1rem; text-align: center; }
.pbq-legal-hero h1 { font-family: "Press Start 2P", monospace; font-size: clamp(1.1rem, 4vw, 2rem); line-height: 1.5; color: #ffd25f; margin: 0 0 1rem; }
.pbq-legal-hero p { color: var(--wiki-text-muted); margin: 0; }
.pbq-legal .section { max-width: 900px; margin-left: auto; margin-right: auto; }
.pbq-legal .section h2 { font-family: "Press Start 2P", monospace; font-size: 0.8rem; line-height: 1.6; color: #ffd25f; }
.pbq-legal .section strong { color: var(--wiki-text-muted); }
.pbq-updated { font-family: "Press Start 2P", monospace; font-size: 0.6rem; color: #4bdbff; }
