@charset "UTF-8";
/* Clash Esports: the season look of the member pages (js/season.js; owner request 2026-11-19, the app's "look C").
   Everything here waits for html.season-xmas: without that class not one rule applies, so the pages look as they always did.
   - the page layer (.xm-sky, made by js/season.js): faint line drawings at 7-8 % white / soft gold, a warm red glow at the
     top start corner and a gold one at the bottom end, slow snow; behind every card, mirrored in Arabic. On the home page the
     photographs fill the screen, so only the snow falls there, over each photograph and under its words (.xm-veil);
   - the main cards: a light Christmas wash (deep red at the top, pine green at the bottom, through the dark middle) coming in
     from the start side, and a thin soft-gold line along the top edge;
   - a small red Santa hat on the top start corner of the two or three most important cards of a page (never over words,
     numbers or buttons; the hat lives in the corner padding and rises about 15 px above the card);
   - the greeting where the page greets the member.
   House rules: black page, white/red buttons untouched, colour only as small edges, nothing flashes; the look fades in over
   0.6 s (--xm-a), the snow is off when the device asks for less motion, and nothing is drawn on the logo. */

/* 0 -> 1 when the look turns on: every colour below is scaled by it, so it fades in instead of popping */
@property --xm-a { syntax: '<number>'; inherits: true; initial-value: 0; }

html.season-xmas {
  --xm-a: 1;
  transition: --xm-a 0.6s ease;
  --xm-to: to right; /* the start side, where the wash comes in */
  --xm-gold: 233 201 135;
  --xm-hello: "Merry Christmas";
  --xm-hello-to: "Merry Christmas,";
}
html.season-xmas[dir="rtl"] { --xm-to: to left; }
html.season-xmas[lang="ar"] { --xm-hello: "عيد ميلاد مجيد"; --xm-hello-to: "عيد ميلاد مجيد،"; }
/* the page layer sits between the black page and everything on it */
html.season-xmas body { isolation: isolate; }

/* ---------- the page layer ---------- */
.xm-sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  --u: min(100vw, 520px); /* the drawings keep a phone size on wide screens */
  opacity: var(--xm-a, 1);
}
html:not(.season-xmas) .xm-sky, html:not(.season-xmas) .xm-veil { display: none; }
/* the member portal on a wide screen: the side menu covers the start side, so the layer starts after it */
@media (min-width: 721px) { .portal .xm-sky { inset-inline-start: 240px; } }
.xm-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 42vh at 0 -2%, rgb(229 35 47 / 0.075), rgb(229 35 47 / 0.034) 45%, rgb(229 35 47 / 0)),
    radial-gradient(circle 38vh at 100% 102%, rgb(var(--xm-gold) / 0.05), rgb(var(--xm-gold) / 0.022) 45%, rgb(var(--xm-gold) / 0));
}
html[dir="rtl"] .xm-art { transform: scaleX(-1); }
.xm-d { position: absolute; translate: -50% -50%; overflow: visible; }
.xm-d path {
  fill: none; stroke: currentColor; stroke-width: 1.15px; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
}
.xm-w { color: rgb(255 255 255 / 0.075); }
.xm-g { color: rgb(var(--xm-gold) / 0.085); }
.xm-dust { fill: rgb(var(--xm-gold)); }

