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

html, body {
    background: #000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* ===================================
   PRELOADER
   =================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Rocket silhouette container */
.preloader-rocket {
    width: 120px;
    height: 168px;
    position: relative;
}

.rocket-silhouette {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Rocket stroke with neon glow */
.rocket-stroke path,
.rocket-stroke circle {
    stroke: #ff00ff;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px #ff00ff) drop-shadow(0 0 8px #ff00ff);
}

/* Fluid fill - animated from bottom to top */
.fluid-fill {
    transform: translateY(100%);
    transition: transform 0.8s ease-out;
}

/* Fluid container with wave filter */
.fluid-container {
    transform-origin: center bottom;
}

/* Fancy percentage counter */
.preloader-percent {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-top: 20px;
    margin-left: 20px;
}

.percent-value {
    font-family: 'Audiowide', 'Exo 2', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    letter-spacing: 2px;
    transition: text-shadow 0.3s ease;
}

.percent-symbol {
    font-family: 'Audiowide', 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ff88cc;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
    opacity: 0.8;
}

/* Pulse effect on percentage */
.percent-value.pulse {
    animation: percentPulse 0.3s ease-out;
}

@keyframes percentPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    }
}

/* Airport-style flip text */
.preloader-text {
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-text-container {
    position: relative;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    display: inline-block;
    animation: none;
}

/* Flip out animation (current text exits down) */
.flip-text.flip-out {
    animation: flipOut 0.3s ease-in forwards;
}

/* Flip in animation (new text enters from top) */
.flip-text.flip-in {
    animation: flipIn 0.3s ease-out forwards;
}

@keyframes flipOut {
    0% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px) rotateX(-90deg);
        opacity: 0;
    }
}

@keyframes flipIn {
    0% {
        transform: translateY(-20px) rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

/* System Ready state - green */
.flip-text.system-ready {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    font-size: 1.4rem;
    letter-spacing: 5px;
}

.scroll-container {
    height: 1300vh;
}

.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    will-change: transform;
}

.page-6 {
    background: transparent;
    z-index: 1;
    overflow: hidden;
}

/* ===================================
   Page 6 - Dusk Launch Scene
   =================================== */

/* Sky gradient background */
.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        #ff7e47 0%,
        #ff9a5c 10%,
        #e8877c 20%,
        #c97b8b 30%,
        #9b6b9e 45%,
        #6b5b95 60%,
        #4a4a80 75%,
        #2d2d5e 90%,
        #1a1a3e 100%
    );
    z-index: 0;
}

/* Dark overlay for smooth transition to clouds scene */
.scene-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d1f;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Parallax layer base */
.parallax-layer {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    will-change: transform;
}

/* Sun glow */
.sun-layer {
    bottom: 28%;
    height: 200px;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 40%;
}

.sun-glow {
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle at center,
        #FFFDE8 0%,
        #FFF8D0 25%,
        #FFE8A0 50%,
        #FFD870 70%,
        rgba(255, 200, 100, 0.6) 85%,
        rgba(255, 180, 80, 0.2) 95%,
        transparent 100%
    );
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(255, 220, 120, 0.8),
        0 0 80px rgba(255, 180, 80, 0.5),
        0 0 120px rgba(255, 150, 60, 0.3);
}

/* Mountains - Far (slowest) - extends down to cover gaps */
.mountains-far {
    bottom: 0;
    height: 45vh;
    z-index: 2;
}

.mountains-svg {
    width: 100%;
    height: 100%;
}

/* Mountains - Mid - extends down to cover gaps */
.mountains-mid {
    bottom: 0;
    height: 40vh;
    z-index: 3;
}

/* Mountains - Near */
.mountains-near {
    bottom: 12%;
    height: 18vh;
    z-index: 4;
}

/* Clouds - 3 layers with different parallax speeds and ambient drift */
.clouds-layer {
    top: 0;
    height: 100%;
    pointer-events: none;
}

.clouds-back {
    z-index: 3;
}

.clouds-mid {
    z-index: 5;
}

.clouds-front {
    z-index: 5;
}

.cloud {
    position: absolute;
}

/* Ambient drift animations - different speeds per layer */
@keyframes cloudDriftSlow {
    0% { transform: translateX(0); }
    50% { transform: translateX(60px); }
    100% { transform: translateX(0); }
}

@keyframes cloudDriftMedium {
    0% { transform: translateX(0); }
    50% { transform: translateX(100px); }
    100% { transform: translateX(0); }
}

@keyframes cloudDriftFast {
    0% { transform: translateX(0); }
    50% { transform: translateX(140px); }
    100% { transform: translateX(0); }
}

/* Back clouds - large, distant, slowest drift */
.cloud-back-1 {
    width: 280px;
    top: 5%;
    left: 2%;
    opacity: 0.5;
    animation: cloudDriftSlow 30s ease-in-out infinite;
}

.cloud-back-2 {
    width: 240px;
    top: 12%;
    right: 5%;
    opacity: 0.45;
    animation: cloudDriftSlow 35s ease-in-out infinite;
    animation-delay: -10s;
}

/* Mid clouds - medium size and drift speed */
.cloud-mid-1 {
    width: 200px;
    top: 15%;
    left: 20%;
    opacity: 0.65;
    animation: cloudDriftMedium 25s ease-in-out infinite;
}

.cloud-mid-2 {
    width: 160px;
    top: 25%;
    right: 15%;
    opacity: 0.6;
    animation: cloudDriftMedium 28s ease-in-out infinite;
    animation-delay: -8s;
}

.cloud-mid-3 {
    width: 130px;
    top: 35%;
    left: 5%;
    opacity: 0.55;
    animation: cloudDriftMedium 26s ease-in-out infinite;
    animation-delay: -15s;
}

/* Front clouds - closer, faster drift */
.cloud-front-1 {
    width: 180px;
    top: 18%;
    right: 3%;
    opacity: 0.75;
    animation: cloudDriftFast 18s ease-in-out infinite;
}

.cloud-front-2 {
    width: 150px;
    top: 32%;
    left: 12%;
    opacity: 0.7;
    animation: cloudDriftFast 20s ease-in-out infinite;
    animation-delay: -5s;
}

.cloud-front-3 {
    width: 110px;
    top: 45%;
    right: 20%;
    opacity: 0.65;
    animation: cloudDriftFast 22s ease-in-out infinite;
    animation-delay: -12s;
}

/* Foreground with launch pad */
.foreground-layer {
    bottom: 60px;
    height: 25vh;
    z-index: 6;
}

/* Forest ground - low poly rolling terrain */
.forest-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(60px + 18vh);
    z-index: 1;
}

.launch-pad {
    position: absolute;
    bottom: calc(60px + 8vh);
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 140px;
    z-index: 7;
}

/* Grass and rocks layer */
.grass-rocks-layer {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 20vh;
    z-index: 6;
    pointer-events: none;
}

/* Left grass tufts */
.grass-tuft {
    position: absolute;
}

.grass-1 {
    width: 80px;
    left: 3%;
    bottom: calc(60px + 6vh);
}

.grass-2 {
    width: 60px;
    left: 12%;
    bottom: calc(60px + 7vh);
}

.grass-3 {
    width: 50px;
    left: 8%;
    bottom: calc(60px + 5vh);
}

/* Right grass tufts */
.grass-4 {
    width: 75px;
    right: 5%;
    bottom: calc(60px + 6vh);
}

.grass-5 {
    width: 55px;
    right: 12%;
    bottom: calc(60px + 7vh);
}

