/* ==========================================================================
   ARCANE LIBRARY CORE - VISUAL IDENTITY SYSTEM
   Site/Brand Name: beaconcrewmeetp.com
   Theme Focus: game-books-magic
   ========================================================================== */

/* 1. VARIABLES & THEMING RESET */
:root {
    /* Colors */
    --color-bg-midnight: #06070e;
    --color-bg-chamber: #0e1220;
    --color-surface-glass: rgba(139, 92, 246, 0.05);
    --color-surface-tertiary: #161d31;

    /* Accents & Gradients */
    --gradient-purple: linear-gradient(135deg, #7c3aed, #a855f7);
    --glow-purple: rgba(168, 85, 247, 0.35);

    --gradient-cyan: linear-gradient(135deg, #06b6d4, #67e8f9);
    --glow-cyan: rgba(34, 211, 238, 0.3);

    --gradient-gold: linear-gradient(135deg, #f59e0b, #fde68a);
    --glow-gold: rgba(245, 158, 11, 0.3);

    --gradient-premium: linear-gradient(135deg, #7c3aed, #06b6d4, #f59e0b);

    /* Fonts */
    --font-serif-cinzel: 'Cinzel', Georgia, serif;
    --font-serif-cinzel-deco: 'Cinzel Decorative', Georgia, serif;
    --font-sans-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono-runic: 'IBM Plex Mono', monospace;

    /* Glassmorphism Presets */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(167, 139, 250, 0.12);
    --glass-shadow: 0 0 50px rgba(139, 92, 246, 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-midnight);
    color: #f8fafc;
    font-family: var(--font-sans-body);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    padding-top: 80px; /* Offset to prevent header overlap since header is absolute */
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif-cinzel);
    color: #f8fafc;
    letter-spacing: 0.03em;
    font-weight: 700;
}

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

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

/* Custom Scrollbar for Wizard feel */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-midnight);
}
::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* ==========================================================================
   2. UNIQUE MAGICAL FX LAYERS & BACKGROUND DECORATIONS
   ========================================================================== */

/* Custom Cursor Trail Glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: screen;
    transition: width 0.2s ease, height 0.2s ease;
}

/* Ambient Particles */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 10px #06b6d4, 0 0 20px #7c3aed;
    animation: floatUp 15s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   3. SLIM & FLUID ARCANE NAVIGATION (HEADER) - NON-STICKY
   ========================================================================== */
.arcane-header {
    position: absolute; /* Changed from sticky so it does NOT follow users down */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 12px 0;
}

.header-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(8, 9, 20, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 16px; /* Slimmer, cleaner fluid look */
    padding: 6px 20px;   /* Reduced vertical padding to keep it slim */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.08), transparent);
    animation: pulseRuneLine 6s infinite ease-in-out;
}

@keyframes pulseRuneLine {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* Logo Design */
.logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.logo-icon-wrapper {
    position: relative;
    width: 34px; /* Scaled down logo for a slim fit */
    height: 34px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    animation: rotateGlyph 20s infinite linear;
}

@keyframes rotateGlyph {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif-cinzel-deco);
    font-size: 0.95rem; /* Marginally downscaled for cleaner geometry */
    font-weight: 900;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.08em;
}

.brand-sub {
    font-family: var(--font-mono-runic);
    font-size: 0.55rem;
    color: #67e8f9;
    letter-spacing: 0.25em;
}

/* Nav links list */
.nav-links-wrapper {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    font-family: var(--font-sans-body);
    font-weight: 600;
    font-size: 0.88rem; /* Slightly smaller text for cleaner slim look */
    color: #cbd5e1;
    padding: 8px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #f8fafc;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.1);
}

.nav-link.active {
    background: var(--gradient-purple);
    color: #f8fafc;
    box-shadow: 0 0 15px var(--glow-purple);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-header {
    background: var(--gradient-cyan);
    padding: 8px 16px; /* More compact button */
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font-sans-body);
    font-size: 0.82rem;
    color: #080914;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--glow-cyan);
    border: none;
    cursor: pointer;
}

.btn-cta-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.5);
}

.vip-badge {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-family: var(--font-mono-runic);
    font-size: 0.7rem;
}

.notification-orb {
    position: relative;
    cursor: pointer;
    color: #94a3b8;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.notification-orb:hover {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
}

.orb-pulse {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    animation: beaconPulse 1.5s infinite alternate;
}

@keyframes beaconPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 1; }
}

/* Notification Popup */
.notification-popup {
    position: absolute;
    top: 40px;
    right: 0;
    width: 260px;
    background: #111827;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    z-index: 101;
}

