@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Vazirmatn:wght@400;600;700;800;900&display=swap');

:root {
    --font-fa: 'Vazirmatn', Tahoma, sans-serif;
    --font-en: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    --pink: #FF6B81;
    --pink-dark: #EE5253;
    --orange: #FF9F43;
    --orange-dark: #E58E26;
    --yellow: #FECA57;
    --yellow-dark: #F79F1F;
    --green: #1DD1A1;
    --green-dark: #10AC84;
    --blue: #48DBFB;
    --blue-dark: #0ABDE3;
    --royal: #54A0FF;
    --royal-dark: #2E86DE;
    --purple: #A55EEA;
    --purple-dark: #8854D0;
    --dark: #2D3436;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.kids-body {
    font-family: var(--font-fa);
    background: linear-gradient(180deg, #89f7fe 0%, #66a6ff 45%, #a18cd1 85%, #fbc2eb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   آسمان انیمیشنی، ابرها و حباب‌های شناور
   ========================================= */
.sky-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-cloud {
    position: absolute;
    font-size: 4.5rem;
    opacity: 0.55;
    filter: drop-shadow(0 8px 16px rgba(255,255,255,0.5));
    animation: floatCloud linear infinite;
}

.cloud-1 { top: 6%; left: -10%; animation-duration: 42s; font-size: 5rem; }
.cloud-2 { top: 22%; left: -15%; animation-duration: 55s; animation-delay: -20s; font-size: 3.8rem; }
.cloud-3 { top: 48%; left: -12%; animation-duration: 48s; animation-delay: -10s; font-size: 4.2rem; }
.cloud-4 { top: 75%; left: -10%; animation-duration: 62s; animation-delay: -32s; font-size: 5.5rem; }

@keyframes floatCloud {
    0% { transform: translateX(-10vw) translateY(0px); }
    50% { transform: translateX(55vw) translateY(-14px); }
    100% { transform: translateX(115vw) translateY(0px); }
}

.floating-letter-bg {
    position: absolute;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 3.2rem;
    opacity: 0.16;
    color: #fff;
    animation: floatUpDown 5s ease-in-out infinite;
    user-select: none;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); }
    50% { transform: translateY(-22px) rotate(8deg) scale(1.08); }
}

@keyframes bounceIn {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes jelly {
    0%, 100% { transform: scale(1, 1); }
    25% { transform: scale(0.92, 1.08); }
    50% { transform: scale(1.08, 0.92); }
    75% { transform: scale(0.97, 1.03); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 234, 167, 0.8), 0 10px 25px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 14px rgba(255, 234, 167, 0), 0 14px 30px rgba(0,0,0,0.22); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

/* =========================================
   کانتینر و هدر کودکانه
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.kids-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 5px solid #ffeaa7;
    border-radius: 0 0 32px 32px;
    padding: 14px 26px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.brand-mascot {
    font-size: 2.7rem;
    display: inline-block;
    animation: wiggle 2.6s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ff4757, #ff9f43, #5f27cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.82rem;
    color: #636e72;
    font-weight: 700;
}

.user-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-pill {
    background: #fff9db;
    border: 3px solid #ffd43b;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #d9480f;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 0 #fab005;
}

.stat-pill.coin-pill {
    background: #e3fafc;
    border-color: #3bc9db;
    color: #0b7285;
    box-shadow: 0 4px 0 #15aabf;
}

.user-avatar-chip {
    background: linear-gradient(135deg, #fff0f6, #f3f0ff);
    border: 3px solid #d0bfff;
    border-radius: 999px;
    padding: 5px 16px 5px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    box-shadow: 0 4px 0 #b197fc;
}

.user-avatar-emoji {
    font-size: 1.7rem;
    background: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   دکمه‌های ۳ بعدی کارتونی (3D Chunky Buttons)
   ========================================= */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-fa);
    font-weight: 800;
    font-size: 1rem;
    padding: 11px 22px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
    user-select: none;
    position: relative;
}

.btn-3d:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.btn-3d:active {
    transform: translateY(4px) !important;
}

