/**
 * RusLæring - Beginner Lessons Styles
 * Extends the main stylesheet with lesson-specific components
 */

/* ============================================
   VOCABULARY CARDS
   ============================================ */

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-m);
    margin: var(--space-l) 0;
}

.vocab-card {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    padding: var(--space-m);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vocab-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vocab-russian {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.vocab-word {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--text-ink);
    cursor: pointer;
    transition: color 0.2s;
}

.vocab-word:hover {
    color: var(--accent-red);
}

.vocab-transcription {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.vocab-danish {
    font-size: 1.1rem;
    color: var(--text-faded);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--line-color);
}

.vocab-example {
    margin-top: var(--space-s);
    padding: var(--space-s);
    background: var(--bg-paper);
    font-size: 0.9rem;
}

.example-russian {
    color: var(--text-ink);
    margin-bottom: 4px;
}

.example-danish {
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   SPEAK BUTTONS
   ============================================ */

.speak-btn {
    background: none;
    border: 2px solid var(--line-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-blue);
    transition: all 0.2s;
}

.speak-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.speak-mini {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.speak-mini:hover {
    color: var(--accent-blue);
}

.speak-sentence-btn,
.speak-line-btn {
    background: none;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-faded);
    transition: all 0.2s;
    margin-left: var(--space-xs);
}

.speak-sentence-btn:hover,
.speak-line-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* ============================================
   EXERCISE CONTAINERS
   ============================================ */

.exercise-container {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    padding: var(--space-l);
    margin: var(--space-l) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-m);
    padding-bottom: var(--space-s);
    border-bottom: 1px solid var(--line-color);
}

.exercise-progress {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exercise-score {
    font-weight: 600;
    color: var(--accent-blue);
}

.exercise-actions {
    display: flex;
    gap: var(--space-s);
    margin-top: var(--space-m);
}

/* ============================================
   FILL IN THE BLANK
   ============================================ */

.fill-blank-sentence {
    font-size: 1.25rem;
    line-height: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    margin: var(--space-m) 0;
}

.sentence-part {
    font-family: var(--font-serif);
}

.blank-input {
    font-size: 1.1rem;
    padding: 8px 16px;
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    min-width: 150px;
    font-family: var(--font-sans);
    text-align: center;
    transition: all 0.2s;
}

.blank-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.15);
}

.blank-input.correct {
    border-color: var(--color-success);
    background: var(--color-success-bg);
}

.blank-input.incorrect {
    border-color: var(--color-error);
    background: var(--color-error-bg);
}

.fill-blank-danish {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--space-m);
}

/* ============================================
   LISTENING EXERCISE
   ============================================ */

.listening-prompt {
    text-align: center;
    margin: var(--space-m) 0;
}

.listen-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-m) var(--space-l);
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin: var(--space-m) 0;
}

.listen-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.listen-slow-btn {
    background: transparent;
    border: 2px solid var(--line-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-faded);
    margin-left: var(--space-s);
    transition: all 0.2s;
}

.listen-slow-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.listening-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-s);
    margin-top: var(--space-m);
}

