/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: -2;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #00ff41 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #0066ff 0%, transparent 50%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}



/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.container.cinematic-mode {
    max-width: 95vw;
    padding: 5px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.cinematic-mode {
    padding: 15px 0;
    margin-bottom: 20px;
    transform: scale(0.6);
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00ff41, #0066ff, #ff0066);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 10px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.title.cinematic-mode {
    font-size: 2rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: #ff0066;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: #00ff41;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(2px, -2px);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    font-weight: 300;
}

/* Scene Container */
.scene-container {
    position: relative;
    width: 100%;
    height: 60vh;
    aspect-ratio: 21/9;
    max-width: 100vw;
    margin: 0 auto 20px auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual Scenes */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scene.active {
    opacity: 1;
    transform: translateX(0);
}

.scene.prev {
    transform: translateX(-100%);
}

.scene-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    padding: 30px;
}

@media (max-width: 768px) {
    .scene-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* Scene Visuals */
.scene-visual {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Scene Text */
.scene-text {
    padding: 20px;
}

.scene-text h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00ff41, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.8)); }
}

.scene-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #e0e0e0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scene Visual Elements */

/* Year Display */
.year-display {
    font-family: 'Orbitron', monospace;
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00ff41, #0066ff, #ff0066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: yearPulse 2s ease-in-out infinite;
    text-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
}

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

/* DNA Animation */
.dna-animation {
    position: absolute;
    width: 100px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dna-animation::before,
.dna-animation::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 200px;
    background: linear-gradient(to bottom, #00ff41, #0066ff, #ff0066);
    border-radius: 3px;
    animation: dnaRotate 3s linear infinite;
}

.dna-animation::before {
    left: 20px;
}

.dna-animation::after {
    right: 20px;
    animation-direction: reverse;
}

@keyframes dnaRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Scientist Avatar */
.scientist-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, #00ff41, #0066ff);
    position: relative;
    animation: avatarGlow 2s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.5); }
    100% { box-shadow: 0 0 40px rgba(0, 102, 255, 0.8); }
}

/* Gene Particles */
.gene-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gene-particles::before,
.gene-particles::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
}

.gene-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.gene-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: #0066ff;
}

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

/* Military Grid */
.military-grid {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, #ff0066 1px, transparent 1px),
                linear-gradient(180deg, #ff0066 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridPulse 3s ease-in-out infinite;
    border: 2px solid #ff0066;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Soldier Silhouettes */
.soldier-silhouettes {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="45" y="20" width="10" height="60" fill="%23ff0066" opacity="0.7"/><circle cx="50" cy="15" r="8" fill="%23ff0066" opacity="0.7"/></svg>') repeat-x;
    background-size: 50px 100px;
    animation: marchingEffect 5s linear infinite;
}

@keyframes marchingEffect {
    0% { background-position-x: 0; }
    100% { background-position-x: 200px; }
}

/* Lab Escape */
.lab-escape {
    width: 250px;
    height: 150px;
    background: linear-gradient(45deg, #333, #666);
    border: 3px solid #00ff41;
    border-radius: 10px;
    position: relative;
    animation: labAlarm 1s ease-in-out infinite alternate;
}

@keyframes labAlarm {
    0% { border-color: #00ff41; box-shadow: 0 0 20px rgba(0, 255, 65, 0.5); }
    100% { border-color: #ff0066; box-shadow: 0 0 20px rgba(255, 0, 102, 0.8); }
}

/* Kael Figure */
.kael-figure {
    position: absolute;
    width: 60px;
    height: 120px;
    background: linear-gradient(180deg, #0066ff, #00ff41);
    border-radius: 30px 30px 10px 10px;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    animation: escapeRun 2s ease-in-out infinite;
}

@keyframes escapeRun {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(20px); }
}

/* Chaos Background */
.chaos-background {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ff0066 2px, transparent 2px),
                radial-gradient(circle, #00ff41 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px;
    animation: chaosShift 4s linear infinite;
}

@keyframes chaosShift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 30px 30px, 50px 50px; }
}

/* Alliance Symbol */
.alliance-symbol {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 4px solid #00ff41;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: symbolRotate 6s linear infinite;
}

.alliance-symbol::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #0066ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes symbolRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Conspiracy Web */
.conspiracy-web {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><line x1="0" y1="100" x2="200" y2="100" stroke="%23ff0066" stroke-width="1" opacity="0.7"/><line x1="100" y1="0" x2="100" y2="200" stroke="%23ff0066" stroke-width="1" opacity="0.7"/><line x1="0" y1="0" x2="200" y2="200" stroke="%2300ff41" stroke-width="1" opacity="0.5"/><line x1="200" y1="0" x2="0" y2="200" stroke="%2300ff41" stroke-width="1" opacity="0.5"/></svg>');
    animation: webPulse 3s ease-in-out infinite;
}

@keyframes webPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Dystopian Landscape */
.dystopian-landscape {
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    position: relative;
    overflow: hidden;
}

.dystopian-landscape::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(45deg, #333 25%, transparent 25%),
                linear-gradient(-45deg, #333 25%, transparent 25%);
    background-size: 20px 20px;
    animation: landscapeMove 8s linear infinite;
}

@keyframes landscapeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(40px); }
}

/* Choice Crossroads */
.choice-crossroads {
    width: 200px;
    height: 200px;
    position: relative;
}

.choice-crossroads::before,
.choice-crossroads::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00ff41, #ff0066);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.choice-crossroads::after {
    width: 4px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #0066ff, #ff0066);
}

/* Victory Dawn */
.victory-dawn {
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, #1a1a2e 0%, #ff9500 50%, #ffeb3b 100%);
    border-radius: 50% 50% 0 0;
    animation: dawnRise 4s ease-in-out infinite;
}

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

/* Scene 10: Credits */
.credits-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: creditsGlow 3s ease-in-out infinite;
}

