.welcome-content {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.mascot-large {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.welcome-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-content p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.scene-header {
    text-align: center;
    margin-bottom: 2rem;
}

.scene-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 1rem auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.scene-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.scene-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.scene-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.scene-card.completed {
    border: 3px solid var(--success-color);
}

.scene-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.scene-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.scene-card p {
    color: var(--light-text);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.scene-status {
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.scene-status.locked {
    background: #f0f0f0;
    color: var(--light-text);
}

.scene-status.unlocked {
    background: var(--success-color);
    color: var(--white);
}

.scene-status.completed {
    background: var(--primary-color);
    color: var(--white);
}

.scene-actions {
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.game-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#currentSceneTitle {
    font-weight: 600;
    color: var(--primary-color);
}

.stars-display {
    display: flex;
    gap: 0.25rem;
}

.stars-display .star {
    font-size: 1.5rem;
    color: #ddd;
}

.stars-display .star.earned {
    color: #FFD700;
}

.game-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-instructions {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.result-content {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.result-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.result-content p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stars-earned {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.stars-earned .star {
    font-size: 3rem;
    color: #ddd;
    transition: all 0.3s ease;
}

.stars-earned .star.earned {
    color: #FFD700;
    animation: starPop 0.5s ease;
}

@keyframes starPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.test-header {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.test-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.test-progress {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1rem;
}

.test-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    margin-bottom: 1.5rem;
}

.question-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    padding: 1.2rem 1.5rem;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.option:hover::before {
    left: 100%;
}

.option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.option:hover .option-icon {
    transform: scale(1.2) rotate(5deg);
}

.option-text {
    flex: 1;
    text-align: left;
}

.option-btn {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    margin-bottom: 0.8rem;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.option-btn:hover::before {
    left: 100%;
}

.option-btn:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.option-btn:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff3f0, #ffe4e1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.option-btn.correct {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    animation: correctPulse 0.6s ease;
}

.option-btn.incorrect {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    animation: incorrectShake 0.6s ease;
}

.option-btn .option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.option-btn:hover .option-icon {
    transform: scale(1.2) rotate(5deg);
}

.option-btn .option-text {
    flex: 1;
    text-align: left;
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.option:hover::before {
    left: 100%;
}

.option:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.option:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff3f0, #ffe4e1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.option.correct {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    animation: correctPulse 0.6s ease;
}

.option.incorrect {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    animation: incorrectShake 0.6s ease;
}

@keyframes correctPulse {
    0%, 100% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes incorrectShake {
    0%, 100% {
        transform: translateX(0) scale(1.02);
    }
    20%, 60% {
        transform: translateX(-8px) scale(1.02);
    }
    40%, 80% {
        transform: translateX(8px) scale(1.02);
    }
}

.test-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

.test-feedback.correct {
    background: #d4edda;
    color: #155724;
}

.test-feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.test-actions {
    text-align: center;
    margin-top: 2rem;
}

.test-result-content {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.test-result-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.test-result-content p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#finalScore {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.badge-display {
    margin: 2rem 0;
}

.badge {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .scene-grid {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .option {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .option-icon {
        font-size: 1.3rem;
    }
    
    .option-btn {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .option-btn .option-icon {
        font-size: 1.3rem;
    }
    
    .option:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .option:active {
        transform: translateY(-1px) scale(1.005);
    }
    
    .option-btn:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .option-btn:active {
        transform: translateY(-1px) scale(1.005);
    }
}