/* ==========================================================================
   DEEP SEA KINGDOM - PREMIUM AQUATIC DESIGN SYSTEM BY PAVOPLAYNST
   SPOOKY HALLOWEEN RE-DESIGN EDITION - IMPROVED LAYOUT CODES
   ========================================================================== */

/* DESIGN SYSTEM VARIABLES */
:root {
    --bg-primary: #040109;          /* Deepest Abyssal Violet */
    --bg-secondary: #0a0314;        /* Midnight Spooky Ocean */
    --surface-color: #140724;       /* Witch Cavern Ground */
    
    /* Sea Accents & Spooky Glows */
    --accent-primary: #ff7a00;
    --accent-primary-grad: linear-gradient(135deg, #ff7a00 0%, #ff4500 100%); /* Toxic Flame */
    --accent-primary-glow: rgba(255, 122, 0, 0.45);
    
    --accent-secondary: #39ff14;
    --accent-secondary-grad: linear-gradient(135deg, #39ff14 0%, #00e658 100%); /* Spectral Slime */
    --accent-secondary-glow: rgba(57, 255, 20, 0.4);
    
    --accent-third: #bf55ec;
    --accent-third-grad: linear-gradient(135deg, #bf55ec 0%, #7d1fd8 100%); /* Dark Gothic Magic */
    --accent-third-glow: rgba(191, 85, 236, 0.35);
    
    --premium-halloween-grad: linear-gradient(135deg, #ff7a00, #bf55ec, #39ff14);
    
    /* Advanced Glassmorphism System */
    --glass-bg: rgba(10, 3, 20, 0.72);
    --glass-blur: 28px;
    --glass-border: 1px solid rgba(255, 122, 0, 0.18);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    
    /* Typography Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2d7f3;
    --text-muted: #9c89b8;
    --text-accent: #ffa64d;
    
    /* Layout Constants */
    --container-width: 1240px;
}

/* RESET & CORE DEFAULTS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.62;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 50% -10%, #250a45 0%, var(--bg-primary) 70%),
        radial-gradient(circle at 15% 75%, #05260c 0%, transparent 45%),
        radial-gradient(circle at 85% 45%, #2c053c 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AMBIENT EFFECTS */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.55;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(140, 90, 245, 0.12) 0%, transparent 60%);
}

.fog-1 {
    animation: drift-fog 50s linear infinite;
    top: -5%;
}

.fog-2 {
    animation: drift-fog 35s linear infinite reverse;
    bottom: -10%;
}

.spectral-ray {
    position: absolute;
    top: 0;
    left: 35%;
    width: 350px;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(57, 255, 20, 0.06), transparent);
    transform: rotate(-12deg);
    filter: blur(50px);
    pointer-events: none;
}

.deep-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(3, 1, 7, 0.8) 100%);
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

.sparkle-p {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px currentColor;
}

/* TOP WARNING DISCLAIMER BAR */
.disclaimer-top-bar {
    background: rgba(4, 1, 9, 0.98);
    border-bottom: 1px solid rgba(255, 122, 0, 0.25);
    color: var(--text-accent);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 12px 0;
    position: relative;
    z-index: 110;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.warning-tag {
    background: var(--accent-primary-grad);
    color: #040109;
    padding: 3px 9px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    box-shadow: 0 0 12px var(--accent-primary-glow);
}

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

/* ANIMATION KEYFRAMES */
@keyframes drift-fog {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes float-bubble {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-5vh) translateX(100px) scale(1.2);
        opacity: 0;
    }
}

@keyframes glassShimmer {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(150%) skewX(-20deg); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 122, 0, 0.25); }
    50% { box-shadow: 0 0 28px rgba(255, 122, 0, 0.6); }
}

@keyframes spookyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* PREMIUM NAVIGATION DOCK HEADER */
.main-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: var(--container-width);
    height: 58px; /* Slightly heightened for comfortable spacing */
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    background: rgba(10, 3, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 122, 0, 0.2);
    border-radius: 16px;
    padding: 0 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
}

/* Animated Logo Group */
.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 12px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.logo-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 25px;
    height: 25px;
    filter: drop-shadow(0 0 6px rgba(255, 122, 0, 0.75));
}

.logo-sparkles .sparkle {
    position: absolute;
    font-size: 11px;
    line-height: 1;
}

.sparkle.s1 { top: -8px; right: -8px; }
.sparkle.s2 { bottom: -8px; left: -6px; }

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