.notification-popup.show {
    display: block;
    animation: revealDown 0.3s ease-out forwards;
}

.notif-title {
    font-family: var(--font-serif-cinzel);
    font-size: 0.9rem;
    color: #fde68a;
    margin-bottom: 4px;
}

.notif-desc {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: #f8fafc;
    border-radius: 1px;
    transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(8, 9, 20, 0.98);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    z-index: 99;
}

.mobile-drawer.open {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: revealDown 0.4s ease-out;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-family: var(--font-serif-cinzel);
    padding: 8px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mobile-drawer-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 10px;
}

@keyframes revealDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. HOME VIEW: CINEMATIC HERO & ENVIRONMENT - CLEAN ARRANGEMENT
   ========================================================================== */
.hero-library {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, #150e32 0%, var(--color-bg-midnight) 70%);
}

/* Grid & Layer alignment */
.hero-magic-environment {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--color-bg-midnight) 100%);
    z-index: 1;
}

/* Fixed positioning of layout boxes */
.hero-left-content {
    position: relative;
    z-index: 2;
}

.hero-right-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Orbs */
.floating-magic-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 0;
    animation: driftOrb 15s infinite alternate ease-in-out;
}

.purple-orb {
    width: 350px;
    height: 350px;
    background: #7c3aed;
    top: 10%;
    left: 15%;
}

.cyan-orb {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    bottom: 10%;
    right: 15%;
    animation-delay: -5s;
}

.gold-orb {
    width: 250px;
    height: 250px;
    background: #f59e0b;
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

@keyframes driftOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.15); }
}

.hero-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.container-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

/* Hero Content Styling */
.adventure-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.tag-rune {
    font-size: 0.9rem;
    animation: shimmerEffect 2s infinite alternate;
}

.tag-text {
    font-family: var(--font-mono-runic);
    font-size: 0.75rem;
    color: #a855f7;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-headline {
    font-family: var(--font-serif-cinzel-deco);
    font-size: 3.2rem; /* Cleaned up layout to prevent breaking too aggressively */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-glow-purple {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
}

.hero-subheadline {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 580px;
    line-height: 1.6;
}

/* Hero buttons */
.hero-btn-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary-magical {
    background: var(--gradient-premium);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #06070e;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary-magical:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.45);
}

.btn-secondary-magical {
    background: var(--color-surface-glass);
    border: var(--glass-border);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
    box-shadow: var(--glass-shadow);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary-magical:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* Stats Row in Hero */
.hero-stats-row {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-bottom: 15px;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-family: var(--font-serif-cinzel);
    font-size: 1.6rem;
    font-weight: 900;
    color: #fde68a;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.hero-disclaimer-note {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 580px;
    border-left: 2px solid #ef4444;
    padding-left: 10px;
}

/* Right Content: 3D Spellbook Frame */
.spellbook-3d-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1.05;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 30px rgba(124, 58, 237, 0.1);
    animation: hoverFloating 6s infinite alternate ease-in-out;
}

@keyframes hoverFloating {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(1deg); }
}

.hero-floating-spellbook-img {
    width: 100%;
    height: 100%;
    object-position: center;
    transition: transform 0.6s ease;
}

.spellbook-3d-frame:hover .hero-floating-spellbook-img {
    transform: scale(1.03);
}

/* UI Overlays on Hero Image */
.magical-ui-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(180deg, rgba(8, 9, 20, 0.3) 0%, rgba(8, 9, 20, 0.8) 100%);
    pointer-events: none;
}

.overlay-rune-badge {
    align-self: flex-start;
    background: rgba(8, 9, 20, 0.85);
    border: 1px solid #06b6d4;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: var(--font-mono-runic);
    font-size: 0.7rem;
    color: #67e8f9;
}

.overlay-spinning-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    border: 1.5px dashed rgba(245, 158, 11, 0.25);
    border-radius: 50%;
    animation: rotateGlyph 10s infinite linear;
}

.overlay-stat-overlay {
    display: flex;
    gap: 10px;
    align-self: flex-end;
    width: 100%;
}

.overlay-stat-pill {
    background: rgba(22, 29, 49, 0.9);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 12px;
    font-family: var(--font-mono-runic);
    font-size: 0.75rem;
    color: #cbd5e1;
    flex: 1;
    text-align: center;
}

/* ==========================================================================
   5. GAME CONTAINER (MAIN CENTERPIECE)
   ========================================================================== */