.listening-option {
    padding: var(--space-m);
    background: white;
    border: 2px solid var(--line-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.listening-option:hover:not(:disabled) {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.listening-option.correct {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: var(--color-success);
}

.listening-option.incorrect {
    background: var(--color-error-bg);
    border-color: var(--color-error);
    color: var(--color-error);
}

/* ============================================
   MATCHING EXERCISE
   ============================================ */

.matching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    margin: var(--space-m) 0;
}

.matching-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.match-item {
    padding: var(--space-s) var(--space-m);
    background: white;
    border: 2px solid var(--line-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-item:hover:not(.matched) {
    border-color: var(--accent-blue);
}

.match-item.selected {
    border-color: var(--accent-blue);
    background: rgba(44, 62, 80, 0.05);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.match-item.matched {
    opacity: 0.6;
    cursor: default;
}

.match-item.matched.correct {
    border-color: var(--color-success);
    background: var(--color-success-bg);
}

.match-item.incorrect {
    animation: shake 0.4s;
    border-color: var(--color-error);
}

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

.left-item {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.right-item {
    justify-content: center;
}

/* ============================================
   WRITING EXERCISE
   ============================================ */

.writing-prompt {
    text-align: center;
    margin-bottom: var(--space-m);
}

.writing-danish {
    font-size: 1.5rem;
    color: var(--text-ink);
    margin: var(--space-m) 0;
    font-family: var(--font-serif);
}

.hint-btn {
    background: transparent;
    border: 1px solid var(--line-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-faded);
    transition: all 0.2s;
}

.hint-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.writing-input-area {
    text-align: center;
    margin: var(--space-m) 0;
}

.writing-input {
    font-size: 1.5rem;
    padding: var(--space-s) var(--space-m);
    border: 2px solid var(--line-color);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-family: var(--font-serif);
}

.writing-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.writing-input.correct {
    border-color: var(--color-success);
    background: var(--color-success-bg);
}

.writing-input.incorrect {
    border-color: var(--color-error);
    background: var(--color-error-bg);
}

.writing-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

/* ============================================
   SENTENCE BUILDER
   ============================================ */

.sentence-builder-prompt {
    text-align: center;
    margin-bottom: var(--space-m);
}

.danish-sentence {
    font-size: 1.25rem;
    color: var(--text-faded);
    font-style: italic;
    margin-top: var(--space-s);
}

.sentence-builder-answer {
    min-height: 60px;
    background: var(--bg-paper);
    border: 2px dashed var(--line-color);
    border-radius: 8px;
    padding: var(--space-m);
    margin: var(--space-m) 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
    justify-content: center;
}

.sentence-builder-answer .placeholder {
    color: var(--text-light);
}

.selected-word {
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    transition: all 0.2s;
}

.selected-word:hover {
    background: var(--accent-red);
}

.sentence-builder-words {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    justify-content: center;
    margin: var(--space-m) 0;
}

.word-tile {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--line-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    transition: all 0.2s;
}

.word-tile:hover:not(.used) {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.word-tile.used {
    opacity: 0.3;
    cursor: default;
}

/* ============================================
   FLASHCARDS
   ============================================ */

.flashcard-container {
    text-align: center;
    padding: var(--space-m);
}

.flashcard-progress {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-m);
}

.flashcard {
    perspective: 1000px;
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin: 0 auto var(--space-m);
    cursor: pointer;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-color);
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: var(--accent-blue);
    color: white;
}

.flashcard-text {
    font-size: 2rem;
    font-family: var(--font-serif);
}

.flashcard-audio {
    position: absolute;
    bottom: 20px;
    background: none;
    border: 2px solid var(--line-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-faded);
    transition: all 0.2s;
}

.flashcard-audio:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.flashcard-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-m);
}

.flashcard-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-m);
}

/* ============================================
   DIALOGUE
   ============================================ */

.dialogue-container {
    margin: var(--space-l) 0;
}

.dialogue-controls {
    margin-bottom: var(--space-m);
}

.dialogue-lines {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.dialogue-line {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.dialogue-line.speaker-a {
    align-self: flex-start;
}

.dialogue-line.speaker-b {
    align-self: flex-end;
}

.dialogue-speaker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.dialogue-bubble {
    background: white;
    border: 1px solid var(--line-color);
    padding: var(--space-s) var(--space-m);
    border-radius: 12px;
    position: relative;
}

.speaker-a .dialogue-bubble {
    border-bottom-left-radius: 4px;
}

.speaker-b .dialogue-bubble {
    border-bottom-right-radius: 4px;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.speaker-b .dialogue-russian {
    color: white;
}

.speaker-b .dialogue-danish {
    color: rgba(255, 255, 255, 0.7);
}

.speaker-b .speak-line-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.dialogue-russian {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.dialogue-danish {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.play-all-btn {
    background: var(--accent-blue);
    color: white;
}

/* ============================================
   EXERCISE FEEDBACK & RESULTS
   ============================================ */

.exercise-feedback {
    margin-top: var(--space-m);
    padding: var(--space-m);
    border-radius: 8px;
    display: none;
}

.exercise-feedback.correct,
.exercise-feedback.incorrect {
    display: block;
    animation: slideIn 0.3s ease;
}

.exercise-feedback.correct {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success);
    color: #1e8449;
}

.exercise-feedback.incorrect {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error);
    color: #a93226;
}

.exercise-feedback .btn-next {
    margin-top: var(--space-s);
}

.exercise-results {
    text-align: center;
    padding: var(--space-xl) var(--space-m);
}

.result-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-blue);
    font-family: var(--font-serif);
}

.result-percent {
    font-size: 1.5rem;
    color: var(--text-faded);
    margin-bottom: var(--space-m);
}

.result-message {
    font-size: 1.1rem;
    color: var(--text-faded);
    margin-bottom: var(--space-l);
}

/* ============================================
   LESSON NAVIGATION
   ============================================ */

.lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-m) 0;
    border-top: 1px solid var(--line-color);
    margin-top: var(--space-xl);
}

