/* ════════════════════════════════════════════════════════════════
   WIZARD SHRIMP GAMES – RETRO PIXEL ART DESIGN SYSTEM
   ════════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
    /* Core palette */
    --bg-dark: #0a0a1a;
    --bg-panel: rgba(10, 10, 30, 0.92);
    --bg-panel-alt: rgba(15, 20, 45, 0.88);

    /* Wizard Shrimp theme – aquatic blues & purples */
    --ws-primary: #6c5ce7;
    --ws-secondary: #00b4d8;
    --ws-accent: #a855f7;
    --ws-glow: rgba(108, 92, 231, 0.4);

    /* Mushroom Clicker theme – earthy greens & browns */
    --mc-primary: #78a55a;
    --mc-secondary: #c8a95e;
    --mc-accent: #e0a84c;
    --mc-glow: rgba(120, 165, 90, 0.4);

    /* Pestered theme */
    --pt-primary: #e74c3c;
    --pt-secondary: #ff6b35;
    --pt-glow: rgba(231, 76, 60, 0.3);

    /* UI colours */
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0cc;
    --text-gold: #ffd700;
    --text-green: #00ff88;
    --border-white: #ffffff;
    --border-grey: #555577;
    --shadow-hard: #000000;

    /* Typography */
    --font-heading: 'Press Start 2P', 'Courier New', monospace;
    --font-body: 'VT323', 'Courier New', monospace;

    /* Spacing */
    --section-pad: 80px 20px;
    --card-pad: 28px;
}

/* ─── Global Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: default;
    line-height: 1.6;
    image-rendering: pixelated;
    image-rendering: -webkit-crisp-edges;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
}

::selection {
    background: var(--ws-primary);
    color: #fff;
}

img,
video {
    image-rendering: pixelated;
    image-rendering: -webkit-crisp-edges;
    max-width: 100%;
    height: auto;
}

/* ─── News Content Styles ─── */
.news-content-area img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border: 4px solid var(--border-grey);
    box-shadow: 8px 8px 0 #000;
    border-radius: 2px;
    image-rendering: auto;
    /* Allow browser scaling for non-pixel art large photos */
}

.news-content-area a {
    color: var(--ws-primary);
    text-decoration: underline;
}

.news-content-area a:hover {
    color: var(--text-gold);
}

a {
    color: var(--text-gold);
    text-decoration: none;
}

/* ─── Scanline Overlay ─── */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.06) 2px,
            rgba(0, 0, 0, 0.06) 4px);
}

/* ════════════════════════════════════════════════════════════════
   NAVIGATION BAR
   ════════════════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 20, 0.92);
    border-bottom: 3px solid var(--ws-primary);
    backdrop-filter: blur(8px);
    transition: background 0.3s;
    min-height: 80px;
    display: flex;
    align-items: center;
}

#navbar.scrolled {
    background: rgba(5, 5, 20, 0.98);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-gold);
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-secondary);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    min-height: 40px;
    line-height: 1.2;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-gold);
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--text-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 2px solid var(--border-grey);
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 10006;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-gold);
    transition: all 0.2s;
    pointer-events: none;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(10, 10, 30, 0.55) 0%,
            rgba(10, 10, 30, 0.75) 50%,
            rgba(10, 10, 30, 0.95) 100%);
}

/* Parallax floating layers */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
    z-index: -1;
}

.parallax-stars {
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 15%, rgba(168, 85, 247, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 85% 80%, rgba(255, 215, 0, 0.5) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 75%, rgba(0, 180, 216, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 45% 90%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 25%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

.parallax-particles {
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(108, 92, 231, 0.45) 50%, transparent 100%),
        radial-gradient(3px 3px at 60% 70%, rgba(0, 255, 136, 0.2) 50%, transparent 100%),
        radial-gradient(2px 2px at 80% 20%, rgba(255, 107, 53, 0.25) 50%, transparent 100%),
        radial-gradient(2.5px 2.5px at 40% 55%, rgba(168, 85, 247, 0.3) 50%, transparent 100%);
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-badge {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-gold);
    letter-spacing: 4px;
    margin-bottom: 24px;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-family: var(--font-heading);
    line-height: 1.5;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    text-shadow: 4px 4px 0 var(--shadow-hard), 0 0 30px rgba(108, 92, 231, 0.5);
}

.line-1 {
    font-size: clamp(28px, 7vw, 64px);
    color: var(--ws-secondary);
}

.line-2 {
    font-size: clamp(34px, 9vw, 80px);
    color: var(--text-gold);
}

.line-3 {
    font-size: clamp(22px, 5vw, 48px);
    color: var(--ws-accent);
}

@keyframes title-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 26px;
    color: var(--text-green);
    min-height: 36px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 0 var(--shadow-hard);
}

.hero-sub {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 40px;
    animation: title-in 0.8s 1s ease-out both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: bounce-down 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 14px;
    color: var(--text-gold);
    opacity: 0.5;
}

.scroll-arrow:nth-child(2) {
    opacity: 0.3;
}

.scroll-arrow:nth-child(3) {
    opacity: 0.15;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

/* ─── Pixel Button ─── */
.pixel-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    padding: 16px 32px;
    color: #fff;
    background: var(--ws-primary);
    border: 4px solid var(--border-white);
    box-shadow: 6px 6px 0 var(--shadow-hard);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: none;
    letter-spacing: 1px;
}

.pixel-btn:hover {
    background: var(--text-gold);
    color: #000 !important;
    border-color: var(--text-gold);
    box-shadow: 3px 3px 0 var(--shadow-hard);
    transform: translate(3px, 3px);
}

.pixel-btn:active {
    box-shadow: 0 0 0 var(--shadow-hard);
    transform: translate(6px, 6px);
}

/* ════════════════════════════════════════════════════════════════
   SECTIONS – Shared
   ════════════════════════════════════════════════════════════════ */
.section {
    position: relative;
    z-index: 5;
    padding: var(--section-pad);
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(18px, 4vw, 32px);
    color: var(--text-gold);
    text-shadow: 3px 3px 0 var(--shadow-hard);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 22px;
    color: var(--text-secondary);
}

/* Pixel Dividers */
.pixel-divider,
.pixel-divider-top {
    width: 200px;
    height: 4px;
    margin: 16px auto;
    background: repeating-linear-gradient(90deg,
            var(--text-gold) 0px,
            var(--text-gold) 8px,
            transparent 8px,
            transparent 12px);
}

.pixel-divider-top {
    margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════════
   QUEST LOG – OWNER'S JOURNEY
   ════════════════════════════════════════════════════════════════ */
.quest-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d2b 100%);
}

