/* Holiday and special-edition dressing (W2). Rules live under html.edition-<id>; see js/data/holidayEditions.js.
   Loaded after front-screen.css. Every selector carries the html.edition-* class so the standard game and the
   Mid Terms edition are untouched. The painted cast art and the wordmark shape are kept; only colour, borders,
   shadows and the ambient layer (js/ui/holidayAmbient.js) change. All motion is transform/opacity keyframes. */

/* ============================== Thanksgiving 2026 ============================== */
html.edition-thanksgiving{--pg-cream:#fff1d6;--pg-ink:#4a2410;--pg-yellow:#f0862a;--pg-edge:#c99a6a;--hol-bg:#2b1407;--hol-bark:#3a1608;--hol-line:#6b3a1a;--hol-pumpkin:#e8781e;--hol-gold:#ffb347;--hol-rust:#9a3b16;--hol-muted:#6d4a30}
html.edition-thanksgiving #frontScreen{background:var(--hol-bg)}
html.edition-thanksgiving #frontScreen .fs-jungle{background:linear-gradient(180deg,rgba(78,30,6,.5),rgba(92,40,10,.3) 50%,rgba(40,14,3,.88)),url('../assets/art/jungle-v2.webp') center/cover;filter:sepia(.28) saturate(1.15) hue-rotate(-14deg)}
html.edition-thanksgiving #frontScreen [data-fs-leaf]{background:#d9862c}
html.edition-thanksgiving #frontScreen [data-fs-firefly]{background:#ffd27a}
html.edition-thanksgiving #frontScreen button{border-color:var(--hol-line)}
html.edition-thanksgiving #frontScreen :focus-visible{outline-color:var(--hol-gold)}
html.edition-thanksgiving #frontScreen .fs-logo{color:var(--hol-pumpkin);text-shadow:2px 3px 0 var(--hol-bark),-2px -1px 0 var(--hol-bark)}
html.edition-thanksgiving #frontScreen .fs-logo b{color:#ffe7bd}
html.edition-thanksgiving #frontScreen .fs-logo small{color:#ffd9a0;text-shadow:0 2px 0 var(--hol-bark)}
html.edition-thanksgiving #frontScreen .fs-icon{background:#fff1d6;color:var(--hol-bark);box-shadow:0 3px 0 var(--hol-bark)}
html.edition-thanksgiving #frontScreen .fs-eyebrow{color:var(--hol-gold)}
html.edition-thanksgiving #frontScreen .fs-home-heading{color:#fff3dc;text-shadow:0 2px 3px var(--hol-bark)}
html.edition-thanksgiving #frontScreen .fs-home-routes button{border-color:var(--hol-line);box-shadow:0 5px 0 var(--hol-bark),0 12px 28px #1a080233}
html.edition-thanksgiving #frontScreen .fs-home-routes button::after{color:var(--hol-rust)}
html.edition-thanksgiving #frontScreen .fs-home-routes button small{color:var(--hol-muted)}
html.edition-thanksgiving #frontScreen .fs-home-routes .campaignEntry{background:var(--hol-gold)}
html.edition-thanksgiving #frontScreen .fs-home-routes .fs-battle-entry{background:linear-gradient(135deg,#fff1d6 60%,#ffe0b4)}
html.edition-thanksgiving #frontScreen .fs-secondary button,html.edition-thanksgiving #frontScreen .fs-battle-heading button,html.edition-thanksgiving #frontScreen .fs-original{background:#4a2410de;color:#ffe7bd;border-color:#f0b06a77}
html.edition-thanksgiving #frontScreen .fs-saved{background:#ffe0b4}
html.edition-thanksgiving #frontScreen .fs-battle-heading{color:#fff3dc}
html.edition-thanksgiving #frontScreen .fs-factions,html.edition-thanksgiving #frontScreen .fs-ticket,html.edition-thanksgiving #frontScreen .fs-launch{border-color:var(--hol-line);box-shadow:0 5px 0 var(--hol-line)}
html.edition-thanksgiving #frontScreen .fs-side{background:linear-gradient(#f7e6cc,#dcb98c);border-color:#c9a27a}
html.edition-thanksgiving #frontScreen .fs-side.selected{border-color:#8a3f14;background:linear-gradient(#ffe3a8,#efb86a);box-shadow:inset 0 0 0 2px #fff3dc}
html.edition-thanksgiving #frontScreen .fs-switch{background:#fff3dcc8}
html.edition-thanksgiving #frontScreen .fs-yours{background:#8a3f14}
html.edition-thanksgiving #frontScreen .fs-matchup,html.edition-thanksgiving #frontScreen legend span,html.edition-thanksgiving #frontScreen .fs-option-note,html.edition-thanksgiving #frontScreen .fs-options small{color:var(--hol-muted)}
html.edition-thanksgiving #frontScreen .fs-options button{border-color:#c9a27a;background:#fff8ea}
html.edition-thanksgiving #frontScreen .fs-options button[aria-checked='true']{background:#ffdfae;border-color:#8a3f14;box-shadow:inset 0 0 0 1px #8a3f14}
html.edition-thanksgiving #frontScreen .fs-start{background:var(--hol-pumpkin);color:#fff3dc;border-color:var(--hol-bark);box-shadow:0 3px 0 #7a3410;text-shadow:0 1px 0 #7a3410}
html.edition-thanksgiving #frontScreen .fs-settings-panel{border-color:var(--hol-line)}
html.edition-thanksgiving #frontScreen .fs-settings-panel::backdrop{background:#2b1407cc}
html.edition-thanksgiving #frontScreen .fs-settings-card section,html.edition-thanksgiving #frontScreen .fs-advanced,html.edition-thanksgiving #frontScreen .fs-settings-card header{border-color:#dcc3a2}
html.edition-thanksgiving #frontScreen .fs-settings-card button:not(.fs-close){border-color:#c9a27a}
html.edition-thanksgiving #frontScreen .fs-settings-card .fs-preference{background:#fff8ea}
html.edition-thanksgiving #frontScreen .fs-preference small,html.edition-thanksgiving #frontScreen .fs-settings-note,html.edition-thanksgiving #frontScreen .fs-advanced p{color:var(--hol-muted)}
html.edition-thanksgiving #frontScreen .fs-preference b{background:#f3dcbd}
html.edition-thanksgiving #frontScreen .fs-preference[aria-pressed='true'] b{background:#8a3f14}
html.edition-thanksgiving #frontScreen .fullscreenControl{background:#fff3dc;border-color:#dcc3a2}
/* Costume select: pie picks keyed to the option values in js/data/holidayEditions.js. */
html.edition-thanksgiving #frontScreen .fs-costume-choices select{border-color:#8a5a2a;color:var(--hol-bark);background:#fff8ea}
html.edition-thanksgiving #frontScreen .fs-costume-choices select:has(option[value="pumpkin"]:checked),html.edition-thanksgiving #frontScreen .fs-costume-choices option[value="pumpkin"]{background-color:#ffd9ae;border-color:#de7020;color:#6b3410}
html.edition-thanksgiving #frontScreen .fs-costume-choices select:has(option[value="pecan"]:checked),html.edition-thanksgiving #frontScreen .fs-costume-choices option[value="pecan"]{background-color:#e9d2b8;border-color:#763e18;color:#4a2410}
/* Loading header (index.html inline styles) in the same autumn palette. */
html.edition-thanksgiving.fs-pending #frontScreenLoading{color:#fff3dc;background:linear-gradient(180deg,rgba(78,30,6,.6),rgba(92,40,10,.25) 40%,rgba(40,14,3,.92)),#5b2a0d url('../assets/art/jungle-v2.webp') center/cover}
@media(max-width:1023px){html.edition-thanksgiving.fs-pending #frontScreenLoading{background-image:linear-gradient(180deg,rgba(78,30,6,.6),rgba(92,40,10,.25) 40%,rgba(40,14,3,.92)),url('../assets/art/jungle-phone.webp')}}
html.edition-thanksgiving #frontScreenLoading strong{color:#f0862a;text-shadow:0 4px 0 #3a1608;-webkit-text-stroke:2px #3a1608}
html.edition-thanksgiving #frontScreenLoading strong b{color:#ffe7bd}
html.edition-thanksgiving #frontScreenLoading .loadingTagline{margin:0 0 3px;font:900 clamp(24px,5vw,46px)/1 Anton,Impact,system-ui,sans-serif;letter-spacing:.025em;text-transform:uppercase;color:#ffd9a0;-webkit-text-stroke:2px #3a1608;paint-order:stroke fill;text-shadow:0 3px 0 #3a1608}
@media(max-height:500px){html.edition-thanksgiving #frontScreenLoading .loadingTagline{font-size:22px;margin:0 0 2px}}
html.edition-thanksgiving #frontScreenLoading .loadingVersus{background:#f0862a;color:#fff3dc;border-color:#3a1608;box-shadow:0 5px 0 #3a1608}
html.edition-thanksgiving #frontScreenLoading .loadingCast::before{background:#1a080255}
html.edition-thanksgiving #frontScreenLoading .loadingStatus{background:#4a2410e8;border-color:#f0b06a66;box-shadow:0 3px 12px #1a080240}
html.edition-thanksgiving #frontScreenLoading .loadingDots i{background:#ffb347}
html.edition-thanksgiving #frontScreenLoading .loadingHint{color:#ffe7bd;text-shadow:0 1px 3px #1a0802}

/* ============================== Black Friday 2026 ============================== */
html.edition-blackfriday{--pg-cream:#15151a;--pg-ink:#f5f0e6;--pg-yellow:#ffcc00;--pg-edge:#2c2c34;--bf-black:#0b0b0d;--bf-card:#1e1e25;--bf-line:#2c2c34;--bf-line2:#44444f;--bf-yellow:#ffcc00;--bf-yellow-deep:#a37f00;--bf-red:#d8232a;--bf-muted:#b8b2a6}
html.edition-blackfriday #frontScreen{background:var(--bf-black)}
html.edition-blackfriday #frontScreen .fs-jungle{background:linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.55) 50%,rgba(0,0,0,.92)),url('../assets/art/jungle-v2.webp') center/cover;filter:saturate(.55) brightness(.75)}
html.edition-blackfriday #frontScreen [data-fs-leaf]{background:#5a5a66;opacity:.3}
html.edition-blackfriday #frontScreen [data-fs-firefly]{background:#ffcc00}
html.edition-blackfriday #frontScreen button{border-color:var(--bf-line2)}
html.edition-blackfriday #frontScreen :focus-visible{outline-color:var(--bf-yellow)}
html.edition-blackfriday #frontScreen .fs-logo{color:var(--bf-yellow);text-shadow:2px 3px 0 #000,-2px -1px 0 #000}
html.edition-blackfriday #frontScreen .fs-logo b{color:#ff5a5a}
html.edition-blackfriday #frontScreen .fs-logo small{color:#f5f0e6;text-shadow:0 2px 0 #000}
html.edition-blackfriday #frontScreen .fs-icon{background:var(--bf-yellow);color:var(--bf-black);box-shadow:0 3px 0 #000}
html.edition-blackfriday #frontScreen .fs-eyebrow{color:var(--bf-yellow)}
html.edition-blackfriday #frontScreen .fs-home-heading{color:#f5f0e6;text-shadow:0 2px 3px #000}
html.edition-blackfriday #frontScreen .fs-home-routes button{border-color:var(--bf-line2);box-shadow:0 5px 0 var(--bf-red),0 12px 28px #00000080}
html.edition-blackfriday #frontScreen .fs-home-routes button::after{color:var(--bf-yellow)}
html.edition-blackfriday #frontScreen .fs-home-routes button small{color:var(--bf-muted)}
html.edition-blackfriday #frontScreen .fs-home-routes .campaignEntry,html.edition-blackfriday #frontScreen .fs-home-routes .campaignEntry small{color:var(--bf-black)}
html.edition-blackfriday #frontScreen .fs-home-routes .campaignEntry::after{color:var(--bf-black)}
/* Quick Battle wears a price-tag corner badge: a static pseudo-element, no motion. */
html.edition-blackfriday #frontScreen .fs-battle-entry{overflow:visible}
html.edition-blackfriday #frontScreen .fs-battle-entry::before{content:'DOORBUSTER';position:absolute;right:-6px;top:-10px;padding:3px 8px;border:2px solid var(--bf-black);border-radius:4px;background:var(--bf-red);color:#fff;font:900 11px/1.1 var(--font-meme);letter-spacing:.08em;transform:rotate(6deg);box-shadow:0 2px 0 #000}
html.edition-blackfriday #frontScreen .fs-secondary button,html.edition-blackfriday #frontScreen .fs-battle-heading button,html.edition-blackfriday #frontScreen .fs-original{background:#1c1c22de;color:#f5f0e6;border-color:#ffcc0066}
html.edition-blackfriday #frontScreen .fs-saved{background:var(--bf-yellow);color:var(--bf-black);border-color:var(--bf-black)}
html.edition-blackfriday #frontScreen .fs-battle-heading{color:#f5f0e6}
html.edition-blackfriday #frontScreen .fs-factions,html.edition-blackfriday #frontScreen .fs-ticket,html.edition-blackfriday #frontScreen .fs-launch{border-color:var(--bf-line2);box-shadow:0 5px 0 var(--bf-red)}
html.edition-blackfriday #frontScreen .fs-side{background:linear-gradient(#26262e,#15151a);border-color:var(--bf-line2)}
html.edition-blackfriday #frontScreen .fs-side.selected{color:var(--bf-black);border-color:var(--bf-black);background:linear-gradient(#ffd84a,#f2b800);box-shadow:inset 0 0 0 2px #fff3b0}
html.edition-blackfriday #frontScreen .fs-switch{background:var(--bf-yellow);color:var(--bf-black)}
html.edition-blackfriday #frontScreen .fs-yours{background:var(--bf-red);color:#fff}
html.edition-blackfriday #frontScreen .fs-matchup,html.edition-blackfriday #frontScreen legend span,html.edition-blackfriday #frontScreen .fs-option-note,html.edition-blackfriday #frontScreen .fs-options small{color:var(--bf-muted)}
html.edition-blackfriday #frontScreen .fs-options button{border-color:var(--bf-line2);background:var(--bf-card)}
html.edition-blackfriday #frontScreen .fs-options button[aria-checked='true']{background:var(--bf-yellow);border-color:var(--bf-yellow);color:var(--bf-black);box-shadow:inset 0 0 0 1px var(--bf-black)}
html.edition-blackfriday #frontScreen .fs-options button[aria-checked='true'] small{color:#3a3000}
html.edition-blackfriday #frontScreen .fs-start{background:var(--bf-yellow);color:var(--bf-black);border-color:var(--bf-black);box-shadow:0 3px 0 var(--bf-yellow-deep)}
html.edition-blackfriday #frontScreen .fs-launch p{color:#f5f0e6}
html.edition-blackfriday #frontScreen .fs-settings-panel{border-color:var(--bf-line2);box-shadow:0 12px 50px #000000b0}
html.edition-blackfriday #frontScreen .fs-settings-panel::backdrop{background:#000000d0}
html.edition-blackfriday #frontScreen .fs-settings-card section,html.edition-blackfriday #frontScreen .fs-advanced,html.edition-blackfriday #frontScreen .fs-settings-card header{border-color:var(--bf-line)}
html.edition-blackfriday #frontScreen .fs-settings-card .fs-close{color:var(--bf-black)}
html.edition-blackfriday #frontScreen .fs-settings-card button:not(.fs-close){border-color:var(--bf-line2)}
html.edition-blackfriday #frontScreen .fs-settings-card .fs-preference{background:var(--bf-card)}
html.edition-blackfriday #frontScreen .fs-preference small,html.edition-blackfriday #frontScreen .fs-settings-note,html.edition-blackfriday #frontScreen .fs-advanced p{color:var(--bf-muted)}
html.edition-blackfriday #frontScreen .fs-preference b{background:var(--bf-line);color:#f5f0e6}
html.edition-blackfriday #frontScreen .fs-preference[aria-pressed='true'] b{background:var(--bf-yellow);color:var(--bf-black)}
html.edition-blackfriday #frontScreen .fullscreenControl{background:var(--bf-card);border-color:var(--bf-line2);color:#f5f0e6}
/* Costume select: queue/couch picks keyed to the option values in js/data/holidayEditions.js. */
html.edition-blackfriday #frontScreen .fs-costume-choices select{border-color:var(--bf-line2);color:#f5f0e6;background:var(--bf-card)}
html.edition-blackfriday #frontScreen .fs-costume-choices select:has(option[value="queue"]:checked),html.edition-blackfriday #frontScreen .fs-costume-choices option[value="queue"]{background-color:#ffcc00;border-color:#a37f00;color:#0b0b0d}
html.edition-blackfriday #frontScreen .fs-costume-choices select:has(option[value="couch"]:checked),html.edition-blackfriday #frontScreen .fs-costume-choices option[value="couch"]{background-color:#3a3f4e;border-color:#60688a;color:#e6e6e6}
/* Loading header in the sale palette. */
html.edition-blackfriday.fs-pending #frontScreenLoading{color:#f5f0e6;background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.5) 40%,rgba(0,0,0,.94)),#0b0b0d url('../assets/art/jungle-v2.webp') center/cover}
@media(max-width:1023px){html.edition-blackfriday.fs-pending #frontScreenLoading{background-image:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.5) 40%,rgba(0,0,0,.94)),url('../assets/art/jungle-phone.webp')}}
html.edition-blackfriday #frontScreenLoading strong{color:#ffcc00;text-shadow:0 4px 0 #000;-webkit-text-stroke:2px #000}
html.edition-blackfriday #frontScreenLoading strong b{color:#ff5a5a}
html.edition-blackfriday #frontScreenLoading .loadingTagline{margin:0 0 3px;font:900 clamp(24px,5vw,46px)/1 Anton,Impact,system-ui,sans-serif;letter-spacing:.025em;text-transform:uppercase;color:#f5f0e6;-webkit-text-stroke:2px #000;paint-order:stroke fill;text-shadow:0 3px 0 #000}
@media(max-height:500px){html.edition-blackfriday #frontScreenLoading .loadingTagline{font-size:22px;margin:0 0 2px}}
html.edition-blackfriday #frontScreenLoading .loadingVersus{background:#d8232a;color:#fff;border-color:#000;box-shadow:0 5px 0 #000}
html.edition-blackfriday #frontScreenLoading .loadingCast::before{background:#00000066}
html.edition-blackfriday #frontScreenLoading .loadingStatus{background:#15151ae8;border-color:#ffcc0055;box-shadow:0 3px 12px #00000080}
html.edition-blackfriday #frontScreenLoading .loadingDots i{background:#ffcc00}
html.edition-blackfriday #frontScreenLoading .loadingHint{color:#d9d4c8;text-shadow:0 1px 3px #000}

/* ============================== Ambient layer ==============================
   js/ui/holidayAmbient.js appends one .fs-holiday-ambient inside #frontScreen with 8-12 spans. The layer sits
   between the painted jungle (z -5) and the shell, never takes pointer events, and disappears with the front
   screen when a match starts (#frontScreen.fs-match-started is display:none). Each span carries its own
   --x/--y (resting place), --s (size), --r (rotation), --d (delay) and --t (duration). Motion is transform and
   opacity only. front-screen.css already sets animation:none under prefers-reduced-motion, which leaves every
   span resting at its --x/--y; the pause below is the explicit statement of the same intent. */
#frontScreen .fs-holiday-ambient{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;contain:layout paint}
#frontScreen .fs-holiday-ambient span{position:absolute;left:var(--x,50%);top:var(--y,50%);display:block;transform:rotate(var(--r,0deg));opacity:.55;animation-delay:var(--d,0s);animation-duration:var(--t,18s)}
#frontScreen .fs-holiday-ambient svg{display:block;width:100%;height:100%;overflow:visible;fill:currentColor}
#frontScreen .fs-holiday-ambient svg .vein{fill:none;stroke:rgba(60,22,4,.5);stroke-width:1.2;stroke-linecap:round}
/* Thanksgiving: falling leaves. Each leaf starts above the viewport, drifts side to side and tumbles. */
#frontScreen .fs-holiday-ambient .fs-hol-leaf{width:var(--s,20px);height:var(--s,20px);top:-12vh;color:#d9862c;filter:drop-shadow(0 2px 1px rgba(30,10,0,.25));animation-name:hol-leaf-fall;animation-timing-function:linear;animation-iteration-count:infinite}
#frontScreen .fs-holiday-ambient .fs-hol-leaf-1{color:#c8521c}
#frontScreen .fs-holiday-ambient .fs-hol-leaf-2{color:#e8a020}
#frontScreen .fs-holiday-ambient .fs-hol-leaf-3{color:#8f3a14}
@keyframes hol-leaf-fall{
  0%{transform:translate3d(0,0,0) rotate(var(--r,0deg));opacity:0}
  6%{opacity:.85}
  25%{transform:translate3d(4vw,30vh,0) rotate(calc(var(--r,0deg) + 70deg))}
  50%{transform:translate3d(-3vw,60vh,0) rotate(calc(var(--r,0deg) + 160deg))}
  75%{transform:translate3d(5vw,90vh,0) rotate(calc(var(--r,0deg) + 230deg))}
  94%{opacity:.8}
  100%{transform:translate3d(-2vw,124vh,0) rotate(calc(var(--r,0deg) + 320deg));opacity:0}
}
/* Black Friday: price stickers pinned around the edges with a slow wobble. */
#frontScreen .fs-holiday-ambient .fs-hol-tag{padding:6px 12px 6px 20px;border:2px solid #0b0b0d;background:#ffcc00;color:#0b0b0d;font:900 clamp(13px,1.6vw,19px)/1.1 var(--font-meme);letter-spacing:.06em;white-space:nowrap;clip-path:polygon(0 50%,12px 0,100% 0,100% 100%,12px 100%);box-shadow:0 3px 0 #000;opacity:.92;animation-name:hol-tag-wobble;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:alternate}
#frontScreen .fs-holiday-ambient .fs-hol-tag::before{content:'';position:absolute;left:8px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:#0b0b0d}
#frontScreen .fs-holiday-ambient .fs-hol-tag-1{background:#d8232a;color:#fff}
@keyframes hol-tag-wobble{
  0%{transform:translate3d(0,0,0) rotate(calc(var(--r,0deg) - 4deg))}
  100%{transform:translate3d(0,6px,0) rotate(calc(var(--r,0deg) + 4deg))}
}
@media(max-width:600px){#frontScreen .fs-holiday-ambient .fs-hol-tag{font-size:12px;padding:4px 9px 4px 16px}#frontScreen .fs-holiday-ambient span:nth-child(n+7){display:none}}
@media(prefers-reduced-motion:reduce){#frontScreen .fs-holiday-ambient span{animation-play-state:paused}#frontScreen .fs-holiday-ambient .fs-hol-leaf{top:var(--y,40%);opacity:.5}}
