/**
 * Zordon Intro Preview - Landing Page
 * FULL CRT Monitor Experience - Copied from Database Site
 * Version: 2.0.0
 */

:root {
    --card-opacity: 0.75;
    --card-border-color: #00ffc8;
    --float-duration: 10s;
    --float-distance: 15px;
    --scanline-opacity: 0.9;
    --glow-color: #00ffc8;
    --glow-intensity: 0.15;
}

/* ========================================================================
   MAIN CRT SECTION
   ======================================================================== */

.cn-zordon-intro-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background: #000;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    animation: crtPowerOn 0.6s ease-out;
    image-rendering: pixelated;
    /* Start dimmed - reveals on scroll */
    opacity: 0.3;
    filter: brightness(0.3);
    transition: opacity 0.8s ease, filter 0.8s ease;
}

/* When section is in view, it lights up */
.cn-zordon-intro-section.section-revealed {
    opacity: 1;
    filter: brightness(1);
}

/* Pixelation effect */
.cn-zordon-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 200, 0.01) 2px, rgba(0, 255, 200, 0.01) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 200, 0.01) 2px, rgba(0, 255, 200, 0.01) 4px);
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* Chromatic aberration */
.cn-zordon-intro-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            45deg,
            rgba(255, 0, 100, 0.02) 0%,
            transparent 25%,
            rgba(0, 255, 255, 0.02) 50%,
            transparent 75%,
            rgba(255, 0, 100, 0.02) 100%
        );
    pointer-events: none;
    z-index: 999;
    animation: chromaticShift 4s ease-in-out infinite, screenFlicker 10s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes crtPowerOn {
    0% { transform: scale(1, 0.01); opacity: 0; }
    50% { transform: scale(1, 1); opacity: 0.6; }
    100% { transform: scale(1, 1); opacity: 1; }
}

@keyframes chromaticShift {
    0% { transform: translateX(0); filter: hue-rotate(0deg); }
    33% { transform: translateX(-1px); filter: hue-rotate(90deg); }
    66% { transform: translateX(1px); filter: hue-rotate(180deg); }
    100% { transform: translateX(0); filter: hue-rotate(270deg); }
}

@keyframes screenFlicker {
    0%, 100% { opacity: 0; }
    2% { opacity: 0.15; }
    4% { opacity: 0; }
    6% { opacity: 0.2; }
    8% { opacity: 0; }
    92% { opacity: 0; }
    94% { opacity: 0.12; }
    96% { opacity: 0; }
    98% { opacity: 0.18; }
}

/* ========================================================================
   CRT EFFECTS LAYERS
   ======================================================================== */

.crt-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.2) 0px,
            rgba(0, 0, 0, 0.2) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 200, 0.05) 0px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 998;
    animation: scanlineMove 0.1s linear infinite;
    opacity: var(--scanline-opacity, 0.95);
    mix-blend-mode: overlay;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.crt-scanlines-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 200, 0.08) 0px,
        rgba(0, 255, 200, 0.08) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 997;
    animation: scanlineMoveSecondary 0.15s linear infinite;
    opacity: 0.6;
    mix-blend-mode: screen;
}

@keyframes scanlineMoveSecondary {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

.crt-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 996;
    animation: crtFlicker 0.08s infinite, crtGlitch 3s infinite, crtHueShift 8s infinite;
}

@keyframes crtFlicker {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.98; }
    20% { opacity: 0.99; }
    30% { opacity: 0.97; }
    40% { opacity: 1; }
    50% { opacity: 0.98; }
    60% { opacity: 0.99; }
    70% { opacity: 0.97; }
    80% { opacity: 1; }
    90% { opacity: 0.98; }
}

@keyframes crtGlitch {
    0%, 85%, 100% { 
        transform: translate(0, 0) scale(1); 
        filter: hue-rotate(0deg) brightness(1) saturate(1);
    }
    86% { 
        transform: translate(5px, -3px) scale(1.002); 
        filter: hue-rotate(15deg) brightness(1.1) saturate(1.2);
    }
    87% { 
        transform: translate(-5px, 3px) scale(0.998); 
        filter: hue-rotate(-15deg) brightness(0.9) saturate(0.8);
    }
    88% { 
        transform: translate(3px, 0) scale(1.001); 
        filter: hue-rotate(8deg) brightness(1.05);
    }
    89% { 
        transform: translate(-3px, 0) scale(0.999); 
        filter: hue-rotate(-8deg) brightness(0.95);
    }
}

@keyframes crtHueShift {
    0%, 100% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(3deg); }
    50% { filter: hue-rotate(-2deg); }
    75% { filter: hue-rotate(2deg); }
}

.crt-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 90%,
        rgba(0, 0, 0, 0.9) 100%
    );
    pointer-events: none;
    z-index: 995;
}

.crt-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 994;
    animation: crtGlowPulse 2s ease-in-out infinite alternate;
}

.crt-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 
        inset 0 0 150px rgba(0, 255, 200, var(--glow-intensity, 0.15)),
        inset 0 0 300px rgba(0, 255, 200, calc(var(--glow-intensity, 0.15) * 0.5));
    filter: blur(1px);
}

@keyframes crtGlowPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* ========================================================================
   BACKGROUND SLIDESHOW
   ======================================================================== */

.zordon-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.zordon-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.zordon-bg-slide.active {
    opacity: 0.4;
}

.zordon-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
}

/* ========================================================================
   FLOATING CARDS
   ======================================================================== */