.quest-timeline {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

/* Vertical line connector */
.quest-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(180deg,
            var(--ws-primary) 0px,
            var(--ws-primary) 8px,
            transparent 8px,
            transparent 16px);
    opacity: 0.4;
}

.quest-card {
    position: relative;
    background: var(--bg-panel);
    border: 4px solid var(--border-grey);
    box-shadow: 8px 8px 0 var(--shadow-hard);
    padding: 0;
    margin-left: 60px;
    overflow: hidden;
}

.quest-card[data-level="1"] {
    border-color: var(--ws-secondary);
}

.quest-card[data-level="2"] {
    border-color: var(--pt-primary);
}

.quest-card[data-level="3"] {
    border-color: var(--text-gold);
}

.quest-level-badge {
    position: absolute;
    left: -60px;
    top: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 8px;
    color: #fff;
    background: var(--ws-primary);
    border: 3px solid var(--border-white);
    box-shadow: 3px 3px 0 var(--shadow-hard);
    z-index: 2;
}

.quest-level-badge.boss {
    background: var(--pt-primary);
    animation: boss-pulse 1.5s ease-in-out infinite;
}

@keyframes boss-pulse {

    0%,
    100% {
        box-shadow: 3px 3px 0 #000, 0 0 10px rgba(231, 76, 60, 0.3);
    }

    50% {
        box-shadow: 3px 3px 0 #000, 0 0 25px rgba(231, 76, 60, 0.7);
    }
}

.quest-level-badge.legendary {
    background: linear-gradient(135deg, var(--text-gold), #ff8c00);
    animation: legendary-shine 3s linear infinite;
}

@keyframes legendary-shine {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }

    100% {
        filter: brightness(1);
    }
}

.quest-header {
    padding: 20px var(--card-pad) 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quest-title {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-gold);
    text-shadow: 2px 2px 0 var(--shadow-hard);
}

.quest-date {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-secondary);
}

.boss-banner {
    background: linear-gradient(90deg, var(--pt-primary), #c0392b, var(--pt-primary));
    text-align: center;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-gold);
    padding: 8px;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 var(--shadow-hard);
    animation: boss-banner-flash 2s ease-in-out infinite;
}

@keyframes boss-banner-flash {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

.quest-body {
    padding: 0 var(--card-pad) 20px;
    font-size: 22px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.quest-body p {
    margin-bottom: 14px;
}

.quest-body strong {
    color: var(--text-primary);
}

.quest-body em {
    color: var(--ws-secondary);
    font-style: italic;
}

.stat-highlight {
    color: var(--text-gold);
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.quest-stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 100px;
    text-align: center;
    background: rgba(108, 92, 231, 0.12);
    border: 2px solid var(--ws-primary);
    padding: 16px 10px;
}

.stat-box.highlight {
    border-color: var(--pt-primary);
    background: rgba(231, 76, 60, 0.1);
}

.stat-box.legendary-stat {
    border-color: var(--text-gold);
    background: rgba(255, 215, 0, 0.08);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-gold);
    text-shadow: 2px 2px 0 var(--shadow-hard);
    margin-bottom: 6px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 8px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quest-status {
    padding: 12px var(--card-pad);
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 2px;
    text-align: right;
}

.quest-status.complete {
    color: var(--text-green);
    background: rgba(0, 255, 136, 0.06);
    border-top: 2px solid rgba(0, 255, 136, 0.2);
}

.quest-status.active {
    color: var(--text-gold);
    background: rgba(255, 215, 0, 0.06);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    animation: blink-cursor 1.2s step-end infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ════════════════════════════════════════════════════════════════
   THE ARMOURY – GAMES PORTFOLIO
   ════════════════════════════════════════════════════════════════ */
.armoury-section {
    background: linear-gradient(180deg, #0d0d2b 0%, var(--bg-dark) 50%, #0d0d2b 100%);
}

.games-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 36px;
    padding: 0 10px;
}

/* Game Card */
.game-card {
    position: relative;
    overflow: hidden;
}

.game-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.game-card:hover .game-card-glow {
    opacity: 1;
}

.wizard-glow {
    background: var(--ws-glow);
}

.mushroom-glow {
    background: var(--mc-glow);
}

.pestered-glow {
    background: var(--pt-glow);
}

.game-card-inner {
    position: relative;
    z-index: 1;
    background: var(--bg-panel);
    border: 4px solid var(--border-grey);
    box-shadow: 8px 8px 0 var(--shadow-hard);
    padding: var(--card-pad);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wizard-theme .game-card-inner {
    border-color: var(--ws-primary);
}

.mushroom-theme .game-card-inner {
    border-color: var(--mc-primary);
}

.pestered-theme .game-card-inner {
    border-color: var(--pt-primary);
}

.wizard-theme:hover .game-card-inner {
    border-color: var(--ws-secondary);
}

.mushroom-theme:hover .game-card-inner {
    border-color: var(--mc-accent);
}

.pestered-theme:hover .game-card-inner {
    border-color: var(--pt-secondary);
}

/* Game Badge */
.game-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 8px;
    padding: 6px 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    background: var(--ws-primary);
    color: #fff;
    border: 2px solid #fff;
    align-self: flex-start;
}

.cozy-badge {
    background: var(--mc-primary);
}

.coming-badge {
    background: var(--pt-primary);
    animation: coming-flash 2s ease-in-out infinite;
}

@keyframes coming-flash {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
        filter: brightness(1.15);
    }
}

/* Game Title */
.game-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-gold);
    text-shadow: 3px 3px 0 var(--shadow-hard);
    margin-bottom: 6px;
}

