/* «Сезоны» (0.53 S0): the season's layer over the lobby / a paused hall, the lobby's banner, «Сезонное» in the shop, the
   season's badges on the profile, ⚙️ «Сезоны», the New Year's welcome (season.js, season-decor.js, season-art.js). */

/* The layer: never takes a tap; in the lobby it covers the head of the stage and fades out below it. */
.season-decor { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; display: block; }
.season-decor[data-mode="lobby"] { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.season-decor[data-mode="pause"] { z-index: 4; }
.season-decor[data-mode="pause"][data-kind="summer"] { background: linear-gradient(0deg, rgba(255, 150, 70, .10), transparent 45%); }
.season-decor[data-mode="pause"][data-kind="halloween"] { background: linear-gradient(0deg, rgba(90, 60, 140, .16), transparent 40%); }

/* 0.54: the season's display face — Playfair Display ExtraBold (SIL OFL 1.1, fonts/playfair-display-OFL.txt), subset to
   Latin + Cyrillic (19 KB). A high-contrast serif like a cinema's marquee: it sits with the painted art, where a geometric
   face looked like an app's. Fetched only when a season's name is on screen. */
@font-face { font-family: 'DPW Season'; src: url('fonts/playfair-display-800-cyr.woff2?v=1') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* Each season's palette, taken from its picture: --sb the accent (the days, the pill, the chips' rim and glow), --sb-ink the
   picture's own dark side as r, g, b (the scrim, the chips' glass), --sb-pos / --sb-pos-ph where its subject sits (the
   desktop picture / the phone's crop). */
.season-pal { --sb: #ffc86b; --sb-ink: 6, 14, 30; --sb-pos: 50% 60%; --sb-pos-ph: 50% 35%; }
.season-pal[data-sp="newyear"] { --sb: #ffc86b; --sb-ink: 4, 12, 28; --sb-pos: 50% 62%; --sb-pos-ph: 46% 34%; }
.season-pal[data-sp="winter"] { --sb: #a9d6ff; --sb-ink: 8, 19, 44; --sb-pos: 50% 40%; --sb-pos-ph: 50% 34%; }
.season-pal[data-sp="spring"] { --sb: #ffaed0; --sb-ink: 38, 21, 46; --sb-pos: 50% 52%; --sb-pos-ph: 64% 40%; }
.season-pal[data-sp="summer"] { --sb: #ffbd6e; --sb-ink: 6, 22, 32; --sb-pos: 50% 56%; --sb-pos-ph: 60% 40%; }
.season-pal[data-sp="autumn"] { --sb: #ff9f4f; --sb-ink: 30, 12, 16; --sb-pos: 50% 50%; --sb-pos-ph: 50% 36%; }
.season-pal[data-sp="halloween"] { --sb: #ffa63f; --sb-ink: 21, 13, 37; --sb-pos: 50% 36%; --sb-pos-ph: 58% 30%; }
/* (0.58.1) RED «фоны должны чуть более отображать текущий сезон (лето ярче)»: summer, spring and autumn are daytime
   paintings now, so the banner's scrim is the season's own — --sb-scrim its colour (a deep tone of the picture: summer's sea,
   spring's leaf green, autumn's amber — not the night's navy) pooled under the text, the rest of the painting in daylight;
   --sb-sa the night seasons' strength (lifted); the days line a light tint (--sb-days) — just enough for the text (measured
   over the art with the text hidden: the days ≥ 4.5:1, the title ≥ 3:1). The night seasons keep their ink, a little lighter. */
.season-pal { --sb-scrim: var(--sb-ink); --sb-sa: .78; --sb-days: var(--sb); }
.season-pal[data-sp="summer"] { --sb-scrim: 8, 58, 92; --sb-sa: 1; --sb-days: #ffe9c4; }
.season-pal[data-sp="spring"] { --sb-scrim: 22, 68, 56; --sb-sa: 1; --sb-days: #ffe3ef; }
.season-pal[data-sp="autumn"] { --sb-scrim: 104, 42, 8; --sb-sa: 1; --sb-days: #ffe2c2; }

/* The picture as a block's background: covers it, fades in once loaded, drifts a little with the mouse (--px / --py). */
.season-art-pic, .season-art-img, .season-art-svg { display: block; width: 100%; height: 100%; }
.season-art-img { object-fit: cover; object-position: var(--sb-pos); opacity: 0; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.05); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.season-art-img.on { opacity: 1; }

/* The lobby's banner: the season's picture across the whole block, its name, the days left, the buttons of its parts. */
.season-bn {
  position: relative; z-index: 4; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
  padding: 24px 26px 20px; border-radius: 18px; box-sizing: border-box;
  background: rgb(var(--sb-ink)); border: 1px solid color-mix(in srgb, var(--sb) 26%, rgba(255, 255, 255, .06));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
.season-bn-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.season-bn-art::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--sb-scrim), calc(.95 * var(--sb-sa))) 0%, rgba(var(--sb-scrim), calc(.86 * var(--sb-sa))) 26%, rgba(var(--sb-scrim), calc(.35 * var(--sb-sa))) 52%, rgba(var(--sb-scrim), 0) 70%),
    linear-gradient(0deg, rgba(var(--sb-scrim), calc(.6 * var(--sb-sa))) 0%, rgba(var(--sb-scrim), 0) 46%); }
.season-bn:is([data-sb="summer"], [data-sb="spring"], [data-sb="autumn"]) .season-bn-art::after { /* (0.58.1) the day paintings: a pool of the season's deep tone under the text, the rest in full daylight */
  background: radial-gradient(27% 75% at 27% 60%, rgba(var(--sb-scrim), .68) 0%, rgba(var(--sb-scrim), .68) 45%, rgba(var(--sb-scrim), 0) 100%),
    linear-gradient(90deg, rgba(var(--sb-scrim), .8) 0%, rgba(var(--sb-scrim), .74) 30%, rgba(var(--sb-scrim), .46) 46%, rgba(var(--sb-scrim), .16) 58%, rgba(var(--sb-scrim), 0) 70%),
    linear-gradient(0deg, rgba(var(--sb-scrim), .35) 0%, rgba(var(--sb-scrim), 0) 46%); }
@media (max-width: 760px) and (min-width: 561px) { /* the text column is 72 % wide here: the pool reaches further */
  .season-bn:is([data-sb="summer"], [data-sb="spring"], [data-sb="autumn"]) .season-bn-art::after {
    background: radial-gradient(36% 80% at 32% 58%, rgba(var(--sb-scrim), .68) 0%, rgba(var(--sb-scrim), .68) 50%, rgba(var(--sb-scrim), 0) 100%),
      linear-gradient(90deg, rgba(var(--sb-scrim), .8) 0%, rgba(var(--sb-scrim), .76) 38%, rgba(var(--sb-scrim), .55) 54%, rgba(var(--sb-scrim), .2) 68%, rgba(var(--sb-scrim), 0) 80%),
      linear-gradient(0deg, rgba(var(--sb-scrim), .35) 0%, rgba(var(--sb-scrim), 0) 46%); } }
.season-bn[data-sb="halloween"] .season-bn-art::after { /* (0.58.1) the bigger «Halloween» reaches the moon's glow: the band reaches further, the moon stays bright past it */
  background: linear-gradient(90deg, rgba(var(--sb-scrim), .95) 0%, rgba(var(--sb-scrim), .9) 30%, rgba(var(--sb-scrim), .74) 50%, rgba(var(--sb-scrim), .4) 62%, rgba(var(--sb-scrim), 0) 76%),
    linear-gradient(0deg, rgba(var(--sb-scrim), .5) 0%, rgba(var(--sb-scrim), 0) 46%); }
.season-bn-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.season-bn-body { position: relative; display: flex; flex-direction: column; gap: 16px; }
.season-bn[data-n="0"] { justify-content: center; } /* no parts' buttons (outside New Year): the title in the middle of the dark side */
.season-bn-main { display: flex; flex-direction: column; gap: 7px; max-width: min(640px, 66%); container-type: inline-size; } /* a size container: a long name fits its column (cqi) */
.season-bn-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.season-bn-name { font-family: 'DPW Season', Georgia, 'Times New Roman', serif; font-weight: 800; --sbn: 86px; font-size: calc(var(--sbn) * var(--sbk, 1)); line-height: 1.02; letter-spacing: .004em; color: #fff7ea;
  font-variant-numeric: lining-nums; text-shadow: 0 2px 22px rgba(var(--sb-ink), .95), 0 1px 2px rgba(0, 0, 0, .45); overflow-wrap: anywhere; }
.season-bn-left { color: var(--sb-days, var(--sb)); font-size: 12px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; font-variant-numeric: tabular-nums; line-height: 1.4; text-shadow: 0 1px 10px rgba(var(--sb-ink), .95); }
.season-bn-until { color: rgba(255, 247, 234, .92); }
.season-bn-in { animation: season-bn-in .75s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes season-bn-in { from { opacity: 0; transform: translateY(8px); letter-spacing: .3em; } to { opacity: 1; transform: none; } }
.season-bn-pv { flex: none; padding: 2px 10px; border-radius: 999px; border: 1px dashed var(--sb); background: rgba(var(--sb-ink), .7); color: var(--sb); font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 18px; }
.season-bn-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.season-bn-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03)), rgba(var(--sb-ink), .5);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--sb) 40%, rgba(255, 255, 255, .14)); color: #fff; font: inherit; font-size: 13.5px; font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 14px rgba(0, 0, 0, .28);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.season-bn-btn:hover { border-color: var(--sb); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px color-mix(in srgb, var(--sb) 35%, transparent), 0 0 24px color-mix(in srgb, var(--sb) 48%, transparent); }
.season-bn-btn:active { transform: none; }
.season-bn-btn:focus-visible { outline: 2px solid var(--sb); outline-offset: 2px; }
.season-bn-bi { display: inline-flex; font-size: 16px; line-height: 1; }
.season-bn-bi svg { width: 18px; height: 18px; }
.season-bn-dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #e0483d; box-shadow: 0 0 0 2px rgb(var(--sb-ink)); } /* 0.53 int: something waits for this person (Santa) */
@media (max-width: 760px) and (min-width: 561px) { .season-bn-name { --sbn: 68px; } .season-bn-main { max-width: 72%; } }
/* Phones: the picture's own crop on top, the text and a 2×2 grid of chips at the bottom over a rising scrim. */
@media (max-width: 560px) {
  .season-bn { min-height: 0; padding: 120px 14px 14px; border-radius: 16px; }
  .season-bn-art::after { background: linear-gradient(0deg, rgba(var(--sb-ink), .97) 0%, rgba(var(--sb-ink), .9) 42%, rgba(var(--sb-ink), .35) 68%, rgba(var(--sb-ink), 0) 84%); }
  .season-art-img { object-position: var(--sb-pos-ph); }
  .season-bn-body { gap: 12px; }
  .season-bn-main { max-width: none; gap: 5px; }
  .season-bn-name { --sbn: 56px; }
  .season-bn-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .season-bn-btn { min-height: 44px; justify-content: center; padding: 0 10px; }
  .season-bn-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .season-bn-many .season-bn-btn { flex-direction: column; gap: 3px; padding: 7px 6px; font-size: 13px; line-height: 1.15; text-align: center; } /* 3–4 chips: the icon over the label, every label on one line */
}
@media (max-width: 380px) {
  .season-bn { padding-top: 104px; }
  .season-bn-name { --sbn: 50px; }
  .season-bn-left { letter-spacing: .07em; font-size: 11.5px; }
  .season-bn-btn { flex-direction: column; gap: 3px; padding: 7px 6px; line-height: 1.15; text-align: center; }
  .season-bn-btn, .season-bn-many .season-bn-btn { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .season-art-img { transition: none; transform: scale(1.05); }
  .season-bn-in { animation: none; }
  .season-bn-btn { transition: none; }
  .season-bn-btn:hover { transform: none; }
}

/* «Сезонное» in the shop: the season's picture over its tiles; a thing out of its season. */
.season-shop-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 118px; margin: 2px 0 10px; padding: 14px 16px; border-radius: 14px; box-sizing: border-box; background: rgb(var(--sb-ink)); border: 1px solid color-mix(in srgb, var(--sb) 26%, rgba(255, 255, 255, .06)); } /* 0.54: the painted art, the face, the palette */
.season-sh-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.season-sh-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--sb-ink), .95) 0%, rgba(var(--sb-ink), .84) 34%, rgba(var(--sb-ink), .2) 66%, rgba(var(--sb-ink), 0) 80%); }
.season-sh-text { display: flex; flex-direction: column; gap: 4px; max-width: min(430px, 68%); }
.season-sh-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-family: 'DPW Season', Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 26px; line-height: 1.05; color: #fff7ea; font-variant-numeric: lining-nums; text-shadow: 0 2px 16px rgba(var(--sb-ink), .95); }
.season-sh-name .season-bn-pv { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: normal; }
.season-sh-left { color: var(--sb); font-size: 11.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.season-sh-note { color: rgba(255, 247, 234, .84); font-size: 12.5px; line-height: 1.38; text-shadow: 0 1px 8px rgba(var(--sb-ink), .95); }
@media (max-width: 560px) { .season-shop-head { min-height: 132px; } .season-sh-text { max-width: 84%; } .season-sh-art::after { background: linear-gradient(90deg, rgba(var(--sb-ink), .95) 0%, rgba(var(--sb-ink), .82) 50%, rgba(var(--sb-ink), .25) 85%, rgba(var(--sb-ink), .1) 100%); } }
.club-cat-ico .season-ico { width: 18px; height: 18px; vertical-align: -3px; }
.season-back { margin: 8px 0 2px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 13px; text-align: center; }
.season-shut .club-price { opacity: .55; }
.season-nobuy { display: none !important; }

/* The profile: a badge per season taken part in. */
.season-pbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.season-pb { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 2px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line, #2a2f3a); color: var(--text); font-size: 12px; font-weight: 600; line-height: 20px; }
.season-pb .season-medal { flex: none; display: block; }

/* ⚙️ */
.season-admin-ico svg, .admin-tog-label i svg { width: 16px; height: 16px; vertical-align: -3px; }

/* The New Year's welcome: a card over the lobby, gone by itself, by «Ура!», ×, a tap outside or Escape. */
.season-hello { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 14, .55); opacity: 0; transition: opacity .25s; }
.season-hello.on { opacity: 1; }
.season-hello-card { position: relative; width: min(400px, 100%); border-radius: 18px; overflow: hidden; background: rgb(var(--sb-ink, 18, 26, 38)); border: 1px solid color-mix(in srgb, var(--sb, #ffcf5a) 32%, transparent); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); text-align: center; transform: translateY(10px); transition: transform .25s; }
.season-hello.on .season-hello-card { transform: none; }
.season-hello-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.season-hello-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--sb-ink, 18, 26, 38)) 0%, rgba(var(--sb-ink, 18, 26, 38), 0) 42%); pointer-events: none; } /* 0.54: the art melts into the card */
.season-hello-art .season-art-img { object-position: var(--sb-pos-ph); }
.season-hello-art .season-scene { display: block; width: 100%; height: 100%; }
.season-hello-fl { position: absolute; z-index: 1; top: -6px; left: var(--x); width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .9; transform: scale(var(--s)); animation: season-fall 4.2s linear var(--d) infinite; }
@keyframes season-fall { from { transform: translate(0, 0) scale(var(--s)); } 50% { transform: translate(8px, 70px) scale(var(--s)); } to { transform: translate(-4px, 150px) scale(var(--s)); opacity: 0; } }
.season-hello-x { position: absolute; z-index: 1; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(8, 12, 20, .55); color: #fff; font-size: 22px; line-height: 36px; cursor: pointer; }
.season-hello-pv { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(8, 12, 20, .6); }
.season-hello-h { position: relative; margin: -30px 18px 6px; color: #fff7ea; font-family: 'DPW Season', Georgia, 'Times New Roman', serif; font-size: 32px; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 18px rgba(var(--sb-ink, 0, 0, 0), .95); }
.season-hello-p { margin: 0 20px 16px; color: rgba(255, 247, 234, .8); font-size: 14px; line-height: 1.45; }
.season-hello-ok { margin: 0 0 18px; min-height: 44px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--sb, var(--accent)); color: rgb(var(--sb-ink, 20, 14, 4)); font: inherit; font-size: 16px; font-weight: 750; cursor: pointer; } /* 0.54: flat, in the season's accent */
.season-hello-ok:focus-visible, .season-hello-x:focus-visible { outline: 2px solid var(--sb, #ffcf5a); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .season-hello, .season-hello-card { transition: none; }
  .season-hello-fl { animation: none; }
}

/* (0.54.2) RED: «сезонные баннеры на всю ширину и прилеплено к топ верху, как шапка в этом контейнере» — the banner is the
   lobby's header: the first child of #idle, edge to edge under the stage's rounded top (the stage clips the corners), its
   text in line with the lobby's column; the season's particles fall over it. */
#idle > .season-bn { width: 100%; justify-self: stretch; align-self: start; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  min-height: 230px; padding: 28px max(32px, calc((100% - 940px) / 2 + 32px)) 22px; }
.season-decor[data-mode="lobby"] { z-index: 5; }
@media (max-width: 560px) { #idle > .season-bn { min-height: 0; padding: 124px 14px 14px; } }
@media (max-width: 380px) { #idle > .season-bn { padding-top: 108px; } }

/* (0.54.2) «MovieClub» and this year on the picture's marquee / screen (season.js sign()): the layer moves with the picture
   (the same parallax transform as .season-art-img), the letters sized by the panel (season.js sets the font size), dark marquee letters
   with a warm edge so they read as part of the lit sign, not a sticker. */
.season-sign-layer { position: absolute; inset: 0; pointer-events: none; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.05); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.season-sign { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .08em; box-sizing: border-box; }
.season-sign-name { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 1em; line-height: 1; letter-spacing: .02em; color: #2a160c; text-shadow: 0 0 .06em rgba(255, 214, 150, .9), 0 .03em .02em rgba(255, 240, 210, .6); white-space: nowrap; }
.season-sign-year { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: .6em; line-height: 1; letter-spacing: .32em; padding-left: .32em; color: #6a2a14; text-shadow: 0 0 .08em rgba(255, 214, 150, .8); }
@media (prefers-reduced-motion: reduce) { .season-sign-layer { transition: none; } }
/* (0.65 n65 x) RED «надпись MovieClub и год — более заметно»: a lift over the sign's box (season.js sign()), still and CSS only —
   so it holds with ⚙️ «Живой баннер» off, reduced motion, no GPU or a film playing: the panel lit brighter, the ink deeper (the
   painted letters through backdrop-filter), feathered at the edges; season-fx.js adds the moving light on top. Marquees (bulb-lit
   boards): brighter and warmer; projection screens: a lit wash and more contrast, the dim winter screen most. */
.season-sign-layer.painted .season-sign { display: none; }
.season-sign-lift { position: absolute; pointer-events: none; border-radius: 6px;
  -webkit-backdrop-filter: var(--sgf); backdrop-filter: var(--sgf);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; }
.season-sign-layer[data-kind="m"] { --sgf: brightness(1.1) contrast(1.36) saturate(1.08); --sgt: rgba(96, 44, 0, .15); }
.season-sign-layer[data-kind="s"] { --sgf: brightness(1.26) contrast(1.32) saturate(1.1); } /* the dim winter screen: its light letters up */
.season-sign-layer[data-kind="b"] { --sgf: brightness(.95) contrast(1.34) saturate(1.22); --sgt: rgba(122, 46, 58, .17); } /* a bright screen: the coloured ink deeper and richer */
/* (n65 x6) the sign's motion on a BRIGHT panel (the fx canvas only adds light — invisible on a lit screen): a soft shade instead —
   dappled, drifting slowly over the bright screens (spring, summer), and a band that crosses the panel every ~9.5 s (screens and
   marquees). Only while season-fx.js's loop runs (.fxlive): fx off, reduced motion, a film playing → the still lift alone. */
.season-sign-lift::before, .season-sign-lift::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity .9s ease; will-change: transform; }
.season-sign-lift::before { inset: -18% -26%; background: radial-gradient(34% 56% at 28% 38%, var(--sgt, transparent), transparent 72%), radial-gradient(30% 50% at 70% 64%, var(--sgt, transparent), transparent 72%), radial-gradient(22% 40% at 52% 22%, var(--sgt, transparent), transparent 70%); }
.season-sign-lift::after { top: -10%; bottom: -10%; left: -50%; width: 42%; background: linear-gradient(100deg, transparent, var(--sgt, transparent) 50%, transparent); }
.season-sign-layer.fxlive[data-kind="b"] .season-sign-lift::before { opacity: 1; animation: sgn-dapple 5.5s ease-in-out infinite alternate; }
.season-sign-layer.fxlive[data-kind="b"] .season-sign-lift::after, .season-sign-layer.fxlive[data-kind="m"] .season-sign-lift::after { opacity: 1; animation: sgn-band 9.5s linear infinite; }
@keyframes sgn-dapple { from { transform: translate3d(-15%, -5%, 0) rotate(-2deg); } to { transform: translate3d(15%, 6%, 0) rotate(2deg); } }
@keyframes sgn-band { 0% { transform: translate3d(0, 0, 0); } 36%, 100% { transform: translate3d(480%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .season-sign-lift::before, .season-sign-lift::after { display: none; } }
.season-sign-layer:not(.painted) .season-sign-name { text-shadow: 0 0 .08em rgba(255, 220, 160, .95), 0 0 .3em rgba(255, 214, 150, .45), 0 .03em .02em rgba(255, 240, 210, .6); }
/* (0.54.2) RED «баннер должен переходить вниз в опасити»: the picture (and its scrim) fade out downward into the lobby —
   no edge, no line; the text and chips keep their own full opacity. */
#idle > .season-bn .season-bn-art { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%); }
@media (max-width: 560px) { #idle > .season-bn .season-bn-art { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0, 0, 0, .6) 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0, 0, 0, .6) 82%, transparent 100%); } }


/* (0.56) Phones: the picture is the header's top in full (its own 5:4 crop, the sign never under the text), the season's
   name, days and buttons under it on the picture's faded bottom — on 390/320 the title used to sit on the marquee/screen. */
@media (max-width: 560px) {
  #idle > .season-bn { padding: 0 14px 14px; }
  #idle > .season-bn .season-bn-art { position: relative; inset: auto; margin: 0 -14px -34px; aspect-ratio: 5 / 4;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); }
  #idle > .season-bn .season-bn-art::after { background: linear-gradient(0deg, rgba(var(--sb-scrim), calc(.85 * var(--sb-sa))) 0%, rgba(var(--sb-scrim), 0) 34%); }
}

/* (n65 x7) RED «чтобы фон сезонный не скрывался по вертикали при изменении ширины экрана»: the painting used to COVER the whole
   header (object-fit: cover over the lobby's width × ~230 px), so the wider the lobby, the more of it was cut off top and bottom
   (1920: a third of it left, the sign's top gone). Now the painting has its own box, .season-bn-pic: as tall as the header, as
   wide as its own proportion asks (--sb-ar) — fitted by HEIGHT at every width. What gives is the sides: a header narrower than
   the picture crops them round the picture's focus (object-position); a wider one keeps the box by the text column's right and
   carries the picture on to the edges as a soft out-of-focus copy (.season-bn-bk) under the same scrim, the box's own edges
   feathered into it. The header grows with its width (230 → 320 px, never past 46 % of a short window) so the painting is not
   shrunk on a big screen. All CSS (container units): the height is known before the picture loads, nothing jumps on a resize.
   The sign's layer and the living light sit inside the box (season.js sign() and season-fx.js layout() map through the img's
   own box), so they stay on the painting. Phones keep their own 5:4 crop on top. No container units → the old cover. */
.season-pal { --sb-ar: 2.5; --sb-fx: 92%; } /* --sb-fx: where the side crop of a narrow header holds on to — just past the painted sign's right edge, so the sign never leaves */
.season-pal[data-sp="newyear"] { --sb-fx: 97%; }
.season-pal[data-sp="winter"] { --sb-fx: 91%; }
.season-pal[data-sp="spring"] { --sb-ar: 2.3324; --sb-fx: 95%; }
.season-pal[data-sp="summer"] { --sb-ar: 2.3222; --sb-fx: 89%; }
.season-pal[data-sp="autumn"] { --sb-fx: 91%; }
.season-pal[data-sp="halloween"] { --sb-ar: 2.3222; --sb-fx: 93%; }
.season-bn-pic { position: absolute; inset: 0; }
.season-bn-bk, .season-bn-wide { display: none; }
@supports (width: 1cqw) { @media (min-width: 561px) {
  .season-bn { container: sbn / inline-size; flex-direction: row; justify-content: flex-start; align-items: flex-end; }
  .season-bn[data-n="0"] { justify-content: flex-start; align-items: center; }
  .season-bn::before { content: ''; flex: none; width: 0; height: clamp(180px, min(36cqw - 45px, 46vh - 50px), 270px); } /* the header's height by its width (+ 50 px of padding) */
  .season-bn-body { flex: 1 1 auto; min-width: 0; }
  .season-bn-art { container-type: size; }
  .season-bn-bk { display: block; position: absolute; inset: -30px -44px; background: var(--sb-pos) / cover no-repeat; filter: blur(18px) saturate(1.06) brightness(.86); }
  .season-bn-pic { --sbr: max(0px, calc((100cqw - 1420px) / 2)); --sbw: calc(100cqh * var(--sb-ar));
    --sbfl: clamp(0px, calc((100cqw - var(--sbr) - var(--sbw)) * 1.5), calc(var(--sbw) * .2)); --sbfr: min(var(--sbr), 90px);
    inset: 0 var(--sbr) 0 auto; width: min(100cqw, var(--sbw));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--sbfl), #000 calc(100% - var(--sbfr)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--sbfl), #000 calc(100% - var(--sbfr)), transparent 100%); }
  .season-bn-pic .season-art-img { object-position: var(--sb-fx) 50%; }
  /* (n65 x8) RED «дорисуй вширь и оставь размытые края»: the picture painted on to both sides (season.js artWide, …-wide.webp) lies
     under the box, lined up with it at every width — the same height, the original's pixels exactly under the box's (its left offset
     --sb-wl and width --sb-war in the original's widths), the same parallax and 5 % scale from the box's top centre. So the painted
     sides show sharp and the box's feather only blends a picture into itself (6 %, covering the outpainting's 72 px seam band); the
     blurred copy (.season-bn-bk) is left only past the wide file's ends, where its own ends fade into it. A narrow lobby (the box
     wider than the header, the picture cropped round --sb-fx) keeps the box opaque, so the layer is neither seen nor fetched there. */
  .season-bn-wide { --sbr: max(0px, calc((100cqw - 1420px) / 2)); --sbw: calc(100cqh * var(--sb-ar));
    display: block; position: absolute; top: 0; bottom: 0; right: var(--sbr); width: var(--sbw); pointer-events: none; }
  .season-bn-wide img { position: absolute; top: 0; height: 100%; max-width: none; width: calc(100% * var(--sb-war)); left: calc(-100% * var(--sb-wl));
    opacity: 0; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.05); transform-origin: calc(100% * (var(--sb-wl) + .5) / var(--sb-war)) 0;
    transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 140px, #000 calc(100% - 120px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 140px, #000 calc(100% - 120px), transparent 100%); }
  .season-bn-wide img.on { opacity: 1; }
  @container (max-aspect-ratio: 23 / 10) { .season-bn-wide { display: none; } }
  .season-bn-haswide .season-bn-pic { --sbfl: clamp(0px, calc((100cqw - var(--sbr) - var(--sbw)) * 1000), calc(var(--sbw) * .06));
    --sbfr: clamp(0px, calc((100cqw - var(--sbw)) * 1000), calc(var(--sbw) * .06)); }
  @media (prefers-reduced-motion: reduce) { .season-bn-wide img { transition: none; transform: scale(1.05); } }
  /* a narrow lobby beside the list (a 768 px window leaves the header ~370 px): the name is set smaller so it is not broken mid-word
     («Осе / нь») — a header two lines taller would crop the painting's sides down to a third */
  @container sbn (max-width: 470px) { .season-bn-name { --sbn: clamp(44px, 16cqi, 68px); } .season-bn-main { max-width: 88%; } }
  .season-bn-pic :is(.season-art-img, .season-sign-layer, .season-bn-livefx) { transform-origin: 50% 0; } /* the picture's top edge is its own, not cut by the parallax's 5 % */
} }

/* (0.56) RED «сделай надписи куда более креативные к сезону» — the banner's title in the season's own hand: a font, a
   gradient of the season's light and one small living ornament (still, with reduced motion). Fonts are subsets of the six
   names only (fonts/season-fonts-OFL.txt), loaded only when their season shows. */
@font-face { font-family: 'DPW NY'; src: url('fonts/Lobster-Regular.woff2?v=1') format('woff2'); font-display: swap; }
@font-face { font-family: 'DPW Spring'; src: url('fonts/Caveat-Bold.woff2?v=1') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DPW Summer'; src: url('fonts/Pacifico-Regular.woff2?v=1') format('woff2'); font-display: swap; }
@font-face { font-family: 'DPW Spooky'; src: url('fonts/RubikWetPaint-Regular.woff2?v=1') format('woff2'); font-display: swap; }
.season-bn[data-sb] .season-bn-name { position: relative; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none; }
/* the ornament lives OUTSIDE the filtered title (its own element): animating inside a drop-shadow filter repainted the
   whole title every frame — the 0.56.0 deploy's CPU×4 budgets caught it */
.season-bn-nw { position: relative; display: inline-block; padding-right: .55em; }
.season-bn-orn { position: absolute; right: -.1em; top: -.15em; font-size: 18px; font-style: normal; line-height: 1; pointer-events: none; }
.season-bn-orn::after { display: inline-block; animation: sbn-orn 3.2s ease-in-out 1; } /* plays once when the banner shows — an endless loop (or one on hover, where the parallax lives) cost the page every frame */
@media (max-width: 560px) { .season-bn-orn { font-size: 14px; } }
@keyframes sbn-orn { 0%, 100% { transform: rotate(-8deg) scale(1); opacity: .95; } 50% { transform: rotate(10deg) scale(1.12); opacity: 1; } }
.season-bn[data-sb="newyear"] .season-bn-name { font-family: 'DPW NY', 'DPW Season', Georgia, serif; font-weight: 400; --sbk: 1.12; letter-spacing: .01em;
  background-image: linear-gradient(180deg, #fffbe8 0%, #ffe39a 45%, #f4b44a 100%); filter: drop-shadow(0 0 12px rgba(255, 196, 92, .45)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.season-bn[data-sb="newyear"] .season-bn-orn::after { content: '✨'; }
.season-bn[data-sb="winter"] .season-bn-name { background-image: linear-gradient(180deg, #ffffff 0%, #d9f3ff 40%, #9fd3ff 70%, #d6c6ff 100%);
  filter: drop-shadow(0 0 10px rgba(150, 215, 255, .55)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.season-bn[data-sb="winter"] .season-bn-orn::after { content: '❄️'; animation-name: sbn-spin; animation-duration: 9s; animation-timing-function: linear; }
@keyframes sbn-spin { to { transform: rotate(360deg); } }
.season-bn[data-sb="spring"] .season-bn-name { font-family: 'DPW Spring', 'DPW Season', Georgia, serif; font-weight: 700; --sbk: 1.3; letter-spacing: .01em;
  background-image: linear-gradient(180deg, #fff0f6 0%, #ffb3d1 50%, #ff8fae 100%); filter: drop-shadow(0 0 10px rgba(255, 150, 190, .5)) drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.season-bn[data-sb="spring"] .season-bn-orn::after { content: '🌸'; }
.season-bn[data-sb="summer"] .season-bn-name { font-family: 'DPW Summer', 'DPW Season', Georgia, serif; font-weight: 400; --sbk: 1.02; line-height: 1.25;
  background-image: linear-gradient(180deg, #fff1a8 0%, #ffc15e 40%, #ff8a5c 72%, #ff6f91 100%); filter: drop-shadow(0 0 12px rgba(255, 150, 90, .5)) drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.season-bn[data-sb="summer"] .season-bn-orn::after { content: '☀️'; top: -.05em; }
.season-bn[data-sb="autumn"] .season-bn-name { background-image: linear-gradient(180deg, #ffe8b0 0%, #ffb35a 45%, #e8603a 80%, #c53a2a 100%);
  filter: drop-shadow(0 0 10px rgba(255, 140, 60, .45)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.season-bn[data-sb="autumn"] .season-bn-orn::after { content: '🍁'; animation-name: sbn-leaf; animation-duration: 4.5s; }
@keyframes sbn-leaf { 0%, 100% { transform: translate(0, 0) rotate(-14deg); } 50% { transform: translate(.08em, .14em) rotate(18deg); } }
.season-bn[data-sb="halloween"] .season-bn-name { font-family: 'DPW Spooky', 'DPW Season', Georgia, serif; font-weight: 400; --sbk: 1.06; letter-spacing: .02em;
  background-image: linear-gradient(180deg, #ffd27a 0%, #ff8a2a 50%, #b25cff 100%); filter: drop-shadow(0 0 12px rgba(178, 92, 255, .5)) drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }
.season-bn[data-sb="halloween"] .season-bn-orn::after { content: '🦇'; animation-name: sbn-bat; animation-duration: 2.6s; filter: drop-shadow(0 0 3px #ff9a3a) drop-shadow(0 0 6px rgba(178, 92, 255, .8)); }
.season-bn[data-sb="halloween"] .season-bn-name { font-size: min(calc(var(--sbn) * var(--sbk, 1)), calc(100cqi / 6.6)); } /* (0.58.1) «Halloween» in the wide wet-paint face is ~6.6 em with the ornament's gap — never broken mid-word («Hallowee / n» on phones) */
@keyframes sbn-bat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-.12em) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .season-bn[data-sb] .season-bn-orn::after { animation: none; } }

/* (0.57) RED «сделай куда больше надписи про сезон, а кнопки по ивентам более solid»: the season's name is the banner's
   headline; the days line grows with it; the events' buttons are solid chips in the season's colour (no glass — cheaper
   too: no backdrop blur over the moving picture). */
.season-bn-left { font-size: 14px; }
.season-bn-btn { background: var(--sb); color: rgb(var(--sb-ink)); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  font-weight: 750; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(0, 0, 0, .38); }
.season-bn-btn:hover { border-color: transparent; filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 22px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .25); }
.season-bn-btn:focus-visible { outline: 2px solid #fff; }
@media (max-width: 380px) { .season-bn-left { font-size: 12.5px; } }
.season-bn-orn { font-size: 32px; }
@media (max-width: 560px) { .season-bn-orn { font-size: 23px; } }
/* (0.57) the club's own painted icons instead of emoji: on the chips and as the ornament by the season's name */
.season-bn-img { display: block; width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .18)); }
.season-bn-many .season-bn-img { width: 26px; height: 26px; }
.season-bn[data-sb] .season-bn-orn::after { content: ''; width: 1em; height: 1em; background: center / contain no-repeat; }
.season-bn[data-sb="newyear"] .season-bn-orn::after { background-image: url(/season-icons/sparkle.webp?v=1); }
.season-bn[data-sb="winter"] .season-bn-orn::after { background-image: url(/season-icons/snowflake.webp?v=1); }
.season-bn[data-sb="spring"] .season-bn-orn::after { background-image: url(/season-icons/blossom.webp?v=1); }
.season-bn[data-sb="summer"] .season-bn-orn::after { background-image: url(/season-icons/sun.webp?v=1); }
.season-bn[data-sb="autumn"] .season-bn-orn::after { background-image: url(/season-icons/maple.webp?v=1); }
.season-bn[data-sb="halloween"] .season-bn-orn::after { background-image: url(/season-icons/bat.webp?v=1); }
/* (0.57) RED «куда более стилизованные / более качественные кнопки», then «кнопки сами хороши, но шрифт и расположение не
   очень»: every season's chip is a painted plate (season-icons/btn-<season>.webp, the same hand as the icons) laid as a
   9-slice border-image — the decorated ends keep their shape, only the plain middle stretches; snow caps and icicles stand
   out past the chip (outset). The label is a chunky rounded game face (Nunito 850, own subset) with the plate's own emboss,
   centred in the plate's plain middle; the chips sit in a grid of equal columns (four → two by two). All still: no
   animation (the banner's perf budget). Slices are in the plate's px; widths/outsets scale with --k (1 = a 44 px body). */
@font-face { font-family: 'DPW NY UI'; src: url(/fonts/Lobster-ui.woff2?v=1) format('woff2'); font-display: swap; }
@font-face { font-family: 'DPW Spring UI'; src: url(/fonts/Caveat-700-ui.woff2?v=1) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DPW Rubik UI'; src: url(/fonts/Rubik-800-ui.woff2?v=1) format('woff2'); font-weight: 800; font-display: swap; }
.season-bn[data-sb] { --k: 1.1; } /* (0.61) a size under the bigger title (was 1.22 / 1) */
/* (n63 c) RED «перепроверь текст кнопок всех сезонных, шрифт и размер должен быть гармоничным»: ONE type system for the chips'
   text — every season has one label face (--lf/--lw: its title's family in a readable cut; summer's Pacifico Cyrillic didn't
   read → the shared round Rubik in summer's colours), and plate, medallion tooltip, phone pill all size it by the same rule:
   font-size = target x-height / the face's Cyrillic x-height (--lx), so a script and a serif look the same size; the plate's
   x-height ≈ the day line's caps (title ≫ day line ≈ chip label). --lo lifts the glyphs onto the line's optical centre
   (each face's ascent/descent puts it lower by a different amount). */
.season-bn[data-sb] { --lf: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --lw: 700; --lx: .52; --ls: .01em; --lo: -.09em; --lxh: 8.6px; }
.season-bn[data-sb="newyear"] { --lf: 'DPW NY UI', 'DPW NY', Georgia, serif; --lw: 400; --lx: .5; --ls: 0em; --lo: -.085em; }
.season-bn:is([data-sb="winter"], [data-sb="autumn"]) { --lf: 'DPW Season', Georgia, serif; --lw: 800; --lx: .52; --ls: .01em; --lo: -.12em; }
.season-bn[data-sb="spring"] { --lf: 'DPW Spring UI', 'DPW Spring', cursive; --lw: 700; --lx: .41; --ls: 0em; --lo: -.07em; }
.season-bn:is([data-sb="summer"], [data-sb="halloween"]) { --lf: 'DPW Rubik UI', system-ui, sans-serif; --lw: 800; --lx: .52; --ls: .015em; --lo: -.05em; }
.season-bn[data-sb] :is(.season-bn-btn, .sbn-pill, .sbn-tip, .sbn-med-ch) { font-family: var(--lf); font-weight: var(--lw); letter-spacing: var(--ls); font-synthesis: none; }
.season-bn[data-sb] :is(.season-bn-btn, .sbn-pill) > .season-bn-bl { position: relative; top: var(--lo); }
.season-bn[data-sb] .sbn-tip { padding-top: calc(4px + var(--lo)); padding-bottom: calc(4px - var(--lo)); }
/* chips sized to their label (the painted ends stay the same width, the plain middle takes the label) */
.season-bn[data-sb] .season-bn-btns { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; width: max-content; max-width: 100%; gap: 14px 12px; } /* three: each sized to its label */
.season-bn[data-sb] .season-bn-btns:not(:has(> :nth-child(3))), .season-bn[data-sb] .season-bn-btns:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* two or four: 1fr in a max-content grid — every chip as wide as the widest, the labels centred alike */
.season-bn[data-sb] .season-bn-btn { background: none; box-shadow: none; border: 0 solid transparent; border-radius: 0;
  border-image-repeat: stretch; filter: drop-shadow(0 3px 5px rgba(var(--sb-scrim), .62)); /* (0.61) the shadow in the scene's own dark tone, not black */
  min-height: calc(44px * var(--k)); min-width: 0; flex-direction: row; justify-content: center; gap: 9px;
  font-size: calc(var(--lxh) / var(--lx)); line-height: 1.1; text-align: left; white-space: nowrap;
  /* game-button lettering: a light fill, a dark outline in the plate's own colour (--o), a hard drop under it */
  --o: #5a2400; color: #fff7e4;
  text-shadow: 0 -1.2px 0 var(--o), 0 1.2px 0 var(--o), -1.2px 0 0 var(--o), 1.2px 0 0 var(--o), -.85px -.85px 0 var(--o), .85px -.85px 0 var(--o),
    -.85px .85px 0 var(--o), .85px .85px 0 var(--o), 0 2px 0 var(--o), 0 3px 5px rgba(var(--sb-scrim), .4); } /* (0.61) a lighter outline and drop */
.season-bn[data-sb] .season-bn-btn:hover { box-shadow: none; filter: drop-shadow(0 6px 10px rgba(var(--sb-scrim), .58)); }
.season-bn[data-sb] .season-bn-btn > span { position: relative; z-index: 1; }
.season-bn[data-sb] .season-bn-img { width: 34px; height: 34px; margin: -4px 0; }
.season-bn[data-sb="newyear"] .season-bn-btn { --o: #7a2c00; color: #fff8e2;
  padding: 0 calc(56px * var(--k)) calc(5px * var(--k)); /* symmetric: the label sits on the plate's own centre line, the holly is the frame */
  border-image-source: url(/season-icons/btn-newyear.webp?v=2); border-image-slice: 52 52 20 104 fill;
  border-image-width: calc(27px * var(--k)) calc(27px * var(--k)) calc(10px * var(--k)) calc(54px * var(--k)); border-image-outset: calc(17px * var(--k)) 0 0 0; }
.season-bn[data-sb="newyear"] .season-bn-btns { padding-top: calc(17px * var(--k)); row-gap: calc(28px * var(--k)); }
.season-bn[data-sb="winter"] .season-bn-btn { --o: #133a75; color: #ffffff; padding: 0 calc(34px * var(--k));
  border-image-source: url(/season-icons/btn-winter.webp?v=2); border-image-slice: 20 110 40 110 fill;
  border-image-width: calc(9px * var(--k)) calc(52px * var(--k)) calc(19px * var(--k)) calc(52px * var(--k)); border-image-outset: calc(2px * var(--k)) 0 calc(9px * var(--k)) 0; }
.season-bn[data-sb="winter"] .season-bn-btns { row-gap: calc(20px * var(--k)); }
.season-bn[data-sb="autumn"] .season-bn-btns { column-gap: 10px; }
.season-bn[data-sb="spring"] .season-bn-btn { --o: #8a1d55; color: #ffffff; padding: 0 calc(50px * var(--k));
  border-image-source: url(/season-icons/btn-spring.webp?v=2); border-image-slice: 30 100 30 100 fill;
  border-image-width: calc(12px * var(--k)) calc(40px * var(--k)) calc(12px * var(--k)) calc(40px * var(--k)); }
.season-bn[data-sb="summer"] .season-bn-btn { --o: #9a3410; color: #fffaf0; padding: 0 calc(22px * var(--k)) calc(9px * var(--k));
  border-image-source: url(/season-icons/btn-summer.webp?v=2); border-image-slice: 25 60 32 60 fill;
  border-image-width: calc(10px * var(--k)) calc(23px * var(--k)) calc(12px * var(--k)) calc(23px * var(--k)); }
.season-bn[data-sb="autumn"] .season-bn-btn { --o: #5a1d02; color: #fff1d6; padding: 0 calc(54px * var(--k)) 0 calc(20px * var(--k));
  border-image-source: url(/season-icons/btn-autumn.webp?v=2); border-image-slice: 22 95 22 40 fill;
  border-image-width: calc(9.5px * var(--k)) calc(41px * var(--k)) calc(9.5px * var(--k)) calc(17px * var(--k)); }
.season-bn[data-sb="halloween"] .season-bn-btn { --o: #2e0a45; color: #ffb547;
  min-height: calc(52px * var(--k)); padding: calc(15px * var(--k)) calc(46px * var(--k)) calc(5px * var(--k)) calc(18px * var(--k));
  border-image-source: url(/season-icons/btn-halloween.webp?v=2); border-image-slice: 42 90 18 40 fill;
  border-image-width: calc(18px * var(--k)) calc(39px * var(--k)) calc(8px * var(--k)) calc(17px * var(--k)); }
.season-bn[data-sb="halloween"] .season-bn-btn:focus-visible { outline-color: #ffb64f; }
@media (max-width: 760px) {
  /* narrow: a plate's painted ends must not stretch tall — labels on one line; (0.61) two per row while two fit (641–760: the
     one-per-row column of four or five covered half the picture), one per row on phones */
  .season-bn[data-sb] { --k: 1; }
  .season-bn[data-sb] .season-bn-btns, .season-bn[data-sb] .season-bn-btns:not(:has(> :nth-child(3))), .season-bn[data-sb] .season-bn-btns:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-bn[data-sb] .season-bn-btn { flex-direction: row; --lxh: 8px; }
  .season-bn[data-sb] .season-bn-img { width: 30px; height: 30px; }
}
@media (max-width: 640px) {
  .season-bn[data-sb] { --k: 1.08; }
  .season-bn[data-sb] .season-bn-btns, .season-bn[data-sb] .season-bn-btns:not(:has(> :nth-child(3))), .season-bn[data-sb] .season-bn-btns:has(> :nth-child(4)) { grid-template-columns: minmax(0, 420px); }
  .season-bn[data-sb] .season-bn-btn { --lxh: 8.2px; white-space: normal; }
}
@media (max-width: 380px) { .season-bn[data-sb] .season-bn-btn { --lxh: 7.6px; gap: 7px; } .season-bn[data-sb] .season-bn-img { width: 26px; height: 26px; } }
@media (max-width: 380px) { .season-bn[data-sb="newyear"] .season-bn-btn { padding-left: 42px; padding-right: 42px; white-space: nowrap; } }
/* (0.57) RED «добавь кнопкам немного интерактивности», then (0.61) «кнопки сезонные должны куда более гармонично выглядеть с
   окружением и анимации тоже»: one calm motion language for all six, in the decor's own tempo (the picture's parallax eases
   .7 s, the ornaments 3–9 s): a slow ease-out lift of 2 px with no overshoot; a glint in the scene's own light (--sb-glint)
   sweeping once from the side that light comes from (--sb-gd); the icon a small lift-and-tilt (no hop, shiver or spook
   jitter); a soft 1 px dip on press; the season's small burst from the chip's rim on a click (season-decor.js). All one-shot —
   nothing loops (the banner's perf budget); reduced motion — only the shadow. */
.season-bn[data-sb] { --sb-glint: 255, 238, 204; --sb-gd: sbn-glint; --sb-lx: -1; --sb-ly: .7; } /* --sb-lx/--sb-ly: the light's side (−1 left, 1 right) and height (0 level, 1 overhead) for the chips' shader (season-decor.js) */
.season-bn[data-sb="newyear"] { --sb-glint: 255, 222, 160; --sb-gd: sbn-glint-r; --sb-lx: 1; --sb-ly: .35; } /* the marquee's warm light, from the right */
.season-bn[data-sb="winter"] { --sb-glint: 214, 238, 255; --sb-gd: sbn-glint-r; --sb-lx: 1; --sb-ly: .8; } /* moon and aurora, above right */
.season-bn[data-sb="spring"] { --sb-glint: 255, 242, 228; --sb-ly: .75; } /* daylight from the left */
.season-bn[data-sb="summer"] { --sb-glint: 255, 238, 196; --sb-ly: .85; }
.season-bn[data-sb="autumn"] { --sb-glint: 255, 214, 160; --sb-gd: sbn-glint-r; --sb-lx: 1; --sb-ly: .25; } /* the low sun and the lamps, right */
.season-bn[data-sb="halloween"] { --sb-glint: 222, 206, 255; --sb-gd: sbn-glint-r; --sb-lx: 1; --sb-ly: .6; } /* the moon, right */
.season-bn[data-sb] .season-bn-btn { transition: transform .45s cubic-bezier(.22, .61, .36, 1), filter .45s ease; will-change: auto; }
.season-bn[data-sb] .season-bn-btn:hover { transform: translateY(-2px); } /* no scale: a scaled 9-slice shows its seams */
.season-bn[data-sb] .season-bn-btn:active { transform: translateY(1px); filter: drop-shadow(0 1px 3px rgba(var(--sb-scrim), .6)) brightness(.97); transition-duration: .12s; }
.season-bn[data-sb] .season-bn-btn::after { content: ''; position: absolute; inset: 18% 12% 22%; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(var(--sb-glint), .38) 50%, transparent 64%) no-repeat; background-size: 260% 100%; background-position: 160% 0; opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } /* feathered: no box edge shows, under the label */
.season-bn[data-sb] .season-bn-btn:hover::after { animation: var(--sb-gd) 1.2s cubic-bezier(.25, .6, .3, 1) 1; }
@keyframes sbn-glint { 0% { opacity: 0; background-position: 160% 0; } 18%, 78% { opacity: 1; } 100% { opacity: 0; background-position: -60% 0; } } /* left → right */
@keyframes sbn-glint-r { 0% { opacity: 0; background-position: -60% 0; } 18%, 78% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } } /* right → left */
/* (0.61 b) RED «используй шейдеры если необходимо»: with WebGL the glint, the lit edge and the press's bloom are one small
   shader canvas inside the chip (season-decor.js LIGHT), under the label, screen-blended on the plate; html.sbn-gl while it
   works — the CSS glint steps aside. Without WebGL (or after a lost context) the CSS glint above and a CSS bloom below. */
.season-bn-gl { position: absolute; pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.sbn-gl .season-bn[data-sb] .season-bn-btn::after { content: none; }
html:not(.sbn-gl) .season-bn[data-sb] .season-bn-btn.sbn-tapped { animation: sbn-bloom .6s cubic-bezier(.22, .61, .36, 1) 1; }
@keyframes sbn-bloom { 25% { filter: drop-shadow(0 0 8px rgba(var(--sb-glint), .5)) drop-shadow(0 2px 4px rgba(var(--sb-scrim), .55)) brightness(1.06); } }
.season-bn[data-sb] .season-bn-bi { transform-origin: 50% 80%; }
.season-bn[data-sb] .season-bn-btn:hover .season-bn-bi { animation: sbn-lift .9s cubic-bezier(.22, .61, .36, 1) 1; }
.season-bn[data-sb] .season-bn-btn.sbn-tapped .season-bn-bi { animation: sbn-lift .6s cubic-bezier(.22, .61, .36, 1) 1; } /* the class lives 600 ms */
@keyframes sbn-lift { 0% { transform: none; } 40% { transform: translateY(-3px) rotate(-4deg) scale(1.06); } 100% { transform: none; } }
@media (hover: none) { .season-bn[data-sb] .season-bn-btn:hover { transform: none; } .season-bn[data-sb] .season-bn-btn:hover::after, .season-bn[data-sb] .season-bn-btn:hover .season-bn-bi { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .season-bn[data-sb] .season-bn-btn, .season-bn[data-sb] .season-bn-btn:hover, .season-bn[data-sb] .season-bn-btn:active { transform: none; transition: filter .2s; }
  .season-bn[data-sb] .season-bn-btn:hover::after, .season-bn[data-sb] .season-bn-btn .season-bn-bi { animation: none !important; }
  html:not(.sbn-gl) .season-bn[data-sb] .season-bn-btn.sbn-tapped { animation: none; }
}

/* (n62 c) RED «кнопки сезонные всё ещё не органично в шапке: очень много кнопок больших и в ряд» → «А + В на телефоне»
   (season-decor.js layChips): wide = one featured plate + small round painted medallions on its line (data-chips="a");
   phone, or a row too narrow for A's one line = one scrolling strip of light pills (data-chips="c"). */
.season-bn[data-sb][data-chips] .season-bn-btns { display: flex; flex-wrap: nowrap; align-items: center; width: auto; max-width: 100%; padding-top: 0; }
/* A «Главное + значки» */
.season-bn[data-sb][data-chips="a"] .season-bn-btns { gap: 16px; }
.season-bn[data-sb="newyear"][data-chips="a"] .season-bn-btns { padding-top: calc(17px * var(--k)); }
/* (n65 fix3) the New Year header at 761–1100 px (1024 × 768: 386 px against the half-window bound 384): the holly plates' room
   above the chips 17 → 12 px × k and the title-to-chips gap 16 → 12 px (the phone's) — ~9.5 px off (→ ~377); the holly (outset
   17 px × k) still clears the day line by ~6.5 px. Nothing else changes; wider and narrower headers keep their gaps. */
@media (min-width: 761px) and (max-width: 1100px) {
  .season-bn[data-sb="newyear"] .season-bn-body { gap: 12px; }
  .season-bn[data-sb="newyear"] .season-bn-btns, .season-bn[data-sb="newyear"][data-chips="a"] .season-bn-btns { padding-top: calc(12px * var(--k)); }
}
.season-bn[data-sb][data-chips="a"] .season-bn-btn { flex: none; }
.sbn-meds { display: flex; flex: none; align-items: center; gap: 10px; }
.sbn-med { position: relative; flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff7ea;
  border: 2px solid transparent;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--sb) 46%, rgb(var(--sb-scrim))) 0%, color-mix(in srgb, var(--sb) 16%, rgb(var(--sb-scrim))) 52%, rgb(var(--sb-scrim)) 88%) padding-box,
    linear-gradient(calc(var(--sb-lx, -1) * -35deg + 180deg), #fff8e8 0%, var(--sb) 38%, color-mix(in srgb, var(--sb) 55%, #000) 100%) border-box;
  box-shadow: inset 0 0 0 1.5px rgba(var(--sb-scrim), .85), inset 0 2px 6px rgba(255, 255, 255, .14), 0 3px 7px rgba(var(--sb-scrim), .6);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease; }
.season-bn[data-sb] .sbn-med .season-bn-img { width: 28px; height: 28px; margin: 0; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .45)); }
.sbn-med-ch { font-size: calc(9.4px / var(--lx, .52)); line-height: 1; }
/* Halloween: its icons are dark on a violet night — a candle-warm inner light and a lit rim around each painted icon */
.season-bn[data-sb="halloween"] .sbn-med { background: radial-gradient(circle at 50% 44%, rgba(255, 196, 120, .62) 0%, rgba(214, 120, 52, .34) 40%, rgb(var(--sb-scrim)) 86%) padding-box,
    linear-gradient(calc(var(--sb-lx, -1) * -35deg + 180deg), #ffe2a8 0%, #ffa63f 40%, #5a2a0e 100%) border-box; }
.season-bn[data-sb="halloween"] .sbn-med .season-bn-img { filter: drop-shadow(0 0 1px rgba(255, 226, 170, .95)) drop-shadow(0 0 3px rgba(255, 170, 80, .55)); }
.sbn-med:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(var(--sb-scrim), .85), inset 0 2px 6px rgba(255, 255, 255, .14), 0 6px 12px rgba(var(--sb-scrim), .6), 0 0 0 3px color-mix(in srgb, var(--sb) 30%, transparent); }
.sbn-med:active { transform: translateY(1px); transition-duration: .12s; }
.sbn-med:focus-visible { outline: 2px solid var(--sb); outline-offset: 3px; }
.sbn-med .season-bn-dot { top: -2px; right: -2px; }
.sbn-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none; z-index: 3;
  padding: 4px 10px; border-radius: 8px; background: rgba(var(--sb-scrim), .94); border: 1px solid color-mix(in srgb, var(--sb) 45%, transparent);
  color: #fff7ea; font-size: calc(7.1px / var(--lx, .52)); line-height: 1.25; opacity: 0; transition: opacity .2s ease, transform .3s cubic-bezier(.22, .61, .36, 1); }
.sbn-med:hover .sbn-tip, .sbn-med:focus-visible .sbn-tip, .sbn-med.sbn-tapped .sbn-tip { opacity: 1; transform: translate(-50%, 0); }
.sbn-meds > .sbn-med:last-child .sbn-tip { left: auto; right: -6px; transform: translate(0, 4px); } /* the last one's tip stays inside the banner */
.sbn-meds > .sbn-med:last-child:is(:hover, :focus-visible, .sbn-tapped) .sbn-tip { transform: none; }
@media (hover: none) { .sbn-med:hover { transform: none; } }
/* C «Лёгкая строка»: small glassy pills tinted by the season, one horizontally scrolling strip with an edge fade */
.season-bn[data-sb][data-chips="c"] .season-bn-btns { display: block; min-width: 0; }
.sbn-pills { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 6px 30px 6px 14px; scroll-snap-type: x proximity; scroll-padding-left: 14px; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 34px), transparent); }
.sbn-pills::-webkit-scrollbar { display: none; }
.sbn-pill { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 5px; border-radius: 999px; cursor: pointer; scroll-snap-align: start;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sb) 24%, rgba(var(--sb-scrim), .5)), rgba(var(--sb-scrim), .66));
  border: 1px solid color-mix(in srgb, var(--sb) 48%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 6px rgba(var(--sb-scrim), .45);
  color: #fff7ea; font-size: calc(7.4px / var(--lx, .52)); line-height: 1.1; white-space: nowrap;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), border-color .3s ease, background .3s ease; }
.sbn-pill:not(:has(.season-bn-bi)) { padding-left: 13px; }
.sbn-pill::after { content: ''; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; } /* a 44 px tap target round a 34 px pill (the strip's padding holds it) */
.season-bn[data-sb] .sbn-pill .season-bn-img { width: 24px; height: 24px; margin: 0; }
.season-bn[data-sb="halloween"] .sbn-pill .season-bn-img { filter: drop-shadow(0 0 1px rgba(255, 226, 170, .9)) drop-shadow(0 0 2.5px rgba(255, 170, 80, .5)); }
.sbn-pill:hover { transform: translateY(-1px); border-color: var(--sb); background: linear-gradient(180deg, color-mix(in srgb, var(--sb) 34%, rgba(var(--sb-scrim), .5)), rgba(var(--sb-scrim), .7)); }
.sbn-pill:active { transform: translateY(1px); transition-duration: .12s; }
.sbn-pill:focus-visible { outline: 2px solid var(--sb); outline-offset: -2px; }
.sbn-pill .season-bn-dot { top: 1px; right: 1px; }
@media (hover: none) { .sbn-pill:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sbn-med, .sbn-pill, .sbn-tip { transition: none; } .sbn-med:hover, .sbn-pill:hover { transform: none; } .sbn-pills { scroll-behavior: auto; } }
/* the small chips' life, as the plates': the shader canvas under the icon/label, the icon's lift; without WebGL a CSS bloom */
.sbn-med > .season-bn-bi, .sbn-pill > span { position: relative; z-index: 1; }
.season-bn[data-sb] :is(.sbn-med, .sbn-pill):hover .season-bn-bi { animation: sbn-lift .9s cubic-bezier(.22, .61, .36, 1) 1; }
.season-bn[data-sb] :is(.sbn-med, .sbn-pill).sbn-tapped .season-bn-bi { animation: sbn-lift .6s cubic-bezier(.22, .61, .36, 1) 1; }
html:not(.sbn-gl) .season-bn[data-sb] :is(.sbn-med, .sbn-pill).sbn-tapped { animation: sbn-bloom .6s cubic-bezier(.22, .61, .36, 1) 1; }
@media (hover: none) { .season-bn[data-sb] :is(.sbn-med, .sbn-pill):hover .season-bn-bi { animation: none; } }
@media (prefers-reduced-motion: reduce) { .season-bn[data-sb] :is(.sbn-med, .sbn-pill) .season-bn-bi, html:not(.sbn-gl) .season-bn[data-sb] :is(.sbn-med, .sbn-pill).sbn-tapped { animation: none !important; } }