.lesson-nav-item {
    text-decoration: none;
    color: var(--text-faded);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color 0.2s;
}

.lesson-nav-item:hover {
    color: var(--accent-red);
}

.lesson-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.lesson-nav-title {
    font-weight: 600;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-intro {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1a252f 100%);
    color: white;
    padding: var(--space-xl) var(--space-m);
    margin: calc(-1 * var(--space-m));
    margin-bottom: var(--space-l);
}

.section-intro h1 {
    color: white;
}

.section-intro .lead {
    color: rgba(255, 255, 255, 0.85);
}

.lesson-meta {
    display: flex;
    gap: var(--space-m);
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--space-m);
}

/* ============================================
   CYRILLIC HIGHLIGHT
   ============================================ */

.cyrillic {
    font-family: var(--font-serif);
    color: var(--accent-red);
}

.cyrillic-large {
    font-size: 2rem;
    font-family: var(--font-serif);
    color: var(--text-ink);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .vocab-grid {
        grid-template-columns: 1fr;
    }

    .matching-grid {
        grid-template-columns: 1fr;
        gap: var(--space-m);
    }

    .listening-options {
        grid-template-columns: 1fr;
    }

    .flashcard {
        height: 200px;
    }

    .flashcard-text {
        font-size: 1.5rem;
    }

    .dialogue-line {
        max-width: 90%;
    }

    .fill-blank-sentence {
        font-size: 1.1rem;
    }

    .blank-input {
        min-width: 100px;
        font-size: 1rem;
    }

    .section-intro {
        padding: var(--space-l) var(--space-s);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   THEORY BLOCKS
   ============================================ */

.theory-block {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-left: 4px solid var(--accent-blue);
    padding: var(--space-m);
    margin: var(--space-m) 0;
}

.theory-block h3 {
    margin-top: 0;
    color: var(--accent-blue);
}

.example-box {
    background: var(--bg-paper);
    padding: var(--space-m);
    margin: var(--space-s) 0;
    border-radius: 4px;
}

.example-russian {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.example-danish {
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   TIP BOXES
   ============================================ */

.tip-box {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning);
    border-radius: 8px;
    padding: var(--space-m);
    margin: var(--space-m) 0;
}

.tip-box strong {
    color: #856404;
}

.note-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: var(--space-m);
    margin: var(--space-m) 0;
}

.note-box strong {
    color: var(--accent-blue);
}

/* ============================================
   MEMORY GAME
   ============================================ */

.memory-game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-m);
    font-weight: 600;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-s);
    max-width: 500px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    border: 2px solid var(--line-color);
}

