/* SET YOUR GAME'S COLOR THEME HERE */
:root {
    --primary-color: #08B2E3;
    --primary-hover: #069AC4;
    --hero-gradient-start: rgba(8, 178, 227, 0.1);
    --hero-gradient-end: rgba(6, 154, 196, 0.1);
    --section-bg-start: rgba(8, 178, 227, 0.05);
    --section-bg-end: rgba(6, 154, 196, 0.05);
    --primary-shadow: rgba(8, 178, 227, 0.3);
    --feature-shadow: rgba(8, 178, 227, 0.15);
    --focus-shadow: rgba(8, 178, 227, 0.25);
    --mode-shadow: rgba(8, 178, 227, 0.2);
    --btn-shadow: rgba(8, 178, 227, 0.4);
    --summary-bg-start: rgba(8, 178, 227, 0.1);
    --summary-bg-end: rgba(6, 154, 196, 0.05);
    --accordion-icon-filter: invert(66%) sepia(49%) saturate(553%) hue-rotate(162deg) brightness(92%) contrast(90%);
    --btn-text-color: #ffffff;
}

/* ===== GAME STATS - FLEX OVERRIDE ===== */

.game-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.game-stats .stat-card {
    flex: 1;
    min-width: 0;
}

/* ===== GAME CARD OVERFLOW ===== */

#gameView .content-card {
    overflow: visible !important;
    min-height: auto !important;
    max-height: none !important;
    padding-bottom: 3rem !important;
}

#gameView .quiz-content {
    overflow: visible !important;
}

/* ===== SENTENCE DISPLAY ===== */

.sentence-display {
    font-size: 1.55rem;
    line-height: 2;
    color: #212529;
    text-align: center;
    padding: 2rem 1.5rem;
    font-weight: 500;
}

.sentence-display .sentence-input {
    display: inline-block;
    width: auto;
    min-width: 120px;
    max-width: 260px;
    padding: 0.3rem 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-bottom: 3px solid var(--primary-color);
    background: rgba(8, 178, 227, 0.06);
    border-radius: 4px 4px 0 0;
    color: var(--primary-color);
    vertical-align: baseline;
    transition: all 0.3s ease;
}

.sentence-display .sentence-input:focus {
    outline: none;
    box-shadow: 0 3px 0 0 var(--primary-color);
    background: rgba(8, 178, 227, 0.1);
}

.sentence-display .sentence-input:disabled {
    opacity: 0.7;
    background: #f8f9fa;
}

/* ===== AUDIO ROW ===== */

.audio-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.audio-play-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 2rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.audio-play-btn i {
    font-size: 1.1rem;
}

.audio-play-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px var(--primary-shadow);
}

.audio-play-btn.playing {
    background: var(--primary-color);
    color: white;
}

/* ===== SUBMIT BUTTON ===== */

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-hover);
    padding: 0.75rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-shadow);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-shadow);
    background: var(--primary-hover);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== PRELOADER / BUILDING ACTIVITY ===== */

.preloader-screen {
    text-align: center;
    padding: 3rem 2rem;
}

.preloader-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: preloaderPulse 2s ease infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.preloader-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
}

.preloader-status {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.preloader-progress {
    max-width: 400px;
    margin: 0 auto 1rem;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

.preloader-error {
    color: #dc3545;
    font-weight: 600;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.preloader-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
    font-size: 1.15rem;
    color: #495057;
}

.preloader-step-icon {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
    color: #adb5bd;
}

.preloader-step-icon.done {
    color: #28a745;
}

.preloader-step-icon.active {
    color: var(--primary-color);
}

.preloader-step-text {
    font-weight: 500;
}

/* ===== FLASH ANIMATIONS ===== */

@keyframes flash-correct {
    0%, 100% { background-color: transparent; border-color: transparent; }
    50% { background-color: rgba(76, 175, 80, 0.2); border: 3px solid #4caf50; }
}

@keyframes flash-wrong {
    0%, 100% { background-color: transparent; border-color: transparent; }
    50% { background-color: rgba(244, 67, 54, 0.2); border: 3px solid #f44336; }
}

.content-card.flash-correct {
    animation: flash-correct 0.6s ease;
}

.content-card.flash-wrong {
    animation: flash-wrong 0.6s ease;
}

.flash-correct {
    animation: flashCorrect 800ms ease;
}

.flash-wrong {
    animation: flashWrong 800ms ease;
}

@keyframes flashCorrect {
    0% { background: rgba(76, 175, 80, 0); }
    50% { background: rgba(76, 175, 80, 0.5); }
    100% { background: rgba(76, 175, 80, 0); }
}

@keyframes flashWrong {
    0% { background: rgba(244, 67, 54, 0); }
    50% { background: rgba(244, 67, 54, 0.5); }
    100% { background: rgba(244, 67, 54, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STEPPER - CLICKABLE / LOCKED ===== */

.step.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.clickable:hover {
    transform: scale(1.05);
}

.step.clickable:hover .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.locked {
    cursor: not-allowed;
    opacity: 0.5;
}

.step.locked:hover {
    transform: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .sentence-display {
        font-size: 1.25rem;
        padding: 1.5rem 1rem;
    }

    .sentence-display .sentence-input {
        font-size: 1.2rem;
        min-width: 100px;
        max-width: 200px;
    }

    .audio-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .sentence-display {
        font-size: 1.1rem;
        padding: 1rem 0.75rem;
    }

    .sentence-display .sentence-input {
        font-size: 1rem;
        min-width: 80px;
        max-width: 160px;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 0.6rem 2rem;
    }
}