/* Global illumination — hybrid navy depth + lavender light shafts (game-style ambient) */

:root {
    --gi-deep: #060a18;
    --gi-navy: #0c1428;
    --gi-plum: #1a1228;
    --gi-blue-mid: #152040;
    --gi-shaft-lav: rgba(201, 167, 216, 0.14);
    --gi-shaft-blue: rgba(96, 130, 220, 0.1);
    --gi-rim-lav: rgba(212, 184, 232, 0.35);
    --gi-rim-blue: rgba(143, 164, 232, 0.25);
    --gi-bloom: rgba(196, 168, 224, 0.45);
}

.gi-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gi-shaft {
    position: absolute;
    top: -20%;
    width: 28%;
    height: 140%;
    filter: blur(40px);
    opacity: 0.55;
    mix-blend-mode: screen;
    transform-origin: top center;
    animation: gi-shaft-drift var(--gi-dur, 18s) ease-in-out infinite;
}

.gi-shaft--1 {
    left: 8%;
    --gi-dur: 22s;
    background: linear-gradient(
        180deg,
        rgba(201, 167, 216, 0.22) 0%,
        rgba(143, 164, 232, 0.12) 35%,
        transparent 72%
    );
    transform: rotate(-14deg);
    animation-delay: 0s;
}

.gi-shaft--2 {
    left: 42%;
    width: 22%;
    --gi-dur: 26s;
    background: linear-gradient(
        180deg,
        rgba(212, 184, 232, 0.18) 0%,
        rgba(96, 130, 220, 0.14) 40%,
        transparent 75%
    );
    transform: rotate(6deg);
    animation-delay: -8s;
}

.gi-shaft--3 {
    right: 6%;
    width: 26%;
    --gi-dur: 20s;
    background: linear-gradient(
        180deg,
        rgba(143, 164, 232, 0.16) 0%,
        rgba(201, 167, 216, 0.1) 45%,
        transparent 70%
    );
    transform: rotate(12deg);
    animation-delay: -14s;
}

@keyframes gi-shaft-drift {
    0%, 100% { opacity: 0.4; transform: rotate(var(--gi-rot, 0deg)) translateX(0); }
    50% { opacity: 0.7; transform: rotate(var(--gi-rot, 0deg)) translateX(24px); }
}

.gi-shaft--1 { --gi-rot: -14deg; }
.gi-shaft--2 { --gi-rot: 6deg; }
.gi-shaft--3 { --gi-rot: 12deg; }

.gi-floor-glow {
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 45%;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(96, 130, 220, 0.12) 0%,
        rgba(201, 167, 216, 0.06) 35%,
        transparent 68%
    );
    filter: blur(30px);
    animation: gi-floor-pulse 8s ease-in-out infinite;
}

@keyframes gi-floor-pulse {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scale(1.06); }
}

.gi-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 45%,
        transparent 42%,
        rgba(6, 10, 24, 0.35) 78%,
        rgba(6, 10, 24, 0.65) 100%
    );
    pointer-events: none;
}

.gi-world {
    position: relative;
    min-height: 100vh;
}

.gi-world > *:not(.gi-ambient) {
    position: relative;
    z-index: 1;
}

.gi-world section,
.gi-scene {
    position: relative;
    isolation: isolate;
}

.gi-world section::before,
.gi-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gi-rim-lav),
        var(--gi-rim-blue),
        transparent
    );
    z-index: 3;
    pointer-events: none;
    opacity: 0.6;
}

.gi-world .glass-dark,
.gi-world .glass-dark-static,
.gi-world .landing-pillar-card.glass-dark {
    box-shadow:
        inset 0 1px 0 var(--gi-rim-lav),
        inset 0 -1px 0 var(--gi-rim-blue),
        0 0 0 1px rgba(96, 130, 220, 0.06);
}

.gi-world .glass-dark:hover {
    box-shadow:
        inset 0 1px 0 rgba(232, 213, 245, 0.45),
        inset 0 -1px 0 rgba(143, 164, 232, 0.2),
        0 0 28px rgba(201, 167, 216, 0.12),
        0 0 48px rgba(96, 130, 220, 0.06),
        0 8px 32px rgba(6, 10, 24, 0.4);
}

.gi-emissive {
    box-shadow:
        0 0 20px rgba(201, 167, 216, 0.15),
        0 0 40px rgba(96, 130, 220, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gi-world .btn-gold,
.gi-world .btn-primary {
    box-shadow:
        0 0 24px rgba(233, 183, 159, 0.25),
        0 4px 20px rgba(6, 10, 24, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gi-world .btn-gold:hover,
.gi-world .btn-primary:hover {
    box-shadow:
        0 0 36px rgba(233, 183, 159, 0.4),
        0 0 60px rgba(201, 167, 216, 0.15),
        0 8px 28px rgba(6, 10, 24, 0.4);
}

.gi-world .icon-glow::before {
    opacity: 0.55;
    filter: blur(16px);
    background: radial-gradient(circle, var(--gi-bloom), transparent 70%) !important;
}

.gi-world .icon-glow:hover::before {
    opacity: 0.85;
}

.gi-world .aurora-orb {
    mix-blend-mode: screen;
    filter: blur(100px) saturate(1.2);
}

.gi-world .nav-scrolled {
    box-shadow:
        0 1px 0 rgba(201, 167, 216, 0.12),
        0 8px 32px rgba(6, 10, 24, 0.5),
        inset 0 1px 0 rgba(143, 164, 232, 0.08);
}

.gi-world .text-gold-shimmer {
    filter: drop-shadow(0 0 12px rgba(201, 167, 216, 0.2));
}

.gi-world .text-gradient-violet,
.gi-world .text-gradient {
    filter: drop-shadow(0 0 10px rgba(143, 164, 232, 0.15));
}

@media (prefers-reduced-motion: reduce) {
    .gi-shaft,
    .gi-floor-glow {
        animation: none !important;
        opacity: 0.35;
    }
}