.game-year {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Rating */
.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rating-stars {
    font-size: 18px;
    color: var(--text-gold);
    text-shadow: 1px 1px 0 var(--shadow-hard);
}

.rating-text {
    font-family: var(--font-heading);
    font-size: 8px;
    color: var(--text-green);
}

/* Game Description */
.game-description {
    font-size: 22px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Features */
.game-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.game-features li {
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Steam Buttons */
.steam-btn {
    text-align: center;
    align-self: stretch;
    font-size: 11px;
}

.wizard-btn {
    background: var(--ws-primary);
}

.wizard-btn:hover {
    background: var(--ws-secondary);
    color: #000;
    border-color: var(--ws-secondary);
}

.mushroom-btn {
    background: var(--mc-primary);
}

.mushroom-btn:hover {
    background: var(--mc-accent);
    color: #000;
    border-color: var(--mc-accent);
}

/* Pestered locked effect */
.locked .game-card-inner {
    position: relative;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.03) 10px,
            rgba(0, 0, 0, 0.03) 20px);
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon {
    font-size: 48px;
    opacity: 0.08;
}

/* Countdown */
.countdown-container {
    margin: 20px 0;
    position: relative;
    z-index: 3;
}

.countdown-label {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--pt-secondary);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.countdown-unit {
    text-align: center;
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--pt-primary);
    padding: 8px 6px;
    min-width: 50px;
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-gold);
    text-shadow: 2px 2px 0 var(--shadow-hard);
}

.countdown-name {
    font-family: var(--font-heading);
    font-size: 6px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.countdown-sep {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--pt-primary);
    animation: blink-cursor 1s step-end infinite;
}

.pestered-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.pestered-btn {
    flex: 1;
    text-align: center;
    font-size: 10px;
    background: var(--pt-primary);
    min-width: 160px;
}

.pestered-btn:hover {
    background: var(--pt-secondary);
    color: #000;
    border-color: var(--pt-secondary);
}

.kickstarter-btn {
    flex: 1;
    text-align: center;
    font-size: 10px;
    background: #14b87d;
    min-width: 160px;
}

.kickstarter-btn:hover {
    background: #1de9b6;
    color: #000;
    border-color: #1de9b6;
}

/* ════════════════════════════════════════════════════════════════
   MERCHANT – LINKS SECTION
   ════════════════════════════════════════════════════════════════ */
.merchant-section {
    background: linear-gradient(180deg, #0d0d2b 0%, var(--bg-dark) 100%);
}

.merchant-grid {
    max-width: 900px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

.merchant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-panel);
    border: 3px solid var(--border-grey);
    box-shadow: 6px 6px 0 var(--shadow-hard);
    padding: 28px 18px;
    text-decoration: none;
    transition: none;
}

.merchant-card:hover {
    border-color: var(--text-gold);
    box-shadow: 3px 3px 0 var(--shadow-hard);
    transform: translate(3px, 3px);
    background: rgba(255, 215, 0, 0.05);
}

.merchant-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.merchant-card h3 {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-gold);
    margin-bottom: 8px;
}

.merchant-card p {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Transparency Box */
.transparency-box {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-panel-alt);
    border: 4px solid var(--ws-primary);
    box-shadow: 8px 8px 0 var(--shadow-hard);
    padding: 30px;
    text-align: center;
}

.transparency-box h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-gold);
    margin-bottom: 14px;
}

.transparency-box p {
    font-size: 22px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.transparency-box strong {
    color: var(--text-primary);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 5;
    background: #050510;
    border-top: 4px solid var(--ws-primary);
    padding: 40px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-location {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-secondary);
    padding: 4px 8px;
}

.footer-links a:hover {
    color: var(--text-gold);
}

.footer-sep {
    color: var(--border-grey);
    margin: 0 4px;
}

.footer-copy {
    font-size: 18px;
    color: var(--border-grey);
    margin-bottom: 6px;
}

.footer-credits {
    font-size: 18px;
    color: var(--ws-accent);
    opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════════
   MAIN WRAPPER & IDENTITY STYLING
   ════════════════════════════════════════════════════════════════ */

.main-wrapper {
    min-height: calc(100vh - 100px);
    /* Adjust based on nav/footer */
    padding-top: 100px;
    /* Space for fixed nav */
    display: flex;
    flex-direction: column;
}

/* Center content on non-home pages (like Identity) */
body:not(:has(.hero-section)) .main-wrapper {
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #151535 0%, var(--bg-dark) 100%);
    padding: 120px 20px 80px;
}

/* Identity Form Containers */
.main-wrapper .row {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Force only the first column to show and be full width */
.main-wrapper .row>div:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
}

/* Aggressively hide all other columns and default Identity headers */
.main-wrapper .row>div:not(:first-child),
.main-wrapper .row hr,
.main-wrapper .row h3,
.main-wrapper .row h4,
.main-wrapper .row section p:has(a[href*="external-services"]) {
    display: none !important;
}

.main-wrapper h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-gold);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 3px 3px 0 var(--shadow-hard);
}

.main-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--ws-secondary);
    margin: 20px 0;
    text-align: center;
}

/* Diegetic Form Panel */
.main-wrapper section form,
.main-wrapper .card {
    background: var(--bg-panel);
    border: 4px solid var(--ws-primary);
    box-shadow: 10px 10px 0 var(--shadow-hard);
    padding: 40px;
    width: 100% !important;
}

/* Form Elements */
.form-floating,
.mb-3 {
    margin-bottom: 24px !important;
    width: 100% !important;
}

.form-label,
label {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

.form-control {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 2px solid var(--border-grey) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: var(--font-body) !important;
    font-size: 24px !important;
    padding: 16px !important;
    height: auto !important;
    width: 100% !important;
    transition: none !important;
    display: block !important;
}

.form-control:focus {
    border-color: var(--text-gold) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
    outline: none !important;
}

/* Checkbox styling */
.form-check-input {
    background-color: var(--bg-dark);
    border: 2px solid var(--border-grey);
    border-radius: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--ws-primary);
    border-color: var(--text-gold);
}

.form-check-label {
    font-family: var(--font-body);
    font-size: 18px;
    margin-left: 10px;
    color: var(--text-secondary);
}

/* Identity Buttons */
.w-100.btn-lg {
    display: block;
    width: 100%;
    font-family: var(--font-heading);
    font-size: 14px;
    padding: 16px;
    background: var(--ws-primary);
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 6px 6px 0 var(--shadow-hard);
    cursor: pointer;
    margin-top: 20px;
}

