/* ==========================================================================
   🦇 أكاديمية باتمان للرياضيات - عبد الله ياسين 👦
   Batman Dark Knight Theme Stylesheet - Ultra Premium Edition
   ========================================================================== */

:root {
    /* --- Batman Gotham Theme Colors --- */
    --bat-black: #090D16;
    --bat-dark: #0F172A;
    --bat-slate: #1E293B;
    --bat-slate-light: #334155;
    --bat-border: #475569;
    
    --bat-yellow: #FFE600;
    --bat-yellow-glow: #FACC15;
    --bat-gold: #F59E0B;
    --bat-amber: #D97706;
    
    --bat-cyan: #38BDF8;
    --bat-blue: #2563EB;
    --bat-blue-dark: #1E3A8A;
    
    /* Legacy variable mappings to Batman Palette */
    --masha-pink: var(--bat-yellow);
    --masha-pink-dark: var(--bat-gold);
    --masha-pink-light: #FEF08A;
    --masha-fuchsia: var(--bat-yellow-glow);
    
    --bear-brown: #1E293B;
    --bear-brown-dark: #0F172A;
    --bear-brown-light: #334155;
    --wood-bark: #111827;
    
    --forest-green: #10B981;
    --forest-green-light: #34D399;
    --forest-mint: rgba(16, 185, 129, 0.15);
    
    --honey-gold: var(--bat-yellow);
    --honey-amber: var(--bat-gold);
    --honey-light: #FEF9C3;
    --sunflower-yellow: var(--bat-yellow);
    
    --primary: var(--bat-yellow);
    --primary-light: rgba(255, 230, 0, 0.15);
    --secondary: var(--bat-gold);
    --accent: var(--bat-yellow);
    --background: var(--bat-black);
    --card-bg: var(--bat-slate);
    --text-main: #F8FAFC;
    --text-muted: #CBD5E1;
    --text-dim: #94A3B8;
    
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 14px 30px rgba(255, 230, 0, 0.25);
    --border-radius: 22px;
    --radius: 20px;
    --radius-xl: 28px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Tajawal', 'Cairo', 'Changa', sans-serif;
}

body {
    background-color: #090D16;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 230, 0, 0.09), transparent 35%),
        radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.08), transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.06), transparent 45%),
        linear-gradient(180deg, #090D16 0%, #0F172A 50%, #06090F 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    direction: rtl;
    position: relative;
}

/* Floating subtle Gotham Bat elements */
.floating-forest-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.forest-leaf {
    position: absolute;
    font-size: 2.2rem;
    opacity: 0.22;
    filter: drop-shadow(0 0 12px rgba(255, 230, 0, 0.3));
    animation: gentleFloat 12s infinite ease-in-out;
}

.leaf-1 { top: 10%; left: 5%; animation-delay: 0s; }
.leaf-2 { top: 30%; right: 4%; animation-delay: 2s; }
.leaf-3 { top: 60%; left: 6%; animation-delay: 4s; }
.leaf-4 { top: 85%; right: 5%; animation-delay: 1s; }
.leaf-5 { top: 45%; left: 50%; animation-delay: 3s; }

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(10deg) scale(1.1); }
}

.app-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Batman Premium Command Center Header
   ========================================================================== */
.masha-premium-header {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--bat-yellow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1.8rem;
}

.header-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.8rem;
    max-width: 1300px;
    margin: 0 auto;
    gap: 1rem;
}

/* Student Badge (Right) */
.nav-right-group {
    display: flex;
    align-items: center;
}

.nav-user-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 4px 14px 4px 6px;
    background: rgba(30, 41, 59, 0.8);
    border: 1.5px solid rgba(255, 230, 0, 0.4);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-user-badge:hover {
    border-color: var(--bat-yellow);
    box-shadow: 0 0 14px rgba(255, 230, 0, 0.3);
}

.nav-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bat-yellow);
    overflow: hidden;
    flex-shrink: 0;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'Changa', sans-serif;
}

/* Brand Title (Center) */
.nav-title-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-title-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-bat-icon {
    font-size: 1.4rem;
}

.nav-title-brand h1 {
    font-family: 'Changa', 'Marhey', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bat-yellow);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.3);
}