.grass-6 {
    width: 45px;
    right: 8%;
    bottom: calc(60px + 5vh);
}

/* Center grass */
.grass-center-1 {
    width: 40px;
    left: 35%;
    bottom: calc(60px + 6vh);
}

.grass-center-2 {
    width: 35px;
    right: 35%;
    bottom: calc(60px + 6vh);
}

/* Rocks */
.rock {
    position: absolute;
}

.rock-1 {
    width: 100px;
    left: 2%;
    bottom: calc(60px + 5vh);
}

.rock-2 {
    width: 60px;
    left: 18%;
    bottom: calc(60px + 6vh);
}

.rock-3 {
    width: 90px;
    right: 3%;
    bottom: calc(60px + 5vh);
}

.rock-4 {
    width: 55px;
    right: 16%;
    bottom: calc(60px + 6vh);
}

/* Pebbles scattered */
.pebble {
    position: absolute;
}

.pebble-1 {
    width: 25px;
    left: 25%;
    bottom: calc(60px + 6vh);
}

.pebble-2 {
    width: 18px;
    left: 30%;
    bottom: calc(60px + 5.5vh);
}

.pebble-3 {
    width: 22px;
    right: 28%;
    bottom: calc(60px + 6vh);
}

.pebble-4 {
    width: 15px;
    right: 25%;
    bottom: calc(60px + 5.5vh);
}

.pebble-5 {
    width: 20px;
    left: 45%;
    bottom: calc(60px + 5.8vh);
}

/* Back trees layer */
.trees-back-layer {
    bottom: calc(60px + 5vh);
    height: 30vh;
    z-index: 4;
}

.trees-back-left {
    position: absolute;
    left: 5%;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: -20px;
}

.trees-back-right {
    position: absolute;
    right: 5%;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: -20px;
}

.tree-back-1 { width: 150px; }
.tree-back-2 { width: 120px; margin-left: -40px; }
.tree-back-3 { width: 180px; margin-left: -50px; }
.tree-back-4 { width: 170px; }
.tree-back-5 { width: 130px; margin-left: -45px; }
.tree-back-6 { width: 160px; margin-left: -40px; }

/* Trees */
.trees {
    position: absolute;
    bottom: calc(60px + 6vh);
    display: flex;
    align-items: flex-end;
    gap: 5px;
    z-index: 8;
}

.trees-left {
    left: 15%;
}

.trees-right {
    right: 15%;
}

/* Front trees - closest to viewer */
.trees-front-left {
    position: absolute;
    left: 0;
    bottom: calc(60px + 5vh);
    display: flex;
    align-items: flex-end;
    gap: -30px;
    z-index: 10;
}

.trees-front-right {
    position: absolute;
    right: 0;
    bottom: calc(60px + 5vh);
    display: flex;
    align-items: flex-end;
    gap: -30px;
    z-index: 10;
}

.tree-front-1 { width: 280px; }
.tree-front-2 { width: 200px; margin-left: -70px; }
.tree-front-3 { width: 260px; }
.tree-front-4 { width: 190px; margin-left: -60px; }

.tree {
    height: auto;
}

/* Mid-ground trees */
.tree-1 { width: 180px; }
.tree-2 { width: 140px; margin-left: -40px; }
.tree-3 { width: 100px; margin-left: -30px; }

.tree-4 { width: 160px; }
.tree-5 { width: 130px; margin-left: -35px; }
.tree-6 { width: 90px; margin-left: -25px; }

/* Closest foreground - hiding spot rocks and grass */
.closest-foreground {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 35vh;
    z-index: 15;
    pointer-events: none;
}

.foreground-rocks-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 16vw;
    height: 65%;
}

.foreground-rocks-right {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16vw;
    height: 65%;
}

/* Logo positioning and fade */
/* Space pages - transparent to show stars through */
.page-5,
.page-4,
.page-3,
.page-2,
.page-1 {
    background: transparent;
}

.page-5 { z-index: 3; }

.page-5-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section {
    position: absolute;
    width: 40%;
    padding: 20px;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: none;
}

/* Alternating left/right - text aligned towards the rocket */
.content-section.section-1 {
    left: 5%;
    text-align: right;
}

.content-section.section-2 {
    right: 5%;
    text-align: left;
}

.content-section.section-3 {
    left: 5%;
    text-align: right;
}

.content-section.section-4 {
    right: 5%;
    text-align: left;
}

.content-section h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    line-height: 1.3;
}

.content-section h2 .status-tag {
    color: #4ade80;
    font-weight: 600;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Typewriter effect for text */
.content-section h2 .typewriter-text,
.content-section p .typewriter-text {
    display: inline;
}

.content-section h2 .typewriter-cursor,
.content-section p .typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: rgba(255, 255, 255, 0.8);
    margin-left: 2px;
    animation: cursorBlink 0.8s infinite;
    vertical-align: text-bottom;
}

.content-section h2 .typewriter-cursor {
    height: 2rem;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.content-section.typing-complete .typewriter-cursor {
    display: none;
}

.page-4 { z-index: 4; }
.page-3 { z-index: 5; }
.page-2 { z-index: 6; }
.page-1 { z-index: 7; }

/* Space clouds transition scene */
.space-clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
}

.space-clouds-container.visible {
    opacity: 1;
    visibility: visible;
    z-index: 8;
    transition: opacity 0.3s ease;
}

.space-clouds-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        #0d0d1f 0%,
        #0a0a18 20%,
        #080812 40%,
        #05050d 70%,
        #030308 100%
    );
}

.space-cloud-layer {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    will-change: transform;
    overflow: visible;
}

/* Wind SVG styling - positioned absolutely within layer */
.wind-svg {
    position: absolute;
    height: auto;
    /* Make the gray/white SVGs more visible against dark background */
    filter: brightness(2) contrast(0.7) opacity(1);
}

/* Different layer depths */
.cloud-layer-back .wind-svg {
    filter: brightness(2.2) contrast(0.85) blur(1px);
    opacity: 0.45 !important;
}

.cloud-layer-mid .wind-svg {
    filter: brightness(2.8) contrast(0.9);
    opacity: 0.55 !important;
}

.cloud-layer-front .wind-svg {
    filter: brightness(3.2) contrast(0.95);
    opacity: 0.7 !important;
}

/* Satellite crossing the sky */
.satellite {
    position: absolute;
    width: 250px;
    height: auto;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    /* Start off-screen left */
    top: 30%;
    left: -300px;
    transform: rotate(-15deg);
    will-change: transform, left, top, opacity;
    transition: opacity 0.3s ease;
}

/* Content sections container - overlays clouds */
.clouds-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Cloud SVG elements */
.wispy-cloud,
.flowing-cloud {
    position: absolute;
    pointer-events: none;
}

/* Type A - Wispy triangular clouds */
.cloud-layer-a-back { z-index: 1; }
.cloud-layer-a-mid { z-index: 2; }
.cloud-layer-a-front { z-index: 3; }

/* Type B - Flowing curved clouds */
.cloud-layer-b-back { z-index: 1; }
.cloud-layer-b-mid { z-index: 2; }
.cloud-layer-b-front { z-index: 4; }

/* Stars background - fixed layer that shows through all space pages */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(
        to top,
        #1a1a3e 0%,
        #12122a 30%,
        #0a0a1a 60%,
        #050510 100%
    );
}

.stars-container.visible {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.stars-layer {
    position: absolute;
    top: -150%;
    left: 0;
    width: 100%;
    height: 400%;
    will-change: transform;
}

/* Stars scene heading with typewriter */
.stars-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
}