.zordon-intro-cards-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Brain Grid for card animations */
.zordon-intro-cards-bg.zordon-brainwave-active::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom, 
        rgba(0, 255, 200, 0) 0%, 
        rgba(0, 255, 200, 0) 45%,
        rgba(0, 255, 200, 0.6) 50%, 
        rgba(0, 255, 200, 0) 55%,
        rgba(0, 255, 200, 0) 100%
    );
    mix-blend-mode: screen;
    animation: zordonContinuousScan 2.5s linear infinite;
    z-index: 11;
    filter: blur(2px);
}

@keyframes zordonContinuousScan {
    0%   { transform: translateY(-15%); opacity: 0.6; }
    50%  { opacity: 1; }
    100% { transform: translateY(115%); opacity: 0.6; }
}

.zordon-intro-card {
    position: absolute;
    width: 280px;
    background: linear-gradient(135deg, rgba(0, 30, 20, 0.75), rgba(0, 40, 30, 0.85));
    border: 2px solid var(--card-border-color);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    animation: cardFloat var(--float-duration) ease-in-out infinite, cardFadeIn 0.8s ease-out forwards;
    visibility: visible !important;
    display: block !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 255, 200, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

@keyframes cardFadeIn {
    to { opacity: var(--card-opacity); }
}

@keyframes cardFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(var(--float-distance), calc(var(--float-distance) * -1)) rotate(0.6deg); }
    50% { transform: translate(calc(var(--float-distance) * -0.8), calc(var(--float-distance) * 0.6)) rotate(-0.4deg); }
    75% { transform: translate(var(--float-distance), var(--float-distance)) rotate(0.5deg); }
}

.zordon-intro-card:hover {
    transform: scale(1.08) !important;
    z-index: 100 !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.95),
        0 0 80px rgba(0, 255, 200, 0.6);
}

.zordon-intro-card.active,
.zordon-intro-card.playing-audio {
    opacity: 1 !important;
    border-color: var(--glow-color);
    border-width: 4px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.95),
        0 0 120px rgba(0, 255, 200, 1),
        0 0 200px rgba(0, 255, 200, 0.8),
        0 0 300px rgba(0, 255, 200, 0.6),
        inset 0 0 40px rgba(0, 255, 200, 0.2);
    transform: scale(1.15);
    z-index: 999 !important;
    animation: cardFloat var(--float-duration) ease-in-out infinite, 
               audioPulse 2.5s ease-in-out infinite,
               colorCycle 4s ease-in-out infinite;
    filter: brightness(1.15);
}

@keyframes audioPulse {
    0%, 100% { 
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.95),
            0 0 120px rgba(0, 255, 200, 1),
            0 0 200px rgba(0, 255, 200, 0.8),
            inset 0 0 40px rgba(0, 255, 200, 0.2);
    }
    50% { 
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.95),
            0 0 150px rgba(0, 255, 200, 1),
            0 0 250px rgba(0, 255, 200, 0.9),
            inset 0 0 50px rgba(0, 255, 200, 0.25);
    }
}

@keyframes colorCycle {
    0% { filter: brightness(1.15) hue-rotate(0deg); }
    25% { filter: brightness(1.15) hue-rotate(90deg); }
    50% { filter: brightness(1.15) hue-rotate(180deg); }
    75% { filter: brightness(1.15) hue-rotate(270deg); }
    100% { filter: brightness(1.15) hue-rotate(360deg); }
}

/* Form Screen Cards (hidden until goals selected) */
.zordon-intro-card.form-screen-card {
    pointer-events: none;
}

.zordon-intro-card.form-screen-card.form-card-wiggle {
    visibility: visible !important;
    pointer-events: auto !important;
}

@keyframes formCardFadeIn {
    0% {
        transform: scale(0.92);
        opacity: 0;
        filter: blur(6px) brightness(0.6);
    }
    30% {
        transform: scale(1.05);
        opacity: 0.7;
        filter: blur(2px) brightness(1.1);
    }
    60% {
        transform: scale(0.98);
        opacity: 0.9;
        filter: blur(0px) brightness(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
    }
}

.zordon-intro-card.form-card-wiggle {
    animation: formCardFadeIn 1s ease-out;
    z-index: 20;
}

/* Card Shuffle Animation */
.zordon-intro-card.zordon-card-shuffle {
    animation: 
        zordonDramaticShuffle 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
        zordonVibrate 0.15s linear 1.2s infinite !important;
}

@keyframes zordonDramaticShuffle {
    0%   { 
        transform: translateX(0) translateY(0) scale(1) rotate(0deg); 
        filter: blur(0px) brightness(1);
        opacity: 1;
    }
    15%  { 
        transform: translateX(calc(var(--shuffle-x, 30) * 1px)) translateY(calc(var(--shuffle-y, -40) * 1px)) scale(0.85) rotate(calc(var(--shuffle-rotate, 5) * 1deg)); 
        filter: blur(3px) brightness(1.3);
        opacity: 0.7;
    }
    35%  { 
        transform: translateX(calc(var(--shuffle-x, 30) * -0.8px)) translateY(calc(var(--shuffle-y, -40) * 1.2px)) scale(1.15) rotate(calc(var(--shuffle-rotate, 5) * -1deg)); 
        filter: blur(2px) brightness(1.5);
        opacity: 0.9;
        border-color: rgba(0, 255, 200, 0.8);
    }
    55%  { 
        transform: translateX(calc(var(--shuffle-x, 30) * 0.5px)) translateY(calc(var(--shuffle-y, -40) * -0.6px)) scale(0.95) rotate(calc(var(--shuffle-rotate, 5) * 0.5deg)); 
        filter: blur(1px) brightness(1.2);
        opacity: 0.95;
    }
    75%  { 
        transform: translateX(0) translateY(calc(var(--shuffle-y, -40) * 0.2px)) scale(1.05) rotate(0deg); 
        filter: blur(0.5px) brightness(1.1);
        opacity: 1;
    }
    100% { 
        transform: translateX(0) translateY(0) scale(1) rotate(0deg); 
        filter: blur(0px) brightness(1);
        opacity: 1;
    }
}

@keyframes zordonVibrate {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-1px, 1px) scale(1.002); }
    50%  { transform: translate(1px, -1px) scale(0.998); }
    75%  { transform: translate(-1px, -1px) scale(1.001); }
    100% { transform: translate(1px, 1px) scale(0.999); }
}