/* slow snow: two thin layers of a few dots, falling about 11 and 14 px a second, swaying a little; no twinkle */
.xm-snow { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; will-change: transform; }
.xm-s1 {
  top: -360px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='360'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='40' cy='30' r='1.5' fill-opacity='0.16'/%3E%3Ccircle cx='212' cy='96' r='1' fill-opacity='0.12'/%3E%3Ccircle cx='118' cy='172' r='1.8' fill-opacity='0.2'/%3E%3Ccircle cx='282' cy='238' r='0.9' fill-opacity='0.11'/%3E%3Ccircle cx='70' cy='302' r='1.2' fill-opacity='0.14'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 320px 360px repeat;
  animation: xm-fall-1 34s linear infinite, xm-sway 9s ease-in-out infinite alternate;
}
.xm-s2 {
  top: -300px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='300'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='182' cy='40' r='0.8' fill-opacity='0.12'/%3E%3Ccircle cx='28' cy='142' r='1.3' fill-opacity='0.16'/%3E%3Ccircle cx='150' cy='232' r='1' fill-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E") 90px 0 / 260px 300px repeat;
  animation: xm-fall-2 22s linear infinite, xm-sway 7s ease-in-out -3s infinite alternate-reverse;
}
@keyframes xm-fall-1 { from { transform: translateY(0); } to { transform: translateY(360px); } }
@keyframes xm-fall-2 { from { transform: translateY(0); } to { transform: translateY(300px); } }
@keyframes xm-sway { from { translate: -6px 0; } to { translate: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .xm-snow { display: none; } }
/* the home page: the snow over each photograph, under its words and the logo */
.xm-veil { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: var(--xm-a, 1); }

/* ---------- the main cards: the wash and the soft-gold top line ----------
   Three layers over the card's own colour: the gold line (fading toward the end), a cover in the card's colour that hides
   the wash toward the end side (--xm-base, the card's colour as r g b), and the wash itself. */
html.season-xmas :is(.pl-box, .pn-card, .pn-zone, .pn-sess, .branch-copy) {
  --xm-base: 19 19 23; /* --surface */
  background-image:
    linear-gradient(var(--xm-to), rgb(var(--xm-gold) / calc(0.75 * var(--xm-a, 1))), rgb(var(--xm-gold) / calc(0.35 * var(--xm-a, 1))) 50%, rgb(var(--xm-gold) / calc(0.06 * var(--xm-a, 1)))),
    linear-gradient(var(--xm-to), rgb(var(--xm-base) / 0), rgb(var(--xm-base) / 0.55) 45%, rgb(var(--xm-base))),
    linear-gradient(rgb(76 5 25 / calc(0.4 * var(--xm-a, 1))), rgb(0 0 0 / calc(0.08 * var(--xm-a, 1))) 50%, rgb(6 47 28 / calc(0.4 * var(--xm-a, 1))));
  background-size: 100% 1.5px, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
html.season-xmas :is(.pn-card, .branch-copy) { --xm-base: 8 8 10; } /* --bg */
html.season-xmas .pn-card-btn:hover { --xm-base: 14 14 17; }

/* ---------- the Santa hat ----------
   The app's hat (clash-app season_card.dart), brim --xm-hw wide: the fur band lies along the top edge half a brim in from the
   start corner, turned about 15 degrees, the tip flopping toward the end side. It sits in the card's corner padding, never
   over its words; --xm-edge is the card's start border, --xm-top its top border, --xm-sink how far (in brims) the brim's
   centre sits below the top edge (these cards are square, so less than the app's 0.2: the hat stays clear of tall letters
   such as the hamza of «أكتوبر»). */
html.season-xmas :is(.pl-box, .pn-cards > .pn-card:first-child, .pn-zone, .pn-sess, .branch-copy) {
  --xm-hw: 38px; --xm-edge: 4px; --xm-top: 0px; --xm-sink: 0.14;
}
html.season-xmas .pl-box { --xm-hw: 34px; --xm-edge: 0px; }
html.season-xmas .pn-cards > .pn-card:first-child { --xm-top: 1px; }
html.season-xmas .branch-copy { --xm-hw: 40px; --xm-sink: 0.04; }
html.season-xmas .pn-zone { --xm-sink: 0.2; } /* the room chips sit close above it: the hat rises less */
html.season-xmas :is(.pl-box, .pn-cards > .pn-card:first-child, .pn-zone, .pn-sess, .branch-copy)::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  width: calc(var(--xm-hw) * 1.65); height: calc(var(--xm-hw) * 1.25);
  top: calc(var(--xm-hw) * (var(--xm-sink) - 0.95) - var(--xm-top));
  inset-inline-start: calc(var(--xm-hw) * -0.2 - var(--xm-edge));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-70 -95 165 125'%3E%3Cdefs%3E%3ClinearGradient id='r' gradientUnits='userSpaceOnUse' x1='-30' y1='-60' x2='40' y2='-5'%3E%3Cstop offset='0' stop-color='%23C8202E'/%3E%3Cstop offset='.55' stop-color='%23A3141F'/%3E%3Cstop offset='1' stop-color='%23730A14'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' gradientUnits='userSpaceOnUse' x1='0' y1='-12' x2='0' y2='12'%3E%3Cstop offset='0' stop-color='%23FBF9F6'/%3E%3Cstop offset='1' stop-color='%23E4E0DA'/%3E%3C/linearGradient%3E%3CradialGradient id='p' gradientUnits='userSpaceOnUse' cx='63' cy='-27' r='14'%3E%3Cstop offset='0' stop-color='%23FBF9F6'/%3E%3Cstop offset='1' stop-color='%23E4E0DA'/%3E%3C/radialGradient%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3C/filter%3E%3C/defs%3E%3Cg transform='rotate(-15.5)'%3E%3Cg fill='%23000' fill-opacity='.25' filter='url(%23b)' transform='translate(2 5)'%3E%3Cpath d='M-40 -5C-37 -36 -14 -56 18 -56C42 -55 58 -44 66 -26C55 -35 42 -40 31 -35C31 -22 36 -13 40 -5Z'/%3E%3Cpath d='M-39 -12L39 -12A11 11 0 0 1 50 -1L50 0A11 11 0 0 1 39 11L-39 11A11 11 0 0 1 -50 0L-50 -1A11 11 0 0 1 -39 -12ZM54 -24A12 12 0 1 0 78 -24A12 12 0 1 0 54 -24Z'/%3E%3C/g%3E%3Cpath d='M-40 -5C-37 -36 -14 -56 18 -56C42 -55 58 -44 66 -26C55 -35 42 -40 31 -35C31 -22 36 -13 40 -5Z' fill='url(%23r)'/%3E%3Cpath d='M66 -26C55 -35 42 -40 31 -35C33 -42 45 -44 56 -39Z' fill='%23000' fill-opacity='.35'/%3E%3Cg fill='url(%23w)'%3E%3Cpath d='M-38 -10L38 -10A10 10 0 0 1 48 0L48 0A10 10 0 0 1 38 10L-38 10A10 10 0 0 1 -48 0L-48 0A10 10 0 0 1 -38 -10Z'/%3E%3Ccircle cx='-44' cy='-0.5' r='9.8'/%3E%3Ccircle cx='-33' cy='1.2' r='9.8'/%3E%3Ccircle cx='-22' cy='-0.5' r='9.8'/%3E%3Ccircle cx='-11' cy='1.2' r='9.8'/%3E%3Ccircle cx='0' cy='-0.5' r='9.8'/%3E%3Ccircle cx='11' cy='1.2' r='9.8'/%3E%3Ccircle cx='22' cy='-0.5' r='9.8'/%3E%3Ccircle cx='33' cy='1.2' r='9.8'/%3E%3Ccircle cx='44' cy='-0.5' r='9.8'/%3E%3C/g%3E%3Ccircle cx='66' cy='-24' r='12' fill='url(%23p)'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: var(--xm-a, 1);
}
html.season-xmas[dir="rtl"] :is(.pl-box, .pn-cards > .pn-card:first-child, .pn-zone, .pn-sess, .branch-copy)::after { transform: scaleX(-1); }
/* fewer hats: while a PC session card shows, it takes the zone box's hat (two hats on the page, not three) */
html.season-xmas .pn-main:has(.pn-sess) .pn-zone::after { content: none; }

/* ---------- the greeting ---------- */
/* the member portal: above the member's name */
html.season-xmas .pn-name::before {
  content: var(--xm-hello-to); display: block; margin-bottom: 2px;
  font: 600 var(--step-small) / 1.35 var(--font-text); letter-spacing: 0.01em; text-transform: none;
  color: rgb(var(--xm-gold)); opacity: var(--xm-a, 1);
}
/* the sign-in page: above "Log in" */
html.season-xmas #pl-title::before {
  content: var(--xm-hello); display: block; margin-bottom: 10px;
  font: 600 var(--step-small) / 1.35 var(--font-text); letter-spacing: 0.01em; text-transform: none;
  color: rgb(var(--xm-gold)); opacity: var(--xm-a, 1);
}
/* the home page: a small line hanging under "Pick your branch" */
html.season-xmas .pick-title::after {
  content: var(--xm-hello); position: absolute; top: 100%; left: 50%; translate: -50% 0;
  padding: 0.1em 0.9em 0.25em; background: var(--bg); white-space: nowrap;
  font: 600 var(--step-small) / 1.4 "Cairo", system-ui, sans-serif; letter-spacing: 0.01em;
  color: rgb(var(--xm-gold)); opacity: var(--xm-a, 1);
}