.logo-brand {
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: var(--accent-primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-domain {
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-top: -2px;
}

/* Navigation Dock Link Buttons */
.nav-glass-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 3px;
}

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

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 122, 0, 0.12);
}

.nav-link.active {
    color: #040109;
    background: var(--accent-primary-grad);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.45);
}

/* Header Utilities */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* LAYOUT COMPONENT BUTTONS */
.primary-cta-btn {
    background: var(--accent-primary-grad);
    border-radius: 10px;
    padding: 1px;
    display: inline-block;
}

.cta-inner {
    display: block;
    background: #040109;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 9px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.primary-cta-btn:hover .cta-inner {
    background: transparent;
    color: #040109;
}

.cta-pulse {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
    pointer-events: none;
}

.primary-accent-btn, .secondary-accent-btn {
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.primary-accent-btn {
    background: var(--accent-primary-grad);
    color: #040109;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.primary-accent-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(255, 122, 0, 0.55);
}

.primary-accent-btn.sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 10px;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: glassShimmer 5s infinite;
}

.secondary-accent-btn {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 122, 0, 0.25);
}

.secondary-accent-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: var(--accent-secondary);
}

/* MOBILE NAV DROPDOWN */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 78px;
    left: 12px;
    width: calc(100% - 24px);
    background: rgba(6, 2, 13, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 16px;
    border: 1px solid rgba(255, 122, 0, 0.25);
    padding: 20px;
    z-index: 99;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
}

.mobile-nav-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.mobile-nav-link.active {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* CONTAINER & RESPONSIVE GRID LAYOUTS */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.py-120 {
    padding-top: 120px;
    padding-bottom: 120px;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* VIEW TRANSITIONS */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* HERO LAYER SECTION */
.hero-section {
    position: relative;
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: center;
    padding-top: 90px;
    overflow: hidden;
}

.hero-background-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.moon-element {
    position: absolute;
    top: 12%;
    right: 14%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.16) 0%, rgba(191, 85, 236, 0.04) 50%, transparent 80%);
    border-radius: 50%;
    filter: blur(15px);
}

.glow-field {
    position: absolute;
    bottom: -15%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.06) 0%, transparent 75%);
    filter: blur(50px);
}

.hero-container {
    position: relative;
    z-index: 3;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.25);
    color: var(--text-accent);
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #ff7a00 0%, #bf55ec 50%, #39ff14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 122, 0, 0.25));
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 620px;
    line-height: 1.7;
}

.hero-disclaimer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 122, 0, 0.03);
    border: 1px solid rgba(255, 122, 0, 0.12);
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 32px;
    max-width: 580px;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Improved Hero Visual Portal */
.hero-showcase {
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-visual {
    animation: spookyFloat 6s ease-in-out infinite;
    position: relative;
}

.glowing-pumpkin-avatar {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 24px;
}

.hero-pumpkin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255, 122, 0, 0.35);
    box-shadow: 0 0 30px rgba(255, 122, 0, 0.15);
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
    pointer-events: none;
    background: linear-gradient(135deg, transparent, rgba(57, 255, 20, 0.1));
}

.floating-cards-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.mini-card {
    position: absolute;
    background: rgba(10, 3, 20, 0.95);
    border: 1px solid rgba(255, 122, 0, 0.25);
    backdrop-filter: blur(12px);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.85);
}

.card-1 { top: -18px; left: -18px; border-color: rgba(57, 255, 20, 0.35); }
.card-2 { top: 40%; right: -24px; border-color: rgba(191, 85, 236, 0.35); }
.card-3 { bottom: -12px; left: 35px; border-color: rgba(255, 122, 0, 0.35); }

.pumpkin-shadow {
    position: absolute;
    bottom: -36px;
    left: 10%;
    width: 80%;
    height: 12px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    filter: blur(6px);
}

/* REDESIGNED DASHBOARD STATS BAR */
.stats-section {
    margin-top: 40px; /* Changed from negative margin to guarantee no overlap with hero section */
    position: relative;
    z-index: 10;
    margin-bottom: 110px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    gap: 24px;
    border-color: rgba(255, 122, 0, 0.22);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 12px;
    min-width: 0; /* Prevents overflow of grid children */
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 122, 0, 0.06);
    border: 1px solid rgba(255, 122, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 1.6rem;
}

.stat-content {
    min-width: 0; /* Prevents text overflow */
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    background: var(--accent-primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--text-accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* IMMERSIVE HOVER CARD LAYOUTS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 120px;
}

.glass-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 122, 0, 0.15);
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: 0 15px 35px rgba(255, 122, 0, 0.12);
}