/* Flying to Center Animation */
.zordon-intro-card.flying-to-center {
    animation: flyToCenter 1.5s cubic-bezier(0.33, 1, 0.68, 1) forwards !important;
    z-index: 100 !important;
}

@keyframes flyToCenter {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
    30% {
        transform: translate(0, 0) scale(1.15) rotate(10deg);
        opacity: 1;
        filter: brightness(1.4) blur(0px);
    }
    60% {
        transform: translate(
            calc((50vw - var(--card-x, 0px)) * 0.8), 
            calc((50vh - var(--card-y, 0px)) * 0.8)
        ) scale(0.5) rotate(270deg);
        opacity: 0.7;
        filter: brightness(1.8) blur(3px);
    }
    85% {
        transform: translate(
            calc(50vw - var(--card-x, 0px)), 
            calc(50vh - var(--card-y, 0px))
        ) scale(0.15) rotate(450deg);
        opacity: 0.3;
        filter: brightness(2.5) blur(6px);
    }
    100% {
        transform: translate(
            calc(50vw - var(--card-x, 0px)), 
            calc(50vh - var(--card-y, 0px))
        ) scale(0.05) rotate(540deg);
        opacity: 0;
        filter: brightness(3) blur(8px);
    }
}

/* Card Media */
.zordon-intro-card-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(0, 255, 200, 0.3);
}

.zordon-intro-card-media img,
.zordon-intro-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
}

.zordon-intro-card video {
    will-change: auto;
    backface-visibility: visible;
    transform: translateZ(0);
}

.video-play-indicator {
    display: none;
}

/* Card Info */
.zordon-intro-card-overlay {
    padding: 14px;
}

.zordon-intro-card-category {
    font-size: 0.65rem;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.15);
    border: 1px solid rgba(0, 255, 170, 0.4);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.8);
}

.zordon-intro-card-title {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.3;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.6);
}

.zordon-intro-card-date {
    font-size: 0.75rem;
    color: rgba(0, 255, 200, 0.7);
    margin-bottom: 8px;
}

.zordon-intro-card-blueprint {
    font-size: 0.5rem;
    font-family: 'Courier New', monospace;
    color: rgba(0, 255, 200, 0.4);
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 200, 0.12);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 
        0 0 8px rgba(0, 255, 200, 0.6),
        0 0 12px rgba(0, 255, 255, 0.3);
}

/* Rainbow shimmer effect on active cards */
.zordon-intro-card.active .zordon-intro-card-blueprint,
.zordon-intro-card.playing-audio .zordon-intro-card-blueprint,
.zordon-intro-card:hover .zordon-intro-card-blueprint {
    font-weight: 600;
    background: linear-gradient(
        90deg,
        rgba(255, 100, 255, 0.9) 0%,
        rgba(0, 255, 255, 0.9) 25%,
        rgba(255, 255, 100, 0.9) 50%,
        rgba(0, 255, 255, 0.9) 75%,
        rgba(255, 100, 255, 0.9) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ========================================================================
   SKIP BUTTON
   ======================================================================== */

.zordon-intro-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    padding: 8px 16px;
    background: rgba(100, 100, 100, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zordon-intro-skip:hover {
    background: rgba(150, 150, 150, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* ========================================================================
   CENTER CONTENT / GOALS PANEL
   ======================================================================== */

.zordon-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: visible;
}

.zordon-goals-modal {
    position: relative;
    z-index: 500;
    width: 100%;
}

.zordon-goals-panel {
    background: linear-gradient(
        135deg,
        rgba(0, 40, 60, 0.25) 0%,
        rgba(0, 60, 80, 0.15) 50%,
        rgba(0, 80, 100, 0.25) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 25px 32px 30px 32px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 255, 200, 0.37),
        inset 0 0 80px rgba(0, 255, 200, 0.05),
        0 0 100px rgba(0, 255, 200, 0.2);
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.6);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

/* Liquid glass flowing highlight */
.zordon-goals-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: liquidFlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidFlow {
    0%, 100% { transform: translate(0%, 0%) rotate(0deg); }
    25% { transform: translate(10%, 10%) rotate(5deg); }
    50% { transform: translate(0%, 20%) rotate(0deg); }
    75% { transform: translate(-10%, 10%) rotate(-5deg); }
}

/* Glass edge highlight */
.zordon-goals-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4) 50%,
        transparent
    );
    pointer-events: none;
}

/* Logo Container */
.zordon-logo-container {
    text-align: center;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.zordon-logo {
    max-width: 165px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 255, 200, 0.8));
    animation: logoGlitch 3s infinite, logoPulse 2s ease-in-out infinite;
}