.game-page-wrapper {
    padding: 80px 0;
    background: radial-gradient(circle at 50% 10%, #110c26 0%, var(--color-bg-midnight) 80%);
}

.game-intro-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.game-display-title {
    font-family: var(--font-serif-cinzel-deco);
    font-size: 2.4rem;
    margin: 10px 0;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-display-desc {
    font-size: 1rem;
    color: #cbd5e1;
}

.main-game-container {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 40px rgba(6, 182, 212, 0.1);
    max-width: 1240px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.game-top-bar {
    background: rgba(8, 9, 20, 0.85);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.game-title-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-cyan-dot {
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 8px #06b6d4;
    animation: beaconPulse 1s infinite alternate;
}

.game-title-badge h4 {
    font-family: var(--font-mono-runic);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #f8fafc;
}

.game-utility-controls {
    display: flex;
    gap: 8px;
}

.util-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 5px;
}

.util-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: #7c3aed;
    color: #67e8f9;
}

.util-btn.active-fav {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #fde68a;
}

/* Magic Frame & Iframe Container */
.iframe-enchanted-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020308;
    overflow: hidden;
}

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

/* Game Runic Borders */
.rune-border-top, .rune-border-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c3aed, #06b6d4, #f59e0b, transparent);
    z-index: 5;
}
.rune-border-top { top: 0; }
.rune-border-bottom { bottom: 0; }

.rune-border-left, .rune-border-right {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #7c3aed, #06b6d4, #f59e0b);
    z-index: 5;
}
.rune-border-left { left: 0; }
.rune-border-right { right: 0; }

/* Game Footer Info */
.game-footer-info {
    background: rgba(8, 9, 20, 0.85);
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.info-pill {
    display: flex;
    gap: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono-runic);
}

.info-label {
    color: #94a3b8;
}

.info-val {
    color: #f8fafc;
    font-weight: 600;
}

.value-green {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.value-purple {
    color: #a855f7;
}

/* Game Story Box underneath game */
.game-story-box {
    max-width: 1240px;
    margin: 30px auto 0 auto;
    background: var(--color-surface-glass);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px 25px;
}

.game-story-box h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: #fde68a;
}

.game-story-box p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* ==========================================================================
   6. STATS DASHBOARD & METRICS
   ========================================================================== */
.stats-dashboard-section {
    padding: 50px 0;
    background: rgba(8, 9, 20, 0.3);
}

.section-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--color-surface-glass);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.08);
    border-color: rgba(167, 139, 250, 0.25);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.purple-bg-glow { background: rgba(124, 58, 237, 0.12); box-shadow: 0 0 15px rgba(124, 58, 237, 0.2); }