.w-100.btn-lg:hover {
    background: var(--text-gold);
    color: #000;
    border-color: var(--text-gold);
}

/* Validation errors */
.text-danger,
.validation-summary-errors {
    color: var(--pt-primary) !important;
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
    list-style: none;
}

.validation-summary-errors ul {
    padding-left: 0;
}

/* Links below forms - Targeted to only catch Identity pages (which don't use the .section class) */
.main-wrapper section:not(.section) a {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    color: var(--ws-secondary);
}

.main-wrapper section a:hover {
    color: var(--text-gold);
    text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════
   FADE-IN SCROLL ANIMATIONS
   ════════════════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 928px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 20, 0.98);
        border-bottom: 3px solid var(--ws-primary);
        padding: 0;
        z-index: 10005;
        /* Above everything when open */
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links a {
        padding: 14px 24px;
        font-size: 11px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px 14px;
        --card-pad: 20px;
    }

    .quest-timeline::before {
        display: none;
    }

    .quest-card {
        margin-left: 0;
    }

    .quest-level-badge {
        position: relative;
        left: auto;
        top: auto;
        margin: 16px 0 0 var(--card-pad);
    }

    .quest-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quest-stats {
        flex-direction: column;
    }

    .stat-box {
        min-width: auto;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .countdown-unit {
        min-width: 42px;
        padding: 6px 4px;
    }

    .countdown-value {
        font-size: 14px;
    }

    .countdown-sep {
        font-size: 14px;
    }

    .pestered-actions {
        flex-direction: column;
    }

    .merchant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .hero-sub {
        font-size: 7px;
    }

    .section-title {
        font-size: 16px;
    }

    .game-title {
        font-size: 14px;
    }

    .merchant-grid {
        grid-template-columns: 1fr;
    }

    .pixel-btn {
        font-size: 10px;
        padding: 14px 20px;
    }
}

/* ════════════════════════════════════════════════════════════════
   GLITCH TEXT EFFECT (subtle)
   ════════════════════════════════════════════════════════════════ */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--ws-primary);
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-gold);
}

/* ----------------------------------------------------------------
   MOBILE TOUCH TARGETS (SEO & CWV)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {

    .pixel-btn,
    .nav-links a,
    .merchant-card,
    .hero-cta,
    button {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    .nav-links a {
        padding-top: 16px;
        padding-bottom: 16px;
        justify-content: flex-start;
    }

    html {
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
    }
}

/* ----------------------------------------------------------------
   LOGO STYLES
   ---------------------------------------------------------------- */
.logo-img {
    display: block;
    image-rendering: pixelated;
}

.nav-logo-img {
    height: 50px;
    width: 62px;
    /* Maintain 1.24 aspect ratio */
    display: block;
}

.footer-logo-img {
    height: 64px;
    margin-right: 12px;
    width: auto;
}

/* Remove text effects from logo containers now holding images */
.nav-logo,
.footer-logo {
    text-shadow: none !important;
    gap: 0;
}

/* ----------------------------------------------------------------
   LOGO OVERLAY OVERRIDE
   ---------------------------------------------------------------- */
.nav-logo {
    position: relative;
    width: 80px;
    /* Reserve click area width */
    height: 40px;
    /* Preserve nav layout */
    overflow: visible !important;
}

.nav-logo-img {
    position: absolute;
    height: 110px;
    /* Much larger */
    width: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* Sit on top of everything */
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
    /* Pop out */
}

/* ----------------------------------------------------------------
   LOGO POSITION FIX (LOWERED)
   ---------------------------------------------------------------- */
.nav-logo-img {
    top: 5px !important;
    /* Start from top edge with margin */
    transform: translateX(-50%) !important;
    /* Horizontal center only */
}

/* ----------------------------------------------------------------
   LOGO BOX STYLING
   ---------------------------------------------------------------- */
.nav-logo {
    background: rgba(5, 5, 20, 0.98);
    border: 2px solid var(--border-grey);
    border-top: none;
    /* Look like it hangs */
    border-radius: 0 0 8px 8px;
    /* Rounded bottom */
    width: 130px;
    /* Wider to fit logo */
    height: 120px;
    /* Taller to contain logo */
    margin-top: -10px;
    /* Pull up to attach to top */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10001;
    /* Above nav content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.nav-logo-img {
    position: static;
    /* Let flex center it */
    transform: none !important;
    top: auto !important;
    left: auto !important;
    height: 100px;
    width: auto;
    margin-top: 10px;
}

/* ----------------------------------------------------------------
   LOGO LAYERED OVER NAV FIX
   ---------------------------------------------------------------- */
.nav-inner {
    position: relative;
    /* Establish positioning context */
    justify-content: flex-end !important;
    /* Push menu to right since logo is absolute */
}

.nav-logo {
    position: absolute !important;
    top: 0;
    left: 24px;
    /* Align with padding */
    margin: 0;
    border: 3px solid var(--ws-primary) !important;
    /* Purple border matching nav */
    border-top: none !important;
    background: rgba(5, 5, 20, 0.98);
    z-index: 10002;
    /* Ensure box shape */
    width: 130px;
    height: 120px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.nav-logo-img {
    margin-top: 15px;
    /* Push down inside box */
}

/* ----------------------------------------------------------------
   MOBILE NAV SPACING
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-links {
        padding-top: 20px !important;
        align-items: stretch;
        /* Stretch links to full width */
    }

    .nav-inner {
        justify-content: space-between !important;
    }

    .nav-logo {
        height: 80px;
        /* Reduced for mobile */
        width: 80px;
        left: 15px;
    }

    .nav-logo-img {
        height: 60px;
        width: auto;
    }
}

/* ----------------------------------------------------------------
   MOBILE MENU RESTORATION
   ---------------------------------------------------------------- */
@media (max-width: 928px) {
    .nav-hamburger {
        display: flex !important;
        margin-left: auto;
        z-index: 10010;
        position: relative;
    }

    .nav-inner {
        justify-content: flex-end !important;
    }

    .nav-links {
        top: 100%;
        width: 100%;
        left: 0;
        padding-top: 0 !important;
        margin-top: 0;
        z-index: 10005;
    }

    .nav-links li:first-child {
        margin-top: 40px;
        /* Clearance for logo tab */
    }

    .nav-logo {
        left: 15px;
    }
}