@keyframes logoGlitch {
    0%, 90%, 100% {
        transform: translate(0, 0);
        filter: drop-shadow(0 0 20px rgba(0, 255, 200, 0.8)) hue-rotate(0deg);
    }
    91% {
        transform: translate(2px, -2px);
        filter: drop-shadow(0 0 25px rgba(0, 255, 200, 1)) hue-rotate(10deg);
    }
    92% {
        transform: translate(-2px, 2px);
        filter: drop-shadow(0 0 25px rgba(0, 255, 200, 1)) hue-rotate(-10deg);
    }
    93% {
        transform: translate(0, 0);
        filter: drop-shadow(0 0 20px rgba(0, 255, 200, 0.8)) hue-rotate(0deg);
    }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.95; }
}

/* Text-based logo fallback */
.zordon-goals-logo {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #00ffc8;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.8);
    animation: logoPulse 2s ease-in-out infinite;
}

/* Opening Question */
.zordon-opening-question {
    text-align: center;
    margin: 0 auto 1.25rem auto;
    max-width: 540px;
    position: relative;
    z-index: 2;
}

.zordon-question-main,
.zordon-goals-title {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: rgba(0, 255, 200, 0.95);
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.zordon-question-powered,
.zordon-goals-subtitle {
    font-size: 0.55rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    background: linear-gradient(
        90deg,
        rgba(255, 100, 255, 0.9) 0%,
        rgba(0, 255, 255, 0.9) 25%,
        rgba(255, 255, 100, 0.9) 50%,
        rgba(0, 255, 255, 0.9) 75%,
        rgba(255, 100, 255, 0.9) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-bottom: 1rem;
}

.zordon-header-text {
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.zordon-goals-instruction {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    color: #00ffcc;
}

.zordon-goals-hint {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 220, 100, 1);
    text-shadow: 0 0 20px rgba(255, 200, 0, 0.9),
                 0 0 40px rgba(255, 220, 100, 0.6);
    animation: subtitleGlow 2s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        color: rgba(255, 220, 100, 0.9);
        text-shadow: 0 0 15px rgba(255, 200, 0, 0.7);
    }
    50% {
        color: rgba(255, 240, 150, 1);
        text-shadow: 0 0 30px rgba(255, 200, 0, 1);
    }
}

/* ========================================================================
   GOALS GRID - 3x3 CIRCLES
   ======================================================================== */

.zordon-goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-width: 510px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

.zordon-goal-item {
    padding: 14px 8px;
    background: linear-gradient(
        135deg,
        rgba(0, 80, 120, 0.2) 0%,
        rgba(0, 100, 140, 0.1) 50%,
        rgba(0, 120, 160, 0.2) 100%
    );
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 255, 200, 0.25),
        inset 0 0 40px rgba(0, 255, 200, 0.05);
}

/* Liquid glass shimmer on circles */
.zordon-goal-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    animation: circleShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes circleShimmer {
    0%, 100% { transform: translate(0%, 0%) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(20%, 20%) rotate(180deg); opacity: 1; }
}

.zordon-goal-item:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 120, 160, 0.35) 0%,
        rgba(0, 140, 180, 0.25) 50%,
        rgba(0, 160, 200, 0.35) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 24px rgba(0, 255, 200, 0.4),
        inset 0 0 50px rgba(0, 255, 200, 0.1);
    transform: scale(1.08);
}

.zordon-goal-item:hover .zordon-goal-icon svg {
    filter: drop-shadow(0 0 15px rgba(0, 255, 200, 1));
    transform: scale(1.15);
}

.zordon-goal-item.selected {
    background: linear-gradient(
        135deg,
        rgba(0, 180, 220, 0.45) 0%,
        rgba(0, 200, 240, 0.35) 50%,
        rgba(0, 220, 255, 0.45) 100%
    );
    border: 2px solid rgba(0, 255, 200, 0.5);
    box-shadow: 
        0 12px 32px rgba(0, 255, 200, 0.6),
        inset 0 0 60px rgba(0, 255, 200, 0.2);
    animation: goalPulse 1.5s ease-in-out infinite;
}

@keyframes goalPulse {
    0%, 100% { 
        box-shadow: 0 12px 32px rgba(0, 255, 200, 0.6), inset 0 0 60px rgba(0, 255, 200, 0.2);
    }
    50% { 
        box-shadow: 0 16px 40px rgba(0, 255, 200, 0.8), inset 0 0 70px rgba(0, 255, 200, 0.3);
    }
}

.zordon-goal-icon {
    width: 28px;
    height: 28px;
    color: #00ffcc;
    filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.8));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.zordon-goal-icon svg {
    width: 100%;
    height: 100%;
}

.zordon-goal-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 2;
}

.zordon-goal-line1 {
    font-size: 0.62rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.1;
}

.zordon-goal-line2 {
    font-size: 0.62rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.1;
}

/* ========================================================================
   THINKING INDICATOR - SIRI STYLE
   ======================================================================== */

.zordon-thinking-orbs {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 15px auto 10px;
    transition: transform 0.4s ease, gap 0.4s ease;
    position: relative;
    z-index: 100;
}

.zordon-orb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffc8, #00d4ff, #00ffc8);
    box-shadow: 
        0 0 20px rgba(0, 255, 200, 1),
        0 0 40px rgba(0, 255, 200, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.8);
    opacity: 1;
    filter: brightness(1.2) saturate(1.5);
    position: relative;
    z-index: 100;
    animation: zordonOrbPulse 1.5s ease-in-out infinite;
}