.memory-card-front {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1a252f 100%);
    color: white;
    font-size: 2rem;
}

.memory-card-back {
    background: white;
    transform: rotateY(180deg);
    font-family: var(--font-serif);
    padding: var(--space-xs);
    word-break: break-word;
    text-align: center;
}

.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card.matched .memory-card-back {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    animation: pulse-success 0.5s;
}

.memory-win {
    text-align: center;
}

/* ============================================
   SPEED CHALLENGE
   ============================================ */

.speed-challenge-start {
    text-align: center;
    padding: var(--space-xl);
}

.speed-challenge-game {
    text-align: center;
}

.speed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-l);
}

.speed-timer {
    flex: 1;
    height: 30px;
    background: var(--bg-paper);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-right: var(--space-m);
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success) 0%, var(--color-warning) 50%, var(--color-error) 100%);
    transition: width 1s linear;
    border-radius: 15px;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: var(--text-ink);
}

.speed-score {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-blue);
}

.speed-word {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin: var(--space-l) 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.speed-word:hover {
    transform: scale(1.05);
}

.speed-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-s);
    max-width: 400px;
    margin: 0 auto;
}

.speed-option {
    padding: var(--space-m);
    font-size: 1.1rem;
    border: 2px solid var(--line-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.speed-option:hover {
    border-color: var(--accent-blue);
    transform: scale(1.02);
}

.speed-option.correct {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
    animation: pulse-success 0.3s;
}

.speed-option.incorrect {
    background: var(--color-error);
    border-color: var(--color-error);
    color: white;
}

/* ============================================
   WORD SCRAMBLE
   ============================================ */

.scramble-hint {
    text-align: center;
    margin-bottom: var(--space-m);
}

.scramble-letters {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin: var(--space-m) 0;
}

.scramble-letter {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    background: var(--accent-blue);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.scramble-letter:hover:not(.used) {
    transform: scale(1.1) rotate(-5deg);
}

.scramble-letter.used {
    opacity: 0.3;
    transform: scale(0.9);
}

.scramble-answer {
    min-height: 60px;
    background: var(--bg-paper);
    border: 2px dashed var(--line-color);
    border-radius: 8px;
    padding: var(--space-m);
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    align-items: center;
}

.answer-letter {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-family: var(--font-serif);
    background: var(--accent-red);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    animation: pop-in 0.2s;
}

.answer-letter:hover {
    background: #922d2d;
}

/* ============================================
   TYPING PRACTICE
   ============================================ */

.typing-stats {
    display: flex;
    gap: var(--space-m);
}

.streak-counter {
    font-weight: 600;
    color: var(--text-faded);
    transition: all 0.3s;
}

.streak-counter.on-fire {
    color: #e74c3c;
    animation: fire-pulse 0.5s infinite;
}

.typing-prompt {
    text-align: center;
    margin: var(--space-m) 0;
}

.typing-danish {
    font-size: 1.5rem;
    color: var(--text-faded);
    margin: var(--space-s) 0;
}

.typing-listen {
    margin: var(--space-s) 0;
}

.typing-input-container {
    text-align: center;
    margin: var(--space-m) 0;
}

.typing-input {
    font-size: 1.5rem;
    padding: var(--space-s) var(--space-m);
    border: 2px solid var(--line-color);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-family: var(--font-serif);
}

.typing-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.typing-preview {
    margin-top: var(--space-s);
    font-size: 1.2rem;
    font-family: var(--font-serif);
    min-height: 30px;
}

.char-correct {
    color: var(--color-success);
}

.char-incorrect {
    color: var(--color-error);
    text-decoration: underline wavy;
}

/* ============================================
   ANIMATED DIALOGUE
   ============================================ */

.animated-dialogue .dialogue-controls {
    margin-bottom: var(--space-m);
    display: flex;
    gap: var(--space-s);
}

.dialogue-stage {
    min-height: 300px;
}

.dialogue-line.animate-in {
    animation: slide-in 0.3s ease-out;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.5s;
}

@keyframes pulse-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(39, 174, 96, 0.5); }
    100% { transform: scale(1); }
}

.pulse-success {
    animation: pulse-success 0.5s;
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fire-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes confetti-fall {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.confetti::before,
.confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
}

/* ============================================
   AI CONVERSATION COMPONENT
   ============================================ */

.ai-conversation,
.ai-roleplay {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: 16px;
    overflow: hidden;
    margin: var(--space-m) 0;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-m);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ai-info {
    flex: 1;
}

.ai-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.ai-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.ai-help-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-help-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.ai-messages {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-m);
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.ai-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    max-width: 85%;
    animation: slideIn 0.3s ease;
}

.ai-message-ai {
    align-self: flex-start;
}

.ai-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message-content {
    padding: var(--space-s) var(--space-m);
    border-radius: 16px;
    line-height: 1.5;
}

.ai-message-ai .ai-message-content {
    background: var(--bg-paper);
    border: 1px solid var(--line-color);
    border-bottom-left-radius: 4px;
}

.ai-message-user .ai-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-speak-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-light);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ai-speak-btn:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.ai-typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-s) var(--space-m);
    background: var(--bg-paper);
    border-radius: 16px;
    width: fit-content;
}

