.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.level-indicator {
    background: #fbc02d;
    padding: 15px 25px;
    border-radius: 15px 15px 0 0;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #f9a825;
}

.progress-bar {
    width: 200px;
    height: 15px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.05);
}

.progress-fill {
    height: 100%;
    background: #43a047;
    transition: width 0.5s ease;
}

.quiz-box {
    background: white;
    padding: 40px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 3px solid #fbc02d;
    border-top: none;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sphinx-image {
    width: 120px;
    height: 100px;
    background: #d4af37;
    margin-bottom: 20px;
    position: relative;
    border-radius: 20px 20px 0 0;
    border: 4px solid #b8860b;
}

.sphinx-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.sphinx-eye {
    position: absolute;
    width: 10px;
    height: 5px;
    background: #000;
    top: 35px;
    border-radius: 50%;
}

.sphinx-eye.left { left: 30px; }
.sphinx-eye.right { right: 30px; }

.sphinx-nose {
    position: absolute;
    width: 6px;
    height: 10px;
    background: #a0522d;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.sphinx-beard {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 25px;
    background: #b8860b;
    border-radius: 0 0 10px 10px;
    border: 2px solid #8b4513;
}

#questionText {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
    min-height: 60px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.option-button {
    background: #f5f5f5;
    border: 3px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #555;
}

.option-button:hover {
    background: #eeeeee;
    border-color: #667eea;
    transform: translateY(-2px);
}

.option-button.correct {
    background: #e8f5e9;
    border-color: #43a047;
    color: #2e7d32;
}

.option-button.wrong {
    background: #ffebee;
    border-color: #e53935;
    color: #c62828;
}

.feedback-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.feedback-message.hidden { display: none; }
.feedback-message.success { color: #43a047; }
.feedback-message.error { color: #e53935; }

.prize-section {
    margin-top: 40px;
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 20px;
    border: 3px dashed #667eea;
}

.prize-section h3 {
    text-align: center;
    color: #667eea;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prize-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    min-height: 100px;
}

.prize-item {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    border: 2px solid #eeeeee;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prize-item:hover {
    transform: scale(1.1) rotate(5deg);
}

.prize-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.prize-name {
    font-size: 0.7rem;
    text-align: center;
    font-weight: bold;
    color: #666;
}

.back-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #764ba2;
    transform: translateX(-5px);
}

/* Sphinx Theme Background Overrides */
.sphinx-sun {
    background: #ffcc33 !important;
    box-shadow: 0 0 60px #ffd700 !important;
}

.sphinx-pyramid {
    background: #f4d03f !important;
    opacity: 0.3 !important;
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-box {
        padding: 20px;
    }
}

/* ===== CELEBRATION OVERLAY ===== */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(ellipse at center, rgba(20, 0, 60, 0.92) 0%, rgba(0, 0, 0, 0.97) 100%);
    animation: overlayFadeIn 0.6s ease forwards;
    overflow-x: hidden;
    overflow-y: auto;
}

.celebration-overlay.hidden {
    display: none;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== SPINNING LIGHT RAYS ===== */
.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    animation: raysRotate 12s linear infinite;
    z-index: 1;
}

@keyframes raysRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 600px;
    transform-origin: top center;
    opacity: 0.15;
    border-radius: 2px;
}

.ray:nth-child(1)  { transform: rotate(0deg);   background: linear-gradient(to bottom, #ff0, transparent); }
.ray:nth-child(2)  { transform: rotate(30deg);  background: linear-gradient(to bottom, #f0f, transparent); }
.ray:nth-child(3)  { transform: rotate(60deg);  background: linear-gradient(to bottom, #0ff, transparent); }
.ray:nth-child(4)  { transform: rotate(90deg);  background: linear-gradient(to bottom, #f00, transparent); }
.ray:nth-child(5)  { transform: rotate(120deg); background: linear-gradient(to bottom, #0f0, transparent); }
.ray:nth-child(6)  { transform: rotate(150deg); background: linear-gradient(to bottom, #00f, transparent); }
.ray:nth-child(7)  { transform: rotate(180deg); background: linear-gradient(to bottom, #ff0, transparent); }
.ray:nth-child(8)  { transform: rotate(210deg); background: linear-gradient(to bottom, #f0f, transparent); }
.ray:nth-child(9)  { transform: rotate(240deg); background: linear-gradient(to bottom, #0ff, transparent); }
.ray:nth-child(10) { transform: rotate(270deg); background: linear-gradient(to bottom, #f00, transparent); }
.ray:nth-child(11) { transform: rotate(300deg); background: linear-gradient(to bottom, #0f0, transparent); }
.ray:nth-child(12) { transform: rotate(330deg); background: linear-gradient(to bottom, #00f, transparent); }

/* ===== CONFETTI ===== */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 20px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
    opacity: 0.9;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg) scale(0.4);
        opacity: 0;
    }
}

/* ===== CLOSE BUTTON ===== */
.celebration-close {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.celebration-close:hover {
    background: rgba(255, 70, 70, 0.7);
    border-color: #ff4646;
    transform: rotate(90deg) scale(1.1);
}

/* ===== CELEBRATION CONTENT ===== */
.celebration-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: contentBounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    max-width: 600px;
    width: 90%;
    margin: 30px auto;
    padding: 20px 0;
}

@keyframes contentBounceIn {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ===== TROPHY ===== */
.trophy-glow {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.trophy-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: trophyPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes trophyPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.trophy-icon {
    font-size: 6rem;
    display: block;
    animation: trophyBounce 1s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

@keyframes trophyBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.05); }
}

/* ===== TITLE ===== */
.celebration-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700, #fff, #ffd700);
    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; }
}

.celebration-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: subtitleFadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

@keyframes subtitleFadeIn {
    to { opacity: 1; }
}

/* ===== PRIZE SHOWCASE ===== */
.prize-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

.showcase-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    animation: prizeReveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: transform 0.3s ease, background 0.3s ease;
    min-width: 80px;
}

.showcase-prize:hover {
    transform: translateY(-5px) scale(1.15);
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}

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

.showcase-prize .prize-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.showcase-prize .prize-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BUTTONS ===== */
.celebration-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: buttonsSlideUp 0.6s ease forwards 1.5s;
    opacity: 0;
    transform: translateY(20px);
}

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

.celebration-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.celebration-btn.home-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
}

.celebration-btn.replay-btn {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
}

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

/* ===== SPARKLE PARTICLES ===== */
.sparkle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: sparkleFade 1.5s ease-out forwards;
    z-index: 5;
}

@keyframes sparkleFade {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0.5) rotate(360deg); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .celebration-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .trophy-icon {
        font-size: 4rem;
    }

    .celebration-subtitle {
        font-size: 1rem;
    }

    .celebration-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .showcase-prize {
        min-width: 65px;
        padding: 8px;
    }

    .showcase-prize .prize-icon {
        font-size: 2rem;
    }

    .ray {
        height: 400px;
    }
}