.zordon-orb:nth-child(1) {
    background: linear-gradient(135deg, #ff00ff, #ff6bd5);
    box-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 40px rgba(255, 0, 255, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.8);
    animation-delay: 0s;
}

.zordon-orb:nth-child(2) {
    background: linear-gradient(135deg, #00ffc8, #00d4ff);
    box-shadow: 0 0 20px rgba(0, 255, 200, 1), 0 0 40px rgba(0, 255, 200, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.8);
    animation-delay: 0.15s;
}

.zordon-orb:nth-child(3) {
    background: linear-gradient(135deg, #ffff00, #ffd700);
    box-shadow: 0 0 20px rgba(255, 255, 0, 1), 0 0 40px rgba(255, 255, 0, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.8);
    animation-delay: 0.3s;
}

.zordon-orb:nth-child(4) {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    box-shadow: 0 0 20px rgba(0, 212, 255, 1), 0 0 40px rgba(0, 212, 255, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.8);
    animation-delay: 0.45s;
}

.zordon-orb:nth-child(5) {
    background: linear-gradient(135deg, #ff6b00, #ff9500);
    box-shadow: 0 0 20px rgba(255, 107, 0, 1), 0 0 40px rgba(255, 107, 0, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.8);
    animation-delay: 0.6s;
}

@keyframes zordonOrbPulse {
    0%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4) translateY(-8px);
        opacity: 1;
    }
}

/* Intensity classes */
.zordon-thinking-orbs.intensity-2 {
    transform: scale(1.15);
    gap: 12px;
}

.zordon-thinking-orbs.intensity-3 {
    transform: scale(1.3);
    gap: 14px;
}

.zordon-thinking-orbs.intensity-4 {
    transform: scale(1.5);
    gap: 16px;
}

.zordon-thinking-text {
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(
        90deg,
        rgba(255, 100, 255, 0.9) 0%,
        rgba(0, 255, 255, 0.9) 25%,
        rgba(255, 255, 100, 0.9) 50%,
        rgba(0, 255, 255, 0.9) 75%,
        rgba(255, 100, 255, 0.9) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ========================================================================
   CONTINUE BUTTON
   ======================================================================== */

.zordon-goals-continue {
    padding: 12px 35px;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
    border: 2px solid #00ffcc;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.6);
    transition: all 0.3s ease;
    text-shadow: none;
    display: block;
    margin: 0 auto;
    letter-spacing: 2px;
}

.zordon-goals-continue:hover {
    background: linear-gradient(135deg, #00ffaa, #00ff88);
    box-shadow: 0 0 60px rgba(0, 255, 200, 0.9);
    transform: scale(1.05);
}

.zordon-goals-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================================================
   VIBRATION INTENSITY
   ======================================================================== */

.zordon-intro-cards-bg.vibration-2 .zordon-intro-card {
    animation: cardFloat var(--float-duration) ease-in-out infinite, cardVibrate2 0.15s ease-in-out infinite;
}

@keyframes cardVibrate2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); filter: brightness(1); }
    25% { transform: translate(-1px, 1px) rotate(-0.4deg); filter: brightness(1.04); }
    75% { transform: translate(1px, -1px) rotate(0.4deg); filter: brightness(1.04); }
}

.zordon-intro-cards-bg.vibration-3 .zordon-intro-card {
    animation: cardFloat var(--float-duration) ease-in-out infinite, cardVibrate3 0.12s ease-in-out infinite;
}

@keyframes cardVibrate3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); filter: brightness(1); }
    25% { transform: translate(-2px, 2px) rotate(-0.6deg); filter: brightness(1.08); }
    75% { transform: translate(2px, -2px) rotate(0.6deg); filter: brightness(1.08); }
}

.zordon-intro-cards-bg.vibration-4 .zordon-intro-card {
    animation: cardFloat var(--float-duration) ease-in-out infinite, cardVibrate4 0.1s ease-in-out infinite;
}

@keyframes cardVibrate4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); filter: brightness(1); }
    25% { transform: translate(-3px, 3px) rotate(-0.8deg); filter: brightness(1.12); }
    75% { transform: translate(3px, -3px) rotate(0.8deg); filter: brightness(1.12); }
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 768px) {
    .zordon-intro-card {
        width: 200px;
    }
    
    .zordon-intro-card-media {
        height: 150px;
    }
    
    .zordon-center-content {
        max-width: 90%;
    }
    
    .zordon-goals-panel {
        padding: 20px;
    }
    
    .zordon-goals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .zordon-goal-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .zordon-intro-card {
        width: 160px;
    }
    
    .zordon-goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom scrollbar */
.zordon-center-content::-webkit-scrollbar {
    width: 8px;
}

.zordon-center-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.zordon-center-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 200, 0.4);
    border-radius: 0;
}

.zordon-center-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 200, 0.6);
}

/* ========================================================================
   SCREEN 2: IDENTITY + CONSTRAINTS
   ======================================================================== */

.zordon-identity-modal {
    width: 100%;
    max-width: 700px;
    animation: fadeIn 0.5s ease-out;
}

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

.zordon-identity-panel {
    background: rgba(0, 10, 20, 0.98); /* Fully opaque like first screen */
    border: 2px solid rgba(0, 255, 200, 0.4);
    padding: 30px 40px;
    position: relative;
    box-shadow: 
        0 0 30px rgba(0, 255, 200, 0.2),
        inset 0 0 100px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.zordon-identity-header {
    text-align: center;
    margin-bottom: 30px;
}

.zordon-identity-title {
    color: #00ffc8;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
}

.zordon-identity-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    font-family: inherit;
}