/* ----------------------------------------------------------------
   DESKTOP NAV PROTECTION
   ---------------------------------------------------------------- */
@media (min-width: 929px) {
    .nav-inner {
        padding-left: 170px !important;
        /* Force content right of logo */
    }
}

/* ----------------------------------------------------------------
   BUTTON & TITLE FIXES
   ---------------------------------------------------------------- */
.kickstarter-btn {
    background: #007a50 !important;
    /* Darker green */
    color: #ffffff !important;
    white-space: normal !important;
    /* Allow wrapping */
    height: auto !important;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1.2 !important;
    padding: 10px !important;
}

.kickstarter-btn:hover {
    background: #005c3c !important;
    color: #e2e2e2 !important;
}

/* Put game names in boxes */
.game-title {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-grey);
    padding: 10px;
    text-align: center;
    width: 100%;
    margin-bottom: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------------
   BUTTON OVERFLOW & STACKING FIX
   ---------------------------------------------------------------- */
.kickstarter-btn {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    padding: 8px 4px !important;
    /* Reduce side padding slightly */
}

/* On tablets/medium screens, stack the buttons vertically */
@media (max-width: 992px) {
    .pestered-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .pestered-btn,
    .kickstarter-btn {
        width: 100% !important;
        min-width: 0 !important;
        /* Allow shrinking if container is small */
        flex: none !important;
    }
}

/* ----------------------------------------------------------------
   QUEST LOG ANIMATIONS (RETRO VIBE)
   ---------------------------------------------------------------- */

/* 1. Animated 'Data Flow' Timeline */
.quest-timeline::before {
    background: repeating-linear-gradient(180deg,
            var(--ws-primary) 0,
            var(--ws-primary) 10px,
            transparent 10px,
            transparent 20px) !important;
    background-size: 4px 40px !important;
    animation: timeline-flow 1s linear infinite;
}

@keyframes timeline-flow {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 40px;
    }

    /* Seamless loop */
}

/* 2. Floating Level Badges */
.quest-level-badge {
    animation: float-badge 3s ease-in-out infinite;
}

.quest-card:nth-child(even) .quest-level-badge {
    animation-delay: 1.5s;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* 3. Card Hover 'Pop' (Juicy Game Feel) */
.quest-card {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.27), box-shadow 0.2s, border-color 0.2s !important;
}

.quest-card:hover {
    transform: scale(1.02) translateX(5px);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(108, 92, 231, 0.4) !important;
    border-color: var(--text-gold) !important;
    z-index: 10;
}

/* 4. Boss Banner Alert Flash */
.boss-banner {
    animation: boss-flash 1s step-end infinite alternate !important;
}

@keyframes boss-flash {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

/* 5. Active Quest Hologram Effect */
.quest-card[data-level='3'] {
    border-color: var(--ws-accent) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1) !important;
}

.quest-card[data-level='3'] .quest-status {
    animation: blink-text 1s step-end infinite;
}

@keyframes blink-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ----------------------------------------------------------------
   QUEST LOG: OVERDRIVE MODE (PROPER ANIMATIONS)
   ---------------------------------------------------------------- */

/* 1. Enable 3D Space */
.quest-timeline {
    perspective: 1500px;
}

/* 2. Timeline Laser Beam */
.quest-timeline::before {
    width: 6px !important;
    background: var(--ws-primary) !important;
    box-shadow: 0 0 15px var(--ws-primary), 0 0 30px var(--ws-primary);
    border-radius: 4px;
    animation: laser-flicker 0.1s infinite alternate !important;
    /* High energy flicker */
    left: 27px !important;
    /* Adjust for width change */
}

@keyframes laser-flicker {
    from {
        opacity: 0.85;
        box-shadow: 0 0 5px var(--ws-primary);
    }

    to {
        opacity: 1;
        box-shadow: 0 0 20px var(--ws-primary), 0 0 4px #fff;
    }
}

/* 3. Card Base Styles */
.quest-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27) !important;
    transform-style: preserve-3d;
    position: relative;
    overflow: visible !important;
    /* Allow arrow to hang out */
    background: rgba(10, 10, 25, 0.95) !important;
    border: 2px solid var(--border-grey);
}

/* 4. The 'Player Select' Cursor (?) */
.quest-card::after {
    content: '?';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) translateZ(20px);
    font-size: 50px;
    color: var(--text-gold);
    text-shadow: 4px 4px 0 #000;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 200;
}

/* 5. Hover State: 3D Tilt + Arrow + Glow */
.quest-card:hover {
    transform: rotateY(-4deg) scale(1.05) translateZ(10px);
    border-color: var(--text-gold) !important;
    box-shadow: -20px 20px 0 rgba(0, 0, 0, 0.8), 0 0 40px rgba(108, 92, 231, 0.6) !important;
    z-index: 100 !important;
}

.quest-card:hover::after {
    opacity: 1;
    left: -80px;
    /* Shoot out to the left */
    animation: cursor-bounce 0.6s ease-in-out infinite alternate;
}

@keyframes cursor-bounce {
    from {
        transform: translateY(-50%) translateX(0);
    }

    to {
        transform: translateY(-50%) translateX(-10px);
    }
}

/* 6. Boss Card: Glitch Shake on Hover */
.quest-card[data-level='2']:hover {
    border-color: var(--pt-primary) !important;
    box-shadow: -20px 20px 0 rgba(0, 0, 0, 0.8), 0 0 50px var(--pt-primary) !important;
    animation: glitch-shake 0.4s linear infinite;
}

@keyframes glitch-shake {
    0% {
        transform: rotateY(-4deg) scale(1.05) translate(0, 0);
    }

    25% {
        transform: rotateY(-4deg) scale(1.05) translate(-2px, 2px);
    }

    50% {
        transform: rotateY(-4deg) scale(1.05) translate(1px, -1px);
    }

    75% {
        transform: rotateY(-4deg) scale(1.05) translate(2px, 2px);
    }

    100% {
        transform: rotateY(-4deg) scale(1.05) translate(-1px, -2px);
    }
}

/* 7. Level Badge Spin */
.quest-card:hover .quest-level-badge {
    transform: rotate(360deg) scale(1.2);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: #fff;
    color: #000;
    border-color: #000;
}

