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

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

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: zoom 20s infinite;
    opacity: 0;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: transparent;
}

.twinkling::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: move-twink-back 200s linear infinite;
}

/* Planets Animation */
.planets {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.planet-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #ff6b47, #8b0000);
    top: 10%;
    left: -100px;
    animation: float-right 60s infinite;
    box-shadow: 0 0 30px rgba(255, 107, 71, 0.5);
}

.planet-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #4dabf7, #1864ab);
    top: 60%;
    right: -80px;
    animation: float-left 80s infinite;
    box-shadow: 0 0 25px rgba(77, 171, 247, 0.5);
}

.planet-3 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #51cf66, #2f9e44);
    top: 80%;
    left: -60px;
    animation: float-right 100s infinite;
    box-shadow: 0 0 20px rgba(81, 207, 102, 0.5);
}

.comet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    top: 20%;
    left: -10px;
    animation: comet-trail 25s infinite;
}

.comet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    transform: translateX(-100px);
    animation: comet-tail 25s infinite;
}

@keyframes float-right {
    0% { transform: translateX(-200px) translateY(0px) rotate(0deg); }
    25% { transform: translateX(calc(100vw / 4)) translateY(-20px) rotate(90deg); }
    50% { transform: translateX(calc(100vw / 2)) translateY(0px) rotate(180deg); }
    75% { transform: translateX(calc(100vw * 0.75)) translateY(20px) rotate(270deg); }
    100% { transform: translateX(calc(100vw + 200px)) translateY(0px) rotate(360deg); }
}

@keyframes float-left {
    0% { transform: translateX(200px) translateY(0px) rotate(0deg); }
    25% { transform: translateX(calc(100vw * 0.75)) translateY(20px) rotate(-90deg); }
    50% { transform: translateX(calc(100vw / 2)) translateY(0px) rotate(-180deg); }
    75% { transform: translateX(calc(100vw / 4)) translateY(-20px) rotate(-270deg); }
    100% { transform: translateX(-200px) translateY(0px) rotate(-360deg); }
}

@keyframes comet-trail {
    0% { 
        transform: translateX(-50px) translateY(50px); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateX(calc(100vw + 50px)) translateY(-50px); 
        opacity: 0; 
    }
}

@keyframes comet-tail {
    0% { 
        width: 0px; 
        opacity: 0; 
    }
    10% { 
        width: 100px; 
        opacity: 1; 
    }
    90% { 
        width: 100px; 
        opacity: 1; 
    }
    100% { 
        width: 0px; 
        opacity: 0; 
    }
}

@keyframes zoom {
    from {
        opacity: 0;
        transform: rotate(-45deg) scale(0);
    }
    50% {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: rotate(-45deg) scale(1);
    }
}

@keyframes move-twink-back {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-200px, -200px, 0); }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.6s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Logo and Main Menu */
.logo {
    text-align: center;
    margin-bottom: 50px;
}

.logo i {
    font-size: 4rem;
    color: #64ffda;
    margin-bottom: 20px;
    animation: rocket-bounce 2s infinite ease-in-out;
}

@keyframes rocket-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #64ffda, #ff6b9d, #ffd93d);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Menu Content */
.menu-content h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #e1f5fe;
}

.level-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.level-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 25px 40px;
    width: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.level-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;
}

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