.zordon-field-group {
    margin-bottom: 25px;
}

.zordon-field-label {
    display: block;
    color: #00ffc8;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.zordon-field-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0 0 12px 0;
}

/* Theme Grid */
.zordon-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.zordon-theme-option {
    padding: 10px 8px;
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

.zordon-theme-option:hover {
    background: rgba(0, 255, 200, 0.15);
    border-color: rgba(0, 255, 200, 0.5);
}

.zordon-theme-option.selected {
    background: rgba(0, 255, 200, 0.25);
    border-color: #00ffc8;
    color: #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

/* Release Type Options (Album/EP/Single) */
.zordon-release-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.zordon-release-option {
    padding: 16px 12px;
    background: rgba(0, 255, 200, 0.05);
    border: 2px solid rgba(0, 255, 200, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zordon-release-option:hover {
    background: rgba(0, 255, 200, 0.15);
    border-color: rgba(0, 255, 200, 0.5);
}

.zordon-release-option.selected {
    background: rgba(0, 255, 200, 0.25);
    border-color: #00ffc8;
    color: #00ffc8;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
}

/* Budget Options */
.zordon-budget-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.zordon-budget-option {
    padding: 12px 6px;
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.zordon-budget-option span {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.zordon-budget-option:hover {
    background: rgba(0, 255, 200, 0.15);
    border-color: rgba(0, 255, 200, 0.5);
}

.zordon-budget-option.selected {
    background: rgba(0, 255, 200, 0.25);
    border-color: #00ffc8;
    color: #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

/* Team Options */
.zordon-team-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.zordon-team-option {
    padding: 12px 8px;
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zordon-team-option:hover {
    background: rgba(0, 255, 200, 0.15);
    border-color: rgba(0, 255, 200, 0.5);
}

.zordon-team-option.selected {
    background: rgba(0, 255, 200, 0.25);
    border-color: #00ffc8;
    color: #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

/* Genre Options */
.zordon-genre-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.zordon-genre-option {
    padding: 12px 8px;
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zordon-genre-option:hover:not(.demo-disabled) {
    background: rgba(0, 255, 200, 0.15);
    border-color: rgba(0, 255, 200, 0.5);
}

.zordon-genre-option.selected {
    background: rgba(0, 255, 200, 0.25);
    border-color: #00ffc8;
    color: #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

/* Demo Disabled States */
.demo-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    position: relative;
}

.demo-disabled:hover {
    background: rgba(0, 255, 200, 0.05) !important;
    border-color: rgba(0, 255, 200, 0.2) !important;
    transform: none !important;
}

.demo-locked {
    position: relative;
}

.demo-locked::after {
    content: '✓';
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 0.65rem;
    color: #00ffc8;
}

/* Demo Lock Message */
.demo-lock-message {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #00ffc8;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 9999;
    border: 1px solid #00ffc8;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
    animation: messagePopIn 0.3s ease-out;
}

@keyframes messagePopIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Strong pulse for continue button */
.zordon-identity-continue.hint-pulse-strong {
    animation: hintPulseStrong 0.4s ease-in-out 3;
}

@keyframes hintPulseStrong {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 255, 200, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 100px rgba(0, 255, 200, 1), 0 0 150px rgba(0, 255, 200, 0.7);
        transform: scale(1.1);
    }
}

/* Identity Thinking */
.zordon-identity-thinking {
    text-align: center;
    margin: 20px 0;
}

.zordon-identity-thinking .zordon-thinking-orbs {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.zordon-identity-thinking .zordon-thinking-text {
    display: block !important;
}

/* Identity Continue Button */
.zordon-identity-continue {
    padding: 12px 35px;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
    border: 2px solid #00ffcc;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.6);
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto 10px auto;
    letter-spacing: 2px;
}

.zordon-identity-continue:hover {
    background: linear-gradient(135deg, #00ffaa, #00ff88);
    box-shadow: 0 0 60px rgba(0, 255, 200, 0.9);
    transform: scale(1.05);
}

.zordon-identity-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Pulsing hint for continue button when pre-selected */
.zordon-identity-continue.hint-pulse {
    animation: hintPulse 1.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 255, 200, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 80px rgba(0, 255, 200, 1), 0 0 120px rgba(0, 255, 200, 0.5);
        transform: scale(1.05);
    }
}

/* Back Button */
.zordon-identity-back {
    display: block;
    margin: 0 auto;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(0, 255, 200, 0.3);
    color: rgba(0, 255, 200, 0.7);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zordon-identity-back:hover {
    border-color: rgba(0, 255, 200, 0.6);
    color: #00ffc8;
}

/* ========================================================================
   RESULT MESSAGE (After completion)
   ======================================================================== */

.zordon-result-message {
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.zordon-result-content {
    background: rgba(0, 10, 20, 0.85);
    border: 2px solid rgba(0, 255, 200, 0.4);
    padding: 40px 50px;
    box-shadow: 
        0 0 30px rgba(0, 255, 200, 0.2),
        inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.zordon-result-text {
    color: #00ffc8;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
}

.zordon-result-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0 0 25px 0;
}

.zordon-scroll-indicator {
    display: block;
    color: #00ffc8;
    font-size: 1.2rem;
    animation: bounceDown 1.5s ease-in-out infinite;
}

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

/* ========================================================================
   IDENTITY SCREEN RESPONSIVE
   ======================================================================== */

@media (max-width: 768px) {
    .zordon-identity-panel {
        padding: 20px;
    }
    
    .zordon-identity-title {
        font-size: 1.4rem;
    }
    
    .zordon-theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zordon-budget-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .zordon-team-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .zordon-genre-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .zordon-theme-grid {
        grid-template-columns: 1fr;
    }
    
    .zordon-budget-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zordon-team-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zordon-genre-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================================================
   INTRO CONTEXT SECTION - "Tell Zordon who you are" - Above the CRT Modal
   ======================================================================== */

.zordon-intro-context-section {
    position: relative;
    background: #000;
    padding: 100px 20px 80px;
    text-align: center;
    min-height: 700px;
    overflow: hidden;
}

/* ========================================================================
   SLIDESHOW BACKGROUND - Ken Burns Effect
   ======================================================================== */

.zordon-context-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.zordon-slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

.zordon-slideshow-slide.active {
    opacity: 1;
    animation: kenBurnsZoom 12s ease-in-out forwards;
}

/* Ken Burns zoom animations */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-2%, -2%);
    }
}

.zordon-slideshow-slide[data-direction="left"].active {
    animation: kenBurnsLeft 12s ease-in-out forwards;
}

@keyframes kenBurnsLeft {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-4%, 0);
    }
}

.zordon-slideshow-slide[data-direction="right"].active {
    animation: kenBurnsRight 12s ease-in-out forwards;
}

@keyframes kenBurnsRight {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(4%, 0);
    }
}

.zordon-slideshow-slide[data-direction="up"].active {
    animation: kenBurnsUp 12s ease-in-out forwards;
}

@keyframes kenBurnsUp {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(0, -4%);
    }
}

.zordon-slideshow-slide[data-direction="down"].active {
    animation: kenBurnsDown 12s ease-in-out forwards;
}

@keyframes kenBurnsDown {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(0, 4%);
    }
}

/* Dark overlay on top of slideshow - uses CSS variable for opacity */
.zordon-slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Default gradient, can be overridden by inline style */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, var(--overlay-opacity, 0.75)) 0%,
        rgba(0, 10, 20, calc(var(--overlay-opacity, 0.75) + 0.1)) 50%,
        rgba(0, 10, 20, calc(var(--overlay-opacity, 0.75) + 0.15)) 100%
    );
    z-index: 1;
}

/* CRT effect layer on top */
.zordon-intro-context-section::before {
    content: '';
    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: 2;
    opacity: 0.4;
}

.zordon-context-cards-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* Above slideshow and CRT effect */
}

/* Allow pointer events on context cards */
.zordon-context-cards-bg .zordon-intro-card {
    pointer-events: auto;
}

.zordon-intro-context-inner {
    position: relative;
    z-index: 10; /* Above slideshow, overlay, CRT effect, and cards */
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================================================
   ZORDON THINKING ANIMATION - Context Section Header
   The colorful 5-orb "Zordon is thinking" animation
   ======================================================================== */

.zordon-context-thinking {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Context section orbs - larger and more prominent */
.zordon-thinking-orbs.context-orbs {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin: 0;
    transform: scale(1.3);
}

.zordon-thinking-orbs.context-orbs .zordon-orb {
    width: 18px;
    height: 18px;
}

/* ========================================================================
   CONTEXT SECTION TYPOGRAPHY
   ======================================================================== */

.zordon-intro-context-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.zordon-intro-context-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.zordon-intro-context-note {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 40px 0;
    font-style: italic;
}

.zordon-intro-context-bridge {
    background: rgba(0, 10, 20, var(--content-bg-opacity, 0.85));
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin: 0 0 40px 0;
    backdrop-filter: blur(10px);
}

.zordon-bridge-headline {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.zordon-bridge-body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.zordon-bridge-body em {
    color: #00ffc8;
    font-style: normal;
}

.zordon-intro-context-demo-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
}

.zordon-demo-info-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zordon-demo-goals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 16px 0;
}

.zordon-demo-goal {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ffc8;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
}

.zordon-demo-goal-separator {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
}

.zordon-demo-info-helper {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* Intro Completed State */
.zordon-intro-completed {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.zordon-intro-context-section.zordon-intro-completed {
    opacity: 0.3;
}

/* ========================================================================
   DEMO GOAL RESTRICTIONS
   ======================================================================== */

/* Restricted goals (not available in demo) */
.zordon-goal-item.demo-restricted {
    opacity: 0.4;
    cursor: not-allowed;
}

.zordon-goal-item.demo-restricted:hover {
    transform: none;
    box-shadow: none;
}

.zordon-goal-item.demo-restricted .zordon-goal-icon {
    filter: grayscale(0.5);
}

/* Highlight allowed goals when user clicks restricted */
.zordon-goal-item.demo-highlight {
    animation: demoHighlightPulse 0.5s ease-in-out 3;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.6);
}

@keyframes demoHighlightPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 200, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 200, 0.8); }
}

