/* ==========================================================================
   VARIABLES & SETUP
   ========================================================================== */
   :root {
    /* Global Palette - Dark Midnight */
    --bg-black: #08090B;
    --bg-charcoal: #111316;
    --bg-graphite: #191C20;
    --bg-smoke: #24282D;
    
    --text-primary: #F2F0EA;
    --text-muted: #B8B4AA;
    --text-dark: #08090B;

    /* Game 1: Dracula (Gothic) */
    --dracula-main: #9F1D2D;
    --dracula-dark: #5B101B;
    --dracula-accent: #B8B4AA;

    /* Game 2: Monster (Creature) */
    --monster-main: #7FAE32;
    --monster-dark: #263617;
    --monster-accent: #C18A3A;

    /* Game 3: Night City (Neon) */
    --neon-main: #2878D8;
    --neon-dark: #101A32;
    --neon-accent: #A43FAF;

    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --z-notice: 1000;
    --z-header: 900;
    --z-cookie: 1900;
    --z-modal: 2000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.noir-theme {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Atmospheric Noise Texture */
.film-grain {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(images/%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   TYPOGRAPHY & COMMON COMPONENTS
   ========================================================================== */
h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    line-height: 1.1;
    font-weight: 400;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-black);
}
.btn-primary:hover {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-outline-nav {
    border: 1px solid var(--bg-smoke);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 2px;
}
.btn-outline-nav:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-charcoal);
}

.age-badge, .age-indicator {
    background-color: var(--bg-smoke);
    color: var(--text-primary);
    border: 1px solid #333;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   TOP NOTICE & HEADER
   ========================================================================== */
.top-notice {
    background-color: #5a0b14; /* Dark subdued red */
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: var(--z-notice);
    border-bottom: 1px solid #80101d;
}

.site-header {
    background-color: rgba(8, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid var(--bg-charcoal);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    letter-spacing: 2px;
}
.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.desktop-nav .nav-links {
    display: flex;
    gap: 2rem;
}
.desktop-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.desktop-nav a:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 999;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    transition: var(--transition-fast);
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

.mobile-nav-panel {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-graphite);
    border-bottom: 1px solid var(--bg-smoke);
    padding: 1rem 0;
}
.mobile-nav-panel.open {
    display: block;
}
.mobile-links {
    display: flex;
    flex-direction: column;
}
.mobile-links a {
    display: block;
    padding: 1rem 24px;
    border-bottom: 1px solid var(--bg-smoke);
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-black);
}

.hero-visuals {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    z-index: 1;
}

.hero-zone {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient blending edges between zones */
.zone-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(8,9,11,0.8) 0%, rgba(8,9,11,0.3) 50%, rgba(8,9,11,1) 100%);
}

.zone-dracula .zone-overlay {
    background: 
        linear-gradient(to right, rgba(8,9,11,0) 80%, var(--bg-black) 100%),
        linear-gradient(to bottom, rgba(8,9,11,0.8) 0%, rgba(159,29,45,0.2) 50%, var(--bg-black) 100%);
}
.zone-monster .zone-overlay {
    background: 
        linear-gradient(to left, rgba(8,9,11,0) 0%, var(--bg-black) 20%),
        linear-gradient(to right, rgba(8,9,11,0) 80%, var(--bg-black) 100%),
        linear-gradient(to bottom, rgba(8,9,11,0.8) 0%, rgba(127,174,50,0.1) 50%, var(--bg-black) 100%);
}
.zone-nightcity .zone-overlay {
    background: 
        linear-gradient(to left, rgba(8,9,11,0) 80%, var(--bg-black) 100%),
        linear-gradient(to bottom, rgba(8,9,11,0.8) 0%, rgba(40,120,216,0.2) 50%, var(--bg-black) 100%);
}

.hero-vignette {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-black) 90%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.hero-text {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}
.hero-disclaimer {
    background: rgba(17, 19, 22, 0.7);
    border: 1px solid var(--bg-smoke);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-disclaimer span {
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   GAMES SHOWCASE
   ========================================================================== */
.games-section {
    padding: 6rem 0;
    background-color: var(--bg-black);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-card {
    background-color: var(--bg-charcoal);
    border: 1px solid var(--bg-smoke);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), border-color var(--transition-fast);
}

.game-card:hover {
    transform: translateY(-5px);
}

.card-bg {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 3s ease;
}
.game-card:hover .card-bg img {
    transform: scale(1.05);
}
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-charcoal) 100%);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.game-title {
    font-size: 2rem;
}