.card-glow-bg {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    filter: blur(44px);
    opacity: 0.12;
    pointer-events: none;
    transition: all 0.5s ease;
}

.glass-card:hover .card-glow-bg {
    opacity: 0.25;
}

.glow-purple { background: #bf55ec; }
.glow-orange { background: #ff7a00; }
.glow-blue { background: #39ff14; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
}

.bg-purple { background: rgba(191, 85, 236, 0.12); border: 1px solid rgba(191, 85, 236, 0.25); }
.bg-orange { background: rgba(255, 122, 0, 0.12); border: 1px solid rgba(255, 122, 0, 0.25); }
.bg-blue { background: rgba(57, 255, 20, 0.12); border: 1px solid rgba(57, 255, 20, 0.25); }

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: -0.3px;
}

.card-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-visual {
    border-radius: 14px;
    overflow: hidden;
    height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .feature-img {
    transform: scale(1.1);
}

/* CTA SPLIT BANNER SECTION */
.cta-banner-section {
    margin-bottom: 120px;
}

.cta-banner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    padding: 50px;
    align-items: center;
    border-color: rgba(255, 122, 0, 0.22);
}

.cta-banner-content h2 {
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-banner-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 540px;
    line-height: 1.6;
}

.cta-banner-illustration {
    position: relative;
    display: flex;
    justify-content: center;
}

.cta-banner-img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 122, 0, 0.35);
    box-shadow: 0 0 30px rgba(255, 122, 0, 0.4);
    z-index: 2;
}

.cta-banner-glow {
    position: absolute;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* THEMATIC GAME CABINET VIEWPORT */
.game-view-container {
    padding-top: 110px;
    padding-bottom: 120px;
}

.game-outer-container {
    position: relative;
    padding: 30px;
    border-color: rgba(255, 122, 0, 0.35);
    margin-bottom: 40px;
    overflow: visible;
}

/* Side Cockpit Gauge Layouts */
.sub-dashboard-left, .sub-dashboard-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5;
    background: rgba(10, 3, 20, 0.85);
    border: 1px solid rgba(255, 122, 0, 0.15);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sub-dashboard-left { left: -160px; }
.sub-dashboard-right { right: -160px; }

.dashboard-sensor {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sensor-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.sensor-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
}

.text-orange { color: #ff7a00; text-shadow: 0 0 6px rgba(255, 122, 0, 0.4); }
.text-purple { color: #bf55ec; text-shadow: 0 0 6px rgba(191, 85, 236, 0.4); }
.text-green { color: #39ff14; text-shadow: 0 0 6px rgba(57, 255, 20, 0.4); }

.game-ambient-effects .lantern-light {
    position: absolute;
    width: 250px;
    height: 250px;
    filter: blur(60px);
    opacity: 0.28;
    pointer-events: none;
}

.l-left { top: -60px; left: -60px; background: #ff7a00; }
.l-right { bottom: -60px; right: -60px; background: #39ff14; }

.game-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #39ff14;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background: #39ff14;
    border-radius: 50%;
    box-shadow: 0 0 10px #39ff14;
    animation: pulse 1.8s infinite;
}

.game-brand-watermark {
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Aspect Ratio Frame Constraints */
.iframe-aspect-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 2px solid rgba(255, 122, 0, 0.2);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.iframe-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Utility bar grid alignment */
.game-utility-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.util-left, .util-right {
    display: flex;
    gap: 12px;
}

.util-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 122, 0, 0.2);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.util-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 122, 0, 0.4);
}

.util-btn.highlight {
    background: rgba(255, 122, 0, 0.08);
    border-color: rgba(255, 122, 0, 0.35);
    color: var(--text-accent);
}

.util-btn.highlight:hover {
    background: rgba(255, 122, 0, 0.2);
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.2);
}

.util-btn.muted {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.util-btn.favorited {
    background: rgba(191, 85, 236, 0.1);
    border-color: rgba(191, 85, 236, 0.25);
    color: #f472b6;
}

.game-info-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: start;
}

.game-info-grid h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: -0.3px;
}

.game-info-grid p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

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

.parameter-list li {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.parameter-list li strong {
    color: #fff;
}

/* MAP ZONES SHOWCASE */
.world-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.map-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.map-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-primary-grad);
    color: #040109;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.map-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.map-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: -0.3px;
}

.map-card-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

