/* ==========================================================================
   TÜRKİYE YÜZYILI MAARİF MODELİ - 6. SINIF MATEMATİK
   Açık Renk (Light Theme) & Modern Glassmorphism Tasarım Sistemi
   ========================================================================== */

:root {
    --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Açık Renk (Light Mode) Paleti */
    --bg-main: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(226, 232, 240, 0.85);
    --border-focus: #0284c7;

    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.25);
    --primary-hover: #0369a1;
    
    --secondary: #7c3aed;
    --secondary-glow: rgba(124, 58, 237, 0.2);
    
    --accent: #059669;
    --accent-glow: rgba(5, 150, 105, 0.2);

    --warning: #d97706;
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.2);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sıfırlama ve Temel Stiller */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 12% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 88% 85%, rgba(124, 58, 237, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Glassmorphism Açık Panel */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(2, 132, 199, 0.3);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.08);
}

/* Container */
.app-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* Header & Logo */
.app-header {
    margin-bottom: 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
    margin-bottom: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #0284c7, #7c3aed);
    color: #fff;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
}

.header-title-group h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.header-subtitle {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

/* Modül Seçici (Bölüm 1 / Bölüm 2) */
.module-selector-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.module-selector-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
}

.module-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.module-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.module-btn:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0284c7;
}

.module-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Canlı Ses Denetleyici Çubuğu (Audio Control Bar) */
.audio-controller-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.audio-status-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #1e293b;
    font-weight: 600;
}

.female-badge {
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #fbcfe8;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.pulse-speaker {
    display: inline-flex;
    animation: speakerPulse 1.8s infinite ease-in-out;
}

@keyframes speakerPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px #0284c7); }
}

.audio-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.speed-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.speed-selector select {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 12.5px;
    cursor: pointer;
    outline: none;
    font-weight: 600;
}

/* Navigasyon Sekmeleri (Bento Tabs) */
.nav-tabs-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .nav-tabs-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nav-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all var(--transition-fast);
}

