/* ============================================================================
   JustPvP Winter skin for the Skyline design system (Fable, 14 Nov 2026).  Version w1.
   Load AFTER skyline.css and put class="winter" on <body>; nothing here applies without it, so a page switches
   on and off by date by toggling that one class (and the <link>).  Layout and components are untouched:
   this file recolours tokens, re-grades the hero photo, replaces the embers with CSS snow, and styles the
   /winter/ page pieces (.wf-*).

   Palette (WINTER-BIBLE.md, frozen):  snow #F2F7FB  ice #A8CFE8  night #16284A  pine #1F4A33
                                       lantern gold #F2B749  ribbon red #C0392B (accent only, 10% or less of any view)
   Mood: a warm, lamplit village under a cold blue night.  Cold = night, ice, snow.  Warm = gold.  Red = a thread.

   Hero banners (42d4e093): set  --wf-hero: url(/img/winter/<name>.webp)  on body.winter and add class "wf-banner"
   (the banner is used as delivered: no desaturation, only the night grade over it).  Without them the Skyline
   panorama is graded cold.  Phone art: --wf-hero-mobile (falls back to --wf-hero).
   Motion: CSS only, background only, off under prefers-reduced-motion (the snow then sits still).
   ============================================================================ */

/* ---- 1. tokens: charcoal -> night, red -> lantern gold, ribbon red kept for threads ---- */
body.winter {
  --wf-snow: #F2F7FB; --wf-ice: #A8CFE8; --wf-night: #16284A; --wf-pine: #1F4A33; --wf-gold: #F2B749; --wf-ribbon: #C0392B;
  --wf-deep: #0b1630;                       /* the page floor, a step darker than night so night panels read as raised */
  --sk-bg: var(--wf-deep); --sk-ink: #F2F7FB; --sk-mute: #A7BCD0; --sk-dim: #7088A3;
  --sk-surface: rgba(22, 40, 74, .78); --sk-surface-solid: #16284A; --sk-raise: rgba(168, 207, 232, .06);
  --sk-line: rgba(168, 207, 232, .13); --sk-line2: rgba(168, 207, 232, .24);
  --sk-red: #F2B749; --sk-red2: #C98A1F; --sk-red-soft: rgba(242, 183, 73, .14);   /* "the accent" is now lantern gold */
  --sk-silver: #DCE9F4; --sk-bronze: #E0A36B; --sk-amber: #F2B749;
  --orange: #F2B749; --red: var(--sk-red);
  color-scheme: dark;
}
body.winter :focus-visible, body.winter .sk-input:focus-visible { outline-color: #F2B749; }
body.winter code { background: rgba(168, 207, 232, .10); }
body.winter ::selection { background: rgba(242, 183, 73, .35); color: #fff; }

/* ---- 2. the hero photo, graded cold, with lantern warmth along the bottom ---- */
body.winter .sky { background: var(--wf-deep); }
body.winter .sky .pano {
  background-image: var(--wf-hero, url(/img/hero-full.webp));
  filter: saturate(.34) brightness(.74) contrast(1.1);
}
body.winter.wf-banner .sky .pano { filter: none; }
@media (max-width: 720px) {
  body.winter .sky .pano { background-image: var(--wf-hero-mobile, var(--wf-hero, url(/img/hero-mobile.webp))); }
}
body.winter .sky .grade { background:
  radial-gradient(60% 38% at 14% 100%, rgba(242, 183, 73, .20), transparent 70%),
  radial-gradient(60% 38% at 88% 96%, rgba(242, 183, 73, .14), transparent 72%),
  radial-gradient(120% 55% at 50% 0%, rgba(40, 78, 140, .50), transparent 64%),
  linear-gradient(180deg, rgba(22, 40, 74, .62) 0, rgba(16, 32, 62, .66) 34%, rgba(11, 22, 48, .93) 64%, var(--wf-deep) 88%); }
body.winter .sky.low .grade { background:
  radial-gradient(60% 34% at 12% 78%, rgba(242, 183, 73, .12), transparent 70%),
  radial-gradient(100% 50% at 50% 0%, rgba(40, 78, 140, .50), transparent 60%),
  linear-gradient(180deg, rgba(22, 40, 74, .66) 0, rgba(16, 32, 62, .72) 30%, rgba(11, 22, 48, .95) 56%, var(--wf-deep) 72%); }
body.winter.wf-banner .sky .grade { background:
  linear-gradient(180deg, rgba(11, 22, 48, .10) 0, rgba(11, 22, 48, .30) 34%, rgba(11, 22, 48, .90) 66%, var(--wf-deep) 90%); }

/* the embers canvas is a fire; winter has snow instead (two CSS layers, different sizes and speeds) */
body.winter .sky canvas { display: none; }
body.winter .sky::before, body.winter .sky::after {
  content: ""; position: absolute; left: 0; right: 0; top: -420px; height: calc(100% + 420px); pointer-events: none;
  background-repeat: repeat; will-change: transform;
}
body.winter .sky::before {            /* far flakes: small, slow, dim */
  z-index: 1; opacity: .75; background-size: 280px 280px; animation: wf-fall-a 26s linear infinite;
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, #F2F7FB 55%, transparent 100%), radial-gradient(1.2px 1.2px at 96px 150px, #F2F7FB 55%, transparent 100%),
    radial-gradient(1.6px 1.6px at 160px 70px, #F2F7FB 55%, transparent 100%), radial-gradient(1.2px 1.2px at 230px 222px, #F2F7FB 55%, transparent 100%),
    radial-gradient(1.4px 1.4px at 60px 246px, #F2F7FB 55%, transparent 100%), radial-gradient(1.2px 1.2px at 250px 110px, #F2F7FB 55%, transparent 100%);
}
body.winter .sky::after {             /* near flakes: larger, softer, quicker */
  z-index: 2; opacity: .9; background-size: 420px 420px; animation: wf-fall-b 17s linear infinite;
  background-image:
    radial-gradient(3.4px 3.4px at 48px 90px, rgba(242, 247, 251, .95) 30%, transparent 100%), radial-gradient(4.2px 4.2px at 190px 24px, rgba(242, 247, 251, .9) 30%, transparent 100%),
    radial-gradient(3.2px 3.2px at 330px 180px, rgba(242, 247, 251, .95) 30%, transparent 100%), radial-gradient(4px 4px at 120px 300px, rgba(242, 247, 251, .9) 30%, transparent 100%),
    radial-gradient(3.4px 3.4px at 390px 360px, rgba(242, 247, 251, .95) 30%, transparent 100%);
}
@keyframes wf-fall-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 280px, 0); } }
@keyframes wf-fall-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(60px, 420px, 0); } }
@media (max-width: 720px) { body.winter .sky::before { opacity: .6; } body.winter .sky::after { opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  body.winter .sky::before, body.winter .sky::after { animation: none; transform: translate3d(0, 300px, 0); will-change: auto; }
}

/* ---- 3. navbar + footer ---- */
body.winter .jpm-nav { background: rgba(11, 22, 48, .66); border-bottom-color: transparent; position: sticky; }
body.winter .jpm-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;   /* the one ribbon-red thread */
  background: linear-gradient(90deg, transparent, rgba(192, 57, 43, .85) 30%, rgba(192, 57, 43, .85) 70%, transparent); pointer-events: none; }