/* ----------------------------------------------------------------
   GAME MODAL STYLING
   ---------------------------------------------------------------- */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    /* Above everything */
    display: none;
    /* Toggled via JS */
    align-items: center;
    justify-content: center;
    animation: fade-backdrop 0.3s;
}

.game-modal.open {
    display: flex !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.modal-content-box {
    position: relative;
    z-index: 2;
    background: #0d0d2b;
    border: 4px solid var(--pt-primary);
    box-shadow: 0 0 50px rgba(231, 76, 60, 0.4);
    /* Pestered Red Glow */
    padding: 0;
    max-width: 95vw;
    animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}

@keyframes modal-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: var(--pt-primary);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    border-bottom: 2px solid #000;
}

.game-viewport {
    background: #000;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

canvas#pestered-canvas {
    display: block;
    width: 800px;
    max-width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    background: #151525;
    image-rendering: pixelated;
}

.modal-footer {
    background: #08081a;
    color: var(--text-secondary);
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 24px;
    font-family: monospace;
    font-size: 14px;
    border-top: 2px solid #000;
}

.control-hint {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-hint span {
    color: var(--text-gold);
    border: 1px solid var(--border-grey);
    background: #222;
    padding: 2px 8px;
    font-family: var(--font-heading);
    font-size: 10px;
    box-shadow: 2px 2px 0 #000;
}

.modal-close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--pt-primary);
    color: #fff;
    font-size: 24px;
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 #000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: sans-serif;
    z-index: 10;
    transition: transform 0.2s;
}

.modal-close-btn:hover {
    background: #c0392b;
    transform: scale(1.1) rotate(90deg);
}

/* Mobile responsive canvas */
@media (max-width: 800px) {
    canvas#pestered-canvas {
        width: 100%;
        height: auto;
    }
}

/* ════════════════════════════════════════════════════════════════
   SUPPORT SECTION & LEADERBOARD
   ════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════
   SUPPORT SECTION & ARCADE CABINET
   ════════════════════════════════════════════════════════════════ */
.support-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a20 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arcade-cabinet {
    width: 100%;
    max-width: 600px;
    background: #111;
    border: 8px solid #333;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 20px #000;
    position: relative;
    overflow: hidden;
}

/* Removed arcade-cabinet::before screen effect to improve image clarity */

.arcade-marquee {
    background: #000;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 6px solid #444;
    box-shadow: inset 0 0 30px rgba(255, 0, 255, 0.2);
}

.marquee-text {
    font-family: var(--font-heading);
    color: #ff00ff;
    font-size: 28px;
    text-shadow: 2px 2px 0 #000, 0 0 15px #ff00ff;
    margin: 0;
    letter-spacing: 4px;
}

.blink {
    animation: blink-cursor 1.2s step-end infinite;
}

.arcade-main-panel {
    padding: 30px;
    background: #1a1a1a;
    border: 4px solid #222;
    margin: 20px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.arcade-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

@media (min-width: 600px) {
    .amount-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amount-btn {
    cursor: pointer;
}

.amount-btn input {
    display: none;
}

.amount-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
    border: 3px solid var(--ws-primary);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--ws-primary);
    transition: all 0.1s;
    box-shadow: 4px 4px 0 #5f27cd;
    text-transform: uppercase;
}

.amount-btn input:checked+span {
    background: var(--ws-primary);
    color: #fff;
    box-shadow: 0 0 0 transparent;
    transform: translate(4px, 4px);
}

.amount-btn:active span {
    box-shadow: 0 0 0 transparent;
    transform: translate(4px, 4px);
}

.custom-amount,
.initials-input {
    margin-bottom: 24px;
    text-align: center;
    width: 100%;
}

.custom-amount label,
.initials-input label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-gold);
    margin-bottom: 8px;
    text-shadow: 2px 2px 0 #000;
}

/* Spinners */
.arcade-spinner-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.arcade-initials-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.char-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    border: 3px solid #444;
    padding: 10px;
    width: 60px;
}

.char-display {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #00ff88;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.btn-spin {
    background: transparent;
    border: none;
    color: var(--ws-primary);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s, transform 0.1s;
}

.btn-spin:hover {
    color: #ff00ff;
}

.btn-spin:active {
    transform: scale(0.9);
}

#customAmount {
    width: 120px;
    padding: 12px;
    background: #000;
    border: 3px solid #444;
    color: #00ff88;
    font-family: var(--font-heading);
    font-size: 24px;
    text-align: center;
    margin: 0 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: center;
}

.arcade-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    width: 100%;
}

.arcade-buttons .pixel-btn {
    flex: 1;
    padding: 16px;
    font-size: 12px;
}

.leaderboard-btn {
    --btn-color: #ff0055;
    background-color: var(--btn-color);
}

.blink-on-hover:hover {
    animation: blink-cursor 0.5s step-end infinite;
}

/* Arcade Leaderboard Screen (Modal) */
.arcade-screen {
    background: #000;
    border: 2px solid #222;
    padding: 30px;
    flex-grow: 1;
    box-shadow: inset 0 0 50px rgba(0, 255, 136, 0.05);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-gold);
    border-bottom: 2px solid #222;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.leaderboard-header span:nth-child(2) {
    text-align: center;
}

.leaderboard-header span:nth-child(3) {
    text-align: right;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    padding: 12px 0;
    color: var(--text-primary);
}

.leaderboard-row .initials {
    text-align: center;
}

.leaderboard-row .amount {
    text-align: right;
}

.leaderboard-row:nth-child(1) {
    color: #ffd700;
}

.leaderboard-row:nth-child(2) {
    color: #c0c0c0;
}

.leaderboard-row:nth-child(3) {
    color: #cd7f32;
}

.leaderboard-row .pos {
    opacity: 0.6;
}

.leaderboard-empty {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-secondary);
    padding: 40px 0;
    animation: blink-cursor 1.2s step-end infinite;
}

.arcade-bottom {
    margin-top: 20px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 14px;
    color: #00ff88;
    animation: blink-cursor 1.5s step-end infinite;
}

@media (max-width: 600px) {
    .arcade-buttons {
        flex-direction: column;
    }
}

/* ════════════════════════════════════════════════════════════════
   CELEBRATION OVERLAY
   ════════════════════════════════════════════════════════════════ */
#celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.celebration-content {
    background: #111;
    border: 6px solid #ff00ff;
    padding: 40px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.4), inset 0 0 20px #000;
    transition: all 0.5s ease;
}

.bounce-text {
    font-family: var(--font-heading);
    color: #ffd700;
    font-size: clamp(32px, 8vw, 64px);
    text-shadow: 4px 4px 0 #000, 0 0 20px #ffd700;
    margin: 0 0 20px 0;
}

.flash-text {
    font-family: var(--font-heading);
    color: #00ffff;
    font-size: clamp(14px, 4vw, 24px);
    margin: 0;
}

/* ──────────────── STAGE 1: BOUNCE & FLASH ──────────────── */
.stage-1 .celebration-content {
    border-color: #ff00ff;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.4);
}

.stage-1 .bounce-text {
    animation: bounce-scale 1s ease-in-out infinite alternate;
    color: #ffd700;
}

.stage-1 .flash-text {
    animation: rapid-blink 0.3s step-end infinite;
    color: #00ffff;
}

/* ──────────────── STAGE 2: RAINBOW SPIN ──────────────── */
.stage-2 .celebration-content {
    animation: spin-box 2s linear infinite;
    border-radius: 50px;
}

.stage-2 .bounce-text {
    animation: rainbow-txt 1s linear infinite;
}

.stage-2 .flash-text {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

/* ──────────────── STAGE 3: PULSE & GLITCH ──────────────── */
.stage-3 .celebration-content {
    animation: heartbeat 0.8s ease-in-out infinite;
    border-color: #ff0000;
    box-shadow: 0 0 80px rgba(255, 0, 0, 0.8);
}

.stage-3 .bounce-text {
    animation: glitch-txt 0.2s linear infinite;
    color: #ff0000;
}

.stage-3 .flash-text {
    display: none;
}

/* ──────────────── STAGE 4: NEON WAVE ──────────────── */
.stage-4 .celebration-content {
    border-color: #00ff88;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.6);
    transform: scale(1.2);
}

.stage-4 .bounce-text {
    animation: neon-wave 2s ease-in-out infinite alternate;
    color: #00ff88;
    text-shadow: 0 0 30px #00ff88;
}

.stage-4 .flash-text {
    color: #ff00ff;
    animation: bounce-scale 0.5s infinite alternate;
}

/* ──────────────── STAGE 5: SUPERNOVA ──────────────── */
.stage-5 .celebration-content {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 100px #fff, 0 0 200px #fff;
    animation: supernova-shake 0.1s linear infinite;
}

.stage-5 .bounce-text {
    color: #000;
    text-shadow: none;
    animation: none;
    transform: scale(1.5);
}

.stage-5 .flash-text {
    color: #000;
    text-shadow: none;
    font-weight: bold;
}

/* ──────────────── KEYFRAMES ──────────────── */
@keyframes bounce-scale {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.1) translateY(-10px);
    }
}

@keyframes rapid-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes spin-box {
    100% {
        transform: rotate(360deg) scale(0.8);
    }
}

@keyframes rainbow-txt {
    0% {
        color: red;
    }

    20% {
        color: yellow;
    }

    40% {
        color: lime;
    }

    60% {
        color: cyan;
    }

    80% {
        color: magenta;
    }

    100% {
        color: red;
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

@keyframes glitch-txt {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-5px, 5px)
    }

    40% {
        transform: translate(-5px, -5px)
    }

    60% {
        transform: translate(5px, 5px)
    }

    80% {
        transform: translate(5px, -5px)
    }

    100% {
        transform: translate(0)
    }
}

@keyframes neon-wave {
    0% {
        transform: skewX(-15deg) translateX(-20px);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: skewX(15deg) translateX(20px);
        filter: hue-rotate(90deg);
    }
}

@keyframes supernova-shake {
    0% {
        transform: translate(0, 0) scale(1.2);
    }

    25% {
        transform: translate(10px, -10px) scale(1.2);
    }

    50% {
        transform: translate(-10px, 10px) scale(1.2);
    }

    75% {
        transform: translate(-10px, -10px) scale(1.2);
    }

    100% {
        transform: translate(10px, 10px) scale(1.2);
    }
}

/* ════════════════════════════════════════════════════════════════
   MEDIA GALLERY FRAMES
   ════════════════════════════════════════════════════════════════ */
.gallery-frame {
    background: #111;
    border: 4px solid #444;
    padding: 10px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-frame:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 8px 8px 0 rgba(0, 0, 0, 0.8);
}

.frame-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 2px solid #222;
}

.frame-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8) contrast(1.1);
}

.gallery-frame:hover .frame-inner img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

.frame-inner .scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

/* ════════════════════════════════════════════════════════════════
   TAB GALLERY BUTTONS
   ════════════════════════════════════════════════════════════════ */
.tab-btn {
    opacity: 0.6;
    transition: all 0.2s ease;
    transform: translateY(0);
}

.tab-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.tab-btn.active {
    opacity: 1;
    transform: translateY(2px);
    box-shadow: 0 0 10px var(--btn-color), inset 0 0 5px rgba(0, 0, 0, 0.5);
    border-color: #fff;
}

/* 🌐 COOKIE CONSENT BANNER (GDPR + GCv2) */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10005;
    background: var(--bg-panel);
    border: 4px solid var(--ws-primary);
    box-shadow: 8px 8px 0 var(--shadow-hard);
    padding: 24px;
    max-width: 450px;
    display: none;
    transition: opacity 0.5s ease-out;
}

.cookie-banner.show {
    display: block;
    animation: slide-in-cookie 0.6s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes slide-in-cookie {
    from {
        transform: translateX(110%);
    }

    to {
        transform: translateX(0);
    }
}

.cookie-title {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-gold);
    margin: 0 0 12px;
    text-shadow: 2px 2px 0 #000;
}

.cookie-text {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-actions .banner-btn {
    flex: 1;
    font-size: 9px;
    padding: 12px 0;
}

.decline-btn {
    background: #444;
    border-color: var(--border-grey);
}

.blink {
    animation: cookie-blink 1s step-end infinite;
}

@keyframes cookie-blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 18px;
    }

    .cookie-text {
        font-size: 18px;
    }
}

/* ─── Policy / Legal Doc Styling ─── */
.policy-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d2b 100%);
    min-height: calc(100vh - 100px);
}