.game-tagline {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.game-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.game-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.game-labels li {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.05);
}

.launch-game-btn {
    width: 100%;
    text-align: center;
}

/* Individual Game Theming */
.card-dracula { border-top: 3px solid var(--dracula-dark); }
.card-dracula:hover { border-color: var(--dracula-main); box-shadow: 0 0 30px rgba(159,29,45,0.1); }
.card-dracula .card-overlay { background: linear-gradient(to bottom, rgba(91,16,27,0.2) 0%, var(--bg-charcoal) 100%); }
.card-dracula .game-tagline { color: var(--dracula-main); }
.card-dracula .game-labels li { border: 1px solid rgba(159,29,45,0.3); color: var(--dracula-accent); }
.btn-dracula { background-color: var(--dracula-dark); color: #fff; }
.btn-dracula:hover { background-color: var(--dracula-main); }

.card-monster { border-top: 3px solid var(--monster-dark); }
.card-monster:hover { border-color: var(--monster-main); box-shadow: 0 0 30px rgba(127,174,50,0.1); }
.card-monster .card-overlay { background: linear-gradient(to bottom, rgba(38,54,23,0.3) 0%, var(--bg-charcoal) 100%); }
.card-monster .game-tagline { color: var(--monster-main); }
.card-monster .game-labels li { border: 1px solid rgba(127,174,50,0.3); color: var(--monster-accent); }
.btn-monster { background-color: var(--monster-dark); color: #fff; }
.btn-monster:hover { background-color: var(--monster-main); }

.card-nightcity { border-top: 3px solid var(--neon-dark); }
.card-nightcity:hover { border-color: var(--neon-main); box-shadow: 0 0 30px rgba(40,120,216,0.15); }
.card-nightcity .card-overlay { background: linear-gradient(to bottom, rgba(16,26,50,0.4) 0%, var(--bg-charcoal) 100%); }
.card-nightcity .game-tagline { color: var(--neon-main); }
.card-nightcity .game-labels li { border: 1px solid rgba(40,120,216,0.3); color: var(--neon-accent); }
.btn-nightcity { background-color: var(--neon-dark); color: #fff; }
.btn-nightcity:hover { background-color: var(--neon-main); }


/* ==========================================================================
   GAME FRAME (IFRAME OVERLAY)
   ========================================================================== */
.game-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(8,9,11,0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}
.game-overlay.active {
    z-index: 3000;
    opacity: 1;
    visibility: visible;
}

.game-frame-container {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    background-color: var(--bg-charcoal);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid var(--bg-smoke);
    transition: border-color 0.3s ease;
}

/* Dynamic theming via JS */
.game-frame-container.theme-dracula { border-color: var(--dracula-dark); box-shadow: 0 0 40px rgba(91,16,27,0.3); }
.game-frame-container.theme-monster { border-color: var(--monster-dark); box-shadow: 0 0 40px rgba(38,54,23,0.3); }
.game-frame-container.theme-nightcity { border-color: var(--neon-dark); box-shadow: 0 0 40px rgba(16,26,50,0.4); }

.game-frame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--bg-graphite);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.frame-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-game-title {
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.close-btn:hover {
    color: var(--text-primary);
}

.iframe-wrapper {
    flex-grow: 1;
    background-color: #000;
    position: relative;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-frame-footer {
    padding: 8px 20px;
    background-color: var(--bg-graphite);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   FEATURES & HOW TO PLAY
   ========================================================================== */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-graphite);
    border-top: 1px solid var(--bg-smoke);
    border-bottom: 1px solid var(--bg-smoke);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem 1rem;
}
.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}
.feature-box h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.feature-box h5 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.how-to-play-section {
    padding: 6rem 0;
    background-color: var(--bg-black);
}

.route-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.route-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--bg-smoke);
}

.route-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.route-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--bg-charcoal);
    border: 2px solid var(--bg-smoke);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.step-content h4 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    margin-top: 4px;
}
.step-content p {
    color: var(--text-muted);
}

/* ==========================================================================
   SOCIAL CASINO INFO
   ========================================================================== */