body.winter .jpm-nav-in a { color: #D4E4F2; }
body.winter .jpm-nav-in a:hover { background: rgba(168, 207, 232, .10); color: #fff; }
body.winter .jpm-nav-in a.on, body.winter .jpm-nav-in a[aria-current="page"] { background: linear-gradient(180deg, #F7C566, #D99A26); color: #231705; box-shadow: 0 6px 18px -6px rgba(242, 183, 73, .7); }
body.winter .jpm-foot { background: var(--wf-deep); border-top-color: rgba(168, 207, 232, .13); }
body.winter .jpm-foot-links a:hover, body.winter .jpm-foot-legal a:hover { color: #F2B749; }

/* ---- 4. buttons, pills, headings, surfaces ---- */
body.winter .btn { border-color: rgba(168, 207, 232, .24); background: rgba(168, 207, 232, .07); }
body.winter .btn:hover { border-color: rgba(242, 183, 73, .5); }
body.winter .btn.primary, body.winter .btn.red { background: linear-gradient(180deg, #F7C566, #D99A26); border-color: rgba(255, 226, 160, .55); color: #231705; box-shadow: 0 10px 24px -12px rgba(242, 183, 73, .8); }
body.winter .btn.ghost { background: rgba(168, 207, 232, .07); color: #fff; }
body.winter .btn.blurple { box-shadow: 0 10px 24px -12px rgba(88, 101, 242, .8); }
body.winter .skip { background: #F2B749; color: #231705; }
body.winter .card, body.winter .guide-section > .wrap, body.winter .tile, body.winter .vote, body.winter .guide-box, body.winter .faq, body.winter .join-steps li {
  box-shadow: inset 0 1px 0 rgba(242, 247, 251, .10);            /* a frost edge on every raised surface */
}
body.winter .ch::before { background: #C0392B; }                  /* the ribbon: a small red bar before each section title */
body.winter .ch { color: #DCE9F4; }
body.winter .eyebrow { color: #F7D58E; background: rgba(242, 183, 73, .10); border-color: rgba(242, 183, 73, .32); }
body.winter .hero.page-hero h1 span, body.winter .guide-section h2 span, body.winter .hero.home-hero h1 em { color: #F2B749; text-shadow: 0 0 28px rgba(242, 183, 73, .25); }
body.winter .hero.page-hero .sub, body.winter .hero.home-hero .sub { color: #D2E1EE; }
body.winter .page-hero .big, body.winter .not-found .big { color: #F2B749; text-shadow: 0 10px 40px rgba(242, 183, 73, .30); }
body.winter .guide-section > .wrap > p { color: #CFDFEC; }
body.winter .guide-note { background: rgba(242, 183, 73, .08); border-color: rgba(242, 183, 73, .32); }
body.winter .game-nav a[aria-current="page"] { background: rgba(22, 40, 74, .85); border-color: rgba(242, 183, 73, .45); }
body.winter .join-steps li::before { background: linear-gradient(180deg, #F7C566, #D99A26); color: #231705; }
body.winter .faq summary::after { color: #F2B749; }
body.winter .guide-section a:not(.btn) { border-bottom-color: rgba(242, 183, 73, .5); }
body.winter .feat .ic, body.winter .vote .num { background: rgba(242, 183, 73, .12); border-color: rgba(242, 183, 73, .30); }
body.winter .feat .ic svg { stroke: #F7D58E; }
body.winter .vote .num { color: #F7D58E; }
body.winter .vote:hover, body.winter .ip:hover { border-color: rgba(242, 183, 73, .55); }
body.winter .ip { background: rgba(11, 22, 48, .72); }
body.winter .ip:hover { background: rgba(22, 40, 74, .85); }
body.winter .ip .e b { color: #F2B749; background: rgba(242, 183, 73, .14); }
body.winter .ip.copied .e b { background: #3ddc84; color: #06260f; }
body.winter .tabs .on { background: linear-gradient(180deg, #F7C566, #D99A26); border-color: #F2B749; color: #231705; }
body.winter .tabs button, body.winter .tabs a { background: rgba(168, 207, 232, .06); border-color: var(--sk-line); }
body.winter .dot.off, body.winter .badge[data-state="off"]::before { background: #C0392B; }
body.winter .rows li.r1 { background: linear-gradient(90deg, rgba(242, 183, 73, .13), rgba(168, 207, 232, .04) 55%); }
body.winter .sk-table tr.r1 td { background: rgba(242, 183, 73, .08); }   /* flat: a per-cell gradient bands at the column edges */
body.winter .rows .hd, body.winter .threads .av, body.winter .rows .hc { background: #1d3358; }
body.winter .sk-table tbody tr:hover td { background: rgba(168, 207, 232, .05); }
body.winter .lb-table tr.r1 td:first-child { box-shadow: inset 3px 0 0 #C0392B; }
body.winter .lb-note.err { color: #F4B7AF; background: rgba(192, 57, 43, .14); border-color: rgba(192, 57, 43, .4); }
body.winter .tile.big::after { background: linear-gradient(180deg, rgba(11, 22, 48, .05) 20%, rgba(11, 22, 48, .55) 60%, rgba(11, 22, 48, .95)); }
body.winter .badge { background: rgba(11, 22, 48, .78); }
body.winter .pill.test { color: #F2B749; border-color: rgba(242, 183, 73, .4); background: rgba(242, 183, 73, .09); }
body.winter #toast { background: #16284A; border-color: rgba(242, 183, 73, .35); }

/* ============================================================================
   5. /winter/ page pieces (.wf-*).  Plain classes: this file only loads on winter pages.
   Markup spec is in preview/fable-20261109/winter/WINTER-PAGE.md.
   ============================================================================ */

/* 5a. today's door + days left: the centrepiece card */
.wf-advent { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 22px 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 74, 51, .55), rgba(22, 40, 74, .82) 55%); border: 1px solid rgba(242, 183, 73, .34); border-radius: var(--sk-r);
  box-shadow: inset 0 1px 0 rgba(242, 247, 251, .12), 0 24px 50px -30px rgba(0, 0, 0, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wf-advent::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 73, .28), transparent 68%); pointer-events: none; }   /* a lantern glow behind the numeral */
.wf-door { position: relative; width: 112px; height: 132px; border-radius: 14px 14px 8px 8px; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #2A5C42, #1F4A33); border: 2px solid rgba(242, 183, 73, .7);
  box-shadow: inset 0 0 0 5px rgba(11, 22, 48, .35), 0 0 34px rgba(242, 183, 73, .28); }
.wf-door::after { content: ""; position: absolute; right: 12px; top: 62px; width: 8px; height: 8px; border-radius: 50%; background: #F2B749; box-shadow: 0 0 8px #F2B749; }
.wf-door b { font: 800 54px/1 var(--sk-display); color: #F2F7FB; letter-spacing: -.03em; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.wf-door small { position: absolute; top: 9px; font: 700 10px/1 var(--sk-display); letter-spacing: .2em; text-transform: uppercase; color: #F7D58E; }
.wf-advent .wf-copy { min-width: 0; position: relative; }
.wf-advent .wf-kicker { font: 700 11px/1 var(--sk-display); letter-spacing: .16em; text-transform: uppercase; color: #F7D58E; margin: 0 0 8px; }
.wf-advent h2 { margin: 0 0 6px; font: 800 clamp(22px, 3vw, 30px)/1.12 var(--sk-display); letter-spacing: -.01em; }
.wf-advent p { margin: 0 0 12px; color: #CFDFEC; font-size: 14px; }
.wf-count { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wf-count span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(11, 22, 48, .6); border: 1px solid rgba(168, 207, 232, .22); font-size: 13px; color: #A7BCD0; }
.wf-count span b { font: 800 20px/1 var(--sk-display); color: #F2F7FB; font-variant-numeric: tabular-nums; }
.wf-advent.is-closed .wf-door { opacity: .7; filter: saturate(.5); }

/* 5b. the 25 doors: a calendar grid. states: .is-open (claimed or past), .is-today, .is-locked (future) */
.wf-doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wf-doors li { position: relative; aspect-ratio: 1 / .86; border-radius: 12px 12px 7px 7px; display: grid; place-items: center; text-align: center; padding: 6px;
  background: rgba(31, 74, 51, .55); border: 1px solid rgba(168, 207, 232, .20); color: #DCE9F4; transition: transform .15s, border-color .15s; }
.wf-doors li b { font: 800 22px/1 var(--sk-display); letter-spacing: -.02em; }
.wf-doors li span { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 10px; line-height: 1.2; color: #A7BCD0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-doors li.is-open { background: rgba(22, 40, 74, .7); border-color: rgba(242, 183, 73, .3); }
.wf-doors li.is-open b { color: #F7D58E; }
.wf-doors li.is-today { background: linear-gradient(180deg, #2A5C42, #1F4A33); border: 2px solid #F2B749; box-shadow: 0 0 26px rgba(242, 183, 73, .35); transform: translateY(-2px); }
.wf-doors li.is-today b { color: #fff; }
.wf-doors li.is-locked { background: rgba(11, 22, 48, .55); border-style: dashed; color: #6E86A2; }
.wf-doors li.is-locked b { color: #6E86A2; }
.wf-doors li.is-locked::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #6E86A2; opacity: .6; }
.wf-doors li.is-final { border-color: rgba(192, 57, 43, .7); }                    /* door 25: the ribbon */
.wf-doors li.is-final::before { content: ""; position: absolute; left: 0; right: 0; top: 16%; height: 5px; background: #C0392B; opacity: .85; }

/* 5c. swap schedule: which pages and servers are in winter dress, by date (a timeline list) */
.wf-swap { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid rgba(168, 207, 232, .22); display: grid; gap: 14px; }
.wf-swap li { position: relative; padding-left: 14px; }
.wf-swap li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--wf-deep, #0b1630); border: 2px solid #A8CFE8; }
.wf-swap li.is-live::before { background: #F2B749; border-color: #F2B749; box-shadow: 0 0 12px rgba(242, 183, 73, .7); }
.wf-swap li.is-live { color: #fff; }
.wf-swap time { display: block; font: 700 11px/1 var(--sk-display); letter-spacing: .14em; text-transform: uppercase; color: #F7D58E; margin-bottom: 4px; }
.wf-swap b { display: block; font: 700 16px/1.25 var(--sk-display); }
.wf-swap p { margin: 2px 0 0; color: #A7BCD0; font-size: 13px; }

/* 5d. small helpers for the page */
.wf-hero-art { height: clamp(120px, 20vw, 190px); border-radius: var(--sk-r); border: 1px solid rgba(168, 207, 232, .22); overflow: hidden; background: var(--wf-hero-card, linear-gradient(135deg, #1F4A33, #16284A)) center / cover; position: relative; }
.wf-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 22, 48, .85)); }   /* placeholder slot for 42d4e093's banner art */
.wf-pill { display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--sk-display); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; color: #A8CFE8; border: 1px solid rgba(168, 207, 232, .35); background: rgba(168, 207, 232, .07); }
.wf-pill.is-gold { color: #F7D58E; border-color: rgba(242, 183, 73, .45); background: rgba(242, 183, 73, .10); }

@media (max-width: 720px) {
  .wf-advent { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 16px; gap: 14px; }
  .wf-door { width: 92px; height: 110px; } .wf-door b { font-size: 44px; } .wf-door::after { top: 52px; }
  .wf-count { justify-content: center; }
  .wf-doors { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .wf-doors li { padding: 3px; } .wf-doors li b { font-size: 17px; } .wf-doors li span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wf-doors li { transition: none; } .wf-doors li.is-today { transform: none; } }
