/* ۴.۳۳: رنگ‌های روز و شب (متغیرها) — صفحهٔ ربات، اتاق بازی/کلاس و پنجرهٔ گفتگو */
:root{--bg:#eef1ec;--card:#ffffff;--tx:#18211b;--mu:#5f6b63;--bd:#dfe4dc;--soft:#f5f7f3;--in:#ffffff;--sq-l:#eceed4;--sq-d:#5d8a63;--sq-ink-d:#f4f7ef;--brass:#a8781f;color-scheme:light}
html[data-theme=dark]{--bg:#0e1612;--card:#16211b;--tx:#e3ebe4;--mu:#93a398;--bd:#26362c;--soft:#1b2922;--in:#101a15;--sq-l:#3b5646;--sq-d:#1b2a21;--sq-ink-d:#e3ebe4;--brass:#d6a64a;color-scheme:dark}
html[data-theme=dark] body{background:var(--bg)!important;color:var(--tx)!important}
html[data-theme=dark] .card,html[data-theme=dark] .lbk,html[data-theme=dark] .ov>div,html[data-theme=dark] .ovb,html[data-theme=dark] .modal,html[data-theme=dark] .tabs button:not(.on),html[data-theme=dark] .qtc button:not(.on){background:var(--card)!important;color:var(--tx)!important;border-color:var(--bd)!important}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:var(--in)!important;color:var(--tx)!important;border-color:var(--bd)!important}
html[data-theme=dark] .hint,html[data-theme=dark] small,html[data-theme=dark] .muted{color:var(--mu)}
html[data-theme=dark] label{color:var(--tx)}
html[data-theme=dark] .btn.g,html[data-theme=dark] .b.g{background:#24352b!important;color:var(--tx)!important}
html[data-theme=dark] table td,html[data-theme=dark] table th,html[data-theme=dark] tr{border-color:var(--bd)!important}
html[data-theme=dark] th{background:var(--soft)!important;color:var(--mu)!important}
html[data-theme=dark] tr:hover td{background:#1d2b23!important}
html[data-theme=dark] [style*="background:#fff"],html[data-theme=dark] [style*="background: #fff"],html[data-theme=dark] [style*="background:#ffffff"]{background:var(--card)!important}
html[data-theme=dark] [style*="background:#f9fafb"],html[data-theme=dark] [style*="background:#f8fafc"],html[data-theme=dark] [style*="background:#f3f4f6"],html[data-theme=dark] [style*="background:#f1f5f9"],html[data-theme=dark] [style*="background:#f5f6fa"],html[data-theme=dark] [style*="background:#eef0f4"],html[data-theme=dark] [style*="background:#e5e7eb"]{background:var(--soft)!important}
html[data-theme=dark] [style*="background:#eff6ff"],html[data-theme=dark] [style*="background:#eef2ff"],html[data-theme=dark] [style*="background:#e0ecff"]{background:#16263a!important}
html[data-theme=dark] [style*="background:#ecfdf5"],html[data-theme=dark] [style*="background:#dcfce7"],html[data-theme=dark] [style*="background:#f0fdf4"],html[data-theme=dark] [style*="background:#bbf7d0"]{background:#123321!important}
html[data-theme=dark] [style*="background:#fff7ed"],html[data-theme=dark] [style*="background:#fffbeb"],html[data-theme=dark] [style*="background:#fef3c7"],html[data-theme=dark] [style*="background:#fef9c3"]{background:#33280f!important}
html[data-theme=dark] [style*="background:#fee2e2"],html[data-theme=dark] [style*="background:#fef2f2"],html[data-theme=dark] [style*="background:#fecaca"]{background:#3a1717!important}
html[data-theme=dark] [style*="color:#111"],html[data-theme=dark] [style*="color:#222"],html[data-theme=dark] [style*="color:#1f2937"],html[data-theme=dark] [style*="color:#374151"],html[data-theme=dark] [style*="color:#334"]{color:var(--tx)!important}
html[data-theme=dark] [style*="color:#6b7280"],html[data-theme=dark] [style*="color:#64748b"],html[data-theme=dark] [style*="color:#666"],html[data-theme=dark] [style*="color:#475569"]{color:var(--mu)!important}
html[data-theme=dark] [style*="border:1px solid #e5e7eb"],html[data-theme=dark] [style*="border:1px solid #ddd"],html[data-theme=dark] [style*="border-bottom:1px solid #eee"],html[data-theme=dark] [style*="border:1px solid #d1d5db"]{border-color:var(--bd)!important}
html[data-theme=dark] a{color:#8fc1ff}
.thm{border:1px solid currentColor;background:transparent;color:inherit;border-radius:50%;width:34px;height:34px;font-size:17px;line-height:1;cursor:pointer;opacity:.85;display:inline-flex;align-items:center;justify-content:center;padding:0}.thm:hover{opacity:1}.thm:focus-visible{outline:2px solid currentColor;outline-offset:2px}
html[data-theme=dark] .cma .bx,html[data-theme=dark] .cma .ov>div,html[data-theme=dark] .cma .ctabs button:not(.on){background:var(--card)!important;border-color:var(--bd)!important;color:var(--tx)}
html[data-theme=dark] .cma .cards div,html[data-theme=dark] .cma .mx .gr td{background:var(--soft)!important;color:var(--mu)}html[data-theme=dark] .cma .cards b,html[data-theme=dark] .cma td{color:var(--tx)}