.policy-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 4px solid var(--border-grey);
    box-shadow: 10px 10px 0 var(--shadow-hard);
    padding: 60px;
}

.policy-box h2 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-gold);
    margin: 40px 0 20px;
    text-shadow: 2.5px 2.5px 0 #000;
}

.policy-box h3 {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--ws-secondary);
    margin: 30px 0 15px;
}

.policy-box p {
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.policy-box strong {
    color: var(--text-primary);
}

.policy-box ul {
    margin: 15px 0 30px 25px;
    list-style-type: square;
    color: var(--text-secondary);
}

.policy-box li {
    font-family: var(--font-body);
    font-size: 20px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .policy-box {
        padding: 30px;
        margin: 0 15px;
    }
}

/* ════════════════════════════════════════════════════════════════
   RETRO DROPDOWN MENU
   ════════════════════════════════════════════════════════════════ */

.retro-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}

.retro-dropdown-toggle {
    background: none;
    border: 2px solid transparent;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    min-height: 40px;
    line-height: 1.2;
}

.retro-dropdown-toggle:hover,
.retro-dropdown-toggle.active {
    color: var(--text-gold);
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--text-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.dropdown-caret {
    font-size: 12px;
    transition: transform 0.2s;
}

.retro-dropdown-toggle.active .dropdown-caret {
    transform: rotate(180deg);
}

.retro-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--bg-dark);
    border: 3px solid var(--ws-primary);
    box-shadow: 0 0 20px var(--ws-glow), 4px 4px 0 rgba(0, 0, 0, 0.8);
    z-index: 9999;
    flex-direction: column;
    padding: 6px 0;
}

.retro-dropdown-menu.open {
    display: flex;
}

.retro-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s, background 0.15s;
    border-left: 3px solid transparent;
}

.retro-dropdown-menu a:hover {
    color: var(--text-gold);
    background: rgba(108, 92, 231, 0.12);
    border-left-color: var(--text-gold);
}

.dropdown-divider {
    border: none;
    border-top: 2px dashed #333;
    margin: 6px 10px;
}

.dropdown-logout-btn {
    display: block;
    width: 100%;
    padding: 10px 18px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--pt-primary);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.dropdown-logout-btn:hover {
    color: #ff8072;
    background: rgba(231, 76, 60, 0.1);
    border-left-color: var(--pt-primary);
}

/* ════════════════════════════════════════════════════════════════
   RETRO DATA TABLE
   ════════════════════════════════════════════════════════════════ */

.retro-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 20px;
}

.retro-table thead tr {
    border-bottom: 3px solid var(--ws-primary);
}

.retro-table thead th {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-gold);
    padding: 12px 14px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.retro-table tbody tr {
    border-bottom: 2px solid #1e1e3a;
    transition: background 0.15s;
}

.retro-table tbody tr:hover {
    background: rgba(108, 92, 231, 0.07);
}

.retro-table tbody td {
    padding: 12px 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

.retro-table .col-id {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--ws-secondary);
}

.retro-table .col-amount {
    color: #00e676;
    font-size: 22px;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    font-family: var(--font-heading);
    font-size: 8px;
    border: 2px solid currentColor;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pending {
    color: #f0c040;
}

.status-paid {
    color: #00b4d8;
}

.status-shipped {
    color: #00e676;
}

.retro-select {
    background: #111;
    border: 2px solid var(--border-grey);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 8px;
    padding: 6px 10px;
    cursor: pointer;
    text-transform: uppercase;
}

.retro-select:focus {
    outline: none;
    border-color: var(--ws-primary);
}

/* --- 16. Donation Payment Modal & Stripe Elements --- */
.arcade-modal {
    background: #111;
    border: 4px solid var(--ws-primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.8);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.arcade-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--ws-primary), transparent);
    animation: scanline-move 2s linear infinite;
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--text-gold);
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#payment-element-container {
    background: #1a1a1a;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 4px;
    min-height: 200px;
}

.error-text {
    color: #ff0055;
    font-size: 13px;
    text-align: center;
    font-family: monospace;
}

.hi-score-banner {
    pointer-events: none;
    animation: hi-score-zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes hi-score-zoom {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-20deg);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}


/* --- 17. Modal Responsiveness & Scrolling --- */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    /* Changed to display: flex via JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.arcade-modal {
    max-height: 90vh;
    width: 100%;
    max-width: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ws-primary) #111;
}

.arcade-modal::-webkit-scrollbar {
    width: 8px;
}

.arcade-modal::-webkit-scrollbar-track {
    background: #111;
}

.arcade-modal::-webkit-scrollbar-thumb {
    background-color: var(--ws-primary);
    border: 2px solid #111;
}

/* Ensure Stripe Payment Element doesn"t break container */
#payment-element-container {
    overflow: hidden;
    margin-bottom: 20px;
}


/* --- 18. Leaderboard Scrolling Fix --- */
.arcade-screen {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ws-primary) #000;
}

.arcade-screen::-webkit-scrollbar {
    width: 6px;
}

.arcade-screen::-webkit-scrollbar-track {
    background: #000;
}

.arcade-screen::-webkit-scrollbar-thumb {
    background: var(--ws-primary);
    border: 1px solid #000;
}

.leaderboard-rows {
    padding-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════════
   FLOATING CART FAB
   ════════════════════════════════════════════════════════════════ */
.floating-cart-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 3px solid var(--ws-primary);
    box-shadow: 0 0 18px rgba(108, 92, 231, 0.35), 4px 4px 0 rgba(0, 0, 0, 0.8);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.floating-cart-fab:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: var(--text-gold);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.45), 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.floating-cart-fab:active {
    transform: translateY(0) scale(0.97);
}

.floating-cart-icon {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(108, 92, 231, 0.5));
}

.floating-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--ws-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 9px;
    min-width: 22px;
    height: 22px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.6);
    animation: fab-badge-pulse 2s ease-in-out infinite;
}

@keyframes fab-badge-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(108, 92, 231, 0.6); }
    50% { box-shadow: 0 0 16px rgba(108, 92, 231, 0.9); }
}

@media (max-width: 600px) {
    .floating-cart-fab {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }

    .floating-cart-icon {
        font-size: 22px;
    }
}