.ai-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.ai-typing-indicator span:nth-child(1) { animation-delay: 0s; }
.ai-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

.ai-starter-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: 0 var(--space-m) var(--space-s);
}

.ai-starter-btn {
    padding: 6px 12px;
    background: var(--bg-paper);
    border: 1px solid var(--line-color);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-starter-btn:hover {
    border-color: var(--accent-blue);
    background: white;
}

.ai-input-area {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-m);
    border-top: 1px solid var(--line-color);
    background: var(--bg-paper);
}

.ai-input {
    flex: 1;
    padding: var(--space-s) var(--space-m);
    border: 1px solid var(--line-color);
    border-radius: 24px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.ai-input:focus {
    border-color: var(--accent-blue);
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    padding: var(--space-xs) var(--space-m) var(--space-s);
    background: var(--bg-paper);
}

/* AI Help Modal */
.ai-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

.ai-help-content {
    background: white;
    padding: var(--space-l);
    border-radius: 16px;
    max-width: 400px;
    margin: var(--space-m);
}

.ai-help-content h3 {
    margin-top: 0;
    color: var(--accent-blue);
}

.ai-help-content ul {
    padding-left: var(--space-m);
}

.ai-help-content li {
    margin-bottom: var(--space-xs);
}

.ai-help-tip {
    background: #fff8e1;
    padding: var(--space-s);
    border-radius: 8px;
    margin: var(--space-m) 0;
}

.ai-help-close {
    width: 100%;
}

/* ============================================
   AI TRANSLATION CHALLENGE
   ============================================ */

.ai-translation {
    padding: var(--space-l);
}

.ai-translation-prompt {
    text-align: center;
    margin-bottom: var(--space-m);
}

.ai-translation-danish {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--text-ink);
    margin: var(--space-m) 0;
}

.ai-translation-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    background: #fff8e1;
    padding: var(--space-xs) var(--space-s);
    border-radius: 8px;
    display: inline-block;
}

.ai-translation-input-area {
    text-align: center;
    margin: var(--space-m) 0;
}

.ai-translation-input {
    font-size: 1.25rem;
    padding: var(--space-s) var(--space-m);
    border: 2px solid var(--line-color);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-family: var(--font-serif);
}

.ai-translation-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.ai-feedback {
    margin-top: var(--space-m);
    padding: var(--space-m);
    border-radius: 8px;
    display: none;
}

.ai-feedback.loading,
.ai-feedback.correct,
.ai-feedback.incorrect {
    display: block;
    animation: slideIn 0.3s ease;
}