/* Action Toolbar (Left) */
.nav-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.8);
    border: 1.5px solid rgba(255, 230, 0, 0.3);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: 'Changa', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-action-btn:hover {
    background: rgba(255, 230, 0, 0.15);
    border-color: var(--bat-yellow);
    color: var(--bat-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.2);
}

.nav-action-btn.highlight {
    background: linear-gradient(135deg, #FFE600, #F59E0B);
    color: #090D16;
    border: none;
    font-weight: 800;
}

.nav-action-btn.highlight:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.5);
}

.nav-action-btn.home-btn {
    padding: 6px 10px;
    border-radius: 50%;
}

/* Welcome Hero Strip */
.header-hero-strip {
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(255, 230, 0, 0.2);
    padding: 0.65rem 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-strip-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 1.05rem;
    font-family: 'Tajawal', sans-serif;
}

.hero-bear-greeting {
    color: var(--bat-yellow);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

.hero-divider {
    color: rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    color: #E2E8F0;
    font-weight: 600;
}

/* ==========================================================================
   Section Title Wrap
   ========================================================================== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    padding: 1.3rem 2rem;
    border-radius: 25px;
    border: 2px solid #334155;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.section-title-wrap h2 {
    font-family: 'Marhey', 'Changa', sans-serif;
    color: var(--bat-yellow);
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 15px rgba(255, 230, 0, 0.3);
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 600;
}

/* ==========================================================================
   Single Multiplication Table Button (Batman Glow)
   ========================================================================== */
.mult-simple-btn-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.2rem;
    width: 100%;
}

.mult-simple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, #FFE600 0%, #F59E0B 100%);
    color: #090D16;
    border: 3px solid #FFFFFF;
    border-radius: 50px;
    padding: 0.85rem 3rem;
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 230, 0, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mult-simple-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, #FFF066 0%, #FFE600 100%);
    box-shadow: 0 12px 35px rgba(255, 230, 0, 0.7), 0 0 25px rgba(255, 230, 0, 0.5);
}

.mult-simple-btn .btn-icon {
    font-size: 1.5rem;
}

/* ==========================================================================
   Chapters Grid & Chapter Cards (Batman Dark Edition)
   ========================================================================== */
.math-chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.math-chapter-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 20px;
    border: 1.5px solid #334155;
    border-right: 4px solid var(--chapter-color, var(--bat-yellow));
    padding: 0.9rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.math-chapter-card:hover {
    transform: translateY(-4px);
    border-color: var(--bat-yellow);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 230, 0, 0.25);
}

/* Side Visual Zone - Prominent Image Integration */
.card-side-visual {
    position: relative;
    width: 120px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 230, 0, 0.12) 0%, transparent 80%);
    border-radius: 16px;
    padding: 4px;
    overflow: visible;
}

.card-side-img {
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.math-chapter-card:hover .card-side-img,
.lesson-adventure-card:hover .card-side-img {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(255, 230, 0, 0.4));
}

.speaker-btn-floating {
    position: absolute;
    bottom: -4px;
    right: -4px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 230, 0, 0.6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}

.speaker-btn-floating:hover {
    background: var(--bat-yellow);
    color: #090D16;
    border-color: #FFFFFF;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(255, 230, 0, 0.7);
}

/* Card Main Content */
.card-main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    flex-grow: 1;
    min-width: 0;
}