/* Shake animation for restricted click */
.zordon-goal-item.demo-shake {
    animation: demoShake 0.5s ease-in-out;
}

@keyframes demoShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Demo tooltip */
.zordon-demo-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ffc8;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.zordon-demo-tooltip strong {
    color: #00ffc8;
}

.zordon-demo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #00ffc8;
}

/* ========================================================================
   FLOATING CARDS IN CONTEXT SECTION - "Tell Zordon who you are"
   Uses the SAME featured-article-card design as campaign-network database
   ======================================================================== */

/* Context Card - Floating Featured Article Style */
.context-card.featured-article-card {
    position: absolute;
    width: 240px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    opacity: var(--card-opacity, 0.7);
    animation: 
        contextCardFloat var(--float-duration, 10s) ease-in-out infinite,
        contextCardFadeIn 0.8s ease-out forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.context-card.featured-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(0, 255, 255, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.context-card.featured-article-card:hover {
    opacity: 1 !important;
    background: rgba(10, 15, 25, 0.98) !important; /* Fully opaque background */
    border-color: #00ffc8;
    border-width: 3px;
    transform: translateY(-8px) scale(1.08);
    z-index: 9999 !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.95),
        0 0 60px rgba(0, 255, 200, 0.6),
        0 0 100px rgba(0, 255, 200, 0.4),
        0 0 150px rgba(0, 255, 200, 0.2),
        inset 0 0 20px rgba(0, 255, 200, 0.1);
    animation: contextCardGlow 2s ease-in-out infinite;
    backdrop-filter: none;
}

@keyframes contextCardGlow {
    0%, 100% {
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.9),
            0 0 60px rgba(0, 255, 200, 0.6),
            0 0 100px rgba(0, 255, 200, 0.4),
            inset 0 0 20px rgba(0, 255, 200, 0.1);
        border-color: #00ffc8;
    }
    50% {
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.95),
            0 0 80px rgba(0, 255, 200, 0.8),
            0 0 120px rgba(0, 255, 200, 0.5),
            inset 0 0 30px rgba(0, 255, 200, 0.15);
        border-color: #00ffff;
    }
}