.ai-feedback.loading {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    text-align: center;
}

.ai-feedback.correct {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success);
}

.ai-feedback.incorrect {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error);
}

.ai-feedback-content {
    margin-bottom: var(--space-s);
    line-height: 1.6;
}

.ai-correct-answer {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-bottom: var(--space-s);
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
}

.ai-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #90caf9;
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   AI ROLE PLAY
   ============================================ */

.ai-roleplay-header {
    padding: var(--space-m);
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    color: white;
}

.ai-roleplay-scenario h4 {
    margin: 0 0 var(--space-xs);
    font-size: 1.1rem;
}

.ai-roleplay-scenario p {
    margin: 0;
    opacity: 0.9;
}

.ai-roleplay-roles {
    display: flex;
    gap: var(--space-m);
    margin-top: var(--space-s);
    font-size: 0.9rem;
}

.ai-role {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-s);
    border-radius: 8px;
}

.ai-roleplay-goals {
    padding: var(--space-s) var(--space-m);
    background: var(--bg-paper);
    border-bottom: 1px solid var(--line-color);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
}

.ai-goal {
    background: white;
    border: 1px solid var(--line-color);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.ai-goal.completed {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: #1e8449;
}

.ai-goal.completed::before {
    content: '✓ ';
}

.ai-roleplay .ai-messages {
    min-height: 200px;
}

.ai-roleplay .ai-input-area {
    background: white;
}

.ai-roleplay-success {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success);
    color: white;
    padding: var(--space-s) var(--space-m);
    border-radius: 8px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.ai-roleplay-success h4 {
    margin: 0;
}

.ai-roleplay-success p {
    margin: var(--space-xs) 0 0;
    font-size: 0.9rem;
}

/* ============================================
   AI SECTION INTRO
   ============================================ */

.ai-section-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-m);
    border-radius: 8px;
    margin: var(--space-m) 0;
}

