/* ❄️ Qishki mavzu «Muz shisha» (Kirill tanlagan 3-variant, 03.12).
   Faqat <html class="th-winter"> bo'lganda ishlaydi; admin: «❄️ Зимняя тема» (winter_on). Hamma narsa o'zgaruvchilar va ustki qatlam orqali —
   asosiy CSS ga tegilmaydi, o'chirilsa ilova avvalgidek bo'ladi. */
html.th-winter{
 --bg:#0c2846;--s1:#12355c;--s2:#164070;--s3:#1d4d84;--ln:#ffffff26;--ln2:#ffffff44;--mu:#a9c7e6;--tx:#f2f8ff;
 --f1:#7dd3fc;--f2:#3b82f6;
 --fire:linear-gradient(135deg,#38bdf8,#2563eb 55%,#6366f1);
 --fireh:linear-gradient(90deg,#e0f2fe,#7dd3fc,#38bdf8,#818cf8);
 --frost:radial-gradient(70px 46px at 0 0,#ffffff3d,transparent 70%),radial-gradient(56px 38px at 100% 100%,#ffffff24,transparent 70%);
 --glass:linear-gradient(160deg,#ffffff24,#ffffff0b);
}
html.th-winter body{background:radial-gradient(100% 60% at 50% -20%,#bfe3ff40,transparent 60%),linear-gradient(180deg,#0b2a4a 0%,#123a63 45%,#0c2846 100%) fixed!important}
html.th-winter #bgfx .bl{opacity:0!important}
html.th-winter #bgfx .gridf{opacity:.25}

/* kartalar — muzlagan shisha, burchaklarda qirov */
html.th-winter .card,html.th-winter .gt,html.th-winter .lbr,html.th-winter .tile{background:var(--frost),var(--glass),#123a63cc!important;border-color:#ffffff4d!important;box-shadow:inset 0 1px 0 #ffffff5c,0 10px 26px #02122655!important}
html.th-winter .game{background:var(--frost),radial-gradient(120% 90% at 50% 0,color-mix(in srgb,var(--ac) 22%,transparent),transparent 62%),var(--glass),#123a63!important;border-color:#ffffff4d!important}
html.th-winter .wcard{background:var(--frost),radial-gradient(260px 180px at 100% 0,#38bdf855,transparent 70%),radial-gradient(260px 200px at 0 100%,#818cf855,transparent 70%),linear-gradient(160deg,#164a7e,#0d2c50)!important;border-color:#ffffff55!important}
html.th-winter .sheet{background:var(--frost),linear-gradient(180deg,#16406e,#0b2442)!important;border-color:#ffffff4d!important}
html.th-winter .rcbox:not(.cxbox){border-color:#ffffff55}

/* tugmalar */
html.th-winter .btn{background:linear-gradient(180deg,#1f5592,#173f6e)!important;border-color:#ffffff40!important;box-shadow:inset 0 1px 0 #ffffff33,0 4px 14px #02122666!important}
html.th-winter .btn.go{background:var(--fire)!important;border-color:transparent!important;box-shadow:0 8px 26px #2563eb55,inset 0 1px 0 #ffffff59,inset 0 -3px 0 #00000026!important}
html.th-winter .btn.ton{background:linear-gradient(135deg,#7dd3fc,#2f9ef2)!important}
html.th-winter .opt{background:#164070!important}
html.th-winter .opt.on{background:linear-gradient(135deg,#38bdf833,#6366f122)!important;border-color:#7dd3fc!important;box-shadow:0 0 18px #38bdf844,inset 0 1px 0 #ffffff33!important}
html.th-winter .chip.on{background:linear-gradient(135deg,#38bdf838,#6366f128)!important;border-color:#7dd3fcaa!important}
html.th-winter .seg{background:#0f2f52cc!important}
html.th-winter .seg button.on{background:linear-gradient(180deg,#2a62a0,#1d4d84)!important;box-shadow:inset 0 1px 0 #ffffff40,0 3px 10px #0006!important}
html.th-winter .lbt.on{box-shadow:0 6px 18px #2563eb55,inset 0 1px 0 #ffffff40!important}

/* tepa panel, balans, pastki menyu */
html.th-winter .balp{background:linear-gradient(180deg,#ffffff33,#ffffff14)!important;border-color:#ffffffaa!important;box-shadow:0 0 0 1px #bae6fd44,0 8px 26px #38bdf840!important}
html.th-winter .nav{background:#0d2c4cf2!important;border-color:#ffffff55!important}
html.th-winter .nav .on{background:linear-gradient(180deg,#38bdf82e,#6366f114)!important}
html.th-winter .nav .on::before{box-shadow:0 0 14px #7dd3fc!important}

/* avatar ustida Qorbobo qalpog'i */
html.th-winter header .ava{position:relative;overflow:visible!important}
html.th-winter header .ava::before{content:"";position:absolute;left:-8px;top:-15px;width:36px;height:26px;z-index:4;transform:rotate(-18deg);pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 26'%3E%3Cpath d='M4 20Q10 2 26 4Q33 6 32 14L22 12Q14 12 8 21Z' fill='%23e11d48'/%3E%3Crect x='2' y='17' width='24' height='7' rx='3.5' fill='%23fff'/%3E%3Ccircle cx='32' cy='15' r='4' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat}

/* pastda qor uyumi (faqat asosiy ekranlarda; o'yin oynalari ustida emas) */
html.th-winter body::after{content:"";position:fixed;left:0;right:0;bottom:0;height:64px;pointer-events:none;z-index:1;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 64' preserveAspectRatio='none'%3E%3Cpath d='M0 38Q60 10 130 30T260 24T400 32V64H0Z' fill='%23eaf5ff'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;opacity:.9}

/* o'yinlar: solo va PvP stol — fon muzli, qirov burchaklar */
html.th-winter #solo{background:radial-gradient(560px 380px at 50% -40px,color-mix(in srgb,var(--sc) 24%,transparent),transparent 72%),radial-gradient(100% 50% at 50% -10%,#bfe3ff30,transparent 60%),linear-gradient(180deg,#0b2a4a,#0c2846)!important}
html.th-winter #table{background:radial-gradient(520px 380px at 50% 0,var(--tc,#38bdf844),transparent 70%),radial-gradient(100% 50% at 50% -10%,#bfe3ff30,transparent 60%),linear-gradient(180deg,#0b2a4a,#0c2846)!important}
html.th-winter .sotabs{background:#ffffff14!important;border-color:#ffffff40!important}

/* qor yog'ishi (winter.js) — kartalar orqasida, matnni to'smaydi */
#snow{position:fixed;inset:0;pointer-events:none;z-index:0;display:none}
html.th-winter #snow{display:block}
@media (prefers-reduced-motion:reduce){#snow{display:none!important}}

/* ================= O'YIN SAHNALARI (03.12) ================= */
/* har bir o'yin sahnasida yengil CSS qor (winter.js .wsn qo'shadi) — canvas emas, telefonni yuklamaydi */
html.th-winter .sostage{border-color:#bfe3ff55!important}
.wsn{display:none}
html.th-winter .wsn{display:block;position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.85;
 background-image:radial-gradient(2px 2px at 20px 30px,#fff,transparent),radial-gradient(1.5px 1.5px at 80px 10px,#ffffffd9,transparent),radial-gradient(2.5px 2.5px at 50px 70px,#ffffffcc,transparent),radial-gradient(1.5px 1.5px at 100px 92px,#ffffffbb,transparent),radial-gradient(2px 2px at 8px 104px,#ffffffaa,transparent);
 background-size:120px 120px;animation:wsn 9s linear infinite}
html.th-winter .wsn::after{content:"";position:absolute;inset:0;background-image:radial-gradient(3px 3px at 40px 60px,#ffffffee,transparent),radial-gradient(2.5px 2.5px at 150px 20px,#ffffffcc,transparent),radial-gradient(3.5px 3.5px at 110px 150px,#ffffffbb,transparent);background-size:200px 200px;animation:wsn2 14s linear infinite;filter:blur(.4px)}
html.th-winter .wsn::before{content:"";position:absolute;left:0;right:0;top:-1px;height:11px;z-index:1;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 11' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V5Q112 10 104 6T88 7T72 5T56 8T40 6T24 7T8 5T0 6Z' fill='%23f1f7ff'/%3E%3C/svg%3E") top/100% 100%;filter:drop-shadow(0 2px 2px #0005)}
@keyframes wsn{to{background-position:30px 120px}}
@keyframes wsn2{to{background-position:-40px 200px}}
html.lite .wsn,html.lite .wsn::after{animation:none}

/* Raketa: qishki tun, shimol yog'dusi, qorli tog'lar (bulutlar canvas'da qor uyumi bo'ladi) */
html.th-winter .crw{background:
 radial-gradient(70% 30% at 30% 8%,#2dd4bf2e,transparent 70%),radial-gradient(60% 28% at 75% 14%,#a78bfa2a,transparent 70%),
 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V70L40 40L70 62L110 20L150 58L185 35L220 66L260 18L300 55L335 30L370 60L400 42V120Z' fill='%231e3f66'/%3E%3Cpath d='M110 20L124 34L116 32L104 30ZM260 18L276 33L266 31L252 29ZM40 40L52 51L44 49L34 46ZM335 30L348 42L340 40L328 38Z' fill='%23eaf4ff'/%3E%3C/svg%3E") bottom/100% 34% no-repeat,
 linear-gradient(180deg,#061229,#0b2547 60%,#123a63)!important;box-shadow:inset 0 0 90px #0008,0 24px 60px -24px #38bdf855!important}

/* Gonka: muzli osmon, palma o'rniga qorli archalar, yo'l chetida qor */
html.th-winter .rcsc{background:linear-gradient(180deg,#0b2547 0%,#1d4f86 50%,#6fa8d8 85%,#cfe6f7 100%)!important}
html.th-winter .rcsun{background:radial-gradient(circle,#ffffff 0 26%,#e0f2fe 40%,#bae6fd44 60%,transparent 70%)!important}
html.th-winter .rccity{filter:hue-rotate(170deg) saturate(.5) brightness(1.15)}
html.th-winter .rplm{display:none!important}
html.th-winter .rcsc::after{content:"";position:absolute;left:0;right:0;bottom:16px;height:46px;pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 46'%3E%3Crect x='22' y='36' width='4' height='10' fill='%235b3a1a'/%3E%3Cpath d='M8 38L24 14L40 38Z' fill='%23165a3a'/%3E%3Cpath d='M12 28L24 6L36 28Z' fill='%231c6b46'/%3E%3Cpath d='M17 18L24 2L31 18Z' fill='%23227a52'/%3E%3Cpath d='M16 18L24 2L32 18Q24 14 16 18ZM12 28Q18 22 24 24Q30 22 36 28Q30 25 24 26Q18 25 12 28Z' fill='%23f1f7ff'/%3E%3Crect x='72' y='38' width='3' height='8' fill='%235b3a1a'/%3E%3Cpath d='M62 40L73 22L84 40Z' fill='%23165a3a'/%3E%3Cpath d='M66 30L73 14L80 30Z' fill='%231c6b46'/%3E%3Cpath d='M66 30Q73 24 80 30Q73 27 66 30ZM69 20L73 14L77 20Q73 18 69 20Z' fill='%23f1f7ff'/%3E%3C/svg%3E") bottom/100px 46px repeat-x}
html.th-winter .rcwalk{background:linear-gradient(180deg,#ffffff,#cfe3f6)!important}
html.th-winter .rcl{background:linear-gradient(180deg,#2b3d57,#22324a)!important;box-shadow:inset 0 6px 10px -4px #0009,inset 6px 0 0 #eaf4ff,inset -6px 0 0 #eaf4ff!important}

/* G'ildirak, Bashnya, Kubik, Katta/Kichik, O'tish, Minalar, Plinko, Apgreyd — muzli fon */
html.th-winter .whw,html.th-winter .tww,html.th-winter .rlw,html.th-winter .htw,html.th-winter .xrw,html.th-winter .mgw,html.th-winter .plw,html.th-winter .ugw{
 background:radial-gradient(70% 40% at 50% 0%,#bfe3ff30,transparent 70%),radial-gradient(60% 40% at 50% 100%,#38bdf822,transparent 70%),linear-gradient(180deg,#0e2a4c,#0a2140)!important}
html.th-winter .whw{border-color:#fde68a55!important}
/* Shaxta: g'or devorida qirov */
html.th-winter .dgw{background:radial-gradient(80% 40% at 50% 0%,#bfe3ff26,transparent 70%),linear-gradient(180deg,#1a2a44,#101c30)!important}
/* qolgan binafsha joylar -> muz */
html.th-winter .mt:not(.g):not(.b):not(.bx){background:linear-gradient(180deg,#5a86b3,#2f5682)!important;box-shadow:inset 0 -5px 0 #0b223d88,inset 0 2px 0 #ffffffaa,inset 0 0 0 1px #dff0ff55,0 5px 12px #0006!important}
html.th-winter .mt:not(.g):not(.b):not(.bx)::after{content:"";position:absolute;left:10%;right:10%;top:3px;height:5px;border-radius:9px;background:#ffffffcc;pointer-events:none}
html.th-winter .twtop{background:linear-gradient(180deg,#e0f2fe,#38bdf8)!important}
html.th-winter .twt{background:linear-gradient(90deg,#3a6ea3 0 6px,#122e50 6px calc(100% - 6px),#3a6ea3 calc(100% - 6px))!important}
html.th-winter .twd{background:linear-gradient(180deg,#1f4a78,#132f52)!important;border-color:#bfe3ff66!important}
html.th-winter .rctk{background:linear-gradient(90deg,#1e4f86,#38bdf8 50%,#1e4f86)!important}
html.th-winter .rctop{background:linear-gradient(180deg,#0c2342,#0a1c36)!important}
html.th-winter .xrw{background:radial-gradient(70% 50% at 70% 10%,#bfe3ff26,transparent 70%),linear-gradient(180deg,#0e2a4c,#0a2140)!important}
html.th-winter .xst{background:linear-gradient(90deg,#eaf4ff,#bcd8f0)!important;border-right-color:#ffffff!important}
html.th-winter .xpl{background:radial-gradient(closest-side,#7dd3fcaa,transparent)!important}
html.th-winter .xd:not(.ok){background:radial-gradient(circle at 40% 35%,#5a86b3,#1f3f66)!important}
html.th-winter .xm{background:#123256!important;border-color:#bfe3ff44!important}
html.th-winter .xz{border-color:#ffffff33!important}
