/* ──────────────────────────────────────────────────────────────────────────
   season-block-2.css — the referral season's block on the landing (#season,
   owner 2026-11-21: «Верни блок сезона на главный лендинг»; then «Добавь в
   блок анимаций как на странице сезона + слишком тёмный фон»), in the season
   page's own style (season-3.css): on the brand blue (not the deep — the
   block now sits between Roles, deep, and Compare, white), the headline with
   its mint line and the top prize counting up, the facts with the ticking
   time left, the site's buttons; a white card with the season tiles fanning
   out and floating, the podium today (medal stripes drawing in, avatars
   popping, a shine across the gold first row, open spots as dashed rings
   that turn) and the prize pool now with its level bar and marker.
   Loaded without holding up the landing (media="print" → all). sz-prefixed.
   A new name, not an edit of season-block-1.css: /assets/ is cached a year.
   ────────────────────────────────────────────────────────────────────────── */
:root{--sz-tint:#F5F6FF;--sz-page:#F3F4F6;--sz-body:#4B5563;--sz-mint:#52F2A8;--sz-ok:#0F8A5F;
  --sz-gold:#F5B83D;--sz-gold-bg:#FEF3C7;--sz-gold-ink:#8A5300}
.szBlock .szNum{font-variant-numeric:tabular-nums}

/* appear on scroll: season-block-1.js adds .szIn */
.szjs .szBlock .szF{opacity:0;transform:translateY(1.25rem);transition:opacity .7s ease var(--dl,0s),transform .9s var(--ease) var(--dl,0s),translate .3s var(--ease)}
.szjs .szBlock .szIn .szF{opacity:1;transform:none}

.szBlk{display:grid;gap:2.5rem;align-items:center}
.szTop{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.szTop .mono{text-transform:uppercase}
.szBadge{display:inline-flex;align-items:center;gap:.45rem;height:1.75rem;padding:0 .7rem;border-radius:999px;
  border:1px solid #BBF7D0;background:#F0FDF4;color:var(--sz-ok);font:700 .6875rem/1 var(--mono);letter-spacing:.08em}
.szBadge i{display:block;width:.5rem;height:.5rem;border-radius:50%;background:#22C55E;animation:szPulse 1.8s ease-out infinite}
.szBadge.off{border-color:var(--hair);background:var(--sz-page);color:var(--sz-body)}
.szBadge.off i{display:none}
@keyframes szPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.6)}100%{box-shadow:0 0 0 .55rem rgba(34,197,94,0)}}

/* the headline: rises word by word, the second line in mint */
.szBlk .h2{margin-top:1.1rem}
.szBlk .h2 em{display:block;font-style:normal;color:var(--sz-mint)}
.szBlk .h2 .w{display:inline-block}
.szjs .szBlk .h2 .w{opacity:0;transform:translateY(.42em);
  transition:opacity .6s ease calc(var(--i) * .07s + .1s),transform .85s var(--ease) calc(var(--i) * .07s + .1s)}
.szjs .szBlk.szIn .h2 .w{opacity:1;transform:none}
.szBlk .lede{margin-top:1.25rem;max-width:36rem}

.szFacts{margin:1.75rem 0 2rem;display:grid;gap:.75rem}
.szFacts li{display:flex;gap:.75rem;align-items:flex-start;font-size:1.0625rem;line-height:1.35;font-weight:600;color:var(--w84)}
.szFacts li b{color:#fff}
.szFacts svg{width:1.25rem;height:1.25rem;flex:none;margin-top:.05rem;color:var(--sz-mint)}
.szjs .szBlk .szFacts li{opacity:0;transform:translateX(-.6rem);transition:opacity .5s ease,transform .7s var(--ease)}
.szjs .szBlk.szIn .szFacts li{opacity:1;transform:none}
.szFacts li:nth-child(1){transition-delay:.5s}.szFacts li:nth-child(2){transition-delay:.6s}.szFacts li:nth-child(3){transition-delay:.7s}
.szCtas{display:flex;gap:.75rem;flex-wrap:wrap}
@keyframes szNudge{0%,70%,100%{transform:none}78%{transform:translateX(.3rem)}86%{transform:none}92%{transform:translateX(.18rem)}}
.szCtas .btn-white .arr{animation:szNudge 3.4s ease-in-out 1.6s infinite}
@media (hover:hover) and (pointer:fine){.szCtas .btn:hover .arr{animation:none}}
.szCtas .btn:active{transform:scale(.985)}

/* the card: the podium today and the pool */
.szPanel{position:relative;background:#fff;color:var(--ink);border-radius:.875rem;padding:1.5rem 1.25rem}
@media (hover:hover) and (pointer:fine){.szPanel:hover{translate:0 -.25rem}}
.szPanel .phd{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.szPanel .phl{display:flex;align-items:center;gap:1rem;min-width:0}
.szPanel .phl>span{display:grid;gap:.4rem;min-width:0}
.szPanel .upd{font-size:.8125rem;color:var(--muted)}
/* the season tiles: fan out when the block comes in, then float */
.szTiles{position:relative;flex:none;width:4.25rem;height:3.25rem}
.szTiles .stack{position:absolute;inset:0;animation:szFloat 6s ease-in-out 1.8s infinite}
@keyframes szFloat{0%,100%{transform:none}50%{transform:translateY(-.25rem)}}
.szTiles span,.szTiles img{position:absolute;left:0;top:0;width:3.25rem;height:3.25rem;border-radius:.7rem}
.szTiles .t3{background:#E8EAFF;transform:translate(.85rem,.1rem) rotate(15deg)}
.szTiles .t2{background:#C7CBFF;transform:translate(.45rem,.05rem) rotate(7deg)}
.szjs .szTiles .t2,.szjs .szTiles .t3{transition:transform 1.1s var(--ease) .65s}
.szjs .szTiles img{transition:transform .7s var(--ease) .4s,opacity .4s ease .4s}
.szjs .szBlk:not(.szIn) .szTiles .t2,.szjs .szBlk:not(.szIn) .szTiles .t3{transform:none}
.szjs .szBlk:not(.szIn) .szTiles img{transform:scale(.6);opacity:0}
.szK{font:700 .6875rem/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.szPanel .phd a{color:var(--brand)}
@media (hover:hover) and (pointer:fine){.szPanel .phd a:hover{text-decoration:underline;text-underline-offset:.2em}}
.bRows{border:1px solid var(--hair);border-radius:.75rem;overflow:hidden}
.bRow{display:grid;grid-template-columns:1rem minmax(0,1fr) auto;gap:.6rem;align-items:center;min-height:4rem;padding:0 .9rem;border-top:1px solid var(--hair)}
.bRow:first-child{border-top:0}
.bRow{position:relative;overflow:hidden}
.bRow.r1{background:var(--sz-gold-bg);box-shadow:inset 0 0 0 2px var(--sz-gold)}
/* a medal stripe on each place draws down when the card comes in */
.bRow::before{content:"";position:absolute;left:0;top:0;bottom:0;width:.25rem;background:var(--md);transform-origin:top;
  transition:transform .7s var(--ease) calc(var(--dl) + .3s)}
.bRow.r1{--md:var(--sz-gold)}.bRow.r2{--md:#C9D1E0}.bRow.r3{--md:#E39A5E}
.szjs .szBlk:not(.szIn) .bRow::before{transform:scaleY(0)}
/* a shine runs across first place every few seconds */
.bRow.r1::after{content:"";position:absolute;top:0;bottom:0;left:-35%;width:35%;pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0));animation:szSweep 5.5s ease-in-out 2.6s infinite}
@keyframes szSweep{0%{left:-35%}30%,100%{left:110%}}
@media (hover:hover) and (pointer:fine){.bRow:not(.r1):hover{background:#F9FAFB}}
.bRow.r1.open{background:#FFFBEB;box-shadow:none;outline:2px dashed var(--sz-gold);outline-offset:-2px}
.bRow .pl{font-weight:800;color:var(--muted)}
.bRow.r1 .pl{color:var(--sz-gold-ink)}
.bRow .who{display:flex;align-items:center;gap:.75rem;min-width:0}
.bRow .nm{display:grid;min-width:0}
.bRow .nm b{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bRow .nm small{font-size:.8125rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bRow.open .nm b{color:var(--muted);font-weight:600}
.bRow .pts{display:none;font-weight:800;color:var(--brand);text-align:right;white-space:nowrap}
.bRow .nm small i{font-style:normal;font-weight:700;color:var(--brand)}
.bRow.open .nm small i{color:var(--ph)}
.bRow .pts small{font-size:.75rem;font-weight:600;color:var(--muted);margin-left:.2rem}
.bRow.open .pts{color:#B6BAC8}
.bRow .pz{font-weight:800;text-align:right;white-space:nowrap}
.bRow .pz.cash{color:var(--sz-ok)}
.bRow .pz.dim{color:#B6BAC8}
.szjs .szBlk .bRow{opacity:0;transform:translateY(.6rem);transition:opacity .5s ease var(--dl),transform .7s var(--ease) var(--dl)}
.szjs .szBlk.szIn .bRow{opacity:1;transform:none}
/* the avatar or the trophy pops in after its row */
.szjs .szBlk .bRow .szMini,.szjs .szBlk .bRow .szTrophy{transition:transform .6s var(--ease) calc(var(--dl) + .35s),opacity .4s ease calc(var(--dl) + .35s)}
.szjs .szBlk:not(.szIn) .bRow .szMini,.szjs .szBlk:not(.szIn) .bRow .szTrophy{transform:scale(.5);opacity:0}
.szMini{position:relative;width:2.25rem;height:2.25rem;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:800;font-size:.8125rem;background:var(--sz-tint);color:var(--brand)}
.szMini.open{background:#fff;color:var(--ph)}
/* an open spot's dashed ring turns slowly: the place is waiting for a name */
.szMini.open::before{content:"";position:absolute;inset:0;border-radius:50%;border:2px dashed #C7CCD6;animation:szSpin 14s linear infinite}
@keyframes szSpin{to{transform:rotate(360deg)}}
.szTrophy{width:2.25rem;height:2.25rem;flex:none;transform-origin:50% 90%}
@keyframes szTip{0%,100%{transform:none}25%{transform:rotate(-10deg)}55%{transform:rotate(7deg)}80%{transform:rotate(-3deg)}}
.szjs .szBlk.szIn .szTrophy{animation:szTip 1.2s ease-in-out 1.4s 1}

.bPool{margin-top:1.5rem;padding-top:1.4rem;border-top:1px solid var(--hair)}
.bPool .top{display:flex;align-items:flex-end;justify-content:space-between;gap:.5rem 1rem;flex-wrap:wrap}
.bPool .big{display:block;margin-top:.55rem;font-size:3rem;font-weight:800;letter-spacing:-.05em;line-height:1;color:var(--brand)}
.bPool .of{font-size:.9375rem;line-height:1.4;color:var(--sz-body)}
.bPool .of b{color:var(--ink)}
.szLevels{margin-top:1.25rem;display:grid;grid-template-columns:repeat(3,1fr);gap:.375rem}
.szLv{display:grid;gap:.6rem}
.szLv .track{position:relative;display:block}
.szLv .bar{display:block;height:.5rem;background:#E6E8F0;overflow:hidden}
.szLv:first-child .bar{border-radius:999px 0 0 999px}
.szLv:last-child .bar{border-radius:0 999px 999px 0}
.szLv .bar i{display:block;height:100%;width:var(--w);background:var(--brand)}
.szLv .head{position:absolute;top:50%;left:var(--w);width:.875rem;height:.875rem;margin:-.4375rem 0 0 -.4375rem;border-radius:50%;background:var(--brand);box-shadow:0 0 0 3px #fff}
.szLv .head::after{content:"";position:absolute;inset:0;border-radius:50%;animation:szRing 2s ease-out infinite}
@keyframes szRing{0%{box-shadow:0 0 0 0 rgba(0,11,216,.45)}100%{box-shadow:0 0 0 .65rem rgba(0,11,216,0)}}
.szjs .szBlk .szLv .bar i{width:0;transition:width 1.2s var(--ease) var(--rd)}
.szjs .szBlk.szIn .szLv .bar i{width:var(--w)}
.szjs .szBlk .szLv .head{left:0;opacity:0;transition:left 1.2s var(--ease) var(--rd),opacity .3s ease var(--rd)}
.szjs .szBlk.szIn .szLv .head{left:var(--w);opacity:1}
.szLv .lb{font-size:.8125rem;font-weight:700;color:var(--muted);line-height:1.3}
.szLv .lb small{display:block;font-size:.75rem;font-weight:600;color:var(--ph)}
.szLv.on .lb{color:var(--sz-ok)}

@media (min-width:48rem){
  .szPanel{padding:2rem}
  .bRow{grid-template-columns:1.5rem minmax(0,1fr) auto 5.5rem;gap:1rem;padding:0 1.25rem}
  .bRow .pts{display:block}
  .bRow .nm small i{display:none}
}
@media (min-width:70rem){
  .szBlk{grid-template-columns:1fr 1fr;gap:4rem}
}
@media (prefers-reduced-motion:reduce){
  .szBlock *,.szBlock *::before,.szBlock *::after{animation:none!important;transition:none!important}
}