.stars-typewriter {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.stars-typewriter-cursor {
    animation: blink 0.7s infinite;
}

.stars-chapter {
    margin-top: 15px;
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stars-chapter-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    max-width: 650px;
    margin: 40px auto 0;
    line-height: 1.6;
    opacity: 0;
    animation: descriptionFadeIn 1.5s ease-out 2s forwards;
}

.stars-target-description {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.9);
    z-index: 150;
}

.target-description-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.target-description-text.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Planet Earth in stars scene */
.planet-wrapper {
    position: absolute;
    top: 15%;
    left: 15%;
    z-index: 1;
    text-align: center;
}

.stars-planet {
    width: 350px;
    height: auto;
    opacity: 1;
}

.planet-title {
    display: block;
    margin-top: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.planet-wrapper {
    animation: float-space-slow 5s ease-in-out infinite;
}

/* Job board icons - randomly scattered on right side */
.job-icons-cluster {
    position: absolute;
    right: 8%;
    top: 25%;
    width: 180px;
    height: 200px;
    z-index: 2;
    animation: float-space-icons 3s ease-in-out infinite;
    animation-delay: -0.5s;
}

.job-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.job-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.job-icon-linkedin {
    top: 0;
    left: 45px;
    border-radius: 8px;
}

.job-icon-profession {
    top: 100px;
    left: 0;
}

.job-icon-cvonline {
    top: 130px;
    left: 110px;
    border-radius: 12px;
    background: white;
}

/* Job icons title */
.job-icons-title {
    display: block;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Chrome satellite wrapper */
.chrome-satellite-wrapper {
    position: absolute;
    bottom: 25%;
    left: 10%;
    z-index: 2;
    text-align: center;
    animation: float-space 4s ease-in-out infinite;
    animation-delay: -1s;
}

.chrome-satellite {
    width: 180px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 15px rgba(100, 150, 255, 0.3));
}

.chrome-satellite-title {
    display: block;
    margin-top: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Astronaut */
.astronaut-wrapper {
    position: absolute;
    bottom: 10%;
    right: 15%;
    z-index: 2;
    text-align: center;
    animation: float-astronaut 3.5s ease-in-out infinite;
}

.astronaut {
    width: 120px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.astronaut-title {
    display: block;
    margin-top: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

/* Floating animation for space elements */
@keyframes float-space {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes float-space-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-space-icons {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-astronaut {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-18px) rotate(-3deg);
    }
    50% {
        transform: translateY(-30px) rotate(0deg);
    }
    75% {
        transform: translateY(-18px) rotate(3deg);
    }
}

/* Laser beam styling - Star Wars lightsaber style */
.laser-beam {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform-origin: 0 50%;
}

.laser-beam.active {
    opacity: 1;
}

.laser-core {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    transform: translateY(-50%);
    border-radius: 2px;
    box-shadow:
        0 0 10px #fff,
        0 0 20px #00d4ff,
        0 0 30px #00d4ff,
        0 0 40px #00a8ff;
}

.laser-glow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg,
        rgba(0, 212, 255, 0.8) 0%,
        rgba(0, 168, 255, 0.4) 50%,
        rgba(0, 102, 255, 0.2) 100%);
    transform: translateY(-50%);
    border-radius: 10px;
    filter: blur(8px);
}

/* Glow effect when targeted by laser */
.laser-targeted {
    filter: drop-shadow(0 0 30px #00d4ff) drop-shadow(0 0 60px #00a8ff) drop-shadow(0 0 90px #0066ff) !important;
    transition: filter 0.2s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Pull effect when rocket points at element */
.planet-wrapper.pulling,
.job-icons-cluster.pulling,
.chrome-satellite-wrapper.pulling,
.astronaut-wrapper.pulling {
    transition: transform 0.4s ease-out !important;
}

.planet-wrapper,
.job-icons-cluster,
.chrome-satellite-wrapper,
.astronaut-wrapper {
    transition: transform 0.3s ease-out;
}

/* Whoosh away effect - elements fly DOWN and out of screen fast and blurry */
.whoosh-away {
    transition: transform 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19),
                opacity 0.3s ease-out,
                filter 0.2s ease !important;
    filter: blur(12px) !important;
    opacity: 0 !important;
}

.planet-wrapper.whoosh-away {
    transform: translateY(150vh) scale(0.5) !important;
}

.job-icons-cluster.whoosh-away {
    transform: translateY(150vh) scale(0.5) !important;
}

.chrome-satellite-wrapper.whoosh-away {
    transform: translateY(150vh) scale(0.5) !important;
}

.astronaut-wrapper.whoosh-away {
    transform: translateY(150vh) scale(0.5) !important;
}

/* Stars heading whoosh */
.stars-heading.whoosh-away {
    transform: translate(-50%, 100vh) !important;
}

/* Stars whoosh - blur and streak downward */
.stars-layer.whoosh-away {
    transition: transform 0.4s ease-out, filter 0.3s ease !important;
    filter: blur(15px) !important;
    transform: translateY(100vh) !important;
}

.stars-layer.whoosh-away .star {
    transform: scaleY(20) !important;
    opacity: 0.3 !important;
}

/* Star blur/streak effect when scrolling */
.stars-layer.scrolling .star {
    transform: scaleY(8);
    opacity: 0.6;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

/* Different star sizes */
.star.tiny {
    width: 1px;
    height: 1px;
    opacity: 0.5;
}

.star.small {
    width: 2px;
    height: 2px;
    opacity: 0.7;
}

.star.medium {
    width: 3px;
    height: 3px;
    opacity: 0.85;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.star.large {
    width: 4px;
    height: 4px;
    opacity: 1;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Twinkling animation for some stars */
@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.star.twinkle {
    animation: twinkle 2s ease-in-out infinite;
}

.star.twinkle-slow {
    animation: twinkle 4s ease-in-out infinite;
}

/* Page 6 Logo - fixed position, not affected by parallax */
.logo-container {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    transition: opacity 0.3s ease;
}

.page-6-logo {
    width: 440px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-subtitle {
    display: block;
    margin-top: 45px;
    font-family: 'Audiowide', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: pulse 2s ease-in-out infinite;
    white-space: nowrap;
}

/* Shrink phase text - appears after logo fades */
.shrink-text {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shrink-text.visible {
    opacity: 1;
    visibility: visible;
}

.shrink-text h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.shrink-text p {
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.shrink-text .shrink-text-description {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    max-width: 650px;
    margin: 40px auto 30px;
    line-height: 1.6;
    opacity: 0;
    animation: descriptionFadeIn 1.5s ease-out 2s forwards;
}

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

.shrink-text h2 .typewriter-text,
.shrink-text p .typewriter-text {
    display: inline;
}

.shrink-text h2 .typewriter-cursor,
.shrink-text p .typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: rgba(255, 255, 255, 0.8);
    margin-left: 2px;
    animation: cursorBlink 0.8s infinite;
    vertical-align: text-bottom;
}

.shrink-text h2 .typewriter-cursor {
    height: 2.2rem;
}

.shrink-text.typing-complete .typewriter-cursor {
    display: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    left: 50%;
    bottom: 45vh;
    transform: translateX(-50%);
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-text {
    font-family: 'Audiowide', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.scroll-text-cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    animation: bounce 1.5s ease-in-out infinite;
}

.scroll-arrow svg {
    fill: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Countdown */
.countdown {
    position: fixed;
    left: 50%;
    bottom: 45vh;
    transform: translateX(-50%);
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.countdown.active {
    opacity: 1;
    visibility: visible;
}

.countdown-number {
    font-family: 'Audiowide', sans-serif;
    font-size: 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rocket-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    bottom: calc(60px + 8vh);
}

.rocket-wrapper {
    position: relative;
    width: 160px;
    height: 280px;
    transform-origin: center bottom;
}

.spaceship {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 220px;
    z-index: 3;
    transition: filter 0.3s ease;
}

/* Glow only when flying */
.rocket-container.flying .spaceship {
    filter: drop-shadow(0 0 15px rgba(255, 200, 0, 0.5));
}

/* Regular smoke */
.smoke {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.smoke span {
    display: block;
    position: absolute;
    bottom: 60px;
    left: 50%;
    background: rgba(200, 200, 200, 0.9);
    opacity: 0;
}

/* BIG smoke for liftoff */
.big-smoke {
    position: fixed;
    bottom: calc(60px + 5vh);
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 80vh;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.big-smoke.active {
    opacity: 1;
}

.big-smoke span {
    display: block;
    position: absolute;
    bottom: 50px;
    left: 50%;
    background: rgba(200, 200, 200, 0.9);
    opacity: 0;
}

/* Big smoke sizes - smaller pixels, more of them */
.big-smoke .b0 { width: 35px; height: 35px; margin-left: -17px; }
.big-smoke .b1 { width: 45px; height: 45px; margin-left: -22px; }
.big-smoke .b2 { width: 30px; height: 30px; margin-left: -15px; }
.big-smoke .b3 { width: 50px; height: 50px; margin-left: -25px; }
.big-smoke .b4 { width: 40px; height: 40px; margin-left: -20px; }
.big-smoke .b5 { width: 55px; height: 55px; margin-left: -27px; }
.big-smoke .b6 { width: 25px; height: 25px; margin-left: -12px; }
.big-smoke .b7 { width: 42px; height: 42px; margin-left: -21px; }
.big-smoke .b8 { width: 60px; height: 60px; margin-left: -30px; }
.big-smoke .b9 { width: 33px; height: 33px; margin-left: -16px; }
.big-smoke .b10 { width: 48px; height: 48px; margin-left: -24px; }
.big-smoke .b11 { width: 38px; height: 38px; margin-left: -19px; }
.big-smoke .b12 { width: 65px; height: 65px; margin-left: -32px; }
.big-smoke .b13 { width: 44px; height: 44px; margin-left: -22px; }
.big-smoke .b14 { width: 52px; height: 52px; margin-left: -26px; }
.big-smoke .b15 { width: 28px; height: 28px; margin-left: -14px; }
.big-smoke .b16 { width: 36px; height: 36px; margin-left: -18px; }
.big-smoke .b17 { width: 46px; height: 46px; margin-left: -23px; }
.big-smoke .b18 { width: 32px; height: 32px; margin-left: -16px; }
.big-smoke .b19 { width: 54px; height: 54px; margin-left: -27px; }
.big-smoke .b20 { width: 40px; height: 40px; margin-left: -20px; }
.big-smoke .b21 { width: 58px; height: 58px; margin-left: -29px; }
.big-smoke .b22 { width: 26px; height: 26px; margin-left: -13px; }
.big-smoke .b23 { width: 43px; height: 43px; margin-left: -21px; }
.big-smoke .b24 { width: 62px; height: 62px; margin-left: -31px; }
.big-smoke .b25 { width: 34px; height: 34px; margin-left: -17px; }
.big-smoke .b26 { width: 50px; height: 50px; margin-left: -25px; }
.big-smoke .b27 { width: 39px; height: 39px; margin-left: -19px; }
.big-smoke .b28 { width: 68px; height: 68px; margin-left: -34px; }
.big-smoke .b29 { width: 45px; height: 45px; margin-left: -22px; }
.big-smoke .b30 { width: 55px; height: 55px; margin-left: -27px; }
.big-smoke .b31 { width: 30px; height: 30px; margin-left: -15px; }
.big-smoke .b32 { width: 37px; height: 37px; margin-left: -18px; }
.big-smoke .b33 { width: 48px; height: 48px; margin-left: -24px; }
.big-smoke .b34 { width: 33px; height: 33px; margin-left: -16px; }
.big-smoke .b35 { width: 56px; height: 56px; margin-left: -28px; }
.big-smoke .b36 { width: 41px; height: 41px; margin-left: -20px; }
.big-smoke .b37 { width: 60px; height: 60px; margin-left: -30px; }
.big-smoke .b38 { width: 27px; height: 27px; margin-left: -13px; }
.big-smoke .b39 { width: 44px; height: 44px; margin-left: -22px; }

/* Big smoke animations - spread MASSIVE */
@keyframes bigSmokeL1 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.9; background: #ffaa00; }
    20% { background: #dddddd; }
    100% { opacity: 0; transform: scale(4) translate(-350px, 150px); background: #666666; }
}
@keyframes bigSmokeL2 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.85; background: #ffaa00; }
    20% { background: #cccccc; }
    100% { opacity: 0; transform: scale(3.5) translate(-500px, 200px); background: #555555; }
}
@keyframes bigSmokeL3 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.9; background: #ffcc00; }
    20% { background: #bbbbbb; }
    100% { opacity: 0; transform: scale(4.5) translate(-250px, 280px); background: #444444; }
}
@keyframes bigSmokeR1 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.9; background: #ffaa00; }
    20% { background: #dddddd; }
    100% { opacity: 0; transform: scale(4) translate(350px, 150px); background: #666666; }
}
@keyframes bigSmokeR2 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.85; background: #ffaa00; }
    20% { background: #cccccc; }
    100% { opacity: 0; transform: scale(3.5) translate(500px, 200px); background: #555555; }
}
@keyframes bigSmokeR3 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.9; background: #ffcc00; }
    20% { background: #bbbbbb; }
    100% { opacity: 0; transform: scale(4.5) translate(250px, 280px); background: #444444; }
}
@keyframes bigSmokeM1 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.95; background: #ffcc00; }
    20% { background: #eeeeee; }
    100% { opacity: 0; transform: scale(5) translate(0, 180px); background: #777777; }
}
@keyframes bigSmokeM2 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.9; background: #ffcc00; }
    20% { background: #dddddd; }
    100% { opacity: 0; transform: scale(4) translate(80px, 250px); background: #666666; }
}
@keyframes bigSmokeM3 {
    0% { transform: scale(0.3) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 0.9; background: #ffcc00; }
    20% { background: #dddddd; }
    100% { opacity: 0; transform: scale(4.5) translate(-100px, 220px); background: #555555; }
}

.big-smoke.active .b0 { animation: bigSmokeM1 1s 0s infinite ease-out; }
.big-smoke.active .b1 { animation: bigSmokeL1 1.2s 0.1s infinite ease-out; }
.big-smoke.active .b2 { animation: bigSmokeR1 1.2s 0.15s infinite ease-out; }
.big-smoke.active .b3 { animation: bigSmokeM2 1.4s 0.05s infinite ease-out; }
.big-smoke.active .b4 { animation: bigSmokeL2 1.3s 0.2s infinite ease-out; }
.big-smoke.active .b5 { animation: bigSmokeR2 1.3s 0.25s infinite ease-out; }
.big-smoke.active .b6 { animation: bigSmokeM3 1.1s 0.12s infinite ease-out; }
.big-smoke.active .b7 { animation: bigSmokeL3 1.5s 0.3s infinite ease-out; }
.big-smoke.active .b8 { animation: bigSmokeR3 1.5s 0.08s infinite ease-out; }
.big-smoke.active .b9 { animation: bigSmokeM1 1.2s 0.18s infinite ease-out; }
.big-smoke.active .b10 { animation: bigSmokeL1 1.4s 0.22s infinite ease-out; }
.big-smoke.active .b11 { animation: bigSmokeR1 1.1s 0.28s infinite ease-out; }
.big-smoke.active .b12 { animation: bigSmokeM2 1.6s 0.02s infinite ease-out; }
.big-smoke.active .b13 { animation: bigSmokeL2 1.3s 0.35s infinite ease-out; }
.big-smoke.active .b14 { animation: bigSmokeR2 1.4s 0.15s infinite ease-out; }
.big-smoke.active .b15 { animation: bigSmokeM3 1.2s 0.4s infinite ease-out; }
.big-smoke.active .b16 { animation: bigSmokeL1 1.1s 0.07s infinite ease-out; }
.big-smoke.active .b17 { animation: bigSmokeR1 1.3s 0.13s infinite ease-out; }
.big-smoke.active .b18 { animation: bigSmokeM1 1.0s 0.21s infinite ease-out; }
.big-smoke.active .b19 { animation: bigSmokeL2 1.4s 0.04s infinite ease-out; }
.big-smoke.active .b20 { animation: bigSmokeR2 1.2s 0.17s infinite ease-out; }
.big-smoke.active .b21 { animation: bigSmokeM2 1.5s 0.09s infinite ease-out; }
.big-smoke.active .b22 { animation: bigSmokeL3 1.1s 0.26s infinite ease-out; }
.big-smoke.active .b23 { animation: bigSmokeR3 1.3s 0.11s infinite ease-out; }
.big-smoke.active .b24 { animation: bigSmokeM3 1.4s 0.19s infinite ease-out; }
.big-smoke.active .b25 { animation: bigSmokeL1 1.2s 0.32s infinite ease-out; }
.big-smoke.active .b26 { animation: bigSmokeR1 1.0s 0.06s infinite ease-out; }
.big-smoke.active .b27 { animation: bigSmokeM1 1.3s 0.24s infinite ease-out; }
.big-smoke.active .b28 { animation: bigSmokeL2 1.5s 0.03s infinite ease-out; }
.big-smoke.active .b29 { animation: bigSmokeR2 1.1s 0.16s infinite ease-out; }
.big-smoke.active .b30 { animation: bigSmokeM2 1.2s 0.29s infinite ease-out; }
.big-smoke.active .b31 { animation: bigSmokeL3 1.4s 0.08s infinite ease-out; }
.big-smoke.active .b32 { animation: bigSmokeR3 1.0s 0.23s infinite ease-out; }
.big-smoke.active .b33 { animation: bigSmokeM3 1.3s 0.14s infinite ease-out; }
.big-smoke.active .b34 { animation: bigSmokeL1 1.1s 0.31s infinite ease-out; }
.big-smoke.active .b35 { animation: bigSmokeR1 1.5s 0.01s infinite ease-out; }
.big-smoke.active .b36 { animation: bigSmokeM1 1.2s 0.27s infinite ease-out; }
.big-smoke.active .b37 { animation: bigSmokeL2 1.0s 0.12s infinite ease-out; }
.big-smoke.active .b38 { animation: bigSmokeR2 1.4s 0.33s infinite ease-out; }
.big-smoke.active .b39 { animation: bigSmokeM2 1.1s 0.06s infinite ease-out; }

/* Regular smoke animations */
@keyframes pixelL1 {
    0% { transform: scale(0.5) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 1; background: #ffaa00; }
    30% { background: #cccccc; }
    100% { opacity: 0; transform: scale(1.2) translate(-25px, 70px); background: #888888; }
}
@keyframes pixelL2 {
    0% { transform: scale(0.5) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 1; background: #ffaa00; }
    30% { background: #aaaaaa; }
    100% { opacity: 0; transform: scale(1) translate(-40px, 90px); background: #666666; }
}
@keyframes pixelR1 {
    0% { transform: scale(0.5) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 1; background: #ffaa00; }
    30% { background: #cccccc; }
    100% { opacity: 0; transform: scale(1.2) translate(25px, 70px); background: #888888; }
}
@keyframes pixelR2 {
    0% { transform: scale(0.5) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 1; background: #ffaa00; }
    30% { background: #aaaaaa; }
    100% { opacity: 0; transform: scale(1) translate(40px, 90px); background: #666666; }
}
@keyframes pixelM1 {
    0% { transform: scale(0.5) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 1; background: #ffcc00; }
    30% { background: #dddddd; }
    100% { opacity: 0; transform: scale(1.5) translate(0, 80px); background: #999999; }
}
@keyframes pixelM2 {
    0% { transform: scale(0.5) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 1; background: #ffcc00; }
    30% { background: #bbbbbb; }
    100% { opacity: 0; transform: scale(1.3) translate(5px, 100px); background: #777777; }
}
@keyframes pixelM3 {
    0% { transform: scale(0.5) translate(0, 0); opacity: 0; background: #ff6600; }
    5% { opacity: 1; background: #ffcc00; }
    30% { background: #bbbbbb; }
    100% { opacity: 0; transform: scale(1.3) translate(-5px, 95px); background: #777777; }
}

.smoke .s0 { width: 16px; height: 16px; margin-left: -8px; }
.smoke .s1 { width: 20px; height: 20px; margin-left: -10px; }
.smoke .s2 { width: 16px; height: 16px; margin-left: -8px; }
.smoke .s3 { width: 24px; height: 24px; margin-left: -12px; }
.smoke .s4 { width: 12px; height: 12px; margin-left: -6px; }
.smoke .s5 { width: 20px; height: 20px; margin-left: -10px; }
.smoke .s6 { width: 16px; height: 16px; margin-left: -8px; }
.smoke .s7 { width: 12px; height: 12px; margin-left: -6px; }
.smoke .s8 { width: 24px; height: 24px; margin-left: -12px; }
.smoke .s9 { width: 16px; height: 16px; margin-left: -8px; }
.smoke .s10 { width: 20px; height: 20px; margin-left: -10px; }
.smoke .s11 { width: 12px; height: 12px; margin-left: -6px; }

.smoke.active .s0 { animation: pixelM1 0.6s 0s infinite ease-out; }
.smoke.active .s1 { animation: pixelL1 0.7s 0.05s infinite ease-out; }
.smoke.active .s2 { animation: pixelR1 0.7s 0.1s infinite ease-out; }
.smoke.active .s3 { animation: pixelM2 0.8s 0.08s infinite ease-out; }
.smoke.active .s4 { animation: pixelL2 0.9s 0.15s infinite ease-out; }
.smoke.active .s5 { animation: pixelR2 0.9s 0.2s infinite ease-out; }
.smoke.active .s6 { animation: pixelM3 0.7s 0.12s infinite ease-out; }
.smoke.active .s7 { animation: pixelL1 0.6s 0.25s infinite ease-out; }
.smoke.active .s8 { animation: pixelR1 0.8s 0.03s infinite ease-out; }
.smoke.active .s9 { animation: pixelM1 0.7s 0.18s infinite ease-out; }
.smoke.active .s10 { animation: pixelL2 0.8s 0.22s infinite ease-out; }
.smoke.active .s11 { animation: pixelR2 0.6s 0.28s infinite ease-out; }

.flame {
    position: absolute;
    top: 210px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #ff4400, #ff8800, #ffcc00);
    opacity: 0;
    z-index: 2;
}

.flame.active {
    opacity: 1;
    animation: pixelFlicker 0.15s infinite steps(2);
}

@keyframes pixelFlicker {
    0% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Fixed bottom menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        to top,
        rgba(26, 26, 46, 0.98) 0%,
        rgba(35, 35, 55, 0.95) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 200;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Red scan laser - horizontal line that scans the page */
.scan-laser {
    position: fixed;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ff0000;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    box-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff3333,
        0 0 60px #ff6666;
}

.scan-laser.active {
    opacity: 1;
}

/* 8-bit rocket styling */
.spaceship-8bit {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Rocket transformation state */
.rocket-wrapper.pixel-mode .spaceship-normal {
    display: none !important;
}

.rocket-wrapper.pixel-mode .spaceship-8bit {
    display: block !important;
}

/* ===================================
   THE BENCHMARK ARCADE - GSAP Pac-Man Style Maze
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Pre-Arcade Title - shows during scan laser phase */
.pre-arcade-title {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    text-align: center;
}

.pre-arcade-title.visible {
    opacity: 1;
    visibility: visible;
}

.pre-arcade-title h2 {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff;
    max-width: 80vw;
    line-height: 1.4;
    margin: 0;
    animation: titlePulse 2s ease-in-out infinite;
}

.pre-arcade-chapter {
    margin-top: 15px;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
}

.pre-arcade-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    max-width: 700px;
    margin: 40px auto 0;
    line-height: 1.6;
    opacity: 0;
    animation: descriptionFadeIn 1.5s ease-out 2s forwards;
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff;
    }
    50% {
        text-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff, 0 0 90px #00ffff;
    }
}

.arcade-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden;
    background: #000000;
}

.arcade-container.visible {
    opacity: 1;
    visibility: visible;
    z-index: 100;
    transition: opacity 0.5s ease;
}

/* Maze viewport - the visible window, stays fixed */
.maze-viewport {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 100vh;
    overflow: hidden;
}

/* Maze content - the tall scrollable maze (300vh equivalent) */
.maze-content {
    position: absolute;
    width: 100%;
    height: 3000px; /* Tall maze - 300vh worth */
    top: 0;
    left: 0;
    will-change: transform;
}

/* Maze SVG */
.maze-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   Double-lined Pac-Man Style Walls
   =================================== */

/* Outer wall stroke - bright blue */
.maze-wall-outer {
    fill: none;
    stroke: #2121de;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px #2121de) drop-shadow(0 0 15px #4040ff);
}

/* Inner wall stroke - darker blue for double-line effect */
.maze-wall-inner {
    fill: none;
    stroke: #000033;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Corridor walls */
.maze-corridor {
    fill: none;
    stroke: #2121de;
    stroke-width: 4;
    filter: drop-shadow(0 0 5px #2121de);
}

.maze-corridor-inner {
    fill: none;
    stroke: #000022;
    stroke-width: 2;
}

/* ===================================
   Dots (Pellets) - CVs to collect
   =================================== */

.maze-dot {
    fill: #ffb8ae;
    filter: drop-shadow(0 0 4px #ffb8ae);
}

.maze-dot.collected {
    opacity: 0;
}

/* Power pellets - larger, pulsing */
.maze-power-dot {
    fill: #ffb8ae;
    filter: drop-shadow(0 0 10px #ffb8ae);
    animation: powerPulse 0.4s ease-in-out infinite;
}

@keyframes powerPulse {
    0%, 100% { opacity: 1; r: 8; }
    50% { opacity: 0.5; r: 6; }
}

.maze-power-dot.collected {
    opacity: 0;
    animation: none;
}

/* ===================================
   Ghost Obstacles
   =================================== */

.maze-ghost {
    animation: ghostFloat 2s ease-in-out infinite;
    cursor: pointer;
}

.maze-ghost.ghost-blocking {
    animation: ghostBlock 0.3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #ff0000);
}

@keyframes ghostFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes ghostBlock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Laser beam from rocket to ghost */
.maze-laser-beam {
    position: absolute;
    height: 8px;
    background: linear-gradient(90deg, #00ff00, #88ff88, #ffffff);
    transform-origin: left center;
    opacity: 0;
    z-index: 100;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #88ff88;
    border-radius: 4px;
    pointer-events: none;
}

.maze-laser-beam.active {
    animation: laserShoot 0.2s ease-out forwards;
}

@keyframes laserShoot {
    0% {
        opacity: 1;
        width: 0;
        transform: rotate(var(--laser-angle, 0deg));
    }
    60% {
        opacity: 1;
        width: var(--laser-length, 100px);
        transform: rotate(var(--laser-angle, 0deg));
    }
    100% {
        opacity: 0;
        width: var(--laser-length, 100px);
        transform: rotate(var(--laser-angle, 0deg));
    }
}

/* Ghost explosion pixels */
.ghost-pixel {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    z-index: 150;
    image-rendering: pixelated;
}

.ghost-pixel.exploding {
    animation: pixelExplode 0.6s ease-out forwards;
}

@keyframes pixelExplode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--explode-x, 50px), var(--explode-y, 50px)) scale(0.5) rotate(720deg);
    }
}

/* Ghost blocked tooltip */
.ghost-blocked-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ff0000;
    border-radius: 10px;
    padding: 25px 40px;
    text-align: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.ghost-blocked-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.ghost-blocked-tooltip .ghost-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: ghostShake 0.5s ease-in-out infinite;
}

@keyframes ghostShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.ghost-blocked-tooltip .ghost-text {
    display: block;
    font-size: 16px;
    color: #ff0000;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff0000;
}

.ghost-blocked-tooltip .ghost-subtext {
    display: block;
    font-size: 8px;
    color: #888888;
    animation: blink 1s infinite;
}

/* ===================================
   Player (Rocket in Maze)
   =================================== */

.maze-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 80px;
    z-index: 50;
    will-change: transform;
    transition: left 0.1s ease-out;
}

.maze-player .spaceship-8bit {
    width: 100%;
    height: 100%;
    display: block !important;
    filter: drop-shadow(0 0 10px rgba(244, 64, 103, 0.5));
}

/* Player trail effect */
.maze-player::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(to bottom, #ff6600, #ffaa00, transparent);
    opacity: 0.8;
    animation: flameFlicker 0.1s infinite;
    border-radius: 0 0 50% 50%;
}

@keyframes flameFlicker {
    0%, 100% { height: 30px; opacity: 0.8; }
    50% { height: 35px; opacity: 1; }
}

/* Ghost Rocket (Benchmark) - semi-transparent white/grey, ahead of player */
.maze-ghost-rocket {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 80px;
    z-index: 45;
    opacity: 0.4;
    will-change: transform;
    pointer-events: none;
    filter: grayscale(100%) brightness(2);
}

.maze-ghost-rocket .spaceship-8bit {
    width: 100%;
    height: 100%;
    display: block !important;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

/* No flame trail for ghost rocket */
.maze-ghost-rocket::after {
    display: none;
}

/* ===================================
   Confetti Pixels
   =================================== */
.confetti-pixel {
    position: fixed;
    width: 12px;
    height: 12px;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(var(--fall-distance, 100vh)) translateX(var(--drift, 0)) rotate(720deg);
    }
}

/* ===================================
   Golden Candidates (Bonus Items)
   =================================== */

.maze-candidate {
    fill: #FFD700;
    filter: drop-shadow(0 0 15px #FFD700);
    animation: candidateSpin 3s linear infinite, candidateGlow 1s ease-in-out infinite;
}

@keyframes candidateSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes candidateGlow {
    0%, 100% { filter: drop-shadow(0 0 15px #FFD700); }
    50% { filter: drop-shadow(0 0 25px #FFD700) drop-shadow(0 0 35px #ffaa00); }
}

.maze-candidate.collected {
    opacity: 0;
    transform: scale(3);
    transition: all 0.5s ease;
}

/* ===================================
   Phase Popup - Retro Achievement Style
   =================================== */
.phase-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    font-family: 'Press Start 2P', monospace;
    font-size: 28px;
    text-align: center;
    pointer-events: none;
    z-index: 500;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    transition: none;
    white-space: nowrap;
}

.phase-popup.active {
    animation: phasePopupAnim 0.8s ease-out forwards;
}

@keyframes phasePopupAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.8);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.4);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.6);
    }
    80% {
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* ===================================
   HUD (Heads Up Display) - Side Panels
   =================================== */

/* Left HUD Panel - Player Stats */
.maze-hud-left {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 150;
}

/* Right HUD Panel - Target Stats */
.maze-hud-right {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 150;
}

/* HUD Panel Base */
.hud-panel {
    background: transparent;
    padding: 15px 20px;
    min-width: 200px;
    font-family: 'Exo 2', sans-serif;
}

.hud-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hud-player-name {
    font-size: 24px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    margin-bottom: 15px;
}

.hud-position {
    margin-bottom: 15px;
}

.hud-position-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hud-position-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffff00;
    text-shadow: 0 0 15px #ffff00;
    transition: transform 0.1s ease;
}

.hud-position-value.blow-up {
    animation: positionBlowUp 0.5s ease-out;
}

@keyframes positionBlowUp {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px #ffff00;
    }
    30% {
        transform: scale(1.5);
        text-shadow: 0 0 30px #ffff00, 0 0 50px #ffff00;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px #ffff00;
    }
}

.hud-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 15px 0;
}

/* Skill Bars */
.skill-bar-container {
    margin-bottom: 15px;
}

.skill-bar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.skill-icon {
    font-size: 18px;
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.skill-value {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease-out;
}

.skill-bar-focus {
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    box-shadow: 0 0 10px #1e90ff;
}

.skill-bar-risk {
    background: linear-gradient(90deg, #ffa500, #ffcc00);
    box-shadow: 0 0 10px #ffa500;
}

.skill-bar-speed {
    background: linear-gradient(90deg, #32cd32, #7cfc00);
    box-shadow: 0 0 10px #32cd32;
}

/* Score Display */
.hud-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-label {
    font-size: 11px;
    color: #888888;
}

.score-value {
    font-size: 14px;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

/* Match Rate */
.match-rate-container {
    text-align: center;
}

.match-rate-label {
    font-size: 11px;
    color: #888888;
    margin-bottom: 8px;
}

.match-rate-value {
    font-size: 24px;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    margin-bottom: 8px;
}

.match-rate-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.match-rate-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff00);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

/* Phase Indicator */
.phase-indicator {
    text-align: center;
}

.phase-label {
    font-size: 11px;
    color: #888888;
    margin-bottom: 8px;
}

.phase-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.phase-dot.active {
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

.phase-dot.completed {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

/* ===================================
   Ghost Rocket (Benchmark)
   =================================== */

.ghost-rocket {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 80px;
    z-index: 45;
    opacity: 0.3;
    filter: brightness(2) saturate(0);
    will-change: transform;
    transition: left 0.1s ease-out;
}

.ghost-rocket .spaceship-8bit {
    width: 100%;
    height: 100%;
    display: block !important;
}

/* ===================================
   Floating Tooltips (Mario-style)
   =================================== */

.maze-tooltips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 180;
}

.maze-tooltip {
    position: absolute;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid;
    border-radius: 8px;
    font-size: 10px;
    text-align: center;
    animation: tooltipPopup 2s ease-out forwards;
    white-space: nowrap;
}

.maze-tooltip.tooltip-success {
    border-color: #00ff00;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.maze-tooltip.tooltip-warning {
    border-color: #ffaa00;
    color: #ffaa00;
    text-shadow: 0 0 10px #ffaa00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

.maze-tooltip.tooltip-danger {
    border-color: #ff4444;
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.maze-tooltip.tooltip-info {
    border-color: #00ffff;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

@keyframes tooltipPopup {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.1);
    }
    25% {
        transform: translate(-50%, -30px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -40px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60px);
    }
}

/* ===================================
   Phase Flash Transition
   =================================== */

.phase-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 250;
}

.phase-flash.active {
    animation: phaseFlashAnim 0.5s ease-out forwards;
}

@keyframes phaseFlashAnim {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===================================
   Final Result Overlay
   =================================== */

.final-result {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    text-align: center;
    z-index: 220;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-result.visible,
.final-result.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.result-match-rate {
    margin-bottom: 40px;
}

.result-match-rate .result-label {
    display: block;
    font-family: 'Pixelify Sans', monospace;
    font-size: 32px;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 0 0 20px #FFD700;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.result-match-rate .result-value {
    font-family: 'Pixelify Sans', monospace;
    font-size: 100px;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 40px #00ff00, 0 0 80px #00ff00, 0 0 120px #00ff00;
    animation: resultPulse 1.5s ease-in-out infinite;
}

@keyframes resultPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 40px #00ff00, 0 0 80px #00ff00, 0 0 120px #00ff00;
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 60px #00ff00, 0 0 100px #00ff00, 0 0 150px #00ff00;
    }
}

.result-stamp {
    display: inline-block;
    padding: 20px 40px;
    background: rgba(0, 255, 0, 0.15);
    border: 4px solid #00ff00;
    border-radius: 0;
    font-family: 'Pixelify Sans', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: stampAppear 0.5s ease-out forwards, stampGlow 1.5s ease-in-out infinite 0.5s;
    transform: rotate(-3deg);
}

@keyframes stampAppear {
    0% {
        transform: rotate(-3deg) scale(2);
        opacity: 0;
    }
    50% {
        transform: rotate(-3deg) scale(0.9);
    }
    100% {
        transform: rotate(-3deg) scale(1);
        opacity: 1;
    }
}

/* ===================================
   CRT Scanlines Effect
   =================================== */

.arcade-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 200;
}

/* CRT screen curvature effect */
.arcade-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 201;
}

/* Hide original rocket when in maze mode */
.arcade-container.visible ~ .rocket-container {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   Arcade Whoosh Away Transition
   =================================== */
.arcade-container.whoosh-away {
    transition: transform 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19),
                filter 0.4s ease-out,
                opacity 0.5s ease-out !important;
    transform: translateY(120vh) !important;
    filter: blur(25px) !important;
    opacity: 0 !important;
}

/* ===================================
   Next Scene - Empty Black Scene
   =================================== */
.next-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.next-scene.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   Admin Scene - Space Invaders Style
   =================================== */
.admin-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.admin-scene.visible {
    opacity: 1;
    visibility: visible;
}

/* Force rocket to bottom when in admin mode */
.rocket-container.admin-mode {
    position: fixed !important;
    bottom: 80px !important;
    top: auto !important;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1 !important;
    z-index: 250 !important;
    pointer-events: auto !important;
    /* NO transition - scroll drives position directly */
}

/* Scene Title - Center of screen, fades on scroll */
.admin-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.admin-title h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0, 255, 255, 0.3);
    margin: 0;
}

.admin-chapter {
    margin-top: 15px;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 3px;
}

.admin-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    max-width: 700px;
    margin: 40px auto 0;
    line-height: 1.6;
    opacity: 0;
    animation: descriptionFadeIn 1.5s ease-out 2s forwards;
}

/* Falling Asteroids - Space Invaders Style */
.asteroids-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.falling-asteroid {
    position: fixed;
    width: 60px;
    height: 60px;
    transform: translateX(-50%);
}

.falling-asteroid .asteroid-img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 10px rgba(100, 100, 100, 0.5));
}

.falling-asteroid.small {
    width: 40px;
    height: 40px;
}

.falling-asteroid.large {
    width: 80px;
    height: 80px;
}

/* Emoji on close asteroids with glow effect */
.asteroid-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(0, 200, 255, 0.5),
        0 0 40px rgba(0, 200, 255, 0.3);
    animation: emojiGlow 1.5s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes emojiGlow {
    0% {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 20px rgba(255, 255, 255, 0.7),
            0 0 30px rgba(0, 200, 255, 0.5),
            0 0 40px rgba(0, 200, 255, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        text-shadow:
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.9),
            0 0 45px rgba(0, 200, 255, 0.7),
            0 0 60px rgba(0, 200, 255, 0.5);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Rocket Laser */
.rocket-laser {
    position: fixed;
    width: 4px;
    height: 0;
    background: linear-gradient(to top, #ff0000, #ff6600, #ffff00);
    box-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff6600,
        0 0 30px #ffff00,
        0 0 40px #ff0000;
    z-index: 300;
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.rocket-laser.active {
    opacity: 1;
    animation: laserPulse 0.1s ease-in-out infinite;
}

@keyframes laserPulse {
    0%, 100% {
        box-shadow:
            0 0 10px #ff0000,
            0 0 20px #ff6600,
            0 0 30px #ffff00,
            0 0 40px #ff0000;
    }
    50% {
        box-shadow:
            0 0 15px #ff0000,
            0 0 30px #ff6600,
            0 0 45px #ffff00,
            0 0 60px #ff0000;
    }
}

/* Asteroid Explosion */
.asteroid-explosion {
    position: fixed;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    z-index: 350;
    pointer-events: none;
    animation: explosionBurst 0.5s ease-out forwards;
}

.asteroid-explosion::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffffff, #ffff00, #ff6600, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: explosionCore 0.5s ease-out forwards;
}

@keyframes explosionBurst {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes explosionCore {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    50% {
        width: 80px;
        height: 80px;
        opacity: 0.8;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

.explosion-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 40px;
    transform: translate(-50%, -50%);
    animation: explosionEmoji 0.5s ease-out forwards;
    z-index: 10;
}

@keyframes explosionEmoji {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -100%) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150%) scale(2);
        opacity: 0;
    }
}

/* Pixel explosion - scattered pixel fragments */
.explosion-pixel {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 400;
    animation: pixelExplode 0.5s ease-out forwards;
}

@keyframes pixelExplode {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
        opacity: 0;
    }
}

/* Flying emoji to data core */
.flying-emoji {
    position: fixed;
    font-size: 32px;
    pointer-events: none;
    z-index: 400;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flying-emoji.flying {
    left: calc(100vw - 120px) !important;
    top: 50vh !important;
    transform: scale(1.2);
}

/* Retro game win celebration */
.data-core-win {
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 500;
    animation: winPulse 1s ease-out forwards;
}

.data-core-win .win-emoji {
    font-size: 64px;
    animation: winEmojiBounce 0.6s ease-out;
    text-shadow:
        0 0 20px rgba(255, 255, 0, 1),
        0 0 40px rgba(255, 200, 0, 0.8),
        0 0 60px rgba(255, 150, 0, 0.6);
}

.data-core-win .win-text {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 24px;
    color: #0f0;
    text-shadow:
        0 0 10px #0f0,
        0 0 20px #0f0,
        2px 2px 0 #000;
    animation: winTextPop 0.8s ease-out;
    margin-top: 10px;
}

@keyframes winPulse {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes winEmojiBounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.5); }
    75% { transform: scale(0.9); }
    100% { transform: scale(1.2); }
}

@keyframes winTextPop {
    0% { transform: scale(0) translateY(20px); opacity: 0; }
    50% { transform: scale(1.3) translateY(-10px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Top HUD Bar - Sci-Fi Helmet Style */
.admin-hud {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 80px;
    z-index: 20;
    padding: 20px 40px;
    background: transparent;
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Exo 2', sans-serif;
}

.hud-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.hud-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hud-value {
    font-size: 28px;
    font-weight: 300;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.hud-william .hud-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-indicator {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88;
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88; }
    50% { opacity: 0.6; box-shadow: 0 0 8px #00ff88, 0 0 15px #00ff88; }
}

.hud-time .hud-value {
    color: #ffcc00;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

.hud-mode .hud-value {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

/* Data Core Container - Right Side (uses hud-panel from maze) */
.data-core-container {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
}

.admin-scene .hud-panel {
    background: transparent;
    padding: 15px 20px;
    min-width: 200px;
    font-family: 'Exo 2', sans-serif;
}

.admin-scene .hud-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.admin-scene .hud-player-name {
    font-size: 24px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    margin-bottom: 15px;
}

.admin-scene .hud-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 15px 0;
}

.admin-scene .skill-bar-container {
    margin-bottom: 15px;
}

.admin-scene .skill-bar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-scene .skill-icon {
    font-size: 18px;
}

.admin-scene .skill-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.admin-scene .skill-value {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

.admin-scene .skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: hidden;
}

.admin-scene .skill-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.admin-scene .skill-bar-focus {
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    box-shadow: 0 0 10px #1e90ff;
}

.admin-scene .skill-bar-risk {
    background: linear-gradient(90deg, #ffa500, #ffcc00);
    box-shadow: 0 0 10px #ffa500;
}

.admin-scene .skill-bar-speed {
    background: linear-gradient(90deg, #32cd32, #7cfc00);
    box-shadow: 0 0 10px #32cd32;
}

.admin-scene .skill-bar-cv {
    background: linear-gradient(90deg, #9932cc, #da70d6);
    box-shadow: 0 0 10px #9932cc;
}

.admin-scene .hud-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-scene .score-label {
    font-size: 11px;
    color: #888888;
}

.admin-scene .score-value {
    font-size: 14px;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

/* System Log - Under Data Core */
.system-log {
    position: absolute;
    right: 10%;
    top: calc(50% + 180px);
    width: 200px;
    background: transparent;
    z-index: 20;
    overflow: hidden;
}

.system-log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.log-icon {
    font-size: 14px;
}

.system-log-content {
    padding: 10px 0;
    min-height: 60px;
    max-height: 100px;
    overflow-y: auto;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.log-entry {
    margin-bottom: 5px;
    opacity: 0;
    animation: logFadeIn 0.3s ease forwards;
}

@keyframes logFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.log-prefix {
    color: #00ffff;
    margin-right: 5px;
}

/* Scanlines Effect */
.admin-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
    opacity: 0.3;
}

/* Auto-Pilot Label on Rocket */
.auto-pilot-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: 'Exo 2', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rocket-wrapper.auto-pilot .auto-pilot-label {
    opacity: 1;
}