/* COMPREHENSIVE LEGAL ARCHITECTURE */
.legal-layout {
    display: grid;
    grid-template-columns: 0.32fr 0.68fr;
    gap: 40px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #fff;
}

.sidebar-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.sidebar-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    line-height: 1.7;
}

.legal-main {
    padding: 44px;
}

.legal-main h1 {
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.updated-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

.lead-text {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 28px;
    line-height: 1.7;
}

.legal-main h2 {
    font-size: 1.45rem;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--text-accent);
}

.legal-main p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.7;
}

.legal-main ul {
    margin-left: 24px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.legal-main li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.max-w-900 {
    max-width: 900px;
    margin: 0 auto;
}

/* CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper {
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-group input, .form-group textarea {
    background: rgba(10, 3, 20, 0.4);
    border: 1px solid rgba(255, 122, 0, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.3);
    outline: none;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.form-consent input {
    margin-top: 4px;
    accent-color: var(--accent-primary);
}

.form-consent label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-success-msg {
    text-align: center;
    padding: 40px 0;
}

.contact-success-msg h3 {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 12px;
}

.contact-success-msg p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Contact Info Area */
.contact-info-sidebar {
    padding: 36px;
}

.contact-info-sidebar h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: #fff;
}

.contact-info-sidebar p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.info-detail-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.4rem;
}

.info-detail-item strong {
    font-size: 0.88rem;
    color: #fff;
}

.info-detail-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* MODAL OVERLAY RULES */
.how-to-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 1, 9, 0.96);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.how-to-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.how-to-modal {
    width: 100%;
    max-width: 520px;
    padding: 36px;
    border-color: rgba(255, 122, 0, 0.35);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-to-modal-overlay.active .how-to-modal {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
}

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

.modal-header h2 {
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 1.8rem;
    color: #fff;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.rules-step {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.step-num {
    background: var(--accent-primary-grad);
    color: #040109;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-disclaimer {
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.22);
    padding: 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--text-accent);
    margin-top: 24px;
    line-height: 1.5;
}

/* TOAST ALERT */
.notification-toast {
    position: fixed;
    bottom: -120px;
    right: 24px;
    z-index: 1000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-toast.active {
    bottom: 24px;
}

.toast-content {
    background: rgba(10, 3, 20, 0.99);
    border: 1px solid rgba(255, 122, 0, 0.45);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.9);
    border-radius: 14px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.toast-icon {
    font-size: 1.4rem;
}

.toast-text strong {
    font-size: 0.88rem;
    color: #fff;
}

.toast-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* FOOTER ARCHITECTURE */
.main-footer {
    position: relative;
    background: #020005;
    padding-top: 80px;
    padding-bottom: 40px;
    z-index: 10;
}

.footer-divider-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary-grad);
    box-shadow: 0 0 18px rgba(255, 122, 0, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.4fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Cinzel Decorative', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-about-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.company-badge-finland {
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

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

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-accent);
    padding-left: 6px;
}

.footer-addr {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-contact-details {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.recreational-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.footer-copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STYLING)
   ========================================================================== */

@media (max-width: 1500px) {
    /* Prevent side panel overlap on medium-to-large desktop screens */
    .game-outer-container {
        display: flex;
        flex-direction: column;
        padding-bottom: 30px;
    }
    
    .game-panel-header { order: 1; }
    .sub-dashboard-left { order: 2; }
    .sub-dashboard-right { order: 3; }
    .iframe-aspect-ratio { order: 4; }
    .game-utility-bar { order: 5; }

    .sub-dashboard-left, .sub-dashboard-right {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 16px;
        padding: 12px 20px;
        margin-bottom: 12px;
        background: rgba(10, 3, 20, 0.5);
        border: 1px solid rgba(255, 122, 0, 0.15);
        border-radius: 12px;
        box-shadow: none;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.1rem;
    }
    
    .stats-section {
        margin-top: 20px;
        margin-bottom: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-glass-bar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    
    .hero-disclaimer, .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .cta-banner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    
    .cta-banner-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .game-info-grid {
        grid-template-columns: 1fr;
    }
    
    .world-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-layout {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 14px;
        padding-right: 0;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        top: 8px;
        width: calc(100% - 16px);
    }
    
    .game-utility-bar {
        flex-direction: column;
        gap: 14px;
    }
    
    .util-left, .util-right {
        width: 100%;
        justify-content: space-around;
    }

    .sub-dashboard-left, .sub-dashboard-right {
        position: static;
        transform: none;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        margin-bottom: 12px;
    }
    .game-outer-container { padding-bottom: 20px; }
}