.context-card.featured-article-card:hover::before {
    opacity: 1;
}

.context-card.featured-article-card.audio-active {
    opacity: 1 !important;
    border-color: #00ffc8;
    border-width: 4px;
    z-index: 9999 !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.95),
        0 0 80px rgba(0, 255, 200, 1),
        0 0 150px rgba(0, 255, 200, 0.7),
        0 0 200px rgba(0, 255, 200, 0.4),
        inset 0 0 30px rgba(0, 255, 200, 0.15);
    transform: scale(1.12);
    animation: contextCardGlow 1.5s ease-in-out infinite, contextColorCycle 4s ease-in-out infinite;
}

@keyframes contextColorCycle {
    0% { filter: brightness(1.1) hue-rotate(0deg); }
    25% { filter: brightness(1.15) hue-rotate(30deg); }
    50% { filter: brightness(1.2) hue-rotate(60deg); }
    75% { filter: brightness(1.15) hue-rotate(30deg); }
    100% { filter: brightness(1.1) hue-rotate(0deg); }
}

.context-card.featured-article-card.audio-active::after {
    content: '🔊';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 6px;
    border-radius: 4px;
    animation: speakerPulse 1s ease-in-out infinite;
}

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

/* Featured Article Image */
.context-card .featured-article-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.context-card .featured-article-image video,
.context-card .featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.context-card.featured-article-card:hover .featured-article-image video,
.context-card.featured-article-card:hover .featured-article-image img {
    transform: scale(1.05);
}

.context-card .featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

/* Featured Article Content */
.context-card .featured-article-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.context-card .featured-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.context-card .featured-article-category {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: #00ffc8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 4px;
}

.context-card .featured-article-date {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.context-card .featured-article-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats display - compact inline style like database cards */
.context-card .featured-article-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 4px 0;
    overflow: hidden;
}

.context-card .featured-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 255, 200, 0.12);
    border: 1px solid rgba(0, 255, 200, 0.25);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.55rem;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.context-card .featured-stat .stat-value {
    color: #00ffc8;
    font-weight: 700;
    font-size: 0.55rem;
}

.context-card .featured-stat .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.5rem;
}

/* Hide description on context cards - too much info */
.context-card .featured-article-desc {
    display: none;
}

/* Make cards taller to fit content better */
.context-card.featured-article-card {
    width: 220px;
}

.context-card .featured-article-content {
    padding: 8px 10px;
}

.context-card .featured-article-title {
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.context-card .featured-article-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.context-card .featured-read-more {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.7rem;
    color: #00ffc8;
    font-weight: 500;
}

.context-card .featured-arrow-icon {
    width: 14px;
    height: 14px;
    color: #00ffc8;
}

/* Context Card Animations */
@keyframes contextCardFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(0.3deg); 
    }
    50% { 
        transform: translateY(0) rotate(0deg); 
    }
    75% { 
        transform: translateY(10px) rotate(-0.3deg); 
    }
}

@keyframes contextCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: var(--card-opacity, 0.7);
        transform: translateY(0);
    }
}

/* Responsive - hide some cards on mobile */
@media (max-width: 1024px) {
    .context-card.featured-article-card {
        width: 200px;
    }
    
    .context-card.featured-article-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .context-card.featured-article-card {
        width: 160px;
    }
    
    .context-card.featured-article-card:nth-child(n+3) {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .zordon-intro-context-section {
        padding: 60px 20px 40px;
    }
    
    .zordon-intro-context-title {
        font-size: 1.8rem;
    }
    
    .zordon-intro-context-subtitle {
        font-size: 1rem;
    }
    
    .zordon-demo-goals {
        flex-direction: column;
        gap: 8px;
    }
    
    .zordon-demo-goal {
        font-size: 1.2rem;
    }
    
    .zordon-demo-goal-separator {
        display: none;
    }
}
