/* —— تم روشن و شاد کودکان —— */
html[data-theme="kids"] {
    --ink: #fff9fc;
    --ink-soft: #fff1f7;
    --panel: #ffffff;
    --panel-2: #fff6fb;
    --line: rgba(255, 105, 180, 0.18);
    --text: #2d2150;
    --muted: #7a6a9a;
    --saffron: #ff8c42;
    --saffron-hot: #ff6b9d;
    --coral: #ff5c7a;
    --mint: #2ec4b6;
    --shadow: 0 14px 36px rgba(255, 105, 180, 0.14), 0 4px 12px rgba(80, 120, 255, 0.08);
    --theme-color: #ff6b9d;
    --surface-inset: rgba(255, 255, 255, 0.92);
    --surface-inset-soft: rgba(255, 245, 250, 0.95);
    --surface-mid: rgba(255, 255, 255, 0.78);
    --surface-deep: rgba(255, 255, 255, 0.88);
    --surface-faint: rgba(255, 248, 252, 0.92);
    --surface-strong: #ffffff;
    --card-face: linear-gradient(180deg, #ffffff 0%, #fff8fc 100%);
    --sheet-face: linear-gradient(165deg, #ffffff 0%, #fff5fa 55%, #eef9ff 100%);
    --profile-face-bg: linear-gradient(160deg, #ffffff, #ffe0ef);
    --profile-ring-hole: #fff5fa;
    --profile-sheet-face: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 140, 200, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 40% at 100% 30%, rgba(76, 201, 240, 0.2), transparent 50%),
        linear-gradient(180deg, #fff8fc 0%, #ffffff 42%, #f0f9ff 100%);
    --overlay-scrim: rgba(255, 182, 210, 0.45);
    --overlay-heavy: rgba(255, 214, 232, 0.88);
    --chip-text: #2d2150;
    --heading-strong: #6d28d9;
    --glow-a: rgba(255, 140, 200, 0.45);
    --glow-b: rgba(120, 180, 255, 0.12);
    --brand-grad: linear-gradient(120deg, #ff6b9d 0%, #ff8c42 28%, #ffd166 55%, #06d6a0 78%, #4cc9f0 100%);
    --cal-win: #0d9488;
    --cal-loss: #e11d48;
    --cal-plan: #ea580c;
    --cal-win-soft: rgba(13, 148, 136, 0.16);
    --cal-loss-soft: rgba(225, 29, 72, 0.14);
    --cal-plan-soft: rgba(234, 88, 12, 0.14);
    --cal-win-text: #0f766e;
    --cal-loss-text: #be123c;
    --cal-today-fg: #9a3412;
    --cal-today-tag-bg: rgba(255, 140, 66, 0.28);
    --cal-today-tag-fg: #9a3412;
    --cal-cell-bg: rgba(255, 255, 255, 0.88);
    --cal-panel-bg: rgba(255, 255, 255, 0.82);
    --honor-card-border: rgba(255, 105, 180, 0.22);
    --honor-card-bg:
        radial-gradient(ellipse 90% 60% at 50% -20%, rgba(255, 140, 200, 0.22), transparent 55%),
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(76, 201, 240, 0.16), transparent 58%),
        linear-gradient(168deg, #fff8fc 0%, #ffffff 100%);
    --honor-card-shadow: 0 14px 36px rgba(255, 105, 180, 0.12), 0 0 0 1px rgba(255, 140, 200, 0.1) inset;
    --honor-card-bar: linear-gradient(
        90deg,
        rgba(255, 107, 157, 0.2) 0%,
        rgba(255, 140, 66, 0.85) 18%,
        rgba(255, 209, 102, 1) 50%,
        rgba(255, 140, 66, 0.85) 82%,
        rgba(255, 107, 157, 0.2) 100%
    );
    --honor-head-border: rgba(255, 105, 180, 0.16);
    --honor-title-shadow: rgba(109, 40, 217, 0.14);
    --honor-hint: var(--muted);
    --honor-kicker-fg: #c026d3;
    --honor-kicker-bg: rgba(255, 107, 157, 0.14);
    --honor-kicker-border: rgba(255, 107, 157, 0.28);
    --honor-live-dot: var(--coral);
    --honor-live-pulse: rgba(255, 92, 122, 0.45);
    --honor-command-bg: rgba(255, 255, 255, 0.82);
    --honor-command-border: rgba(255, 105, 180, 0.16);
    --honor-cta-bg: linear-gradient(135deg, #ff6b9d, #ff8c42 55%, #ffd166);
    --honor-cta-color: #3b1f4a;
    --honor-cta-ring: rgba(255, 107, 157, 0.28);
    --honor-cta-glow: rgba(255, 107, 157, 0.28);
    --honor-cta-shadow: 0 0 0 1px var(--honor-cta-ring), 0 0 22px var(--honor-cta-glow), 0 10px 24px rgba(255, 107, 157, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    --honor-cta-shadow-hover: 0 0 0 1px rgba(255, 107, 157, 0.38), 0 0 30px rgba(255, 107, 157, 0.34), 0 12px 28px rgba(255, 107, 157, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    --honor-rank-color: var(--text);
    --honor-gap: var(--coral);
    --honor-gap-glow: rgba(255, 92, 122, 0.35);
    --honor-bar-track: rgba(109, 40, 217, 0.08);
    --honor-bar-track-border: rgba(109, 40, 217, 0.06);
    --honor-bar-fill: linear-gradient(90deg, #06d6a0, #2ec4b6, #4cc9f0);
    --honor-bar-glow: rgba(46, 196, 182, 0.45);
    --honor-tile-border: rgba(255, 105, 180, 0.16);
    --honor-tile-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 252, 0.88) 100%);
    --honor-tile-fg: var(--text);
    --honor-tile-name: var(--muted);
    --honor-tile-sub: rgba(45, 33, 80, 0.78);
    --honor-tile-sub-muted: rgba(122, 106, 154, 0.88);
    --honor-leader: #7c3aed;
    --honor-leader-glow: rgba(124, 58, 237, 0.35);
    --honor-rank: #7c3aed;
    --honor-rank-glow: rgba(124, 58, 237, 0.22);
    --honor-score-strong: #6d28d9;
    --honor-tile-hover-border: rgba(255, 140, 66, 0.35);
    --honor-tile-hover-bg: linear-gradient(155deg, rgba(255, 255, 255, 1) 0%, rgba(255, 248, 230, 0.92) 100%);
    --honor-leader-pulse: rgba(255, 140, 66, 0.22);
    --honor-strip-line: rgba(255, 105, 180, 0.06);
    --honor-empty: var(--muted);

    /* نقشه رقابت — تم kids */
    --arm-bg:
        linear-gradient(180deg, rgba(255, 248, 255, 0.6), transparent 42%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 255, 0.98));
    --arm-border: rgba(255, 107, 157, 0.22);
    --arm-title: #2d2150;
    --arm-caption: rgba(122, 106, 154, 0.88);
    --arm-ends: rgba(122, 106, 154, 0.7);
    --arm-line: linear-gradient(90deg, rgba(255, 107, 157, 0.3), rgba(255, 140, 66, 0.85) 48%, rgba(255, 209, 102, 0.95));
    --arm-dot-start: rgba(255, 140, 66, 0.7);
    --arm-dot-end: rgba(76, 201, 240, 0.85);
    --arm-marker: #ff8c42;
    --arm-marker-border: rgba(255, 255, 255, 0.7);
    --arm-marker-ring: rgba(255, 140, 66, 0.18);
    --arm-marker-glow: rgba(255, 140, 66, 0.32);
    --arm-leader: #4cc9f0;
    --arm-leader-border: rgba(200, 240, 255, 0.7);
    --arm-leader-ring: rgba(76, 201, 240, 0.18);
    --arm-leader-glow: rgba(76, 201, 240, 0.38);
    --arm-rank-fg: rgba(45, 33, 80, 0.88);
    --arm-rank-bg: rgba(255, 255, 255, 0.88);
    --arm-rank-border: rgba(255, 140, 66, 0.28);
    --arm-leader-rank-fg: #0d3a4a;
    --arm-leader-rank-border: rgba(76, 201, 240, 0.45);
    --arm-leader-rank-bg: rgba(230, 248, 255, 0.92);
    --arm-row-bg: rgba(255, 255, 255, 0.7);
    --arm-row-border: rgba(255, 107, 157, 0.1);
    --arm-leader-row-bg: rgba(76, 201, 240, 0.1);
    --arm-leader-row-border: rgba(76, 201, 240, 0.28);
    --arm-row-rank-fg: rgba(122, 106, 154, 0.95);
    --arm-leader-row-rank-fg: #0e7490;
    --arm-row-name: rgba(45, 33, 80, 0.92);
    --arm-leader-row-name: #155e75;
    --arm-bar-track: rgba(109, 40, 217, 0.08);
    --arm-bar-fill: linear-gradient(90deg, rgba(255, 107, 157, 0.55), rgba(255, 140, 66, 0.95));
    --arm-leader-bar-fill: linear-gradient(90deg, rgba(6, 182, 212, 0.65), rgba(76, 201, 240, 0.98));
    --arm-row-score: rgba(45, 33, 80, 0.82);
    --arm-leader-row-score: #0e7490;
    --arm-legend-item-fg: rgba(122, 106, 154, 0.88);
    --arm-legend-border: rgba(109, 40, 217, 0.08);
    --arm-swatch-peer: #ff8c42;
    --arm-swatch-peer-ring: rgba(255, 140, 66, 0.2);
    --arm-swatch-lead: #4cc9f0;
    --arm-swatch-lead-ring: rgba(76, 201, 240, 0.22);
    --arm-focus-outline: rgba(109, 40, 217, 0.45);
    color-scheme: light;
}

html[data-theme="kids"] body {
    background: var(--ink);
}

html[data-theme="kids"] body::before {
    background:
        radial-gradient(ellipse 90% 55% at 8% 0%, rgba(255, 140, 200, 0.38), transparent 58%),
        radial-gradient(ellipse 80% 50% at 96% 4%, rgba(76, 201, 240, 0.3), transparent 52%),
        radial-gradient(ellipse 70% 45% at 50% 100%, rgba(6, 214, 160, 0.2), transparent 58%),
        var(--ink);
}

html[data-theme="kids"] .bg-glow {
    top: auto;
    left: auto;
    right: -6%;
    bottom: -6%;
    background:
        radial-gradient(circle, rgba(255, 209, 102, 0.55), transparent 68%),
        radial-gradient(circle at 30% 70%, rgba(76, 201, 240, 0.4), transparent 60%);
    width: min(85vw, 520px);
    height: min(85vw, 520px);
}

html[data-theme="kids"] .bg-grid {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 140, 200, 0.22) 1.2px, transparent 0),
        radial-gradient(circle at 14px 14px, rgba(76, 201, 240, 0.16) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.9;
    -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 94%);
    mask-image: radial-gradient(ellipse at center, black 45%, transparent 94%);
}

@media (max-width: 520px) {
    html[data-theme="kids"] body::before {
        background:
            radial-gradient(ellipse 100% 60% at 5% 0%, rgba(255, 140, 200, 0.4), transparent 60%),
            radial-gradient(ellipse 95% 55% at 100% 2%, rgba(76, 201, 240, 0.32), transparent 55%),
            radial-gradient(ellipse 85% 50% at 50% 100%, rgba(6, 214, 160, 0.22), transparent 60%),
            var(--ink);
    }

    html[data-theme="kids"] .bg-glow {
        right: -4%;
        bottom: -4%;
        width: min(92vw, 440px);
        height: min(92vw, 440px);
    }
}

html[data-theme="kids"] .brand-avatar {
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme="kids"] .brand-mark {
    filter: drop-shadow(0 2px 8px rgba(255, 107, 157, 0.28));
}

html[data-theme="kids"] .btn-guide {
    border-color: rgba(255, 107, 157, 0.5);
    background: linear-gradient(180deg, #ffe0ef, #fff7fb);
    color: #d63384;
    box-shadow: 0 4px 14px rgba(255, 107, 157, 0.22);
}

html[data-theme="kids"] .btn-guide:hover {
    border-color: rgba(255, 107, 157, 0.8);
    box-shadow: 0 6px 18px rgba(255, 107, 157, 0.32);
}

html[data-theme="kids"] .btn-rules {
    border-color: rgba(255, 140, 66, 0.55);
    background: linear-gradient(180deg, #ffe8d6, #fff8f2);
    color: #c2410c;
    box-shadow: 0 4px 14px rgba(255, 140, 66, 0.22);
}

html[data-theme="kids"] .btn-rules:hover {
    border-color: rgba(255, 140, 66, 0.85);
    box-shadow: 0 6px 18px rgba(255, 140, 66, 0.32);
}

html[data-theme="kids"] .btn-support {
    border-color: rgba(76, 201, 240, 0.55);
    background: linear-gradient(180deg, #d9f6ff, #f2fcff);
    color: #0369a1;
    box-shadow: 0 4px 14px rgba(76, 201, 240, 0.22);
}

html[data-theme="kids"] .btn-support:hover {
    border-color: rgba(76, 201, 240, 0.85);
    box-shadow: 0 6px 18px rgba(76, 201, 240, 0.32);
}

html[data-theme="kids"] .btn-dash {
    border-color: rgba(167, 139, 250, 0.55);
    background: linear-gradient(180deg, #ede9fe, #faf5ff);
    color: #6d28d9;
    box-shadow: 0 4px 14px rgba(167, 139, 250, 0.22);
}
html[data-theme="kids"] .btn-dash:hover,
html[data-theme="kids"] .btn-dash.is-on {
    border-color: rgba(167, 139, 250, 0.85);
    box-shadow: 0 6px 18px rgba(167, 139, 250, 0.32);
}

html[data-theme="kids"] .btn-leaderboard {
    border-color: rgba(46, 196, 182, 0.5);
    background: linear-gradient(180deg, #d8faf5, #f0fffc);
    color: #0d9488;
    box-shadow: 0 4px 14px rgba(46, 196, 182, 0.2);
}

html[data-theme="kids"] .btn-leaderboard:hover {
    border-color: rgba(46, 196, 182, 0.8);
    box-shadow: 0 6px 18px rgba(46, 196, 182, 0.3);
}

html[data-theme="kids"] .user-chip {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.16), rgba(76, 201, 240, 0.12));
    border-color: rgba(255, 107, 157, 0.35);
}

html[data-theme="kids"] .user-chip:hover {
    border-color: rgba(255, 107, 157, 0.65);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.24), rgba(76, 201, 240, 0.18));
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.2);
}

html[data-theme="kids"] .sfx-toggle-fab {
    border-color: rgba(76, 201, 240, 0.55);
    background: linear-gradient(180deg, #e8f9ff, #ffffff);
    color: #0284c7;
    box-shadow: 0 4px 14px rgba(76, 201, 240, 0.2);
}

html[data-theme="kids"] .sfx-toggle-fab:hover {
    border-color: rgba(76, 201, 240, 0.85);
    box-shadow: 0 6px 18px rgba(76, 201, 240, 0.28);
}

html[data-theme="kids"] .sfx-toggle-fab.is-off {
    border-color: rgba(255, 92, 122, 0.5);
    color: #e11d48;
}

html[data-theme="kids"] .btn-theme {
    border-color: rgba(255, 209, 102, 0.7);
    background: linear-gradient(135deg, #fff3c4, #ffe0ef 55%, #d8faf5);
    color: #7c3aed;
    box-shadow: 0 4px 14px rgba(255, 140, 200, 0.22);
}

html[data-theme="kids"] .btn-theme:hover {
    border-color: rgba(255, 107, 157, 0.75);
    box-shadow: 0 6px 18px rgba(255, 107, 157, 0.28);
}

html[data-theme="kids"] .btn-dict {
    border-color: rgba(124, 58, 237, 0.45);
    background: linear-gradient(180deg, #f3e8ff, #ffe0ef);
    color: #6d28d9;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.18);
}

html[data-theme="kids"] .btn-dict:hover {
    border-color: rgba(124, 58, 237, 0.75);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
    color: #5b21b6;
}

html[data-theme="kids"] .btn-logout-mini {
    border-color: rgba(255, 92, 122, 0.45);
    background: linear-gradient(180deg, #ffe4ea, #fff7f8);
    color: #be123c;
    box-shadow: 0 3px 10px rgba(255, 92, 122, 0.18);
}

html[data-theme="kids"] .card {
    border-color: rgba(255, 140, 200, 0.22);
    box-shadow: var(--shadow);
}

html[data-theme="kids"] .card.rule-maker {
    border-color: rgba(167, 139, 250, 0.65);
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(255, 140, 200, 0.22), transparent 55%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(46, 196, 182, 0.16), transparent 50%),
        linear-gradient(165deg, #fff8ff 0%, #f0f9ff 48%, #ffffff 100%);
    box-shadow:
        0 18px 40px rgba(167, 139, 250, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

html[data-theme="kids"] .card.rule-maker .rule-panel-title {
    color: #6d28d9;
    text-shadow: none;
}

html[data-theme="kids"] .field input,
html[data-theme="kids"] .field select,
html[data-theme="kids"] .rule-row select,
html[data-theme="kids"] .rule-row input,
html[data-theme="kids"] .capacity-bar-select,
html[data-theme="kids"] .word-row-input {
    border-color: rgba(255, 140, 200, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="kids"] .field input:focus,
html[data-theme="kids"] .field select:focus,
html[data-theme="kids"] .word-row-input:focus {
    border-color: rgba(255, 107, 157, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

html[data-theme="kids"] .capacity-bar {
    border-color: rgba(255, 140, 200, 0.2);
    background: linear-gradient(180deg, #fff7fb, #ffffff);
}

html[data-theme="kids"] .capacity-bar-label {
    color: #6b5b8a;
}

html[data-theme="kids"] .soft-select-trigger {
    background: #ffffff;
    border-color: rgba(255, 140, 200, 0.35);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(255, 140, 200, 0.1);
}

html[data-theme="kids"] .soft-select-trigger::after {
    border-right-color: #7a6a9a;
    border-bottom-color: #7a6a9a;
}

html[data-theme="kids"] .soft-select-trigger:hover,
html[data-theme="kids"] .soft-select.is-open .soft-select-trigger {
    border-color: rgba(255, 107, 157, 0.65);
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.14);
}

html[data-theme="kids"] .soft-select--char .soft-select-trigger {
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    border-color: rgba(255, 140, 200, 0.4);
    color: #3b2166;
    box-shadow: 0 4px 12px rgba(255, 140, 200, 0.12);
}

html[data-theme="kids"] .soft-select--char.is-locked-all .soft-select-trigger {
    background: linear-gradient(180deg, #f3f0f8, #ffffff);
    border-color: rgba(167, 139, 250, 0.35);
    color: #7a6a9a;
}

html[data-theme="kids"] .soft-select-menu,
html[data-theme="kids"] .soft-select-menu.is-portal {
    border-color: rgba(255, 140, 200, 0.3);
    background: linear-gradient(180deg, #ffffff, #fff8fc);
    box-shadow: 0 16px 36px rgba(255, 107, 157, 0.18);
}

html[data-theme="kids"] .soft-select-option:hover {
    background: rgba(255, 107, 157, 0.1);
}

html[data-theme="kids"] .soft-select-option.is-on {
    background: linear-gradient(135deg, #ffe0ef, #e8f9ff);
    color: #c0266b;
}

html[data-theme="kids"] .capacity-bar-select,
html[data-theme="kids"] .capacity-bar-select option {
    background: #ffffff;
    color: var(--text);
}

html[data-theme="kids"] .btn-main {
    background: linear-gradient(135deg, #ff6b9d, #ff8c42 55%, #ffd166);
    color: #3b1f4a;
    box-shadow: 0 10px 24px rgba(255, 107, 157, 0.32);
}

html[data-theme="kids"] .btn-soft {
    background: #ffffff;
    border-color: rgba(167, 139, 250, 0.35);
    color: #5b21b6;
}

html[data-theme="kids"] .btn-soft.is-acted,
html[data-theme="kids"] .btn-sm.is-acted {
    background: rgba(255, 107, 157, 0.18);
    border-color: rgba(255, 107, 157, 0.75);
    color: #9d174d;
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.15);
}

html[data-theme="kids"] .mode-pick .mode-btn {
    background: #ffffff;
    border: 2px solid rgba(167, 139, 250, 0.28);
    color: #6b5b8a;
    box-shadow: none;
    font-weight: 700;
}

html[data-theme="kids"] .mode-pick .mode-btn.is-system-mode {
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.35);
}
html[data-theme="kids"] .mode-pick .mode-btn.is-system-mode.is-on {
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    border-color: transparent;
    color: #042824;
    box-shadow:
        0 10px 22px rgba(20, 184, 166, 0.28),
        0 0 0 2px rgba(255, 255, 255, 0.65) inset;
    transform: translateY(-1px);
}
html[data-theme="kids"] .mode-pick .mode-btn.is-self-mode {
    color: #6d28d9;
    border-color: rgba(167, 139, 250, 0.4);
}
html[data-theme="kids"] .mode-pick .mode-btn.is-self-mode.is-on {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    border-color: transparent;
    color: #f5f3ff;
    box-shadow:
        0 10px 22px rgba(124, 58, 237, 0.28),
        0 0 0 2px rgba(255, 255, 255, 0.65) inset;
    transform: translateY(-1px);
}

html[data-theme="kids"] .mode-pick .mode-btn.is-system-mode:not(.is-on):hover {
    border-color: rgba(20, 184, 166, 0.5);
    color: #0f766e;
    background: #f0fdfa;
}
html[data-theme="kids"] .mode-pick .mode-btn.is-self-mode:not(.is-on):hover {
    border-color: rgba(124, 58, 237, 0.5);
    color: #5b21b6;
    background: #f5f3ff;
}

html[data-theme="kids"] .btn-coral {
    background: linear-gradient(135deg, #ff5c7a, #ff8c42);
    color: #fff8f8;
}

html[data-theme="kids"] .alert {
    background: rgba(255, 92, 122, 0.1);
    border-color: rgba(255, 92, 122, 0.4);
    color: #be123c;
}

html[data-theme="kids"] .seg-btn.is-on {
    background: linear-gradient(180deg, #ffe0ef, #ffffff);
    box-shadow: 0 0 0 1px rgba(255, 107, 157, 0.4);
}

html[data-theme="kids"] .seg-btn.is-join-tab {
    color: #b45309;
}
html[data-theme="kids"] .seg-btn.is-join-tab.is-on {
    color: #3b1f0a;
    background: linear-gradient(135deg, #ffd166, #f59e0b);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}
html[data-theme="kids"] .seg-btn.is-create-tab {
    color: #6d28d9;
}
html[data-theme="kids"] .seg-btn.is-create-tab.is-on {
    color: #f5f3ff;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.32);
}

html[data-theme="kids"] .btn-join-group {
    background: linear-gradient(135deg, #ffd166, #f59e0b);
    color: #3b1f0a;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}
html[data-theme="kids"] .btn-create-group {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #f5f3ff;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
}

html[data-theme="kids"] .avatar-cat.is-on,
html[data-theme="kids"] .avatar-grid button.is-on {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.14);
    color: #9d174d;
}

html[data-theme="kids"] .guide-overlay,
html[data-theme="kids"] .rules-overlay,
html[data-theme="kids"] .logout-overlay {
    background: rgba(255, 182, 210, 0.42);
}

html[data-theme="kids"] .profile-overlay.is-open {
    background: rgba(255, 182, 210, 0.5);
}

html[data-theme="kids"] .guide-card {
    background: linear-gradient(180deg, #ffffff, #fff5fa);
    border-color: rgba(255, 107, 157, 0.35);
}

html[data-theme="kids"] .rules-sheet {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 140, 66, 0.16), transparent 55%),
        linear-gradient(180deg, #ffffff, #fff8f4);
    border-color: rgba(255, 140, 66, 0.28);
}

html[data-theme="kids"] .rules-head h2 { color: #9a3412; }
html[data-theme="kids"] .rules-label { color: #7c2d12; }
html[data-theme="kids"] .rules-value {
    color: #9a3412;
    background: linear-gradient(180deg, #ffe8d6, #fff4eb);
    border-color: rgba(255, 140, 66, 0.4);
}
html[data-theme="kids"] .rules-example {
    background: rgba(46, 196, 182, 0.1);
    border-color: rgba(46, 196, 182, 0.3);
}
html[data-theme="kids"] .rules-example p { color: #0f766e; }

html[data-theme="kids"] .logout-dialog {
    background:
        radial-gradient(ellipse 90% 70% at 50% -20%, rgba(255, 92, 122, 0.2), transparent 58%),
        linear-gradient(180deg, #fff7f8 0%, #ffffff 100%);
    border-color: rgba(255, 92, 122, 0.3);
    box-shadow: 0 28px 60px rgba(255, 105, 180, 0.22);
}

html[data-theme="kids"] .logout-title {
    color: #9d174d;
}

html[data-theme="kids"] .profile-sheet {
    scrollbar-color: rgba(255, 107, 157, 0.4) transparent;
}

html[data-theme="kids"] .profile-close {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 140, 200, 0.35);
    color: #7a6a9a;
}

html[data-theme="kids"] .leaderboard-sheet {
    border-color: rgba(255, 140, 200, 0.25);
    box-shadow: 0 -8px 40px rgba(255, 105, 180, 0.2);
}

html[data-theme="kids"] .afk-panel {
    color: var(--text);
}

html[data-theme="kids"] .profile-face {
    border-color: rgba(255, 140, 200, 0.35);
    box-shadow: 0 10px 28px rgba(255, 107, 157, 0.22);
}

html[data-theme="kids"] .capacity-bar-select option {
    background: #ffffff;
}

html[data-theme="kids"] .difficulty-track {
    background: rgba(255, 140, 200, 0.15);
}

html[data-theme="kids"] .lb-handle {
    background: rgba(255, 107, 157, 0.35);
}

html[data-theme="kids"] .leaderboard-head {
    border-bottom-color: rgba(255, 140, 200, 0.18);
}

html[data-theme="kids"] .lb-city-bar {
    border-bottom-color: rgba(255, 140, 200, 0.16);
}

html[data-theme="kids"] .lb-city-chip,
html[data-theme="kids"] .lb-scope-tabs {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 140, 200, 0.25);
    color: var(--text);
}

html[data-theme="kids"] .lb-city-chip.is-on {
    background: linear-gradient(135deg, #ffe0ef, #e8f9ff);
    border-color: rgba(255, 107, 157, 0.55);
    color: #9d174d;
}

html[data-theme="kids"] .lb-coin.is-bronze { background: rgba(184, 115, 51, 0.14); color: #a16207; }
html[data-theme="kids"] .lb-coin.is-silver { background: rgba(148, 163, 184, 0.2); color: #475569; }
html[data-theme="kids"] .lb-coin.is-gold { background: rgba(250, 204, 21, 0.22); color: #a16207; }

html[data-theme="kids"] .play-mode-block,
html[data-theme="kids"] .extra-words-block,
html[data-theme="kids"] .refresh-bar,
html[data-theme="kids"] .difficulty-box {
    background: linear-gradient(180deg, #ffffff, #fff7fb);
    border-color: rgba(255, 140, 200, 0.22);
}

html[data-theme="kids"] .play-mode-option {
    background: #ffffff;
    border-color: rgba(167, 139, 250, 0.25);
}

html[data-theme="kids"] .play-mode-option.is-on {
    border-color: rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, #ffe0ef, #e8f9ff);
}

html[data-theme="kids"] .play-mode-option:has(input:checked) {
    border-color: rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, #ffe0ef, #e8f9ff);
    box-shadow: 0 0 0 1px rgba(255, 107, 157, 0.12);
}

/* —— خلاصه این دست (پیش‌نمایش حالت بازی) —— */
html[data-theme="kids"] .play-mode-preview {
    border: 1px solid rgba(255, 140, 200, 0.28);
    background:
        linear-gradient(165deg, rgba(255, 224, 239, 0.55) 0%, transparent 46%),
        linear-gradient(180deg, #ffffff 0%, #fff8fc 100%);
    box-shadow:
        0 12px 28px rgba(255, 107, 157, 0.14),
        0 2px 8px rgba(76, 201, 240, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="kids"] .pm-brief-head {
    border-bottom: 1px solid rgba(255, 140, 200, 0.16);
    background:
        linear-gradient(120deg, rgba(255, 107, 157, 0.12), rgba(255, 209, 102, 0.12) 45%, rgba(76, 201, 240, 0.1));
}

html[data-theme="kids"] .pm-brief.is-timed .pm-brief-head {
    background:
        linear-gradient(120deg, rgba(255, 140, 66, 0.16), rgba(255, 209, 102, 0.14) 50%, rgba(255, 107, 157, 0.1));
}

html[data-theme="kids"] .pm-brief.is-quota .pm-brief-head {
    background:
        linear-gradient(120deg, rgba(46, 196, 182, 0.14), rgba(76, 201, 240, 0.12) 50%, rgba(167, 139, 250, 0.1));
}

html[data-theme="kids"] .pm-brief-kicker {
    color: #e11d78;
    letter-spacing: 0.04em;
}

html[data-theme="kids"] .pm-brief-title {
    color: #3b2166;
}

html[data-theme="kids"] .pm-brief-badge {
    background: linear-gradient(160deg, #fff3c4, #ffe0ef);
    border: 1px solid rgba(255, 107, 157, 0.35);
    box-shadow: 0 6px 14px rgba(255, 107, 157, 0.16);
}

html[data-theme="kids"] .pm-brief-badge::before {
    border-color: rgba(255, 140, 66, 0.35);
}

html[data-theme="kids"] .pm-brief-badge-num {
    color: #c0266b;
}

html[data-theme="kids"] .pm-brief-badge-unit {
    color: #7c3aed;
    letter-spacing: 0.06em;
}

html[data-theme="kids"] .pm-brief-grid {
    gap: 8px;
    padding: 10px;
    background: transparent;
}

html[data-theme="kids"] .pm-brief-metric {
    background: #ffffff;
    border: 1px solid rgba(255, 140, 200, 0.18);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(255, 140, 200, 0.08);
    padding: 12px 12px 13px;
    position: relative;
    overflow: hidden;
}

html[data-theme="kids"] .pm-brief-metric::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

html[data-theme="kids"] .pm-brief-metric:nth-child(1)::before {
    background: linear-gradient(90deg, #ff6b9d, #ff8c42);
}

html[data-theme="kids"] .pm-brief-metric:nth-child(2)::before {
    background: linear-gradient(90deg, #4cc9f0, #2ec4b6);
}

html[data-theme="kids"] .pm-brief-metric:nth-child(3)::before {
    background: linear-gradient(90deg, #ffd166, #ff8c42);
}

html[data-theme="kids"] .pm-brief-metric:nth-child(4)::before {
    background: linear-gradient(90deg, #a78bfa, #ff6b9d);
}

html[data-theme="kids"] .pm-brief-metric:nth-child(1) {
    background: linear-gradient(180deg, #fff7fb, #ffffff);
}

html[data-theme="kids"] .pm-brief-metric:nth-child(2) {
    background: linear-gradient(180deg, #f0fbfd, #ffffff);
}

html[data-theme="kids"] .pm-brief-metric:nth-child(3) {
    background: linear-gradient(180deg, #fffbeb, #ffffff);
}

html[data-theme="kids"] .pm-brief-metric:nth-child(4) {
    background: linear-gradient(180deg, #f8f5ff, #ffffff);
}

html[data-theme="kids"] .pm-brief-label {
    color: #8b7aa8;
}

html[data-theme="kids"] .pm-brief-value {
    color: #2d2150;
}

html[data-theme="kids"] .pm-brief-sub {
    color: #9a89b5;
}

html[data-theme="kids"] .word-row {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 140, 200, 0.2);
}

html[data-theme="kids"] .word-row.is-in-dict .word-row-input {
    background: rgba(6, 214, 160, 0.12);
    border-color: rgba(46, 196, 182, 0.45);
}

html[data-theme="kids"] .word-row.is-rule-bad .word-row-input,
html[data-theme="kids"] .word-row.is-len-short .word-row-input {
    background: rgba(255, 92, 122, 0.1);
}

html[data-theme="kids"] .word-row.is-dup .word-row-input {
    background: rgba(167, 139, 250, 0.12);
}

html[data-theme="kids"] .iran-map-tip {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(255, 107, 157, 0.35);
    color: var(--text);
}

html[data-theme="kids"] .iran-map-tip-ranks {
    color: rgba(45, 33, 80, 0.9);
}

html[data-theme="kids"] .iran-map-svg-wrap g.province > a path {
    stroke: rgba(45, 33, 80, 0.55);
    fill: #ffb4d4;
    fill-opacity: 0.18;
}

html[data-theme="kids"] .iran-map-svg-wrap g.province > a path.is-hot {
    stroke: #ff6b9d;
}

html[data-theme="kids"] .iran-map-svg-wrap g.sea path,
html[data-theme="kids"] .iran-map-svg-wrap g.lake path {
    fill: #4cc9f0;
    fill-opacity: 0.45;
}

html[data-theme="kids"] .switch {
    background: rgba(167, 139, 250, 0.25);
}

html[data-theme="kids"] .switch.is-on {
    background: var(--mint);
}

html[data-theme="kids"] .ready-toggle.is-waiting {
    border-color: rgba(255, 92, 122, 0.65);
    background: linear-gradient(160deg, rgba(255, 92, 122, 0.18), rgba(255, 255, 255, 0.92));
    box-shadow:
        0 0 0 3px rgba(255, 92, 122, 0.2),
        0 0 20px rgba(255, 92, 122, 0.32);
}

html[data-theme="kids"] .ready-toggle.is-waiting > span {
    color: #e11d48;
}

html[data-theme="kids"] .ready-toggle.is-ready {
    border-color: rgba(46, 196, 182, 0.7);
    background: linear-gradient(160deg, rgba(46, 196, 182, 0.2), rgba(255, 255, 255, 0.95));
    box-shadow:
        0 0 0 3px rgba(46, 196, 182, 0.22),
        0 0 22px rgba(46, 196, 182, 0.38);
}

html[data-theme="kids"] .ready-toggle.is-ready > span {
    color: #0d9488;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="kids"] .ready-toggle,
    html[data-theme="kids"] .ready-toggle > span,
    html[data-theme="kids"] .ready-toggle .switch,
    html[data-theme="kids"] .ready-toggle .switch::after {
        transition-duration: 0.01ms !important;
    }
}

html[data-theme="kids"] .mode-switch-plain {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 140, 200, 0.28);
}

html[data-theme="kids"] .mode-switch-plain > span {
    color: #3b2166;
    font-weight: 700;
}

html[data-theme="kids"] .rule-panel {
    background: linear-gradient(180deg, #ffffff, #fff8fc);
    border: 1px solid rgba(255, 140, 200, 0.28);
    box-shadow: 0 8px 20px rgba(255, 140, 200, 0.08);
}

html[data-theme="kids"] .rule-panel-title {
    color: #6d28d9;
    font-weight: 800;
}

html[data-theme="kids"] .rule-ui-mode-btn {
    background: #ffffff;
    border-color: rgba(167, 139, 250, 0.4);
    color: #5b21b6;
}

html[data-theme="kids"] .rule-ui-mode-btn.is-on {
    background: linear-gradient(135deg, #ffe0ef, #e8f9ff);
    border-color: rgba(255, 107, 157, 0.55);
    color: #9d174d;
    box-shadow: 0 0 0 1px rgba(255, 107, 157, 0.12);
}

html[data-theme="kids"] .rule-ui-mode-hint {
    color: #6b5b8a;
}

html[data-theme="kids"] .rule-sentence-box {
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    border: 1px solid rgba(255, 140, 200, 0.28);
    box-shadow: 0 4px 12px rgba(255, 140, 200, 0.06);
}

html[data-theme="kids"] .rule-sentence-row {
    background: transparent;
    border: 0;
    color: #2d2150;
}

html[data-theme="kids"] .rule-sentence-label {
    color: #3b2166;
    font-weight: 800;
    font-size: 0.9rem;
}

html[data-theme="kids"] .rule-lock-hint {
    color: #7c3aed;
    font-weight: 600;
}

html[data-theme="kids"] .mode-toggle-wrap {
    border-color: rgba(46, 196, 182, 0.4);
    box-shadow: 0 0 0 1px rgba(46, 196, 182, 0.08);
}

html[data-theme="kids"] .mode-toggle-wrap button {
    background: #f8f5ff;
    color: #6b5b8a;
}

html[data-theme="kids"] .mode-toggle-wrap button.mode-btn-yes.is-active {
    background: linear-gradient(180deg, #d8faf5, #b8f0e8);
    color: #0f766e;
    font-weight: 800;
}

html[data-theme="kids"] .mode-toggle-wrap button.mode-btn-no.is-active {
    background: linear-gradient(180deg, #ffe4ea, #ffd0da);
    color: #be123c;
    font-weight: 800;
}

html[data-theme="kids"] .mode-toggle-wrap.is-locked-mode button.mode-btn-yes {
    background: linear-gradient(180deg, #d8faf5, #b8f0e8);
    color: #0f766e;
}

html[data-theme="kids"] .soft-select--char .soft-select-trigger {
    color: #2d2150;
    font-weight: 800;
}

html[data-theme="kids"] .rule-lamp > span,
html[data-theme="kids"] .state-switch {
    color: #5b21b6;
}

html[data-theme="kids"] .word-mode-label {
    color: #3b2166;
    font-weight: 700;
}

html[data-theme="kids"] .matched-words-preview,
html[data-theme="kids"] .dict-count-box {
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    border-color: rgba(255, 140, 200, 0.22);
}

html[data-theme="kids"] .foot {
    color: rgba(122, 106, 154, 0.7);
}

/* —— بنر سهمیه کلمات —— */
html[data-theme="kids"] .quota-banner {
    background: linear-gradient(135deg, #d8faf5 0%, #e8f9ff 55%, #fff3c4 100%);
    border: 1px solid rgba(14, 148, 136, 0.4);
    color: #115e59;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow:
        0 6px 16px rgba(46, 196, 182, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="kids"] .play-card > .hint {
    color: #5b21b6;
    font-weight: 600;
}

html[data-theme="kids"] .picker-live {
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 107, 157, 0.22), transparent 58%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(46, 196, 182, 0.16), transparent 50%),
        linear-gradient(180deg, #fff8fc, #eef9ff);
    border-color: rgba(255, 107, 157, 0.35);
}

html[data-theme="kids"] .picker-live-avatar {
    background: linear-gradient(165deg, #ffffff, #ffe8f3);
    border-color: rgba(255, 107, 157, 0.55);
}

html[data-theme="kids"] .picker-chip {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 107, 157, 0.22);
}

html[data-theme="kids"] .play-heart {
    color: #ff6b9d;
}

/* —— قانون این دست (صفحه بازی) —— */
html[data-theme="kids"] .hand-rule {
    --hr-accent: #ff6b9d;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 107, 157, 0.18), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(46, 196, 182, 0.14), transparent 50%),
        linear-gradient(165deg, #ffffff 0%, #fff5fa 48%, #eef9ff 100%);
    border: 1px solid rgba(255, 107, 157, 0.35);
    box-shadow:
        0 14px 32px rgba(255, 107, 157, 0.16),
        0 2px 8px rgba(76, 201, 240, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="kids"] .hand-rule-mark {
    background: radial-gradient(circle at 35% 35%, #ffe0ef, #ff6b9d 55%, #e11d78);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.18);
}

html[data-theme="kids"] .hand-rule-label {
    color: #6d28d9;
    font-size: 1.02rem;
    letter-spacing: 0;
}

html[data-theme="kids"] .hand-rule-diff {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(167, 139, 250, 0.28);
}

html[data-theme="kids"] .hand-rule-diff-label {
    color: #7c3aed;
}

html[data-theme="kids"] .hand-rule-diff-track {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.22);
}

html[data-theme="kids"] .hand-rule-pattern {
    background: #ffffff;
    border: 1px solid rgba(255, 140, 200, 0.28);
    box-shadow: 0 4px 14px rgba(255, 140, 200, 0.1);
    gap: 6px;
    padding: 12px 10px;
}

html[data-theme="kids"] .hand-rule-axis-plus {
    color: #ff6b9d;
    opacity: 0.9;
    font-size: 1.25rem;
}

html[data-theme="kids"] .hand-rule-axis {
    gap: 8px;
    padding: 8px 6px;
    border-radius: 12px;
    border: 1px solid transparent;
    min-height: 64px;
}

html[data-theme="kids"] .hand-rule-axis-title {
    color: #8b7aa8;
    font-size: 0.76rem;
    font-weight: 700;
}

html[data-theme="kids"] .hand-rule-axis-value {
    color: #2d2150;
    font-size: 1.2rem;
}

html[data-theme="kids"] .hand-rule-axis.is-any {
    background: #f7f3fb;
    border-color: rgba(167, 139, 250, 0.18);
}

html[data-theme="kids"] .hand-rule-axis.is-any .hand-rule-axis-title {
    color: #9a89b5;
}

html[data-theme="kids"] .hand-rule-axis.is-any .hand-rule-axis-value {
    color: #7a6a9a;
    font-size: 0.9rem;
    font-weight: 700;
}

html[data-theme="kids"] .hand-rule-axis.is-active {
    background: linear-gradient(180deg, #d8faf5, #eafffa);
    border: 2px solid rgba(14, 148, 136, 0.55);
    box-shadow:
        0 6px 16px rgba(46, 196, 182, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="kids"] .hand-rule-axis.is-active .hand-rule-axis-title {
    color: #0f766e;
    font-weight: 800;
}

html[data-theme="kids"] .hand-rule-axis.is-active .hand-rule-axis-value {
    color: #115e59;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

html[data-theme="kids"] .hand-rule-axis.is-forbid {
    background: linear-gradient(180deg, #ffe4ea, #fff7f8);
    border: 2px solid rgba(225, 29, 72, 0.4);
    box-shadow: 0 6px 16px rgba(255, 92, 122, 0.16);
}

html[data-theme="kids"] .hand-rule-axis.is-forbid .hand-rule-axis-title,
html[data-theme="kids"] .hand-rule-axis.is-forbid .hand-rule-axis-value {
    color: #be123c;
}

html[data-theme="kids"] .hand-rule-axis.is-forbid .hand-rule-axis-value {
    font-size: 1.55rem;
}

html[data-theme="kids"] .hand-rule-form {
    background: linear-gradient(135deg, #d8faf5, #e8f9ff);
    border: 1px solid rgba(14, 148, 136, 0.35);
    box-shadow: 0 4px 12px rgba(46, 196, 182, 0.12);
    padding: 12px 14px;
}

html[data-theme="kids"] .hand-rule-form-label {
    color: #0f766e;
    font-weight: 700;
    font-size: 0.82rem;
}

html[data-theme="kids"] .hand-rule-form-value {
    color: #115e59;
    font-size: 0.98rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(14, 148, 136, 0.25);
    border-radius: 999px;
    padding: 5px 12px;
}

html[data-theme="kids"] .hand-rule-form.is-single {
    background: linear-gradient(135deg, #fff3c4, #ffe0ef);
    border-color: rgba(255, 107, 157, 0.4);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.14);
}

html[data-theme="kids"] .hand-rule-form.is-single .hand-rule-form-label {
    color: #c0266b;
}

html[data-theme="kids"] .hand-rule-form.is-single .hand-rule-form-value {
    color: #9d174d;
    border-color: rgba(255, 107, 157, 0.35);
}

html[data-theme="kids"] .hand-rule-form.is-multi {
    background: linear-gradient(135deg, #d8faf5, #e8f9ff);
    border-color: rgba(14, 148, 136, 0.4);
}

html[data-theme="kids"] .hand-rule-form.is-both {
    background: linear-gradient(135deg, #d8faf5 0%, #e8f9ff 50%, #ffe0ef 100%);
    border-color: rgba(14, 148, 136, 0.35);
}

html[data-theme="kids"] .hand-rule-item {
    background: #ffffff;
    border: 1px solid rgba(255, 140, 200, 0.22);
    color: #2d2150;
    box-shadow: 0 3px 10px rgba(255, 140, 200, 0.08);
}

html[data-theme="kids"] .hand-rule-ico {
    color: #ff6b9d;
}

html[data-theme="kids"] .hand-rule-item-meta {
    color: #c0266b;
}

html[data-theme="kids"] .hand-rule-item.is-letter {
    background: linear-gradient(105deg, #fff3c4, #ffe0ef 55%, #ffffff);
    border-color: rgba(255, 107, 157, 0.35);
}

html[data-theme="kids"] .hand-rule-letter {
    color: #3b1f4a;
    background: linear-gradient(145deg, #fff3c4, #ff8c42 55%, #ff6b9d);
    box-shadow:
        0 6px 14px rgba(255, 107, 157, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="kids"] .hand-rule-item.is-forbid {
    background: linear-gradient(105deg, #ffe4ea, #fff7f8);
    border-color: rgba(225, 29, 72, 0.3);
}

html[data-theme="kids"] .hand-rule-item.is-forbid .hand-rule-letter {
    color: #fff8f8;
    background: linear-gradient(145deg, #ff8a9a, #e11d48);
    box-shadow: 0 6px 14px rgba(255, 92, 122, 0.28);
}

html[data-theme="kids"] .hand-rule-item.is-forbid .hand-rule-ico,
html[data-theme="kids"] .hand-rule-item.is-forbid .hand-rule-item-meta {
    color: #e11d48;
}

html[data-theme="kids"] .hand-rule-item.is-form {
    background: linear-gradient(180deg, #eafffa, #ffffff);
    border-color: rgba(14, 148, 136, 0.28);
}

html[data-theme="kids"] .hand-rule-item.is-form .hand-rule-ico {
    color: #0d9488;
}

html[data-theme="kids"] .hand-rule-item.is-tag {
    background: linear-gradient(180deg, #f8f5ff, #ffffff);
    border-color: rgba(167, 139, 250, 0.28);
}

html[data-theme="kids"] .hand-rule-item.is-length {
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    border-color: rgba(255, 140, 200, 0.28);
}

html[data-theme="kids"] .hand-rule-range-val {
    color: #c0266b;
}

html[data-theme="kids"] .hand-rule-range-track {
    background: rgba(255, 140, 200, 0.18);
}

html[data-theme="kids"] .hand-rule-range-fill {
    background: linear-gradient(90deg, #ff6b9d, #ff8c42, #ffd166);
}

html[data-theme="kids"] .hand-rule-range-dot {
    background: #ffffff;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

html[data-theme="kids"] .hand-rule-range-caption {
    color: #8b7aa8;
}

/* باتن تغییر تم (در هر دو تم) */
.user-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-theme {
    height: 34px;
    min-width: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(232, 165, 75, 0.45);
    background: linear-gradient(180deg, rgba(232, 165, 75, 0.22), rgba(232, 165, 75, 0.08));
    color: #fff3df;
    font: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(232, 165, 75, 0.18);
    white-space: nowrap;
}

.btn-theme:hover {
    border-color: rgba(232, 165, 75, 0.75);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 165, 75, 0.28);
}

html[data-theme="kids"] .round-results-card {
    background: linear-gradient(165deg, #fff8ff 0%, #f8fbff 50%, #ffffff 100%);
}

html[data-theme="kids"] .result-player-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(167, 139, 250, 0.22);
    box-shadow: 0 10px 24px rgba(167, 139, 250, 0.12);
}

html[data-theme="kids"] .result-player-card.is-winner {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(155deg, rgba(209, 250, 229, 0.95), rgba(255, 255, 255, 0.92));
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.16);
}

html[data-theme="kids"] .result-player-total-value {
    color: #c2410c;
}

html[data-theme="kids"] .result-player-card.is-winner .result-player-total-value {
    color: #059669;
    text-shadow: none;
}

html[data-theme="kids"] .result-metric {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(167, 139, 250, 0.14);
}

html[data-theme="kids"] .result-word-chip.is-scored {
    background: rgba(209, 250, 229, 0.75);
    border-color: rgba(16, 185, 129, 0.28);
}

/* تقویم — تم کودکان */
html[data-theme="kids"] .cal-sheet {
    border-color: rgba(255, 140, 200, 0.28);
    box-shadow: 0 -8px 40px rgba(255, 105, 180, 0.2);
}

html[data-theme="kids"] .cal-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 140, 200, 0.3);
}

html[data-theme="kids"] .cal-cell.is-future {
    opacity: 0.55;
}

html[data-theme="kids"] .btn-calendar {
    border-color: rgba(255, 140, 66, 0.45);
    background: linear-gradient(180deg, rgba(255, 214, 102, 0.55), rgba(255, 140, 66, 0.22));
    color: #7c2d12;
    box-shadow: 0 4px 14px rgba(255, 140, 66, 0.18);
}

html[data-theme="kids"] .btn-calendar:hover {
    border-color: rgba(255, 107, 157, 0.55);
}

.btn-theme:active {
    transform: scale(0.97);
}