.social-casino-info {
    padding: 6rem 0;
    background-color: var(--bg-charcoal);
    border-top: 1px solid var(--bg-smoke);
}
.info-title {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.info-lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}
.info-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 2rem;
}
.info-details .dot {
    color: var(--bg-smoke);
}
.info-footer {
    color: #555;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
    padding: 6rem 0;
    background-color: var(--bg-black);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-charcoal);
    border: 1px solid var(--bg-smoke);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 1rem;
    padding-top: 1rem;
}
.faq-list {
    list-style: disc inside;
    margin-top: 0.5rem;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-graphite);
    border-top: 1px solid var(--bg-smoke);
}

.form-container {
    max-width: 600px;
}
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}
.contact-header p {
    color: var(--text-muted);
}

.contact-form {
    background-color: var(--bg-charcoal);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-smoke);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-black);
    border: 1px solid var(--bg-smoke);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    position: relative;
}
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    font-size: 0.875rem;
    text-align: center;
}
.form-status.success {
    display: block;
    background-color: rgba(127,174,50,0.1);
    color: var(--monster-main);
    border: 1px solid var(--monster-dark);
}
.form-status.error {
    display: block;
    background-color: rgba(159,29,45,0.1);
    color: var(--dracula-main);
    border: 1px solid var(--dracula-dark);
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
}
.legal-link {
    color: var(--text-muted);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}
.legal-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-black);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--bg-charcoal);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--bg-charcoal);
    padding-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
}

.footer-nav, .footer-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-nav a, .footer-legal-nav a, .footer-legal-nav button {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.footer-nav a:hover, .footer-legal-nav a:hover, .footer-legal-nav button:hover {
    color: var(--text-primary);
}
.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

/* ==========================================================================
   COOKIE POPUP
   ========================================================================== */
.cookie-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 400px;
    background-color: var(--bg-graphite);
    border: 1px solid var(--bg-smoke);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: var(--z-cookie);
    pointer-events: auto;
}

html:not(.needs-cookie-consent) .cookie-popup {
    display: none;
}

.cookie-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.cookie-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--bg-smoke);
    color: var(--text-primary);
}

/* Cookie Preferences */
.cookie-preferences {
    background-color: var(--bg-graphite);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-smoke);
    margin-bottom: 1.5rem;
}
.cookie-preferences h4 {
    margin-top: 0;
}
.pref-list {
    margin: 1.5rem 0;
}
.pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-smoke);
}
.pref-item:last-child {
    border-bottom: none;
}
.pref-item:first-child {
    padding-top: 0;
}
.pref-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
.pref-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.pref-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   LEGAL MODALS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(8,9,11,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-charcoal);
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 8px;
    border: 1px solid var(--bg-smoke);
    display: none; /* Hide individual modals */
    flex-direction: column;
}
.modal-content.active {
    display: flex;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-smoke);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 1.75rem;
    margin: 0;
}
.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 2rem 1.5rem;
    overflow-y: auto;
}
.modal-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.modal-body h4:first-child {
    margin-top: 0;
}
.modal-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Custom Scrollbar for Modals */
.scrollable::-webkit-scrollbar {
    width: 8px;
}
.scrollable::-webkit-scrollbar-track {
    background: var(--bg-black);
}
.scrollable::-webkit-scrollbar-thumb {
    background: var(--bg-smoke);
    border-radius: 4px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-actions .btn-outline-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-visuals {
        flex-direction: column;
    }
    /* Adjust overlays for vertical stack */
    .zone-dracula .zone-overlay {
        background: linear-gradient(to bottom, rgba(8,9,11,0.8) 0%, rgba(159,29,45,0.2) 50%, var(--bg-black) 100%);
    }
    .zone-monster .zone-overlay {
        background: linear-gradient(to bottom, rgba(8,9,11,0.8) 0%, rgba(127,174,50,0.1) 50%, var(--bg-black) 100%);
    }
    .zone-nightcity .zone-overlay {
        background: linear-gradient(to bottom, rgba(8,9,11,0.8) 0%, rgba(40,120,216,0.2) 50%, var(--bg-black) 100%);
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav, .footer-legal-nav {
        justify-content: center;
    }
    .game-frame-container {
        height: 90vh;
    }
    .cookie-popup {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

@media (max-width: 430px) {
    .hero-buttons {
        flex-direction: column;
    }
    .info-title {
        font-size: 2.5rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
}