.cyan-bg-glow { background: rgba(6, 182, 212, 0.12); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
.gold-bg-glow { background: rgba(245, 158, 11, 0.12); box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.premium-bg-glow { background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 15px rgba(255, 255, 255, 0.15); }

.stat-number {
    font-family: var(--font-serif-cinzel);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 4px;
    color: #f8fafc;
}

.stat-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-family: var(--font-mono-runic);
}

/* ==========================================================================
   7. CALLOUT DIRECT GAME BANNER
   ========================================================================== */
.cta-direct-game-banner {
    padding: 50px 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.glow-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: var(--font-mono-runic);
    font-weight: 700;
    margin-bottom: 10px;
}

.gold-glow {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    color: #fde68a;
}

.banner-text h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.banner-text p {
    font-size: 0.9rem;
    color: #cbd5e1;
    max-width: 700px;
}

/* ==========================================================================
   8. FEATURES SCENE: ASYMMETRICAL FANTASY CARDS
   ========================================================================== */
.features-arcade {
    padding: 80px 0;
}

.section-header-center {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.magic-subheading-glow {
    font-family: var(--font-mono-runic);
    color: #06b6d4;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    display: inline-block;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.section-main-title {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.section-desc-para {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Asymmetrical Grid */
.features-asymmetrical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-luxury-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #0e1220;
    transition: var(--transition-smooth);
}

.card-image-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.feature-bg-img {
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
}

.card-content-overlay {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(360deg, #06070e 0%, rgba(8, 9, 20, 0.5) 50%, transparent 100%);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-luxury-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.feature-luxury-card p {
    color: #cbd5e1;
    font-size: 0.88rem;
    max-width: 480px;
    margin-bottom: 15px;
}

.feature-interactive-tag {
    font-family: var(--font-mono-runic);
    font-size: 0.75rem;
    color: #67e8f9;
}

/* Hover effects */
.feature-luxury-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.12);
}

.feature-luxury-card:hover .card-image-bg-wrap {
    opacity: 0.45;
}

.feature-luxury-card:hover .feature-bg-img {
    transform: scale(1.04);
}

/* Individual card accent lights */
.card-purple:hover { box-shadow: 0 0 25px rgba(124, 58, 237, 0.15); }
.card-cyan:hover { box-shadow: 0 0 25px rgba(6, 182, 212, 0.15); }
.card-gold:hover { box-shadow: 0 0 25px rgba(245, 158, 11, 0.15); }
.card-premium:hover { box-shadow: 0 0 25px rgba(168, 85, 247, 0.15); }

/* ==========================================================================
   9. REWARDS INTERACTIVE DASHBOARD
   ========================================================================== */
.container-padding {
    padding: 80px 0;
}

.rewards-interactive-dashboard {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Daily Claim Chest Card */
.daily-chest-card {
    background: rgba(14, 18, 32, 0.8);
    border: 1.5px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 25px rgba(245, 158, 11, 0.08);
}

.chest-art-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.glowing-beams {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    animation: rotateGlyph 8s infinite linear;
}

.chest-emoji {
    font-size: 4.5rem;
    position: relative;
    z-index: 1;
    display: block;
    animation: hoverFloating 3s infinite alternate ease-in-out;
}

.chest-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.chest-info p {
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-bottom: 15px;
}

.timer-display {
    background: #06070e;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-block;
    font-family: var(--font-mono-runic);
    font-size: 0.85rem;
    color: #fde68a;
    margin-bottom: 20px;
}

/* Catalog of Rewards */
.rewards-catalog-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.catalog-item {
    background: var(--color-surface-glass);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: var(--transition-smooth);
}

.catalog-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(167, 139, 250, 0.25);
    transform: translateX(3px);
}

.catalog-img-wrap {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.catalog-detail {
    flex: 1;
}

.catalog-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.catalog-detail p {
    color: #cbd5e1;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.rewards-legal-notice {
    background: rgba(239, 68, 68, 0.03);
    border-left: 2px solid #ef4444;
    border-radius: 0 12px 12px 0;
    padding: 15px 20px;
    margin-top: 30px;
}

.rewards-legal-notice p {
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* ==========================================================================
   10. ABOUT US VIEW Layout
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.about-left-text h2 {
    font-size: 2.4rem;
    margin: 8px 0 15px 0;
}

.about-left-text p {
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.about-left-text h3 {
    font-size: 1.4rem;
    margin: 25px 0 10px 0;
    color: #fde68a;
}

.about-right-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.corporate-quick-card {
    background: #0e1220;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
}

.corporate-quick-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #06b6d4;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
}

.corporate-quick-card p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.corporate-quick-card p strong {
    color: #f8fafc;
}

/* ==========================================================================
   11. CONTACT US PAGE & SPELL DISPATCH FORM
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
}

.contact-form-side h2 {
    font-size: 2.2rem;
    margin: 8px 0 12px 0;
}

.contact-form-side p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.magical-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-input-wrapper label {
    font-family: var(--font-mono-runic);
    font-size: 0.75rem;
    color: #a855f7;
    font-weight: 600;
}

.form-input-wrapper input,
.form-input-wrapper select,
.form-input-wrapper textarea {
    background: rgba(8, 9, 20, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc;
    font-family: var(--font-sans-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-input-wrapper input:focus,
.form-input-wrapper select:focus,
.form-input-wrapper textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox-wrapper input {
    margin-top: 3px;
    accent-color: #7c3aed;
}

.form-checkbox-wrapper label {
    font-size: 0.75rem;
    color: #94a3b8;
    cursor: pointer;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
}

/* Info Side of Contact */
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-group-box {
    background: var(--color-surface-glass);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 16px;
}

.info-group-box h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fde68a;
}

.info-group-box p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.small-text-muted {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.link-glow {
    color: #67e8f9;
    font-weight: 600;
}

.link-glow:hover {
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.contact-map-placeholder {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: url('images/photo-1524661135-423995f22d0b.png') center;
    background-size: cover;
    border: 1px dashed rgba(167, 139, 250, 0.25);
}

.map-inner-glow {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 20, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono-runic);
    font-size: 0.75rem;
    color: #fde68a;
}

/* ==========================================================================
   12. LEGAL & POLICIES VIEWS (TERMS, PRIVACY, ETC) - VERY CLEAN & SYSTEMATIC
   ========================================================================== */
.legal-doc-layout h2 {
    font-size: 2.4rem;
    margin: 8px 0 4px 0;
}

.last-updated {
    font-family: var(--font-mono-runic);
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.legal-content {
    background: rgba(14, 18, 32, 0.5);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #fde68a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.legal-content h4 {
    font-size: 1.05rem;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #06b6d4;
}

.legal-content p {
    color: #cbd5e1;
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.legal-content li {
    margin-bottom: 6px;
    font-size: 0.90rem;
}

/* ==========================================================================
   13. DYNAMIC SHOW/HIDE NAVIGATION VIEW LOGIC
   ========================================================================== */
.view-section {
    display: none;
    animation: fadeViewIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-section.active-view {
    display: block;
}

@keyframes fadeViewIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   14. HOW TO PLAY MODAL OVERLAY
   ========================================================================== */
.how-to-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 9, 20, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.how-to-modal-card {
    background: #0e1220;
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    animation: revealModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes revealModal {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: #ef4444;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-top: 4px;
}

.modal-badge {
    font-family: var(--font-mono-runic);
    font-size: 0.7rem;
    color: #f59e0b;
}

.modal-body-content {
    margin-top: 20px;
}

.modal-step {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono-runic);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.modal-step h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.modal-step p {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.symbol-legend-box {
    margin-top: 20px;
    background: #06070e;
    border-radius: 12px;
    padding: 12px 16px;
}

.symbol-legend-box h5 {
    font-family: var(--font-mono-runic);
    font-size: 0.75rem;
    color: #06b6d4;
    margin-bottom: 10px;
}

.symbol-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.symbol-legend-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 3px;
}

.item-sym {
    color: #cbd5e1;
}

.item-val {
    color: #fde68a;
    font-weight: 600;
}

.modal-footer {
    margin-top: 20px;
    text-align: right;
}

/* ==========================================================================
   15. FOOTER SYSTEM WITH RUNIC SHIMMER
   ========================================================================== */
.arcane-footer {
    background: #030408;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    padding-top: 50px;
    position: relative;
    z-index: 5;
    margin-top: 80px;
}

.footer-divider-rune {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.rune-glyph {
    font-family: var(--font-mono-runic);
    font-size: 1.3rem;
    color: rgba(124, 58, 237, 0.3);
    animation: shimmerEffect 3s infinite alternate;
}

.rune-glyph:nth-child(2n) {
    animation-delay: 0.5s;
    color: rgba(6, 182, 212, 0.3);
}

@keyframes shimmerEffect {
    0% { opacity: 0.3; text-shadow: none; }
    100% { opacity: 1; text-shadow: 0 0 8px currentColor; }
}

.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 30px;
}

.footer-col h5 {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #f8fafc;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-brand-title h4 {
    font-family: var(--font-serif-cinzel-deco);
    font-size: 1.1rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-certification-badge {
    display: inline-block;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #cbd5e1;
    font-family: var(--font-mono-runic);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #67e8f9;
    padding-left: 3px;
}

.footer-plain-link {
    color: #67e8f9;
}

.footer-plain-link:hover {
    text-decoration: underline;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 30px 0;
    margin-top: 45px;
    text-align: center;
}

.footer-strict-disclaimer {
    max-width: 1000px;
    margin: 0 auto 20px auto;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-copyright-row {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-social-symbols {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--gradient-purple);
    color: #f8fafc;
    transform: scale(1.05);
}

/* ==========================================================================
   16. MOBILE ADVANTAGE: RESPONSIVENESS SYSTEM
   ========================================================================== */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 9, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(167, 139, 250, 0.25);
    padding: 10px 16px;
    z-index: 99;
}

.mobile-cta-btn {
    width: 100%;
    background: var(--gradient-premium);
    color: #06070e;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1200px) {
    .container-grid {
        gap: 30px;
    }
    .hero-headline {
        font-size: 2.8rem;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    /* Menu adaptation */
    .nav-links-wrapper {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .header-actions .btn-cta-header,
    .header-actions .vip-badge {
        display: none; /* Keep clean, access via drawer */
    }
    
    /* Layout adaptation */
    .container-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btn-group {
        justify-content: center;
    }
    .hero-stats-row {
        justify-content: center;
    }
    .hero-disclaimer-note {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-right-content {
        max-width: 400px;
        margin: 0 auto;
    }
    .features-asymmetrical-grid {
        grid-template-columns: 1fr;
    }
    .rewards-interactive-dashboard {
        grid-template-columns: 1fr;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-right-media {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .hero-headline {
        font-size: 2.2rem;
    }
    .game-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .game-utility-controls {
        width: 100%;
        overflow-x: auto;
    }
    .util-btn {
        flex-shrink: 0;
    }
    .mobile-sticky-cta {
        display: block;
    }
    body {
        padding-bottom: 60px; /* offset for sticky mobile bar */
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-copyright-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .legal-content {
        padding: 15px;
    }
}