.nav-tab:hover {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.nav-tab.active {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #0284c7;
    box-shadow: 0 0 14px var(--primary-glow);
    font-weight: 700;
}

/* Ekran Geçişleri */
.app-screen {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.app-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-accent {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn-text {
    background: transparent;
    color: #0284c7;
    padding: 6px 10px;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ==========================================================================
   1. AŞAMA: KONU ANLATIMI STİLLERİ (AÇIK RENK)
   ========================================================================== */
.lesson-header-card {
    padding: 28px;
    margin-bottom: 24px;
    background: #ffffff;
}

.badge-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.theme-badge {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.subject-badge {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.lesson-main-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
}

.lesson-intro-text {
    font-size: 15.5px;
    color: #334155;
    margin-bottom: 20px;
    line-height: 1.75;
}

.lesson-section {
    padding: 24px 28px;
    margin-bottom: 20px;
    position: relative;
    border-left: 4px solid #cbd5e1;
    background: #ffffff;
}

.lesson-section.active-reading {
    border-left-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.18);
    transform: scale(1.008);
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-badge {
    font-size: 12.5px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 4px 12px;
    border-radius: 6px;
}

.btn-listen-section {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0284c7;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-listen-section:hover {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #0f172a;
}

.lesson-p {
    font-size: 15px;
    color: #334155;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Görsel Modeller */
.visual-box {
    margin-top: 18px;
    padding: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
}

.rainbow-model {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.factor-num {
    background: #e0f2fe;
    border: 1.5px solid #0284c7;
    color: #0369a1;
    font-weight: 800;
    font-size: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.model-caption {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

.step-bubbles {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
}

.bubble {
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    color: #6d28d9;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
}

.prime-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.prime-tag {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
}

.prime-tag.gold {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}

.algorithm-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.alg-col {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.5;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border-right: 3px solid #0284c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.alg-desc {
    font-size: 15px;
    color: #334155;
}

.highlight-tag {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.phase-action-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ==========================================================================
   2. AŞAMA: ÖRNEK SORULAR STİLLERİ (AÇIK RENK)
   ========================================================================== */
.example-card {
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    border-left: 4px solid #cbd5e1;
    background: #ffffff;
}

.example-card.active-reading {
    border-left-color: #7c3aed;
    background: #faf5ff;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.15);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.example-tag {
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.diff-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.diff-tag.orta {
    background: #fef3c7;
    color: #b45309;
}

.example-question-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.q-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.example-question-text {
    font-size: 16.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.65;
}

.kazanim-note {
    font-size: 12.5px;
    color: #0284c7;
    margin-top: 10px;
    font-weight: 600;
}

.solution-wrapper {
    margin-top: 16px;
}

.sol-title {
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sol-step-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.step-badge {
    background: #0284c7;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    height: fit-content;
    white-space: nowrap;
}

.step-h {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 6px;
}

.step-p {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
}

/* ==========================================================================
   3. AŞAMA: 20 SORULUK TEST STİLLERİ (AÇIK RENK)
   ========================================================================== */
.test-header-bar {
    padding: 16px 24px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

.test-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.progress-track {
    width: 100%;
    height: 9px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7, #059669);
    transition: width 0.3s ease;
}

/* Soru Paleti (1-20 Butonları) */
.question-palette-box {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #ffffff;
}

.palette-title {
    font-size: 12.5px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.palette-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.palette-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #38bdf8;
}

.palette-btn.current {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0284c7;
    box-shadow: 0 0 10px var(--primary-glow);
}

.palette-btn.answered {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

/* Soru Kartı */
.test-q-card {
    padding: 32px;
    margin-bottom: 24px;
    background: #ffffff;
}

.q-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.q-num-badge {
    background: linear-gradient(135deg, #0284c7, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
}

.q-kazanim-tag {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.q-main-question {
    margin-bottom: 28px;
}

.q-text {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.7;
}

/* Şıklar Izgarası */
.q-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .q-options-grid {
        grid-template-columns: 1fr;
    }
}

.opt-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #1e293b;
    font-size: 15.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.opt-btn:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    color: #0284c7;
}

.opt-btn.selected {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0369a1;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.2);
}

.opt-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    flex-shrink: 0;
}

.opt-btn.selected .opt-letter {
    background: #0284c7;
    color: #fff;
}

.opt-text {
    flex: 1;
}

.q-footer-tools {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.hint-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    color: #92400e;
    font-size: 13.5px;
}

.hint-box.hidden {
    display: none;
}

.test-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   4. AŞAMA: SONUÇLAR VE YANLIŞLARIN SESLİ ÇÖZÜMÜ (AÇIK RENK)
   ========================================================================== */
.result-hero {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 36px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    background: #ffffff;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #e0f2fe 0%, #ffffff 80%);
    border: 3px solid #0284c7;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-val {
    font-size: 36px;
    font-weight: 800;
    color: #0284c7;
}

.score-lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.result-details {
    flex: 1;
    min-width: 280px;
}

.result-badge-name {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.result-desc {
    font-size: 14px;
    color: #475569;
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

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

.stat-card {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.stat-card .num {
    font-size: 22px;
    font-weight: 800;
}

.stat-card .lbl {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.stat-card.green .num { color: #16a34a; }
.stat-card.red .num { color: #dc2626; }
.stat-card.yellow .num { color: #d97706; }
.stat-card.blue .num { color: #0284c7; }

/* Yanlış Sorular Konteynerı */
.review-intro-box {
    margin-bottom: 20px;
}

.review-intro-box h3 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 800;
}

.review-intro-box p {
    font-size: 14px;
    color: #475569;
}

.review-item-card {
    padding: 24px 28px;
    margin-bottom: 20px;
    border-left: 4px solid #dc2626;
    background: #ffffff;
}

.review-item-card.active-reading {
    border-left-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.2);
    transform: scale(1.008);
}

.review-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.review-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.review-tag.wrong {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.review-tag.empty {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.q-id-tag {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.review-q-text {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.65;
}

.answers-comparison {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ans-badge {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
}

.ans-badge.user-ans.wrong {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.ans-badge.user-ans.empty {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.ans-badge.correct-ans {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.review-solution-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.sol-head {
    font-size: 14px;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 10px;
}

.sol-steps-list {
    padding-left: 20px;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
}

.sol-steps-list li {
    margin-bottom: 6px;
}

.results-action-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    background: #ffffff;
}

.all-correct-congrats {
    text-align: center;
    padding: 48px;
    background: #ffffff;
}

.trophy-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px #f59e0b);
}

/* ==========================================================================
   İNTERAKTİF DİJİTAL MANİPÜLATİF ATÖLYESİ STİLLERİ (AÇIK RENK)
   ========================================================================== */
.interactive-workshop-area {
    margin-top: 36px;
}

.workshop-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
    border: 1px solid #bae6fd;
}

.interactive-card {
    border-top: 3px solid #0284c7;
    background: #ffffff;
}

.widget-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.widget-icon {
    font-size: 24px;
}

.widget-title-bar h4 {
    font-size: 18px;
    color: #0f172a;
    font-weight: 800;
}

.interactive-output-box {
    margin-top: 14px;
}

/* Eratosthenes Kalburu Grid (Açık Renk) */
.sieve-grid-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    max-width: 620px;
    margin: 14px 0;
}

@media (max-width: 500px) {
    .sieve-grid-container {
        gap: 3px;
    }
}

.sieve-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    transition: all 0.25s ease;
    user-select: none;
}

.sieve-cell.eliminated {
    background: #fee2e2;
    color: #94a3b8;
    border-color: #fecaca;
    text-decoration: line-through;
    transform: scale(0.9);
    opacity: 0.5;
}

.sieve-cell.prime-found {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    transform: scale(1.05);
    animation: primePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes primePop {
    0% { transform: scale(0.7); }
    100% { transform: scale(1.05); }
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   AKILLI İNTERAKTİF SAHNE, AVATAR & MİKRO GÖREV STİLLERİ
   ========================================================================== */
.interactive-stage-shell {
    padding: 24px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 2px solid #bae6fd;
    box-shadow: 0 12px 30px -5px rgba(2, 132, 199, 0.12);
}

/* Üst Adım ve XP Çubuğu */
.stage-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.stage-step-stepper {
    display: flex;
    gap: 8px;
}

.step-pill {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
}

.step-pill.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
    transform: scale(1.1);
}

.step-pill.passed {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.stage-xp-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    border: 1.5px solid #f59e0b;
    color: #b45309;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.xp-pop {
    animation: xpPopAnim 0.4s ease;
}

@keyframes xpPopAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Ana Sahne Düzeni */
.stage-main-arena {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 860px) {
    .stage-main-arena {
        grid-template-columns: 1fr;
    }
}

/* Öğretmen Avatarı */
.avatar-speaker-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-figure {
    width: 80px;
    height: 80px;
    background: #e0f2fe;
    border: 3px solid #0284c7;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
    transition: transform 0.2s ease;
}

.avatar-figure.bouncing {
    animation: avatarBounce 1.2s infinite ease-in-out;
}

@keyframes avatarBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.avatar-head {
    position: relative;
    width: 44px;
    height: 44px;
    background: #ffedd5;
    border-radius: 50%;
    border: 2px solid #fdba74;
}

.avatar-hair {
    position: absolute;
    top: -4px;
    left: -2px;
    right: -2px;
    height: 18px;
    background: #92400e;
    border-radius: 20px 20px 0 0;
}

.avatar-face {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-eyes {
    display: flex;
    gap: 10px;
}

.avatar-eyes .eye {
    width: 5px;
    height: 5px;
    background: #0f172a;
    border-radius: 50%;
}

.avatar-smile {
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #ea580c;
    border-radius: 0 0 10px 10px;
    margin-top: 4px;
    transition: all 0.1s ease;
}

.avatar-smile.talking {
    animation: mouthTalk 0.25s infinite alternate;
}

@keyframes mouthTalk {
    0% { height: 4px; width: 10px; border-radius: 0 0 8px 8px; }
    100% { height: 9px; width: 12px; background: #ea580c; border-radius: 50%; }
}

.teacher-pointer {
    position: absolute;
    right: -10px;
    bottom: 2px;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Konuşma Baloncuğu */
.speech-bubble-card {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 14px 16px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.05);
}

.speech-bubble-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #86efac;
}

.speech-bubble-text {
    font-size: 14px;
    color: #166534;
    line-height: 1.55;
    font-weight: 500;
}

/* ==========================================================================
   OTANTİK OKUL KARA TAHTASI (CHALKBOARD) & TEBEŞİR ANİMASYONLARI
   ========================================================================== */

/* Ahşap Dış Çerçeve */
.chalkboard-frame {
    background: linear-gradient(135deg, #7c441b 0%, #5a2e10 50%, #431f08 100%);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 
        0 18px 40px rgba(0, 0, 0, 0.28),
        inset 0 2px 4px rgba(255, 255, 255, 0.22),
        inset 0 -3px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    border: 3px solid #3b1906;
}

/* Çerçeve Köşe Pirinç/Metal Braketleri */
.corner-bracket {
    position: absolute;
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 35% 35%, #fef08a, #ca8a04 70%, #713f12);
    border: 1px solid #713f12;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    z-index: 15;
}

.corner-bracket::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #3e2007;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.8);
}

.corner-bracket.top-left { top: 8px; left: 8px; }
.corner-bracket.top-right { top: 8px; right: 8px; }
.corner-bracket.bottom-left { bottom: 44px; left: 8px; }
.corner-bracket.bottom-right { bottom: 44px; right: 8px; }

/* Gerçek Yeşil Kara Tahta Yüzeyi */
.chalkboard-surface {
    background: radial-gradient(circle at 50% 30%, #1e4d32 0%, #133822 60%, #0c2517 100%);
    border-radius: 8px;
    border: 2px solid #234c33;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.75),
        inset 0 4px 12px rgba(0, 0, 0, 0.9);
    position: relative;
    min-height: 420px;
    padding: 24px;
    overflow: hidden;
    color: #f8fafc;
    font-family: 'Patrick Hand', 'Caveat', cursive, sans-serif;
    user-select: none;
}

/* Tahta Üzerindeki Tebeşir Tozu & Hafif Doku Katmanı */
.chalk-dust-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 32px 32px, 80px 80px;
    background-position: 0 0, 16px 16px;
    z-index: 1;
}

/* Canlı Tebeşir İçerik Katmanı */
.chalk-content-layer {
    position: relative;
    z-index: 2;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Serbest Öğrenci Tebeşir Çizim Tuvali (Canvas) */
.chalk-draw-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: none;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' stroke='%23333333' stroke-width='1' d='M3 21l3-1 12-12-2-2-12 12-1 3z'/%3E%3C/svg%3E") 0 24, crosshair;
}

.chalk-draw-canvas.drawing-active {
    pointer-events: auto;
}

/* Sünger/Silgi Temizleme Efekti Katmanı */
.eraser-sweep-fx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    display: none;
}

.eraser-sweep-fx.active {
    display: block;
}

.eraser-pad {
    position: absolute;
    top: 20%;
    right: -140px;
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #78350f, #92400e);
    border: 3px solid #451a03;
    border-radius: 8px;
    box-shadow: 
        -10px 10px 25px rgba(0,0,0,0.6),
        inset 0 0 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: eraserSweepMotion 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.eraser-pad::before {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 100%;
    height: 14px;
    background: #d4d4d8;
    border-radius: 0 0 6px 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.eraser-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    font-weight: 700;
    color: #fef08a;
    transform: rotate(-90deg);
    letter-spacing: 2px;
}

@keyframes eraserSweepMotion {
    0% { transform: translateX(0) rotate(5deg); right: -140px; }
    50% { transform: translateX(-550px) rotate(-8deg); }
    100% { transform: translateX(-1200px) rotate(4deg); }
}

/* ==========================================================================
   TEBEŞİR YAZI TİPLERİ, RENKLERİ VE IŞILTILARI
   ========================================================================== */
.chalk-title {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.3);
}

.chalk-white {
    color: #f8fafc;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8), 0 0 6px rgba(255, 255, 255, 0.35);
}

.chalk-yellow {
    color: #fef08a;
    text-shadow: 0 0 2px rgba(254, 240, 138, 0.9), 0 0 8px rgba(254, 240, 138, 0.45);
}

.chalk-cyan {
    color: #7dd3fc;
    text-shadow: 0 0 2px rgba(125, 211, 252, 0.9), 0 0 8px rgba(125, 211, 252, 0.45);
}

.chalk-pink {
    color: #f472b6;
    text-shadow: 0 0 2px rgba(244, 114, 182, 0.9), 0 0 8px rgba(244, 114, 182, 0.45);
}

.chalk-green {
    color: #86efac;
    text-shadow: 0 0 2px rgba(134, 239, 172, 0.9), 0 0 8px rgba(134, 239, 172, 0.45);
}

.chalk-orange {
    color: #fdba74;
    text-shadow: 0 0 2px rgba(253, 186, 116, 0.9), 0 0 8px rgba(253, 186, 116, 0.45);
}

/* Tebeşir Çerçeve ve Vurgu Kutuları */
.chalk-box {
    border: 2px dashed rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.chalk-box.yellow {
    border-color: rgba(254, 240, 138, 0.7);
    background: rgba(254, 240, 138, 0.06);
}

.chalk-box.green {
    border-color: rgba(134, 239, 172, 0.7);
    background: rgba(134, 239, 172, 0.06);
}

/* Tahta Üst Adım Başlık Çubuğu */
.chalk-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.25);
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-size: 19px;
}

/* ==========================================================================
   ALT TEBEŞİR MASASI / TEBEŞİRLİK (CHALK TRAY)
   ========================================================================== */
.chalk-tray {
    background: linear-gradient(180deg, #5c3212 0%, #3a1c07 100%);
    border-top: 2px solid #7d471e;
    box-shadow: 
        inset 0 3px 5px rgba(0, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.35);
    padding: 8px 18px;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.chalk-sticks-holder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chalk-tray-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
}

/* 3D Tebeşir Çubukları */
.chalk-stick {
    width: 46px;
    height: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 3px 5px rgba(0, 0, 0, 0.5),
        inset 0 2px 2px rgba(255, 255, 255, 0.6),
        inset 0 -2px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    position: relative;
}

.chalk-stick:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6);
}

.chalk-stick.active {
    transform: translateY(-6px) scale(1.12);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 8px 12px rgba(0,0,0,0.6);
    outline: 2px solid #ffffff;
}

.chalk-stick.chalk-white { background: #f8fafc; }
.chalk-stick.chalk-yellow { background: #fef08a; }
.chalk-stick.chalk-blue { background: #7dd3fc; }
.chalk-stick.chalk-pink { background: #f472b6; }

/* Tebeşirlik Araç Butonları */
.chalk-tray-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tray-tool-btn {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fef08a;
    font-family: 'Patrick Hand', cursive;
    font-size: 14.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tray-tool-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.tray-tool-btn.active-tool {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}

.tray-tool-btn.eraser-btn:hover {
    background: #991b1b;
    border-color: #f87171;
    color: #ffffff;
}

.tray-tool-btn.replay-btn:hover {
    background: #15803d;
    border-color: #86efac;
    color: #ffffff;
}

/* ==========================================================================
   TEBEŞİR İLE ÇİZİM VE HAREKET ANİMASYONLARI
   ========================================================================== */

/* Canlı Tebeşir Yazım Animasyonu */
.chalk-typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: chalkTyping 2.5s steps(40, end) forwards;
}

@keyframes chalkTyping {
    from { width: 0; }
    to { width: 100%; }
}

/* Tahtadaki Tebeşir Karoları (24 Karo Alan Modeli) */
.chalk-tiles-board {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin: 12px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.chalk-tile {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #fef08a;
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-shadow: 0 0 2px rgba(254, 240, 138, 0.8);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    user-select: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.chalk-tile:hover {
    transform: scale(1.18);
    background: rgba(254, 240, 138, 0.25);
    z-index: 5;
}

/* Tebeşir Kontrol Butonları (Kara Tahta Uyumlu) */
.chalk-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.chalk-action-btn {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #f8fafc;
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.chalk-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fef08a;
    color: #fef08a;
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(254, 240, 138, 0.4);
}

.chalk-action-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* ==========================================================================
   GÖKKUŞAĞI VE TEBEŞİR ÇİZİM EFEKTLERİ (SVG STROKE ANIMASYONLARI)
   ========================================================================== */
.chalk-rainbow-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.chalk-arc-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawChalkArc 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chalk-arc-path.arc-1 { stroke: #f87171; animation-delay: 0.1s; }
.chalk-arc-path.arc-2 { stroke: #facc15; animation-delay: 0.4s; }
.chalk-arc-path.arc-3 { stroke: #4ade80; animation-delay: 0.7s; }
.chalk-arc-path.arc-4 { stroke: #38bdf8; animation-delay: 1.0s; }

@keyframes drawChalkArc {
    to { stroke-dashoffset: 0; }
}

.chalk-factor-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 520px;
    margin-top: 10px;
}

.chalk-factor-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-family: 'Patrick Hand', cursive;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}

.chalk-factor-circle:hover, .chalk-factor-circle.highlighted {
    transform: scale(1.22);
    border-color: #fef08a;
    color: #fef08a;
    background: rgba(254, 240, 138, 0.2);
    box-shadow: 0 0 16px rgba(254, 240, 138, 0.7);
}

/* ==========================================================================
   KARA TAHTA BÖLME MERDİVENİ & ASAL ÇARPAN ALGORİTMASI
   ========================================================================== */
.chalk-ladder-container {
    display: flex;
    gap: 36px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.chalk-ladder-table {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
    padding: 16px 28px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.chalk-ladder-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.c-left { width: 50px; text-align: right; color: #f8fafc; }
.c-bar { color: #fef08a; font-weight: 800; }
.c-right { 
    color: #f472b6; 
    font-weight: 800; 
    width: 40px; 
    text-shadow: 0 0 4px rgba(244, 114, 182, 0.8);
}

.chalk-prime-circled {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fef08a;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(254, 240, 138, 0.6);
}

/* ==========================================================================
   KARA TAHTA MEYDAN OKUMA BUTONLARI (DUR & DENE)
   ========================================================================== */
.chalk-challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.chalk-opt-btn {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    font-family: 'Patrick Hand', cursive;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.chalk-opt-btn:hover {
    border-color: #fef08a;
    color: #fef08a;
    background: rgba(254, 240, 138, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(254, 240, 138, 0.4);
}

.chalk-opt-btn.correct {
    background: rgba(22, 163, 74, 0.3);
    border-color: #86efac;
    border-style: solid;
    color: #86efac;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(134, 239, 172, 0.6);
}

.chalk-opt-btn.wrong {
    background: rgba(220, 38, 38, 0.3);
    border-color: #f87171;
    border-style: solid;
    color: #f87171;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.5);
}

/* Canlı Tebeşir Çizik & Çarpı Efektleri */
.chalk-strikethrough {
    text-decoration: line-through;
    text-decoration-color: #f87171;
    text-decoration-thickness: 3px;
    opacity: 0.5;
}

/* Sahne Alt Navigasyon */
.stage-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}