@keyframes creditsGlow {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
    50% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 1); }
}

/* Scene Navigation */
.scene-navigation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid #333;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #0066ff, #00ff41);
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.4);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.scene-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    border-color: #00ff41;
}

.indicator:hover {
    background: #0066ff;
    transform: scale(1.2);
}

/* Control Panel */
.control-panel {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    width: 280px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .control-panel {
        position: static;
        transform: none;
        width: 100%;
        margin: 20px 0;
    }
    
    .scene-navigation {
        position: static;
        transform: none;
        justify-content: center;
        margin: 20px 0;
    }
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #ff0066, #cc0052);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 102, 0.3);
}



.btn-nft {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 25px;
}

.progress-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #0066ff);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #00ff41;
}





/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Credits Overlay Styles */
.credits-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.credits-overlay.fade-in {
    opacity: 1;
}

.credits-overlay.fade-out {
    opacity: 0;
}

.credits-content {
    text-align: center;
    color: #fff;
}

.credits-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Welcome Page Styles */
.welcome-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow: hidden;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: welcomeFadeIn 2s ease-out;
}

.welcome-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #00ffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
    animation: titlePulse 3s ease-in-out infinite;
}

.welcome-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.welcome-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.welcome-description-en {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #999999;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.welcome-instructions {
    margin: 3rem 0;
    padding: 2rem;
    border: 2px solid #00ffff;
    border-radius: 10px;
    background: rgba(0, 255, 255, 0.1);
    animation: instructionGlow 2s ease-in-out infinite alternate;
}

.instruction-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.instruction-text-en {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: #00cccc;
}

.key-highlight {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #cccccc;
    text-align: center;
}

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

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

@keyframes instructionGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    to {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    }
}

/* Responsive design for welcome page */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.4rem;
    }
    
    .welcome-description {
        font-size: 1.2rem;
    }
    
    .welcome-description-en {
        font-size: 1rem;
    }
    
    .welcome-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .welcome-content {
        padding: 1rem;
    }
}

/* Production mode - hide controls */
.production-mode .navigation {
    display: none !important;
}

.production-mode .scene-indicators {
    display: none !important;
}

.production-mode .controls {
    display: none !important;
}

.production-mode .scene-navigation {
    display: none !important;
}

.production-mode .control-panel {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .story-panel,
    .control-panel {
        padding: 20px;
    }
    
    .web3-status {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .control-panel {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
    }
    
    .scene-navigation {
        margin-top: 15px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .scene-indicators {
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .credits-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .controls {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}