.btn-pink {
    background: linear-gradient(180deg, #ff758c 0%, #ff4757 100%);
    box-shadow: 0 6px 0 #c0392b, 0 10px 18px rgba(255, 71, 87, 0.35);
}
.btn-pink:active { box-shadow: 0 2px 0 #c0392b; }

.btn-green {
    background: linear-gradient(180deg, #2ed573 0%, #10ac84 100%);
    box-shadow: 0 6px 0 #077b5d, 0 10px 18px rgba(16, 172, 132, 0.35);
}
.btn-green:active { box-shadow: 0 2px 0 #077b5d; }

.btn-blue {
    background: linear-gradient(180deg, #54a0ff 0%, #2e86de 100%);
    box-shadow: 0 6px 0 #1b5ca8, 0 10px 18px rgba(46, 134, 222, 0.35);
}
.btn-blue:active { box-shadow: 0 2px 0 #1b5ca8; }

.btn-yellow {
    background: linear-gradient(180deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
    box-shadow: 0 6px 0 #e17055, 0 10px 18px rgba(253, 203, 110, 0.4);
}
.btn-yellow:active { box-shadow: 0 2px 0 #e17055; }

.btn-purple {
    background: linear-gradient(180deg, #a55eea 0%, #8854d0 100%);
    box-shadow: 0 6px 0 #5f27cd, 0 10px 18px rgba(136, 84, 208, 0.35);
}
.btn-purple:active { box-shadow: 0 2px 0 #5f27cd; }

.btn-orange {
    background: linear-gradient(180deg, #ffbe76 0%, #ff9f43 100%);
    color: #2d3436;
    box-shadow: 0 6px 0 #e67e22, 0 10px 18px rgba(255, 159, 67, 0.35);
}

.btn-lg {
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 24px;
}

.btn-sm {
    font-size: 0.88rem;
    padding: 7px 15px;
    border-radius: 14px;
}

/* =========================================
   کارت‌های شیشه‌ای و جعبه‌های فانتزی
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-radius: 32px;
    border: 4px solid #ffffff;
    box-shadow: 0 16px 40px rgba(31, 38, 135, 0.14);
}

.hero-banner {
    background: linear-gradient(135deg, #fff9ec 0%, #fff0f6 50%, #e3fafc 100%);
    border: 5px solid #fff;
    border-radius: 36px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.hero-characters {
    font-size: 4.5rem;
    display: flex;
    gap: 10px;
    animation: floatUpDown 4s ease-in-out infinite;
}

/* =========================================
   نقشه جزیره‌های سایت (Portal Islands)
   ========================================= */
.islands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.island-card {
    background: #fff;
    border-radius: 28px;
    padding: 22px;
    text-align: center;
    border: 4px solid #fff;
    box-shadow: 0 10px 0 rgba(0,0,0,0.08), 0 16px 28px rgba(0,0,0,0.1);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.island-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.island-card.active-island {
    background: linear-gradient(180deg, #ffffff 0%, #fff4e6 100%);
    border-color: #ffd43b;
    animation: pulseGlow 3s infinite;
}

.island-card.coming-soon {
    opacity: 0.85;
    background: rgba(255,255,255,0.8);
}

.island-icon {
    font-size: 3.8rem;
    margin-bottom: 10px;
    display: inline-block;
    animation: floatUpDown 3.5s ease-in-out infinite;
}

/* =========================================
   نقشه گنج ۳ مرحله‌ای فونیکس (Phonics World Map)
   ========================================= */
.levels-map-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
    margin-bottom: 40px;
}

.level-adventure-card {
    background: #fff;
    border-radius: 32px;
    padding: 28px 24px;
    position: relative;
    border: 5px solid #fff;
    box-shadow: 0 12px 0 rgba(0,0,0,0.1), 0 20px 35px rgba(0,0,0,0.14);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.level-adventure-card:not(.locked-level):hover {
    transform: translateY(-10px) rotate(-0.5deg);
}

.level-adventure-card.theme-pink {
    background: linear-gradient(180deg, #fff0f6 0%, #ffffff 100%);
    border-color: #ff8787;
    box-shadow: 0 10px 0 #fa5252, 0 18px 32px rgba(250, 82, 82, 0.22);
}

.level-adventure-card.theme-sky {
    background: linear-gradient(180deg, #e7f5ff 0%, #ffffff 100%);
    border-color: #4dabf7;
    box-shadow: 0 10px 0 #228be6, 0 18px 32px rgba(34, 139, 230, 0.22);
}

.level-adventure-card.theme-purple {
    background: linear-gradient(180deg, #f3f0ff 0%, #ffffff 100%);
    border-color: #9775fa;
    box-shadow: 0 10px 0 #7950f2, 0 18px 32px rgba(121, 80, 242, 0.22);
}

.level-adventure-card.locked-level {
    filter: grayscale(0.45);
    opacity: 0.88;
}

.level-badge-num {
    position: absolute;
    top: -16px;
    right: 24px;
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    color: #fff;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.level-stars-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 2.1rem;
}

.star-slot.earned {
    filter: drop-shadow(0 4px 8px rgba(255, 180, 0, 0.6));
    animation: bounceIn 0.6s ease;
}

.star-slot.empty {
    opacity: 0.25;
    filter: grayscale(1);
}

/* =========================================
   کارت‌های تعاملی آموزش فونیکس (Phonics Cards)
   ========================================= */
.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    justify-content: center;
}

.cat-tab-btn {
    background: rgba(255,255,255,0.9);
    border: 3px solid #dee2e6;
    border-radius: 22px;
    padding: 10px 20px;
    font-family: var(--font-fa);
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 0 #ced4da;
    color: var(--dark);
}

.cat-tab-btn:hover {
    transform: translateY(-3px);
}

.cat-tab-btn.active {
    background: linear-gradient(180deg, #ffeaa7 0%, #fdcb6e 100%);
    border-color: #f39c12;
    box-shadow: 0 5px 0 #e67e22;
    transform: scale(1.05);
}

.phonics-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.phonics-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 22px 18px;
    text-align: center;
    border: 5px solid var(--card-accent, #FF6B6B);
    box-shadow: 0 10px 0 var(--card-accent, #FF6B6B), 0 16px 28px rgba(0,0,0,0.12);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.phonics-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.phonics-card.speaking-active {
    animation: jelly 0.65s ease;
    box-shadow: 0 0 0 10px rgba(255, 212, 59, 0.55), 0 12px 28px rgba(0,0,0,0.2);
}

.phonics-emoji-bubble {
    font-size: 3.8rem;
    width: 92px;
    height: 92px;
    margin: 0 auto 10px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.phonics-card:hover .phonics-emoji-bubble {
    transform: scale(1.14) rotate(6deg);
}

.phonics-main-letters {
    font-family: var(--font-en);
    font-size: 3.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 6px;
    direction: ltr;
}

.phonetic-ipa-badge {
    display: inline-block;
    direction: ltr;
    font-family: var(--font-en);
    background: #f1f3f5;
    color: #495057;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.phonics-hint-box {
    background: #fff9db;
    border: 2px dashed #fcc419;
    border-radius: 16px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #5c3c00;
    margin-bottom: 12px;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phonics-example-bar {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
}

.example-en {
    font-family: var(--font-en);
    font-size: 1.25rem;
    color: #2d3436;
    direction: ltr;
}

.example-fa {
    font-size: 0.95rem;
    color: #636e72;
}

/* =========================================
   قطار ترکیب ۳ حرفی‌ها (Stage 2: CVC Blending Train)
   ========================================= */
.blending-train-stage {
    background: linear-gradient(180deg, #e3fafc 0%, #fff9db 100%);
    border: 5px solid #3bc9db;
    border-radius: 32px;
    padding: 26px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 12px 0 #15aabf, 0 18px 34px rgba(0,0,0,0.12);
}

.train-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    direction: ltr;
    margin: 22px 0;
}

.train-car-letter {
    width: 96px;
    height: 106px;
    background: #ffffff;
    border: 5px solid #ff6b6b;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 700;
    color: #ff4757;
    cursor: pointer;
    box-shadow: 0 8px 0 #ee5253;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.train-car-letter.vowel-car {
    border-color: #ff9f43;
    color: #e67e22;
    box-shadow: 0 8px 0 #d35400;
    background: #fff9ec;
}

.train-car-letter:hover,
.train-car-letter.car-active {
    transform: translateY(-12px) scale(1.12);
    background: #ffeaa7;
}

.train-car-sub {
    font-size: 0.85rem;
    color: #636e72;
    margin-top: -4px;
}

.train-plus-sign {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0b7285;
}

.train-result-box {
    background: linear-gradient(135deg, #2ed573, #10ac84);
    color: #fff;
    padding: 14px 28px;
    border-radius: 26px;
    font-family: var(--font-en);
    font-size: 2.4rem;
    font-weight: 700;
    box-shadow: 0 8px 0 #077b5d;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.train-result-box.blended-burst {
    animation: jelly 0.7s ease;
    transform: scale(1.1);
}

/* =========================================
   آزمایشگاه چوب جادویی (Stage 3: Magic E Wand Lab)
   ========================================= */
.magic-e-lab {
    background: linear-gradient(135deg, #2c1654 0%, #5f27cd 60%, #9b59b6 100%);
    color: #fff;
    border: 5px solid #ffd43b;
    border-radius: 32px;
    padding: 28px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 12px 0 #f39c12, 0 20px 40px rgba(95, 39, 205, 0.35);
}

.magic-transform-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 22px 0;
    direction: ltr;
}

.magic-word-stage {
    background: rgba(255, 255, 255, 0.14);
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 26px;
    padding: 18px 28px;
    min-width: 190px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magic-word-stage.transformed {
    background: #fff9db;
    color: #2d3436;
    border-color: #ffd43b;
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 212, 59, 0.8);
}

.magic-e-letter-star {
    display: inline-block;
    color: #ff4757;
    background: #ffeaa7;
    padding: 0 8px;
    border-radius: 10px;
    animation: bounceIn 0.5s ease;
}

/* =========================================
   بخش بازی و کوییز تعاملی مرحله (Interactive Quiz Modal/Section)
   ========================================= */
.quiz-arena {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    border: 6px solid #ffd43b;
    border-radius: 36px;
    padding: 32px;
    margin-top: 28px;
    margin-bottom: 50px;
    box-shadow: 0 14px 0 #f59f00, 0 24px 48px rgba(0,0,0,0.16);
    text-align: center;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 24px;
    direction: ltr;
}

.quiz-option-btn {
    background: #ffffff;
    border: 4px solid #74b9ff;
    border-radius: 24px;
    padding: 18px 16px;
    font-family: var(--font-en), var(--font-fa);
    font-size: 1.65rem;
    font-weight: 700;
    color: #2d3436;
    cursor: pointer;
    box-shadow: 0 8px 0 #0984e3;
    transition: all 0.15s ease;
}

.quiz-option-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    background: #e7f5ff;
}

.quiz-option-btn.correct-choice {
    background: #2ed573 !important;
    border-color: #10ac84 !important;
    color: #fff !important;
    box-shadow: 0 8px 0 #077b5d !important;
    animation: jelly 0.6s ease;
}

.quiz-option-btn.wrong-choice {
    background: #ff6b81 !important;
    border-color: #ee5253 !important;
    color: #fff !important;
    box-shadow: 0 8px 0 #c0392b !important;
}

/* =========================================
   دستیار انیمیشنی گوشه صفحه (پروفسور جغد دانا 🦉)
   ========================================= */
.mascot-helper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    max-width: 370px;
    pointer-events: none;
}

.mascot-avatar-btn {
    pointer-events: auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffeaa7, #ff9f43);
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: floatUpDown 3.2s ease-in-out infinite;
    flex-shrink: 0;
}

.mascot-speech-bubble {
    pointer-events: auto;
    background: #ffffff;
    border: 4px solid #ffd43b;
    border-radius: 24px 24px 24px 4px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #2d3436;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    line-height: 1.6;
    animation: bounceIn 0.45s ease;
}

/* =========================================
   فرم‌ها، جدول‌ها و پنل مدیریت
   ========================================= */
.kids-input, .kids-select, .kids-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 18px;
    border: 3px solid #dfe6e9;
    font-family: var(--font-fa);
    font-size: 1rem;
    font-weight: 700;
    background: #fff;
    transition: border-color 0.2s;
}

.kids-input:focus, .kids-select:focus, .kids-textarea:focus {
    outline: none;
    border-color: #54a0ff;
    box-shadow: 0 0 0 4px rgba(84, 160, 255, 0.2);
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.avatar-option-label {
    cursor: pointer;
    text-align: center;
}

.avatar-option-label input {
    display: none;
}

.avatar-option-box {
    font-size: 2.1rem;
    padding: 10px;
    border-radius: 18px;
    background: #f8f9fa;
    border: 3px solid transparent;
    transition: all 0.2s;
    display: block;
}

.avatar-option-label input:checked + .avatar-option-box {
    background: #fff9db;
    border-color: #fcc419;
    transform: scale(1.12);
    box-shadow: 0 5px 0 #f59f00;
}

.badge-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.alert-banner {
    padding: 14px 20px;
    border-radius: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.alert-success {
    background: #d3f9d8;
    border: 3px solid #51cf66;
    color: #2b8a3e;
}

.alert-error {
    background: #ffe3e3;
    border: 3px solid #ff6b6b;
    color: #c92a2a;
}

#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

@media (max-width: 768px) {
    .kids-navbar {
        padding: 12px 16px;
        justify-content: center;
    }
    .hero-banner {
        text-align: center;
        justify-content: center;
    }
    .mascot-helper {
        bottom: 12px;
        left: 12px;
        max-width: 290px;
    }
}