.ai-section-intro h3 {
    margin: 0 0 var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.ai-section-intro p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   AI WORD DETECTIVE GAME
   ============================================ */

.ai-detective {
    background: var(--bg-card);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: var(--space-l);
}

.detective-header {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    margin-bottom: var(--space-m);
}

.detective-icon { font-size: 2rem; }
.detective-title { font-weight: 600; flex: 1; }
.detective-score { color: var(--accent-blue); font-weight: 600; }
.detective-round { text-align: center; color: var(--text-light); margin-bottom: var(--space-m); }

.detective-hints {
    background: var(--bg-paper);
    border-radius: 8px;
    padding: var(--space-m);
    margin-bottom: var(--space-m);
    min-height: 80px;
}

.hint-item {
    padding: var(--space-xs) 0;
    border-bottom: 1px dashed var(--line-color);
}

.hint-item:last-child { border-bottom: none; }
.hint-item.new { animation: fadeIn 0.3s ease; }
.hint-number { font-weight: 600; color: var(--accent-blue); margin-right: var(--space-s); }

.detective-input-area {
    display: flex;
    gap: var(--space-s);
    margin-bottom: var(--space-m);
}

.detective-input {
    flex: 1;
    padding: var(--space-s) var(--space-m);
    border: 2px solid var(--line-color);
    border-radius: 8px;
    font-size: 1rem;
}

.detective-guess-btn {
    padding: var(--space-s) var(--space-l);
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.detective-actions {
    display: flex;
    gap: var(--space-s);
    justify-content: center;
}

.detective-hint-btn, .detective-skip-btn {
    padding: var(--space-xs) var(--space-m);
    background: var(--bg-paper);
    border: 1px solid var(--line-color);
    border-radius: 6px;
    cursor: pointer;
}

.detective-feedback {
    margin-top: var(--space-m);
    padding: var(--space-m);
    border-radius: 8px;
    text-align: center;
}

.detective-feedback.correct { background: #d4edda; color: #155724; }
.detective-feedback.incorrect { background: #f8d7da; color: #721c24; }
.detective-feedback.skipped { background: #fff3cd; color: #856404; }

.detective-results {
    text-align: center;
    padding: var(--space-xl);
}

.detective-results .result-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-blue);
}

/* ============================================
   AI STORY BUILDER
   ============================================ */

.ai-story {
    background: var(--bg-card);
    border: 2px solid #9c27b0;
    border-radius: 12px;
    padding: var(--space-l);
}

.story-header {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    margin-bottom: var(--space-m);
    padding-bottom: var(--space-s);
    border-bottom: 2px solid #9c27b0;
}

.story-icon { font-size: 1.5rem; }
.story-title { font-weight: 600; color: #9c27b0; }

.story-content {
    background: var(--bg-paper);
    border-radius: 8px;
    padding: var(--space-m);
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--space-m);
}

.story-part {
    display: flex;
    gap: var(--space-s);
    margin-bottom: var(--space-m);
    animation: fadeIn 0.3s ease;
}

.story-part.ai .story-text {
    background: linear-gradient(135deg, #e1bee7 0%, #f3e5f5 100%);
    border-radius: 12px 12px 12px 0;
}

.story-part.user .story-text {
    background: linear-gradient(135deg, #bbdefb 0%, #e3f2fd 100%);
    border-radius: 12px 12px 0 12px;
    margin-left: auto;
}

.story-text {
    padding: var(--space-m);
    max-width: 85%;
}

.story-author { font-size: 1.2rem; }

.story-suggestions {
    margin-bottom: var(--space-m);
}

.story-suggestions p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.suggestion-btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.suggestion-btn {
    padding: var(--space-xs) var(--space-s);
    background: #f3e5f5;
    border: 1px solid #9c27b0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: #9c27b0;
    color: white;
}

.story-input-area {
    display: flex;
    gap: var(--space-s);
}

.story-input {
    flex: 1;
    padding: var(--space-s) var(--space-m);
    border: 2px solid #9c27b0;
    border-radius: 8px;
}

.story-send-btn {
    padding: var(--space-s) var(--space-m);
    background: #9c27b0;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ============================================
   AI QUICK QUIZ
   ============================================ */

.ai-quiz {
    background: var(--bg-card);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: var(--space-l);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-s);
}

.quiz-score, .quiz-streak { font-weight: 600; }
.quiz-timer { 
    font-weight: 600; 
    padding: var(--space-xs) var(--space-s);
    background: #fff3e0;
    border-radius: 6px;
}
.quiz-timer.urgent { 
    background: #ffcdd2; 
    color: #c62828;
    animation: pulse 0.5s infinite;
}

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

.quiz-progress {
    height: 6px;
    background: var(--line-color);
    border-radius: 3px;
    margin-bottom: var(--space-m);
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    transition: width 0.3s ease;
}

.quiz-question {
    text-align: center;
    margin-bottom: var(--space-m);
    min-height: 60px;
}

.quiz-question h4 {
    margin: 0;
    font-size: 1.2rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-s);
}

.quiz-option {
    padding: var(--space-m);
    background: var(--bg-paper);
    border: 2px solid var(--line-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.quiz-option:hover:not(:disabled) {
    border-color: #ff9800;
    background: #fff3e0;
}

.quiz-option.correct {
    background: #c8e6c9;
    border-color: #4caf50;
}

.quiz-option.incorrect {
    background: #ffcdd2;
    border-color: #f44336;
}

.quiz-feedback {
    margin-top: var(--space-m);
    padding: var(--space-m);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.quiz-feedback.correct { background: #c8e6c9; color: #2e7d32; }
.quiz-feedback.incorrect { background: #ffcdd2; color: #c62828; }
.quiz-feedback.timeout { background: #fff3e0; color: #e65100; }

.quiz-results {
    text-align: center;
    padding: var(--space-xl);
}

.quiz-results .result-score {
    font-size: 3rem;
    font-weight: bold;
    color: #ff9800;
}

/* ============================================
   AI EMOJI TRANSLATOR
   ============================================ */

.ai-emoji {
    background: var(--bg-card);
    border: 2px solid #e91e63;
    border-radius: 12px;
    padding: var(--space-l);
}

.emoji-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-m);
}

.emoji-title { font-weight: 600; color: #e91e63; }
.emoji-score { font-weight: 600; }
.emoji-round { text-align: center; color: var(--text-light); margin-bottom: var(--space-m); }

.emoji-display {
    background: var(--bg-paper);
    border-radius: 12px;
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-m);
}

.emoji-sequence {
    font-size: 4rem;
    letter-spacing: 0.5rem;
}

.emoji-hint {
    text-align: center;
    margin-bottom: var(--space-m);
}

.hint-btn {
    padding: var(--space-xs) var(--space-m);
    background: #fce4ec;
    border: 1px solid #e91e63;
    border-radius: 16px;
    cursor: pointer;
}

.hint-text {
    color: var(--text-light);
    font-style: italic;
}

.emoji-input-area {
    display: flex;
    gap: var(--space-s);
}

.emoji-input {
    flex: 1;
    padding: var(--space-s) var(--space-m);
    border: 2px solid #e91e63;
    border-radius: 8px;
}

.emoji-check-btn {
    padding: var(--space-s) var(--space-l);
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.emoji-feedback {
    margin-top: var(--space-m);
    padding: var(--space-m);
    border-radius: 8px;
    text-align: center;
}

.emoji-feedback.correct { background: #c8e6c9; color: #2e7d32; }
.emoji-feedback.incorrect { background: #ffcdd2; color: #c62828; }

.emoji-results {
    text-align: center;
    padding: var(--space-xl);
}

.emoji-results .result-score {
    font-size: 3rem;
    font-weight: bold;
    color: #e91e63;
}

/* ============================================
   AI SENTENCE AUCTION
   ============================================ */

.ai-auction {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: var(--space-l);
}

.auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-m);
}

.auction-title { font-weight: 600; color: #ff8f00; }
.auction-coins { 
    font-weight: 600; 
    background: #ffc107;
    padding: var(--space-xs) var(--space-m);
    border-radius: 16px;
}

.auction-round { text-align: center; color: var(--text-light); margin-bottom: var(--space-m); }

.auction-task {
    text-align: center;
    margin-bottom: var(--space-m);
}

.auction-task h4 { margin: 0 0 var(--space-xs); }

.auction-sentences {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.auction-sentence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-m);
    background: white;
    border: 2px solid var(--line-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.auction-sentence:hover:not(:disabled) {
    border-color: #ffc107;
    transform: translateX(5px);
}

.auction-sentence.correct {
    background: #c8e6c9;
    border-color: #4caf50;
}

.auction-sentence.incorrect {
    background: #ffcdd2;
    border-color: #f44336;
}

.sentence-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.sentence-cost {
    font-size: 0.85rem;
    color: var(--text-light);
}

.auction-feedback {
    margin-top: var(--space-m);
    padding: var(--space-m);
    border-radius: 8px;
    text-align: center;
}

.auction-feedback.correct { background: #c8e6c9; color: #2e7d32; }
.auction-feedback.incorrect { background: #ffcdd2; color: #c62828; }

.auction-results {
    text-align: center;
    padding: var(--space-xl);
}

.auction-results .result-coins {
    font-size: 3rem;
    font-weight: bold;
    color: #ff8f00;
}

/* ============================================
   RESPONSIVE FOR NEW COMPONENTS
   ============================================ */

@media (max-width: 600px) {
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .speed-options {
        grid-template-columns: 1fr;
    }

    .speed-word {
        font-size: 2rem;
    }

    .scramble-letter {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .answer-letter {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}
