/* ════════════════════════════════════════════════════════════════
   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;
}

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;
}

#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: 10px 16px;
    display: block;
    border: 2px solid transparent;
    text-decoration: none;
    transition: none;
    letter-spacing: 0.5px;
}

.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;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-gold);
    transition: all 0.2s;
}

.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% {
        text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
        opacity: 0.8;
    }

    50% {
        text-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
        opacity: 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);
    animation: title-in 0.8s ease-out both;
}

.line-2 {
    font-size: clamp(34px, 9vw, 80px);
    color: var(--text-gold);
    animation: title-in 0.8s 0.2s ease-out both;
}

.line-3 {
    font-size: clamp(22px, 5vw, 48px);
    color: var(--ws-accent);
    animation: title-in 0.8s 0.4s ease-out both;
}

@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 ARMORY – GAMES PORTFOLIO
   ════════════════════════════════════════════════════════════════ */
.armory-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: 6px;
}

.countdown-unit {
    text-align: center;
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--pt-primary);
    padding: 12px 14px;
    min-width: 70px;
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-gold);
    text-shadow: 2px 2px 0 var(--shadow-hard);
}

.countdown-name {
    font-family: var(--font-heading);
    font-size: 7px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.countdown-sep {
    font-family: var(--font-heading);
    font-size: 22px;
    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 - 80px);
    /* Adjust based on nav/footer */
    padding-top: 80px;
    /* 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 */
.main-wrapper 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: 768px) {
    :root {
        --section-pad: 60px 14px;
        --card-pad: 20px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 20, 0.97);
        border-bottom: 3px solid var(--ws-primary);
        padding: 12px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 24px;
        font-size: 11px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .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: 56px;
        padding: 10px 8px;
    }

    .countdown-value {
        font-size: 18px;
    }

    .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: 40px;
    /* Fits within 60px nav */
    width: auto;
}

.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: 60px !important;
        /* Push first item down past logo tab */
        align-items: center;
        /* Center links on mobile */
    }

    .nav-inner {
        justify-content: space-between !important;
        /* Revert mobile alignment */
    }

    .nav-logo {
        height: 100px;
        /* Slightly smaller on mobile if needed */
        width: 100px;
        left: 20px;
    }

    .nav-logo-img {
        height: 80px;
        width: auto;
    }
}

/* ----------------------------------------------------------------
   MOBILE MENU RESTORATION
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex !important;
        margin-left: auto;
        /* Push to right edge */
        z-index: 10005;
        /* Ensure clickable above logo */
        position: relative;
    }

    .nav-inner {
        justify-content: flex-end !important;
        /* Align hamburger right */
    }

    .nav-links {
        top: 100%;
        width: 100%;
        left: 0;
        padding-top: 20px !important;
        /* Revert partial padding */
        margin-top: 10px;
        /* Gap from navbar */
        z-index: 9998;
        /* Below logo box */
    }

    /* Ensure first link has clearance from the hanging logo */
    .nav-links li:first-child {
        margin-top: 60px;
    }

    .nav-logo {
        left: 20px;
        /* Keep logo on left */
    }
}

/* ----------------------------------------------------------------
   DESKTOP NAV PROTECTION
   ---------------------------------------------------------------- */
@media (min-width: 769px) {
    .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;
    }
}