/* Global illumination — uses kenekted-palette.css tokens */

.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.45;
    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, var(--kai-glow-violet) 0%, var(--kai-glow-blue) 35%, transparent 72%);
    transform: rotate(-14deg);
}

.gi-shaft--2 {
    left: 42%;
    width: 22%;
    --gi-dur: 26s;
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.14) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 75%);
    transform: rotate(6deg);
    animation-delay: -8s;
}

.gi-shaft--3 {
    right: 6%;
    width: 26%;
    --gi-dur: 20s;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, var(--kai-glow-violet) 45%, transparent 70%);
    transform: rotate(12deg);
    animation-delay: -14s;
}

@keyframes gi-shaft-drift {
    0%, 100% { opacity: 0.32; transform: rotate(var(--gi-rot, 0deg)) translateX(0); }
    50% { opacity: 0.55; 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(59, 130, 246, 0.1) 0%, var(--kai-glow-violet) 35%, transparent 68%);
    filter: blur(30px);
    animation: gi-floor-pulse 8s ease-in-out infinite;
}

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

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

.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, rgba(147, 51, 234, 0.28), rgba(59, 130, 246, 0.22), transparent);
    z-index: 3;
    pointer-events: none;
    opacity: 0.55;
}

.gi-world .glass-dark,
.gi-world .glass-dark-static,
.gi-world .landing-pillar-card.glass-dark {
    box-shadow: inset 0 1px 0 rgba(147, 51, 234, 0.22), inset 0 -1px 0 rgba(59, 130, 246, 0.14), 0 0 0 1px rgba(59, 130, 246, 0.05);
}

.gi-world .glass-dark:hover {
    box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.35), inset 0 -1px 0 rgba(59, 130, 246, 0.18), 0 0 28px rgba(147, 51, 234, 0.1), 0 8px 32px rgba(2, 6, 23, 0.4);
}

.gi-world .btn-gold,
.gi-world .btn-primary {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.3), 0 4px 20px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gi-world .btn-blue,
.gi-world .btn-violet {
    box-shadow: 0 0 24px rgba(147, 51, 234, 0.28), 0 4px 20px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.gi-world .btn-gold:hover,
.gi-world .btn-primary:hover {
    box-shadow: 0 0 36px rgba(245, 158, 11, 0.45), 0 0 60px rgba(251, 191, 36, 0.12), 0 8px 28px rgba(2, 6, 23, 0.4);
}

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

.gi-world .nav-scrolled,
.gi-world #navbar {
    box-shadow: 0 1px 0 rgba(59, 130, 246, 0.12), 0 8px 24px rgba(2, 6, 23, 0.45);
}

.gi-world .text-gold-shimmer { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.2)); }
.gi-world .text-gradient-violet,
.gi-world .text-gradient { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.15)); }

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