.card-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.math-card-title {
    font-family: 'Changa', 'Marhey', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 2px 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.math-chapter-pill {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid var(--chapter-color, var(--bat-yellow));
    color: #FFFFFF;
    font-family: 'Changa', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.math-status-badge {
    background: rgba(16, 185, 129, 0.85);
    border: 1px solid #34D399;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    font-family: 'Changa', sans-serif;
}

.math-operator-stamp {
    background: linear-gradient(135deg, #FFE600, #F59E0B);
    color: #090D16;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Changa', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Action Arrow Icon */
.card-arrow-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 230, 0, 0.1);
    border: 1px solid rgba(255, 230, 0, 0.3);
    color: var(--bat-yellow);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.math-chapter-card:hover .card-arrow-action,
.lesson-adventure-card:hover .card-arrow-action {
    background: var(--bat-yellow);
    color: #090D16;
    transform: translateX(-4px);
    box-shadow: 0 0 14px rgba(255, 230, 0, 0.5);
}

.math-card-info {
    text-align: center;
}

.math-topic-badge {
    background: rgba(255, 230, 0, 0.12);
    border: 1px solid rgba(255, 230, 0, 0.3);
    color: var(--bat-yellow);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.math-card-title {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 1.45rem;
    color: #F8FAFC;
    margin-bottom: 0.8rem;
}

.math-progress-wrap {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 15px;
    padding: 8px 12px;
    border: 1px solid #334155;
}

.math-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: 'Changa', sans-serif;
}

.math-progress-bar {
    height: 9px;
    background: #090D16;
    border-radius: 10px;
    overflow: hidden;
}

.math-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFE600, #F59E0B);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
    transition: width 0.4s ease;
}

.math-enter-btn {
    background: linear-gradient(135deg, #FFE600 0%, #F59E0B 100%);
    color: #090D16;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: 'Changa', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.35);
    transition: all 0.25s ease;
    width: 100%;
}

.math-chapter-card:hover .math-enter-btn {
    background: linear-gradient(135deg, #FFF066 0%, #FFE600 100%);
    box-shadow: 0 6px 20px rgba(255, 230, 0, 0.6);
}

/* ==========================================================================
   Views & Navigation
   ========================================================================== */
.hidden,
.view.hidden,
.ai-bot-modal.hidden {
    display: none !important;
}

.view {
    animation: fadeIn 0.4s ease-out;
    position: relative;
    width: 100%;
}

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

.sub-view-header {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #334155;
    border-top: 4px solid var(--bat-yellow);
    border-radius: 28px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.sub-view-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.sub-view-title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sub-view-title-box h1 {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 2.1rem;
    color: var(--bat-yellow);
    text-shadow: 0 0 15px rgba(255, 230, 0, 0.35);
}

.view-bear-badge {
    font-size: 2.3rem;
}

.wood-back-btn, .back-btn {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
    border: 2px solid var(--bat-yellow);
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
    font-family: 'Changa', sans-serif;
}

.wood-back-btn:hover, .back-btn:hover {
    background: var(--bat-yellow);
    color: #090D16;
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   Multiplication Table Section (Batman Edition)
   ========================================================================== */
.mult-nav-bar {
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 8px;
}

.mult-tabs-scroll {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mult-tab-btn {
    background: #1E293B;
    border: 2px solid #334155;
    color: #CBD5E1;
    font-family: 'Changa', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mult-tab-btn:hover {
    transform: translateY(-3px);
    border-color: var(--bat-yellow);
    color: var(--bat-yellow);
    box-shadow: 0 6px 18px rgba(255, 230, 0, 0.3);
}

.mult-tab-btn.active {
    background: linear-gradient(135deg, #FFE600, #F59E0B);
    color: #090D16;
    border-color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(255, 230, 0, 0.5);
    transform: translateY(-2px) scale(1.04);
}

.mult-tab-btn.full-grid-tab.active {
    background: linear-gradient(135deg, #38BDF8, #0284C7);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.mult-tab-btn.quiz-tab.active {
    background: linear-gradient(135deg, #10B981, #047857);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.mult-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.mult-equation-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 24px;
    border: 2px solid #334155;
    border-top: 5px solid var(--bat-yellow);
    padding: 1.5rem 1.2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    cursor: pointer;
}

.mult-equation-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--bat-yellow);
    box-shadow: 0 14px 30px rgba(255, 230, 0, 0.25);
}

.mult-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.mult-item-tag {
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(255, 230, 0, 0.15);
    color: var(--bat-yellow);
    border: 1px solid rgba(255, 230, 0, 0.3);
    padding: 3px 12px;
    border-radius: 12px;
    font-family: 'Changa', sans-serif;
}

.mult-speaker-btn {
    background: #0F172A;
    border: 1px solid #475569;
    color: #FFFFFF;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.mult-speaker-btn:hover {
    background: var(--bat-yellow);
    color: #090D16;
    transform: scale(1.15);
}

.mult-equation-text {
    font-family: 'Changa', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #F8FAFC;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.mult-result-highlight {
    color: var(--bat-yellow);
    background: rgba(255, 230, 0, 0.15);
    padding: 3px 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 230, 0, 0.4);
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

.mult-visual-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #334155;
    font-size: 1rem;
}

/* Full Grid Table (Batman) */
.mult-full-grid-wrap {
    background: #1E293B;
    border-radius: 25px;
    padding: 1.8rem;
    border: 3px solid var(--bat-yellow);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
}

.mult-grid-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: 'Changa', sans-serif;
}

.mult-grid-table th, .mult-grid-table td {
    padding: 12px 10px;
    border: 2px solid #334155;
    font-size: 1.2rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.mult-grid-table th {
    background: linear-gradient(135deg, #FFE600, #F59E0B);
    color: #090D16;
    font-size: 1.3rem;
}

.mult-grid-table th.grid-corner {
    background: #090D16;
    color: var(--bat-yellow);
    font-size: 1.5rem;
}

.mult-grid-table td {
    background: #0F172A;
    color: #F8FAFC;
    cursor: pointer;
}

.mult-grid-table td:hover, .mult-grid-table td.active-cell {
    background: var(--bat-yellow);
    color: #090D16;
    transform: scale(1.18);
    box-shadow: 0 0 18px rgba(255, 230, 0, 0.8);
    z-index: 2;
    border-radius: 8px;
    font-weight: 900;
}

/* Quiz Box (Batman Bat-Cave Mission) */
.mult-quiz-box {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 28px;
    border: 3px solid var(--bat-yellow);
    padding: 2.4rem 2rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.quiz-score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090D16;
    border: 2px solid #334155;
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-family: 'Changa', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--bat-yellow);
}

.quiz-bear-avatar {
    font-size: 3.8rem;
    margin-bottom: 12px;
    animation: gentleBob 2s infinite ease-in-out;
}

.quiz-question-text {
    font-family: 'Changa', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--bat-yellow);
    text-shadow: 0 0 20px rgba(255, 230, 0, 0.5);
    margin-bottom: 1.5rem;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.quiz-opt-btn {
    background: #0F172A;
    border: 3px solid #334155;
    border-radius: 22px;
    padding: 16px 20px;
    font-family: 'Changa', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-opt-btn:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: var(--bat-yellow);
    color: var(--bat-yellow);
    box-shadow: 0 8px 25px rgba(255, 230, 0, 0.35);
}

.quiz-opt-btn.correct {
    background: linear-gradient(135deg, #10B981, #047857) !important;
    color: #FFFFFF !important;
    border-color: #34D399 !important;
}

.quiz-opt-btn.wrong {
    background: linear-gradient(135deg, #EF4444, #B91C1C) !important;
    color: #FFFFFF !important;
    border-color: #F87171 !important;
}

/* ==========================================================================
   Lesson Adventure Cards (Gotham Bat-Missions)
   ========================================================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.lesson-adventure-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 20px;
    border: 1.5px solid #334155;
    border-right: 4px solid var(--bat-yellow);
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.lesson-adventure-card:hover {
    transform: translateY(-4px);
    border-color: var(--bat-yellow);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 230, 0, 0.25);
}

.card-title {
    font-family: 'Changa', 'Marhey', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #F8FAFC;
    margin: 2px 0 0 0;
    line-height: 1.35;
}

.card-type-chip {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bat-yellow);
    background: rgba(255, 230, 0, 0.1);
    border: 1px solid rgba(255, 230, 0, 0.25);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

.card-action-btn {
    background: linear-gradient(135deg, #FFE600, #F59E0B);
    color: #090D16;
    border-radius: 50px;
    padding: 11px 18px;
    font-family: 'Changa', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.35);
    transition: all 0.25s ease;
}

.lesson-adventure-card:hover .card-action-btn {
    background: linear-gradient(135deg, #FFF066, #FFE600);
    box-shadow: 0 6px 20px rgba(255, 230, 0, 0.6);
    transform: translateY(-2px);
}

/* ==========================================================================
   Lesson Detail View & Tabs (Batman Cockpit)
   ========================================================================== */
.lesson-header-bar {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #334155;
    border-top: 4px solid var(--bat-yellow);
    border-radius: 28px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
    gap: 15px;
}

.lesson-title-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lesson-bear-icon {
    font-size: 2.2rem;
}

.lesson-title-box h1 {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 1.8rem;
    color: var(--bat-yellow);
    margin-bottom: 2px;
}

.lesson-sub-chapter {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.lesson-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: #1E293B;
    border: 2px solid #334155;
    color: #CBD5E1;
    font-family: 'Changa', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.tab-btn:hover {
    border-color: var(--bat-yellow);
    color: var(--bat-yellow);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #FFE600 0%, #F59E0B 100%);
    color: #090D16;
    border-color: #FFFFFF;
    box-shadow: 0 6px 22px rgba(255, 230, 0, 0.5);
    font-weight: 900;
}

.content-wrapper {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #334155;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    margin-bottom: 2.5rem;
}

.pane {
    display: none;
}

.pane.active {
    display: block;
    animation: fadeIn 0.35s ease-out;
}

/* ==========================================================================
   Achievements View (Batman Badges)
   ========================================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.badge-card {
    background: #1E293B;
    border: 2px solid #334155;
    border-radius: 24px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.badge-card.unlocked {
    opacity: 1;
    border-color: var(--bat-yellow);
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    box-shadow: 0 12px 30px rgba(255, 230, 0, 0.25);
}

.badge-icon {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 10px;
}

.badge-card h3 {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 1.3rem;
    color: var(--bat-yellow);
    margin-bottom: 6px;
}

.badge-card p {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   AI Bot Floating Button & Chat Modal (Bat-Cave Computer)
   ========================================================================== */
.ai-bot-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE600 0%, #F59E0B 100%);
    color: #090D16;
    font-size: 2.2rem;
    border: 3px solid #FFFFFF;
    box-shadow: 0 8px 25px rgba(255, 230, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-bot-btn:hover {
    transform: scale(1.15) rotate(12deg);
    box-shadow: 0 12px 35px rgba(255, 230, 0, 0.85);
}

.ai-bot-modal {
    position: fixed;
    bottom: 105px;
    left: 30px;
    width: 380px;
    max-width: 90vw;
    background: #0F172A;
    border: 3px solid var(--bat-yellow);
    border-radius: 26px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 230, 0, 0.3);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.ai-bot-header {
    background: linear-gradient(135deg, #1E293B, #090D16);
    border-bottom: 2px solid var(--bat-yellow);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bot-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-header-title h3 {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 1.1rem;
    color: var(--bat-yellow);
    margin: 0;
}

.close-bot-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 230, 0, 0.4);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: #F8FAFC;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    line-height: 1;
}

.close-bot-btn:hover {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.ai-bot-messages {
    padding: 16px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-message {
    background: #1E293B;
    border: 1.5px solid #334155;
    color: #F8FAFC;
    padding: 12px 16px;
    border-radius: 18px 18px 0 18px;
    font-size: 0.98rem;
    line-height: 1.5;
    font-family: 'Tajawal', sans-serif;
}

.ai-bot-input-area {
    padding: 12px 16px;
    background: #090D16;
    border-top: 1px solid #334155;
    display: flex;
    gap: 8px;
}

.ai-bot-input-area input {
    flex-grow: 1;
    background: #1E293B;
    border: 2px solid #475569;
    border-radius: 50px;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-bot-input-area input:focus {
    border-color: var(--bat-yellow);
}

.send-bot-btn {
    background: linear-gradient(135deg, #FFE600, #F59E0B);
    color: #090D16;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-family: 'Changa', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
    transition: transform 0.2s ease;
}

.send-bot-btn:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--bat-yellow);
}

/* Celebrating Effects */
.badge-celebrating {
    animation: avatarPulseSpin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) infinite !important;
}

.avatar-celebrating {
    animation: avatarPulseSpin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) infinite !important;
}

@keyframes avatarPulseSpin {
    0% { transform: rotate(-6deg) scale(1.05); }
    50% { transform: rotate(6deg) scale(1.18); }
    100% { transform: rotate(-6deg) scale(1.05); }
}

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

/* ==========================================================================
   Lesson Interactive Games Suite (Batman Gotham Dark Theme)
   ========================================================================== */
.games-section {
    padding: 2rem 1.5rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #090D16 100%);
    border: 2px solid var(--bat-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.games-menu-title {
    font-family: 'Changa', 'Marhey', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--bat-yellow);
    text-shadow: 0 0 15px rgba(255, 230, 0, 0.4);
    margin-bottom: 2rem;
    text-align: center;
}

.games-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 960px;
}

.game-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #334155;
    border-radius: 22px;
    padding: 1.8rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--bat-yellow);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 20px rgba(255, 230, 0, 0.35);
    background: linear-gradient(135deg, #253349 0%, #131D31 100%);
}

.game-card .game-icon {
    font-size: 3.2rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.18) rotate(6deg);
}

.game-card .game-title {
    font-family: 'Changa', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
}

.game-card .game-desc {
    font-size: 0.85rem;
    color: #94A3B8;
    text-align: center;
    line-height: 1.4;
}

/* Header inside each game */
.game-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 230, 0, 0.2);
}

.game-header h3 {
    font-family: 'Changa', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bat-yellow);
    margin: 0;
}

.game-header .back-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1.5px solid var(--bat-border);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Changa', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-header .back-btn:hover {
    background: var(--bat-yellow);
    color: #090D16;
    border-color: #FFFFFF;
}

.game-question {
    font-family: 'Changa', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 1.8rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 230, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Meteor Game */
.meteor-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 320px;
    background: radial-gradient(circle at 50% 10%, rgba(255, 230, 0, 0.08) 0%, rgba(11, 15, 25, 0.9) 100%);
    border: 2px solid #334155;
    border-radius: 20px;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE600 0%, #F59E0B 70%, #B45309 100%);
    color: #090D16;
    font-family: 'Changa', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(255, 230, 0, 0.7), inset -4px -4px 10px rgba(0,0,0,0.5);
    border: 2px solid #FFFFFF;
    transition: transform 0.15s ease;
}

.meteor:hover {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(255, 230, 0, 0.9);
}

/* Energy Race (Batmobile) */
.energy-track {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 55px;
    background: #090D16;
    border: 2px solid var(--bat-yellow);
    border-radius: 30px;
    overflow: visible;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 0 15px rgba(255, 230, 0, 0.25);
}

.energy-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFE600, #F59E0B);
    border-radius: 30px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.robot-runner {
    position: absolute;
    top: -10px;
    left: 0%;
    transform: translateX(-50%);
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.energy-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.energy-btn {
    background: #0F172A;
    border: 2.5px solid #334155;
    border-radius: 18px;
    color: #FFFFFF;
    font-family: 'Changa', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    padding: 12px 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
    min-width: 110px;
}

.energy-btn:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--bat-yellow);
    color: var(--bat-yellow);
    box-shadow: 0 8px 25px rgba(255, 230, 0, 0.4);
}

/* Circuit Match (3D Flip Memory Cards) */
.circuit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 650px;
}

.circuit-card {
    height: 120px;
    perspective: 1000px;
    cursor: pointer;
}

.circuit-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 18px;
}

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

.circuit-front, .circuit-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-family: 'Changa', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.circuit-front {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 2px solid var(--bat-yellow);
    font-size: 2rem;
    color: var(--bat-yellow);
}

.circuit-back {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border: 2.5px solid #38BDF8;
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 800;
    transform: rotateY(180deg);
}

.circuit-card.matched .circuit-back {
    border-color: #10B981;
    background: linear-gradient(135deg, #064E3B, #065F46);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

/* Processor Assembly (Bat-Decoder) */
.processor-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.robot-screen {
    width: 100%;
    background: #060911;
    border: 3px solid var(--bat-yellow);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    font-family: 'Changa', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--bat-yellow);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 25px rgba(255, 230, 0, 0.35);
    transition: all 0.3s ease;
}

.robot-screen.error {
    border-color: #EF4444;
    color: #EF4444;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.missing-slot {
    display: inline-block;
    min-width: 60px;
    height: 40px;
    border: 2px dashed var(--bat-yellow);
    border-radius: 10px;
    vertical-align: middle;
    margin: 0 8px;
}

.processor-parts {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.processor-parts .part {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 2px solid #38BDF8;
    color: #FFFFFF;
    border-radius: 15px;
    padding: 12px 24px;
    font-family: 'Changa', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.25s ease;
}

.processor-parts .part:hover {
    transform: translateY(-4px) scale(1.08);
    border-color: var(--bat-yellow);
    color: var(--bat-yellow);
    box-shadow: 0 8px 25px rgba(255, 230, 0, 0.45);
}

@media (max-width: 768px) {
    .header-nav-bar {
        flex-direction: column;
        padding: 1.2rem;
    }
    .nav-right-group {
        width: 100%;
        justify-content: center;
    }
    .nav-user-badge, .play-masha-btn {
        width: 100%;
    }
    .nav-title-capsule h1 {
        font-size: 1.3rem;
    }
    .quiz-options-grid {
        grid-template-columns: 1fr;
    }
    .circuit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