.level-btn.easy {
    border-image: linear-gradient(135deg, #4caf50, #81c784) 1;
}

.level-btn.medium {
    border-image: linear-gradient(135deg, #ff9800, #ffb74d) 1;
}

.level-btn.hard {
    border-image: linear-gradient(135deg, #f44336, #e57373) 1;
}

.level-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.level-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.level-btn span {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.level-btn small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Game Controls */
.game-controls {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.control-btn.reset {
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.control-btn.reset:hover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

/* Stats Display */
.stats-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    z-index: 1000;
    min-width: 300px;
    max-width: 90%;
}

.stats-display h3 {
    margin: 0 0 15px 0;
    color: #64b5f6;
    font-family: 'Orbitron', monospace;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* Game Screen */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.score-display, .level-display, .progress-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.score-display i {
    color: #ffd93d;
    font-size: 1.2rem;
}

/* Question Container */
.question-container {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.question-header h3 {
    font-family: 'Orbitron', monospace;
    color: #64ffda;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.question-text {
    margin-bottom: 30px;
}

.question-text p {
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: center;
}

/* Options */
.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: white;
    backdrop-filter: blur(10px);
}

.option-btn:hover {
    transform: translateY(-3px);
    border-color: #64ffda;
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
}

.option-btn.selected {
    background: linear-gradient(135deg, #64ffda, #4db6ac);
    border-color: #64ffda;
    color: #000;
}

.option-btn.correct {
    background: linear-gradient(135deg, #4caf50, #81c784);
    border-color: #4caf50;
    animation: pulse-green 0.6s ease-in-out;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #f44336, #e57373);
    border-color: #f44336;
    animation: shake 0.6s ease-in-out;
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Feedback */
.feedback {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback.correct {
    color: #4caf50;
}

.feedback.incorrect {
    color: #f44336;
}

/* Enhanced Results Screen */
.results-content {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Celebration Particles */
.celebration-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.celebration-particles::before {
    content: '⭐ 🌟 ✨ 💫 🌠';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    animation: particle-fall 3s infinite linear;
    opacity: 0.8;
}

@keyframes particle-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Fireworks */
.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework 2s infinite;
}

.firework:nth-child(1) {
    top: 20%;
    left: 20%;
    background: #ff6b9d;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    top: 30%;
    right: 20%;
    background: #64ffda;
    animation-delay: 0.7s;
}

.firework:nth-child(3) {
    top: 40%;
    left: 50%;
    background: #ffd93d;
    animation-delay: 1.4s;
}

@keyframes firework {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px currentColor;
    }
    25% {
        transform: scale(3);
        box-shadow: 
            0 0 30px currentColor,
            20px 0 10px currentColor,
            -20px 0 10px currentColor,
            0 20px 10px currentColor,
            0 -20px 10px currentColor;
    }
    50% {
        transform: scale(5);
        box-shadow: 
            0 0 40px currentColor,
            40px 0 15px currentColor,
            -40px 0 15px currentColor,
            0 40px 15px currentColor,
            0 -40px 15px currentColor,
            28px 28px 10px currentColor,
            -28px -28px 10px currentColor,
            28px -28px 10px currentColor,
            -28px 28px 10px currentColor;
    }
    100% {
        transform: scale(1);
        opacity: 0;
        box-shadow: none;
    }
}

/* Results Header */
.results-header {
    margin-bottom: 40px;
    position: relative;
}

.rotating-trophy {
    margin-bottom: 20px;
    position: relative;
}

.rotating-trophy i {
    font-size: 5rem;
    color: #ffd93d;
    animation: trophy-celebration 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #ffd93d);
}

@keyframes trophy-celebration {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
    }
    25% { 
        transform: rotate(-10deg) scale(1.1);
    }
    50% { 
        transform: rotate(0deg) scale(1.2);
    }
    75% { 
        transform: rotate(10deg) scale(1.1);
    }
}

.confetti-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: conic-gradient(#ff6b9d, #64ffda, #ffd93d, #ff6b9d);
    border-radius: 50%;
    animation: confetti-spin 2s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes confetti-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(0); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(0); }
}

#mission-status {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #64ffda, #ff6b9d, #ffd93d);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 2s ease-in-out infinite;
}

/* Score Circle */
.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #64ffda, #4db6ac, #64ffda);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    position: relative;
    animation: score-glow 2s ease-in-out infinite;
}

@keyframes score-glow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(100, 255, 218, 0.8);
        transform: scale(1.05);
    }
}

.final-score {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 5px;
}

.divider {
    color: #666;
    margin: 0 5px;
}

.score-percentage {
    font-size: 1.2rem;
    color: #000;
    font-weight: 600;
}

/* Achievement Badge */
.achievement {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.achievement-badge {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-emoji {
    font-size: 3rem;
    animation: badge-bounce 1s ease-in-out infinite;
    z-index: 2;
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.badge-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.achievement-text {
    text-align: left;
}

.achievement-text h3 {
    font-family: 'Orbitron', monospace;
    color: #64ffda;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

/* Fun Stats */
.fun-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item i {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 10px;
    display: block;
    animation: stat-float 2s ease-in-out infinite;
}

.stat-item:nth-child(2) i { animation-delay: 0.5s; }
.stat-item:nth-child(3) i { animation-delay: 1s; }

@keyframes stat-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.stat-item span {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd93d;
    display: block;
    margin-bottom: 5px;
}

.stat-item small {
    font-size: 0.9rem;
    color: #b0bec5;
}

/* Enhanced Buttons */
.pulse-btn {
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
    }
    50% { 
        box-shadow: 0 0 40px rgba(100, 255, 218, 0.8);
    }
}

.btn-sparkle {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: sparkle-sweep 3s infinite;
}

@keyframes sparkle-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Share Section */
.share-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.share-btn {
    background: linear-gradient(135deg, #ff6b9d, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* Buttons */
.results-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
}

.btn.primary {
    background: linear-gradient(135deg, #64ffda, #4db6ac);
    color: #000;
}

.btn.secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Loading Screen */
.loading-content {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 60px 40px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-avatar {
    margin-bottom: 30px;
}

.ai-avatar i {
    font-size: 4rem;
    color: #64ffda;
    animation: ai-pulse 2s infinite ease-in-out;
}

@keyframes ai-pulse {
    0%, 100% { 
        transform: scale(1);
        color: #64ffda;
    }
    50% { 
        transform: scale(1.1);
        color: #ff6b9d;
    }
}

.loading-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #e1f5fe;
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: #64ffda;
    border-radius: 50%;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1);
    }
}

.loading-text {
    font-size: 1.1rem;
    color: #b0bec5;
    font-style: italic;
}

/* AI Response Styling */
.ai-response {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: ai-appear 0.5s ease-out;
}

.ai-response.correct {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(129, 199, 132, 0.2));
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.ai-response.incorrect {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(229, 115, 115, 0.2));
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

.ai-response i {
    font-size: 1.5rem;
    animation: ai-glow 2s infinite ease-in-out;
}

@keyframes ai-appear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ai-glow {
    0%, 100% { 
        text-shadow: 0 0 10px currentColor;
    }
    50% { 
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* Enhanced Question Container */
