.spelling-hero {
    background:
        radial-gradient(circle at top left, rgba(255, 244, 214, 0.28), transparent 32%),
        linear-gradient(135deg, #124170 0%, #1864ab 45%, #e67700 100%);
}

.hero-kicker {
    letter-spacing: 0.14em;
    opacity: 0.82;
}

.hero-copy {
    max-width: 42rem;
    opacity: 0.92;
}

.hero-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.85;
}

.instruction-step {
    background: #fff;
    border: 1px solid rgba(18, 65, 112, 0.08);
}

.step-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 1.25rem;
}

.quiz-card {
    min-height: 31rem;
}

.start-orb {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1864ab 0%, #e67700 100%);
    color: #fff;
    font-size: 2.3rem;
    box-shadow: 0 18px 40px rgba(24, 100, 171, 0.22);
}

.start-copy {
    max-width: 34rem;
}

.spelling-input {
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.spelling-input:focus {
    border-color: #e67700;
    box-shadow: 0 0 0 0.25rem rgba(230, 119, 0, 0.18);
}

.play-btn {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    font-size: 2.3rem;
    background: linear-gradient(135deg, #1864ab 0%, #124170 100%);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(24, 100, 171, 0.35);
}

.play-btn.playing {
    animation: spelling-pulse 1s ease-in-out infinite;
}

@keyframes spelling-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(24, 100, 171, 0.28);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 0 0 16px rgba(24, 100, 171, 0);
    }
}

.difficulty-badge {
    background: #124170;
    color: #fff;
    font-size: 0.78rem;
}

.question-meta .badge {
    font-weight: 500;
}

.panel-header {
    background: linear-gradient(135deg, #d9480f 0%, #f08c00 100%);
}

.metric {
    min-height: 5rem;
}

.metric small {
    color: #495057;
}

.metric-correct {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.metric-incorrect {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.metric-streak {
    background: rgba(253, 126, 20, 0.12);
    color: #d9480f;
}

.results-card {
    border: 0;
    background: linear-gradient(180deg, #fff8e1 0%, #ffffff 100%);
}

.score-display {
    font-size: 2.8rem;
    font-weight: 700;
    color: #124170;
}

#scoreBar {
    background: linear-gradient(90deg, #2f9e44 0%, #74b816 100%);
}

.feedback-correct {
    border-left: 4px solid #2f9e44;
}

.feedback-incorrect {
    border-left: 4px solid #d9480f;
}

.answer-chip {
    display: inline-block;
    margin: 0.2rem 0.35rem 0.2rem 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(24, 100, 171, 0.08);
    color: #124170;
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .hero-stat {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .play-btn {
        width: 5.5rem;
        height: 5.5rem;
        font-size: 2rem;
    }

    .score-display {
        font-size: 2.3rem;
    }

    .spelling-input {
        font-size: 1.15rem;
    }
}