/* 2026-11-03 «Зима 2026» v2 — seasonal event look. Graphite + purple + ice. Self-hosted art in /shop/winter/ (webp + svg).
   Animations are transform/opacity only (rays/sheen are pre-drawn gradients that rotate/translate); all off under reduced motion. */
:root { --tfw-ice: #d7ecff; --tfw-ice-2: #9fc8ff; --tfw-acc: var(--accent, #7c6cff); --tfw-vio: #8b6cff; --tfw-gold: #ffcf5a; --tfw-card: #16171f; --tfw-line: rgba(200,220,255,.10);
  --tfw-r-common: 170,182,205; --tfw-r-rare: 96,170,255; --tfw-r-epic: 168,112,255; --tfw-r-legendary: 255,196,72; }

/* ================= frost accents on the app chrome ================= */
.tf-winter #sendBtn, .tf-winter .up-primary, .tf-winter .tfs-buy, .tf-winter .gx-quest-btn, .tf-winter #shopBtn, .tf-winter .tfs-btn-primary {
  position: relative; box-shadow: inset 0 1px 0 rgba(235,245,255,.55), inset 0 -10px 16px -12px rgba(159,200,255,.6), 0 0 0 1px rgba(190,220,255,.16), 0 4px 16px -6px rgba(124,108,255,.55); }
.tf-winter .tfs-btn-primary::after, .tf-winter .up-primary::after { content: ''; position: absolute; left: 6px; right: 6px; top: -3px; height: 7px; pointer-events: none; border-radius: 6px 6px 3px 3px;
  background: radial-gradient(circle at 12% 100%, #f4f9ff 0 3px, transparent 3.5px), radial-gradient(circle at 30% 100%, #f4f9ff 0 4.5px, transparent 5px), radial-gradient(circle at 55% 100%, #f4f9ff 0 3.5px, transparent 4px), radial-gradient(circle at 78% 100%, #f4f9ff 0 4px, transparent 4.5px), linear-gradient(#f4f9ff, #f4f9ff) bottom / 100% 3px no-repeat; opacity: .9; filter: drop-shadow(0 1px 1px rgba(80,100,160,.35)); }
.tf-winter .server-icon.home-ico { box-shadow: inset 0 2px 0 rgba(235,245,255,.5), 0 0 0 2px rgba(159,200,255,.25), 0 0 18px rgba(124,108,255,.55); }
.tfw-hat-host { position: relative; overflow: visible !important; }
.tfw-hat { position: absolute; width: 32px; height: auto; top: -14px; right: -10px; transform: rotate(16deg); pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)) drop-shadow(0 0 6px rgba(167,155,255,.45)); animation: tfwHat 5s ease-in-out infinite; transform-origin: 30% 90%; }
@keyframes tfwHat { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(10deg); } }
.logo.tfw-hat-host .tfw-hat { width: 28px; top: -14px; left: 18px; right: auto; transform: rotate(-14deg); animation: none; }

/* frost vignette (snow.js #tfFrost): frost ferns in the corners, centre stays clear */
#tfFrost { background: url(/shop/winter/advent-bg.webp) center / cover no-repeat; opacity: .32; mix-blend-mode: screen;
  -webkit-mask: radial-gradient(130% 120% at 50% 45%, transparent 58%, #000 100%); mask: radial-gradient(130% 120% at 50% 45%, transparent 58%, #000 100%); }

/* ================= sidebar entry button ================= */
.tfw-btn { display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 9px; width: calc(100% - 16px); margin: 8px 8px 0; padding: 9px 11px; border-radius: 12px; border: 1px solid rgba(180,200,255,.28);
  background: linear-gradient(100deg, rgba(20,18,40,.55), rgba(20,18,40,.15)), url(/shop/winter/hero.webp) 60% 35% / 260% auto; color: #fff; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .2px; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(235,245,255,.25), 0 6px 18px -8px rgba(124,108,255,.8); text-shadow: 0 1px 2px rgba(0,0,0,.6); transition: transform .15s ease, box-shadow .15s ease; }
.tfw-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); animation: tfwSheen 5.5s ease-in-out infinite 1s; pointer-events: none; }
.tfw-btn svg { color: #e8f2ff; flex: 0 0 auto; filter: drop-shadow(0 0 4px rgba(159,200,255,.8)); }
.tfw-btn > span { flex: 1 1 auto; }
.tfw-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(235,245,255,.35), 0 10px 24px -8px rgba(124,108,255,.95); }
.tfw-btn b { margin-left: auto; min-width: 19px; height: 19px; border-radius: 10px; background: linear-gradient(180deg, #ff7a93, #ff3d64); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 10px rgba(255,80,120,.7); position: relative; z-index: 1; }
.tfw-btn b.hidden { display: none; }
@keyframes tfwSheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ================= modal ================= */
.tfw-modal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; background: radial-gradient(80% 70% at 50% 30%, rgba(40,30,90,.55), rgba(5,6,12,.82)); padding: 16px; }
.tfw-modal.open { display: flex; }
.tfw-card { position: relative; width: min(1000px, 100%); max-height: min(820px, calc(100vh - 32px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, rgba(14,14,26,.5), rgba(14,15,22,.96) 260px), url(/shop/winter/advent-bg.webp) center top / cover, var(--tfw-card);
  border: 1px solid rgba(190,210,255,.16); box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(124,108,255,.18), 0 0 80px -20px rgba(124,108,255,.5), inset 0 1px 0 rgba(220,236,255,.12); color: #eceef5; animation: tfwIn .28s cubic-bezier(.2,.9,.3,1.1); }
@keyframes tfwIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.tfw-head { position: relative; display: flex; align-items: flex-end; gap: 14px; padding: 22px 22px 14px; min-height: 128px; border-bottom: 1px solid var(--tfw-line); overflow: hidden; }
.tfw-head-art { position: absolute; inset: 0; background: url(/shop/winter/hero.webp) center 38% / cover; z-index: 0; }
.tfw-head-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,24,.88) 0%, rgba(12,11,24,.35) 55%, rgba(12,11,24,.6) 100%), linear-gradient(0deg, rgba(14,15,22,1) 0%, transparent 55%); }
.tfw-head > :not(.tfw-head-art) { position: relative; z-index: 1; }
.tfw-title { display: flex; align-items: center; gap: 14px; }
.tfw-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, #b9a8ff, #6a4cf0 55%, #3b2a9a); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -6px 12px rgba(30,10,90,.5), 0 0 0 1px rgba(200,190,255,.4), 0 8px 26px rgba(124,108,255,.65); }
.tfw-logo svg { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(220,235,255,.9)); animation: tfwSpin 16s linear infinite; }
@keyframes tfwSpin { to { transform: rotate(360deg); } }
.tfw-kick { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #b9d6ff; text-shadow: 0 0 8px rgba(120,170,255,.7); }
.tfw-title b { display: block; font-size: 30px; line-height: 1.05; font-weight: 900; letter-spacing: .3px;
  background: linear-gradient(180deg, #ffffff 0%, #e2ecff 45%, #a9c6ff 70%, #c7b6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(124,108,255,.55)); }
.tfw-title small { color: #c3c9de; font-size: 12.5px; }
.tfw-tabs { display: flex; gap: 4px; margin-left: auto; background: rgba(10,10,22,.55); padding: 5px; border-radius: 14px; border: 1px solid rgba(190,210,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tfw-tabs button { border: 0; background: none; color: #c3c8da; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.tfw-tabs button:hover { color: #fff; }
.tfw-tabs button.on { background: linear-gradient(135deg, #8b6cff, #5b7cff); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 14px rgba(124,108,255,.55); }
.tfw-x { border: 1px solid rgba(255,255,255,.1); background: rgba(10,10,22,.55); color: #e3e6f0; width: 36px; height: 36px; border-radius: 11px; font-size: 21px; line-height: 1; cursor: pointer; align-self: flex-start; }
.tfw-x:hover { background: rgba(255,255,255,.14); }
.tfw-body { padding: 18px 22px 22px; overflow: auto; position: relative; }
.tfw-empty { padding: 40px; text-align: center; color: var(--muted, #9aa0b4); }

/* ---- advent: header + progress ---- */
.tfw-adv-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.tfw-cnt { flex: 0 0 auto; padding: 10px 18px; border-radius: 16px; text-align: center; background: linear-gradient(160deg, rgba(139,108,255,.35), rgba(60,90,200,.18)); border: 1px solid rgba(180,165,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -10px rgba(124,108,255,.8); }
.tfw-cnt b { display: block; font-size: 30px; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 0 14px rgba(167,155,255,.8); } .tfw-cnt b i { font-style: normal; font-size: 15px; color: #b9b2ff; font-weight: 700; }
.tfw-cnt small { color: #d0caff; font-size: 11px; }
.tfw-prog-w { flex: 1; min-width: 0; }
.tfw-prog-w p { margin: 0 0 14px; color: #a9b0c6; font-size: 12.5px; line-height: 1.45; } .tfw-prog-w p b { color: #eef2ff; font-weight: 700; }
.tfw-prog { position: relative; height: 12px; border-radius: 8px; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(255,255,255,.05)); border: 1px solid rgba(190,210,255,.14); margin: 0 12px 16px 2px; }
.tfw-prog > i { position: absolute; inset: 1px; border-radius: 7px; transform-origin: left; background: linear-gradient(90deg, #6a4cf0, #8b6cff 45%, #9fc8ff 85%, #e8f4ff); box-shadow: 0 0 14px rgba(139,108,255,.8); overflow: hidden; }
.tfw-prog > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); animation: tfwSheen 3.6s ease-in-out infinite; }
.tfw-mk { position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center; color: #8c93ad; background: #1c1e2b; border: 1.5px solid rgba(190,210,255,.25); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tfw-mk svg { width: 15px; height: 15px; }
.tfw-mk em { position: absolute; top: 30px; font-style: normal; font-size: 10px; font-weight: 700; color: #8c93ad; }
.tfw-mk.on { color: #fff; background: radial-gradient(circle at 35% 30%, #c8b9ff, #7c5cff); border-color: #e2dbff; box-shadow: 0 0 14px rgba(139,108,255,.9); }
.tfw-mk.gold { color: #ffe39a; border-color: rgba(255,207,90,.7); background: radial-gradient(circle at 35% 30%, #5a4420, #2a2010); box-shadow: 0 0 14px rgba(255,190,60,.55); } .tfw-mk.gold em { color: #ffcf5a; }

/* ---- advent: doors ---- */
.tfw-doors { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.tfw-door { --g: 159,200,255; position: relative; aspect-ratio: 1 / .86; border-radius: 14px; isolation: isolate;
  border: 1px solid rgba(200,225,255,.16); color: #dfe8ff; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; cursor: default; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(170,200,255,.16), transparent 60%), linear-gradient(165deg, rgba(64,74,120,.55), rgba(26,28,46,.9) 60%), url(/shop/winter/advent-bg.webp) center / 300% auto;
  box-shadow: inset 0 1px 0 rgba(235,245,255,.22), inset 0 -10px 22px -14px rgba(159,200,255,.35), 0 6px 16px -8px rgba(0,0,0,.7); transition: transform .18s ease, box-shadow .18s ease; }
/* frosted ice texture + crystalline edge */
.tfw-door::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 1px, transparent 1.6px), radial-gradient(circle at 78% 30%, rgba(255,255,255,.4) 0 1px, transparent 1.6px), radial-gradient(circle at 40% 82%, rgba(255,255,255,.35) 0 .8px, transparent 1.4px),
    linear-gradient(125deg, transparent 0 30%, rgba(255,255,255,.10) 31%, transparent 34% 62%, rgba(255,255,255,.07) 63%, transparent 66%),
    conic-gradient(from 210deg at 0 0, rgba(225,240,255,.35), transparent 22%), conic-gradient(from 30deg at 100% 100%, rgba(225,240,255,.22), transparent 18%); }
.tfw-dn { font-size: 22px; font-weight: 900; letter-spacing: .3px; line-height: 1; background: linear-gradient(180deg, #fff, #cfe2ff 60%, #9fb9ef); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 4px rgba(120,160,255,.55)); }
.tfw-door small { font-size: 10.5px; font-weight: 600; color: #a7b2cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; position: relative; }
.tfw-door .tfw-ic { color: rgba(200,222,255,.55); } .tfw-door .tfw-ic svg { width: 18px; height: 18px; }
.tfw-door.is-locked .tfw-dn { opacity: .9; }
.tfw-door.is-mile.is-locked { border-color: rgba(168,112,255,.4); box-shadow: inset 0 1px 0 rgba(235,245,255,.22), 0 0 18px -6px rgba(168,112,255,.6); }
.tfw-box { display: block; position: relative; z-index: 1; } .tfw-box img { width: 54px; height: 54px; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.tfw-box.is-peek img { width: 34px; height: 34px; opacity: .5; filter: grayscale(.4) blur(.3px) drop-shadow(0 0 6px rgba(168,112,255,.6)); }
.tfw-door.is-missed { background: linear-gradient(165deg, rgba(40,42,58,.7), rgba(20,21,30,.95)); border-color: rgba(255,255,255,.05); opacity: .5; filter: saturate(.4); }
.tfw-door.is-missed::before { background: linear-gradient(32deg, transparent 47%, rgba(255,255,255,.22) 48%, transparent 50%), linear-gradient(-58deg, transparent 55%, rgba(255,255,255,.16) 56%, transparent 58%); opacity: 1; }
/* today: glowing gift, pulsing ring, rays */
.tfw-door.is-today { cursor: pointer; color: #fff; border-color: rgba(200,190,255,.85); z-index: 1;
  background: radial-gradient(90% 80% at 50% 45%, rgba(170,140,255,.55), transparent 70%), linear-gradient(165deg, #5a45d6, #2a1f78); box-shadow: 0 0 0 1px rgba(200,190,255,.5), 0 10px 34px rgba(124,108,255,.65), inset 0 1px 0 rgba(255,255,255,.45); animation: tfwPulse 2s ease-in-out infinite; }
.tfw-door.is-today .tfw-dn { position: absolute; top: 7px; left: 9px; font-size: 14px; }
.tfw-door.is-today .tfw-box { animation: tfwBob 1.6s ease-in-out infinite; } .tfw-door.is-today .tfw-box img { width: 62px; height: 62px; filter: drop-shadow(0 0 12px rgba(200,180,255,.8)); }
.tfw-door.is-today small { color: #fff; font-weight: 800; letter-spacing: .4px; text-shadow: 0 0 8px rgba(255,255,255,.6); }
.tfw-door.is-today:hover { transform: translateY(-3px) scale(1.03); }
@keyframes tfwPulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(200,190,255,.5), 0 10px 30px rgba(124,108,255,.5), inset 0 1px 0 rgba(255,255,255,.45); } 50% { box-shadow: 0 0 0 3px rgba(200,190,255,.65), 0 10px 46px rgba(150,120,255,.95), inset 0 1px 0 rgba(255,255,255,.45); } }
.tfw-rays { position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -120px 0 0 -120px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.26) 0deg 6deg, transparent 6deg 20deg); -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 72%); mask: radial-gradient(closest-side, #000 10%, transparent 72%); animation: tfwSpin 14s linear infinite; }
/* opened: reward art with rarity glow */
.tfw-door.is-open { background: radial-gradient(80% 70% at 50% 48%, rgba(var(--g), .30), transparent 70%), linear-gradient(165deg, rgba(38,44,72,.92), rgba(20,22,36,.96)); border-color: rgba(var(--g), .45); box-shadow: inset 0 1px 0 rgba(235,245,255,.14), 0 0 18px -6px rgba(var(--g), .7); }
.tfw-door.r-common { --g: var(--tfw-r-common); } .tfw-door.r-rare { --g: var(--tfw-r-rare); } .tfw-door.r-epic { --g: var(--tfw-r-epic); } .tfw-door.r-legendary { --g: var(--tfw-r-legendary); }
.tfw-door.is-open .tfw-dn { font-size: 12px; position: absolute; top: 7px; left: 9px; }
.tfw-door.is-open small { color: rgb(var(--g)); }
.tfw-got img { width: 50px; height: 50px; object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(var(--g), .7)); }
.tfw-pts { display: flex; align-items: center; gap: 3px; } .tfw-pts b { font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 0 10px rgba(var(--g, 159,200,255), .9); }
.tfw-gem { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(159,200,255,.8)); }
.tfw-door.is-just { animation: tfwPop .6s cubic-bezier(.2,1.6,.4,1); }
.tfw-door.is-opening { pointer-events: none; animation: tfwShake .5s ease-in-out infinite; }
.tfw-door.is-opening .tfw-box { animation: none; transform: scale(1.15); }
@keyframes tfwShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg) scale(1.04); } 75% { transform: rotate(3deg) scale(1.04); } }
/* day 31: legendary golden banner spanning the rest of the row */
.tfw-door.is-final { grid-column: span 5; aspect-ratio: auto; flex-direction: row; gap: 18px; justify-content: flex-start; padding: 10px 22px; --g: var(--tfw-r-legendary);
  border-color: rgba(255,207,90,.6); background: radial-gradient(60% 140% at 18% 50%, rgba(255,190,60,.38), transparent 70%), linear-gradient(100deg, #3a2a10, #22182e 55%, #1c1630);
  box-shadow: inset 0 1px 0 rgba(255,236,180,.4), 0 0 0 1px rgba(255,207,90,.25), 0 0 34px -6px rgba(255,180,50,.6); }
.tfw-door.is-final::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,236,170,.35) 50%, transparent 60%); transform: translateX(-120%); animation: tfwSheen 4.5s ease-in-out infinite; pointer-events: none; }
.tfw-door.is-final .tfw-dn { font-size: 34px; background: linear-gradient(180deg, #fff6d6, #ffcf5a 60%, #c98a1a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 10px rgba(255,190,60,.7)); }
.tfw-door.is-final .tfw-box img { width: 74px; height: 74px; filter: drop-shadow(0 0 16px rgba(255,190,60,.8)); }
.tfw-door.is-final .tfw-rays { left: 128px; background: repeating-conic-gradient(from 0deg, rgba(255,215,120,.35) 0deg 6deg, transparent 6deg 18deg); }
.tfw-fin-t { text-align: left; } .tfw-fin-t b { display: block; font-size: 18px; font-weight: 900; color: #ffe39a; letter-spacing: .5px; text-transform: uppercase; text-shadow: 0 0 12px rgba(255,190,60,.6); }
.tfw-door.is-final .tfw-fin-t small { color: #f3dca0; font-size: 12.5px; }
.tfw-door.is-final.is-open { flex-direction: row; } .tfw-door.is-final.is-open .tfw-got img { width: 70px; height: 70px; }
/* particles (door burst + reveal) */
.tfw-dburst, .tfw-rv-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.tfw-pt { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(200,220,255,.9); opacity: 0;
  animation: tfwPt .9s cubic-bezier(.15,.7,.3,1) var(--t) forwards; }
.tfw-door.r-legendary .tfw-pt, .tfw-reveal.r-legendary .tfw-pt { background: #fff2c4; box-shadow: 0 0 8px 2px rgba(255,200,80,.9); }
.tfw-door.r-epic .tfw-pt, .tfw-reveal.r-epic .tfw-pt { box-shadow: 0 0 8px 2px rgba(190,140,255,.95); }
@keyframes tfwPt { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(var(--s)); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(0); } }
/* reveal card over the calendar */
.tfw-reveal { --g: var(--tfw-r-rare); position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 50%, rgba(var(--g), .28), rgba(6,7,14,.78)); animation: tfwFade .25s ease-out; transition: opacity .55s ease; }
.tfw-reveal.r-common { --g: var(--tfw-r-common); } .tfw-reveal.r-epic { --g: var(--tfw-r-epic); } .tfw-reveal.r-legendary { --g: var(--tfw-r-legendary); }
.tfw-reveal.is-out { opacity: 0; }
.tfw-rv-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: tfwRv .6s cubic-bezier(.2,1.5,.4,1); }
.tfw-rays.big { width: 520px; height: 520px; margin: -260px 0 0 -260px; top: 42%; background: repeating-conic-gradient(from 0deg, rgba(var(--g), .5) 0deg 5deg, transparent 5deg 15deg); }
.tfw-rv-art { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 34px; background: radial-gradient(circle, rgba(var(--g), .45), transparent 70%); }
.tfw-rv-art img { width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(var(--g), .9)); }
.tfw-rv-art .tfw-gem { width: 84px; height: 84px; } .tfw-rv-art .tfw-pts b { font-size: 40px; }
.tfw-rv-k { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgb(var(--g)); text-shadow: 0 0 10px rgba(var(--g), .8); }
.tfw-rv-in > b { font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 16px rgba(var(--g), .8); }
@keyframes tfwRv { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tfwFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tfwBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tfwPop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }

/* ---- quests ---- */
.tfw-q { display: grid; grid-template-columns: 1fr 290px; gap: 18px; }
.tfw-ql { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tfw-ql li { --q: 139,108,255; position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(70% 140% at 0% 50%, rgba(var(--q), .2), transparent 60%), linear-gradient(165deg, rgba(40,44,70,.75), rgba(20,22,34,.92)); border: 1px solid rgba(var(--q), .28); box-shadow: inset 0 1px 0 rgba(235,245,255,.1), 0 8px 20px -12px rgba(0,0,0,.8); }
.tfw-ql li.q-voice { --q: 139,108,255; } .tfw-ql li.q-msgs { --q: 96,170,255; } .tfw-ql li.q-invite { --q: 255,120,170; } .tfw-ql li.q-advent { --q: 255,196,72; }
.tfw-ql li.done { --q: 45,212,160; }
.tfw-ql li > div { flex: 1; min-width: 0; } .tfw-ql b { font-size: 14.5px; font-weight: 800; } .tfw-ql small { display: block; color: #a3abc4; font-size: 12px; margin: 3px 0 9px; }
.tfw-qi { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 40%), linear-gradient(150deg, rgba(var(--q), 1), rgba(var(--q), .45)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -6px 12px rgba(0,0,0,.25), 0 6px 18px -4px rgba(var(--q), .8); }
.tfw-qi svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.tfw-bar { position: relative; height: 12px; border-radius: 7px; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(255,255,255,.05)); border: 1px solid rgba(190,210,255,.14); overflow: hidden; }
.tfw-bar i { display: block; position: absolute; inset: 0; transform-origin: left; border-radius: 6px; transition: transform .6s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 45%), linear-gradient(90deg, rgba(var(--q), .9), #b9d8ff 85%, #fff); box-shadow: 0 0 10px rgba(var(--q), .8); }
.tfw-bar u { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(255,255,255,.16) 9px 11px); animation: tfwIce 1.6s linear infinite; mix-blend-mode: overlay; }
@keyframes tfwIce { from { transform: translateX(-24px); } to { transform: translateX(0); } }
.tfw-qv { font-size: 14px; font-weight: 800; color: #e6eaf6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tfw-ql li.done .tfw-qv { color: #2dd4a0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(45,212,160,.16); box-shadow: 0 0 12px rgba(45,212,160,.5); }
.tfw-qr { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 18px 18px 16px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 30%, rgba(255,196,72,.22), transparent 70%), radial-gradient(100% 70% at 50% 0%, rgba(124,108,255,.35), transparent 70%), linear-gradient(180deg, rgba(36,32,64,.95), rgba(18,18,30,.96));
  border: 1px solid rgba(255,207,90,.4); box-shadow: inset 0 1px 0 rgba(255,236,180,.25), 0 0 40px -12px rgba(255,190,60,.55); }
.tfw-qr-k { font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #ffe39a; }
.tfw-fig { position: relative; width: 200px; height: 200px; display: grid; place-items: center; isolation: isolate; }
.tfw-fig .tfw-rays { width: 300px; height: 300px; margin: -150px 0 0 -150px; background: repeating-conic-gradient(from 0deg, rgba(255,215,130,.25) 0deg 6deg, transparent 6deg 18deg); }
.tfw-fig img { width: 190px; height: 190px; object-fit: contain; animation: tfwBob 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)) drop-shadow(0 0 20px rgba(139,108,255,.4)); }
.tfs-rar-w { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; color: #2a1c00; background: linear-gradient(180deg, #ffe39a, #ffb830); box-shadow: 0 0 12px rgba(255,190,60,.6); }
.tfw-qr b { font-size: 19px; font-weight: 900; color: #fff; } .tfw-qr small { color: #b0b6cb; font-size: 12px; line-height: 1.45; }
.tfw-qsum { width: 100%; height: 8px; border-radius: 5px; background: rgba(0,0,0,.45); overflow: hidden; border: 1px solid rgba(255,207,90,.25); }
.tfw-qsum i { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ffb830, #ffe39a); box-shadow: 0 0 10px rgba(255,190,60,.8); }
.tfw-claim { position: relative; overflow: hidden; margin-top: 8px; width: 100%; border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 800; font-size: 14.5px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #8b6cff, #5b7cff); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px rgba(124,108,255,.45); display: flex; gap: 6px; align-items: center; justify-content: center; }
.tfw-claim:not(:disabled)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%); animation: tfwSheen 2.8s ease-in-out infinite; }
.tfw-claim:disabled { background: rgba(255,255,255,.06); color: #a3abc4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); cursor: default; }
.tfw-link { border: 0; background: none; color: #c9c0ff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; margin-top: 4px; } .tfw-link:hover { text-decoration: underline; }

/* ================= snowball hit ================= */
.tfw-hit { position: fixed; inset: 0; z-index: 1300; pointer-events: none; }
.tfw-frostfx { position: absolute; inset: 0; background: url(/shop/winter/advent-bg.webp) center / cover; mix-blend-mode: screen; opacity: 0;
  -webkit-mask: radial-gradient(120% 110% at 50% 50%, transparent 45%, #000 100%); mask: radial-gradient(120% 110% at 50% 50%, transparent 45%, #000 100%); animation: tfwFrost 2.9s ease-out forwards; }
@keyframes tfwFrost { 0% { opacity: 0; transform: scale(1.08); } 15% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.tfw-splat { position: absolute; width: 230px; height: 230px; margin: -115px 0 0 -115px; transform: rotate(var(--r, 0deg)); animation: tfwSplat .34s cubic-bezier(.2,1.6,.5,1) both; }
.tfw-splat img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 8px 22px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(190,220,255,.55)); opacity: .97; }
.tfw-splat.v1 { width: 190px; height: 190px; margin: -95px 0 0 -95px; } .tfw-splat.v2 { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
.tfw-ring { position: absolute; inset: -10%; border-radius: 50%; border: 3px solid rgba(220,236,255,.8); box-shadow: 0 0 24px rgba(159,200,255,.8), inset 0 0 24px rgba(159,200,255,.6); opacity: 0; animation: tfwRing .6s ease-out forwards; }
@keyframes tfwRing { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
.tfw-sh { position: absolute; left: 50%; top: 50%; width: 14px; height: 6px; margin: -3px 0 0 -7px; border-radius: 2px 6px 2px 6px; background: linear-gradient(90deg, #fff, #bcd9ff); box-shadow: 0 0 6px rgba(200,225,255,.9); opacity: 0;
  animation: tfwSh .7s cubic-bezier(.1,.7,.3,1) var(--t) forwards; }
@keyframes tfwSh { 0% { opacity: 1; transform: rotate(var(--a)) translateX(30px) scale(var(--s)); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--d) + 90px)) scale(.2); } }
@keyframes tfwSplat { from { transform: rotate(var(--r, 0deg)) scale(.2); opacity: 0; } to { transform: rotate(var(--r, 0deg)) scale(1); opacity: 1; } }
.tfw-hit-t { position: absolute; left: 50%; bottom: 148px; transform: translateX(-50%); pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(48,40,110,.96), rgba(22,24,40,.96)); border: 1px solid rgba(180,200,255,.35); color: #eef3ff; font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 30px -6px rgba(124,108,255,.7); animation: tfwIn .3s ease-out both; }
.tfw-hit-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, #c8d9ff, #6a8cff); box-shadow: 0 0 12px rgba(120,160,255,.8); }
.tfw-hit-t button { border: 0; border-radius: 10px; padding: 7px 12px; background: linear-gradient(135deg, #8b6cff, #5b7cff); color: #fff; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.tfw-hit.is-out { opacity: 0; transition: opacity .6s ease; }
.tfw-hit.is-still .tfw-splat, .tfw-hit.is-still .tfw-hit-t, .tfw-hit.is-still .tfw-sh, .tfw-hit.is-still .tfw-ring, .tfw-hit.is-still .tfw-frostfx { animation: none; }
.tfw-hit.is-still .tfw-sh, .tfw-hit.is-still .tfw-ring { display: none; }
.msg-actions [data-act="snow"] { font-size: 14px; }

/* ================= cinematic splash ================= */
.tfw-splash { position: fixed; inset: 0; z-index: 1250; display: flex; align-items: center; justify-content: flex-start; padding: 6vh 7vw; opacity: 0; transition: opacity .4s ease; background: #07070f; overflow: hidden; }
.tfw-splash.open { opacity: 1; }
.tfw-sp-bg { position: absolute; inset: -2%; background: url(/shop/winter/splash.webp) 70% 50% / cover; animation: tfwKen 22s ease-out forwards; }
.tfw-sp-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,15,.94) 0%, rgba(7,7,15,.75) 32%, rgba(7,7,15,.1) 62%, rgba(7,7,15,.25) 100%), linear-gradient(0deg, rgba(7,7,15,.85), transparent 35%); }
@keyframes tfwKen { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.tfw-sp-glow { position: absolute; left: -10vw; top: 10vh; width: 60vw; height: 60vh; pointer-events: none; background: radial-gradient(closest-side, rgba(124,108,255,.35), transparent); }
.tfw-splash > .tfw-x { position: absolute; top: 22px; right: 22px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tfw-sp-card { position: relative; z-index: 2; max-width: 560px; color: #eceef5; animation: tfwIn .6s .1s cubic-bezier(.2,.9,.3,1) both; }
.tfw-sp-kick { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: #cfe2ff; padding: 6px 12px; border-radius: 20px; background: rgba(124,108,255,.22); border: 1px solid rgba(180,165,255,.4); box-shadow: 0 0 20px rgba(124,108,255,.4); }
.tfw-sp-title { margin: 14px 0 6px; font-size: clamp(54px, 8.5vw, 112px); line-height: .95; font-weight: 900; letter-spacing: -1px; white-space: nowrap; }
.tfw-sp-title span { display: inline-block; background: linear-gradient(180deg, #ffffff 0%, #e6efff 45%, #9fc0ff 75%, #b9a4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(124,108,255,.7)); animation: tfwLetter .7s cubic-bezier(.2,1.4,.4,1) calc(.25s + var(--i) * .07s) both; }
.tfw-sp-title b span { background: linear-gradient(180deg, #fff6d6, #ffcf5a 55%, #e0962a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 4px 24px rgba(255,180,50,.55)); }
@keyframes tfwLetter { from { opacity: 0; transform: translateY(40px) scale(.7); } to { opacity: 1; transform: none; } }
.tfw-sp-card h2 { margin: 10px 0 10px; font-size: 24px; font-weight: 800; color: #fff; } .tfw-sp-card p { margin: 0 0 26px; color: #c3c9dc; font-size: 15.5px; line-height: 1.6; max-width: 480px; }
.tfw-sp-b { display: flex; gap: 10px; flex-wrap: wrap; }
.tfw-primary { position: relative; overflow: hidden; border: 0; border-radius: 14px; padding: 15px 26px; font: inherit; font-size: 15.5px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #9a7cff, #6a4cf0 55%, #4d6bff); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 34px rgba(124,108,255,.6), 0 0 0 1px rgba(200,190,255,.4); transition: transform .15s ease; }
.tfw-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); animation: tfwSheen 3.2s ease-in-out infinite 1s; }
.tfw-primary:hover { transform: translateY(-2px); }
.tfw-ghost { border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 15px 22px; font: inherit; font-size: 15px; font-weight: 600; color: #e3e6f0; background: rgba(255,255,255,.06); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tfw-sign { display: block; margin-top: 22px; color: #8d93a8; font-size: 12.5px; }

/* ================= shop: winter hero + cards ================= */
.tfs-row-winter { position: relative; padding: 0 0 14px; margin-left: -12px; margin-right: -12px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 100%, rgba(124,108,255,.14), transparent 70%), linear-gradient(180deg, rgba(20,22,40,.9), rgba(18,19,28,.6)); border: 1px solid rgba(180,200,255,.2); box-shadow: 0 0 50px -20px rgba(124,108,255,.6); }
.tfs-row-winter > .tfs-grid { padding: 0 14px; margin-top: -34px; position: relative; z-index: 1; }
.tfs-w-hero { position: relative; min-height: 210px; padding: 26px 28px 52px; display: flex; align-items: center; overflow: hidden; }
.tfs-w-art { position: absolute; inset: 0; background: url(/shop/winter/hero.webp) center 40% / cover; animation: tfwKen 30s ease-out forwards; }
.tfs-w-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,22,.92) 0%, rgba(10,10,22,.55) 40%, transparent 70%), linear-gradient(0deg, rgba(18,19,30,1) 0%, transparent 45%); }
.tfs-w-in { position: relative; z-index: 1; max-width: 460px; }
.tfs-w-kick { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #b9d6ff; text-shadow: 0 0 8px rgba(120,170,255,.7); }
.tfs-row-winter .tfs-w-hero h3 { display: flex; align-items: center; gap: 10px; margin: 6px 0 6px; font-size: 28px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(180deg, #fff, #dbe8ff 55%, #b6a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 12px rgba(124,108,255,.6)); }
.tfs-w-in p { margin: 0 0 14px; color: #c7cde0; font-size: 13.5px; line-height: 1.5; }
.tfs-wflake { width: 26px; height: 26px; flex: 0 0 auto; background: url(/shop/winter/snowflake.svg) center / contain no-repeat; display: inline-block; filter: drop-shadow(0 0 8px rgba(190,220,255,.9)); animation: tfwSpin 14s linear infinite; }
.tfs-wcd { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 14px !important; font-weight: 800; color: #fff !important; padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,108,255,.55), rgba(70,110,255,.35)); border: 1px solid rgba(200,190,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 20px rgba(124,108,255,.45); }
.tfs-wcd::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff5c7a; box-shadow: 0 0 8px #ff5c7a; animation: tfwBlink 1.2s ease-in-out infinite; }
@keyframes tfwBlink { 50% { opacity: .3; } }
/* cards: frosted rarity glow, snowcap top, hover lift + sparkle */
.tfs-row-winter .tfs-card { --wc: var(--tfw-r-rare); border-color: rgba(var(--wc), .5); background: linear-gradient(180deg, rgba(30,34,58,.98), rgba(20,21,32,.98)); box-shadow: 0 0 0 1px rgba(var(--wc), .18), 0 10px 30px -10px rgba(0,0,0,.8), 0 0 26px -8px rgba(var(--wc), .55), inset 0 1px 0 rgba(235,245,255,.14); overflow: hidden; }
.tfs-row-winter .tfs-card.r-common { --wc: var(--tfw-r-common); } .tfs-row-winter .tfs-card.r-epic { --wc: var(--tfw-r-epic); } .tfs-row-winter .tfs-card.r-legendary { --wc: var(--tfw-r-legendary); }
.tfs-row-winter .tfs-card .tfs-stage { position: relative; background: radial-gradient(70% 70% at 50% 45%, rgba(var(--wc), .32), transparent 70%), linear-gradient(180deg, #1a1c34, #121320); }
.tfs-row-winter .tfs-card .tfs-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 15% 25%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 82% 18%, #fff 0 1.2px, transparent 1.8px), radial-gradient(circle at 70% 72%, #dfe9ff 0 1px, transparent 1.6px), radial-gradient(circle at 28% 80%, #fff 0 .8px, transparent 1.4px), radial-gradient(circle at 50% 10%, #fff 0 .9px, transparent 1.5px); opacity: .55; }
.tfs-row-winter .tfs-card::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 10px; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at 8% 0, #f2f8ff 0 6px, transparent 6.5px), radial-gradient(circle at 24% 0, #f2f8ff 0 9px, transparent 9.5px), radial-gradient(circle at 44% 0, #f2f8ff 0 5px, transparent 5.5px), radial-gradient(circle at 63% 0, #f2f8ff 0 8px, transparent 8.5px), radial-gradient(circle at 84% 0, #f2f8ff 0 6px, transparent 6.5px), radial-gradient(circle at 97% 0, #f2f8ff 0 7px, transparent 7.5px);
  filter: drop-shadow(0 2px 2px rgba(60,80,140,.45)); opacity: .92; }
.tfs-row-winter .tfs-card::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(circle at 20% 30%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 75% 22%, #fff 0 2px, transparent 3px), radial-gradient(circle at 62% 60%, #fff 0 1.3px, transparent 2.3px), radial-gradient(circle at 30% 70%, #fff 0 1.8px, transparent 2.8px), radial-gradient(circle at 88% 50%, #fff 0 1.2px, transparent 2.2px); }
.tfs-row-winter .tfs-card:hover { transform: translateY(-7px) scale(1.015); border-color: rgba(var(--wc), .9); box-shadow: 0 0 0 1px rgba(var(--wc), .45), 0 22px 44px -12px rgba(0,0,0,.9), 0 0 44px -6px rgba(var(--wc), .75); }
.tfs-row-winter .tfs-card:hover::after { opacity: 1; animation: tfwTwinkle 1s ease-in-out infinite alternate; }
@keyframes tfwTwinkle { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: translateY(-2px); } }
/* animated live previews on the avatar */
.tfs-row-winter .tfs-st-ava .tfs-ava-wrap { position: relative; z-index: 1; }
.tfs-row-winter .tfs-st-ava .tfs-ava-wrap::before { content: ''; position: absolute; inset: -22%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(var(--wc), 0), rgba(var(--wc), .65), rgba(159,200,255,.0) 40%, rgba(var(--wc), .55) 70%, rgba(var(--wc), 0)); -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 66%, transparent 100%); mask: radial-gradient(closest-side, transparent 62%, #000 66%, transparent 100%); animation: tfwSpin 6s linear infinite; }
.tfs-row-winter .tfs-card[data-id="frame_frostcrown"] .tfs-ava-wrap::before { background: conic-gradient(from 0deg, transparent, #e6f4ff, transparent 25%, #9fc8ff 50%, transparent 60%, #ffffff 80%, transparent); animation-duration: 4s; }
.tfs-row-winter .tfs-card[data-id="frame_garland"] .tfs-ava-wrap::before, .tfs-row-winter .tfs-card[data-id="fx_garland"] .tfs-ava-wrap::before { background: conic-gradient(#ff6b7d 0 12%, transparent 12% 25%, #ffd76a 25% 37%, transparent 37% 50%, #6bf0b0 50% 62%, transparent 62% 75%, #8fb8ff 75% 87%, transparent 87%); animation: tfwSpin 9s steps(16) infinite; }
.tfs-row-winter .tfs-card[data-id="banner_polar"] .tfs-banimg::after { content: ''; position: absolute; inset: -20% -40%; background: linear-gradient(100deg, transparent 20%, rgba(139,108,255,.45) 35%, rgba(110,240,220,.35) 50%, transparent 65%); mix-blend-mode: screen; animation: tfwAurora 7s ease-in-out infinite alternate; }
.tfs-row-winter .tfs-banimg { position: relative; overflow: hidden; }
@keyframes tfwAurora { from { transform: translateX(-18%) skewX(-8deg); opacity: .5; } to { transform: translateX(18%) skewX(8deg); opacity: 1; } }

/* ---- nick effects «Зима 2026» (stay after the season: owned items keep working) ---- */
.tfs-nx-snow { background-image: radial-gradient(circle at 18% 30%, #fff 0 .8px, transparent 1.4px), radial-gradient(circle at 64% 70%, #fff 0 .8px, transparent 1.4px), linear-gradient(180deg, #ffffff, #dcefff 55%, #a9d3ff); background-size: 9px 11px, 13px 10px, 100% 100%; filter: drop-shadow(0 0 3px rgba(169,211,255,.35)); }
.tfs-nx-snow::after { background-image: radial-gradient(circle at 40% 20%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 80% 60%, #e9f5ff 0 .9px, transparent 1.5px), linear-gradient(180deg, #f4f9ff, #cbe6ff); background-size: 10px 12px, 15px 9px, 100% 100%; animation: tfsFade 1.8s ease-in-out infinite alternate; animation-play-state: paused; }
.tfs-nx-garland { background-image: repeating-linear-gradient(90deg, #ff6b7d 0 .5em, #ffd76a .5em 1em, #6bf0b0 1em 1.5em, #8fb8ff 1.5em 2em); filter: drop-shadow(0 0 3px rgba(255,215,106,.35)); }
.tfs-nx-garland::after { background-image: repeating-linear-gradient(90deg, #ffd76a 0 .5em, #6bf0b0 .5em 1em, #8fb8ff 1em 1.5em, #ff6b7d 1.5em 2em); animation: tfsFade 1.1s steps(2, jump-none) infinite alternate; animation-play-state: paused; }
.tfs-nx-icicle { background-image: linear-gradient(180deg, #ffffff 0%, #d9f1ff 40%, #7cc4ff 75%, #b3a6ff 100%); filter: drop-shadow(0 1px 2px rgba(124,196,255,.4)); }
.tfs-nx-icicle::after { background-image: linear-gradient(100deg, transparent 35%, #ffffff 50%, transparent 65%); animation: tfsGlint 4s ease-in-out infinite; animation-play-state: paused; }
:is(.tfs-live, .msg:hover, .member:hover, #userMenu, .tfp-name) :is(.tfs-nx-snow, .tfs-nx-garland, .tfs-nx-icicle)::after, .tfs-live:is(.tfs-nx-snow, .tfs-nx-garland, .tfs-nx-icicle)::after { animation-play-state: running; }

/* ---- glass theme: keep the same pieces readable on the translucent UI ---- */
html[data-theme="glass"] .tfw-card { background-color: rgba(18,16,34,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
html[data-theme="glass"] .tfw-btn { border-color: rgba(200,190,255,.3); }
html[data-theme="glass"] .tfs-row-winter { background-color: rgba(16,16,30,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-theme="glass"] .tfw-tabs { background: rgba(10,10,22,.65); }

@media (max-width: 720px) {
  .tfw-head { flex-wrap: wrap; min-height: 0; } .tfw-tabs { order: 3; width: 100%; margin-left: 0; } .tfw-tabs button { flex: 1; } .tfw-title b { font-size: 24px; } .tfw-logo { width: 44px; height: 44px; }
  .tfw-doors { grid-template-columns: repeat(5, 1fr); gap: 7px; } .tfw-door.is-final { grid-column: span 4; } .tfw-q { grid-template-columns: 1fr; } .tfw-adv-top { flex-direction: column; align-items: stretch; }
  .tfw-splash { padding: 10vh 6vw; align-items: flex-end; } .tfs-w-hero h3 { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tfw-card, .tfw-sp-card, .tfw-door, .tfw-box, .tfw-door.is-today, .tfw-rays, .tfw-fig img, .tfw-door.is-just, .tfw-splat, .tfw-hit-t, .tfw-hat, .tfw-btn::after, .tfw-logo svg, .tfw-prog > i::after, .tfw-door.is-final::after, .tfw-bar u, .tfw-claim::after,
  .tfw-sp-bg, .tfw-sp-title span, .tfw-primary::after, .tfs-w-art, .tfs-wflake, .tfs-wcd::before, .tfs-row-winter .tfs-card:hover::after, .tfs-row-winter .tfs-ava-wrap::before, .tfs-row-winter .tfs-banimg::after, .tfw-pt, .tfw-sh, .tfw-ring, .tfw-frostfx,
  .tfs-nx-snow::after, .tfs-nx-garland::after, .tfs-nx-icicle::after { animation: none !important; transition: none !important; }
  .tfw-pt, .tfw-sh, .tfw-ring { display: none; } .tfw-frostfx { opacity: .4; }
}
