/* Christmas 2026: only active while christmas-2026.js puts .christmas on <html> (until 26 Dec, Taipei time). */
html.christmas {
  --paper: #07110d;
  --surface: #0f1d17;
  --line: #24392f;
  --line-strong: #3f6b55;
  --accent: #e8394a;
  --accent-soft: #3a1418;
}
html.christmas body {
  background:
    radial-gradient(1200px 520px at 50% -180px, #1f5a3daa, transparent 70%),
    radial-gradient(700px 400px at 100% 110%, #6a141f55, transparent 70%),
    var(--paper);
  background-attachment: fixed;
}
html.christmas .topbar { background: rgba(8,18,14,.96); border-color: #24392f; }
html.christmas body[data-auto-home-screen] .brand-title { background: linear-gradient(95deg,#fff 50%,#ffd76a 72%,#ff6b78); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
html.christmas .home-rules-ticker, html.christmas .home-win-ticker { background: #0b1712; border-color: #24392f; }
html.christmas .home-win-ticker-label { background: #3a1418; color: #ffd76a; }
html.christmas .home-win-ticker-item strong { color: #ff8a95; }

/* Hero: the claw picture under a green night with a warm gold glow. */
html.christmas .marketplace-head-copy {
  position: relative;
  border-color: #2f6b4c;
  background:
    radial-gradient(260px 260px at 82% 22%, #ffd76a44, transparent 65%),
    linear-gradient(180deg, #0f3a26cc, #07140ecc 70%),
    #0b0e15 url('/assets/premium-claw-hero-20261008.png') 60% center / cover no-repeat;
  box-shadow: 0 0 0 1px #e8394a33, 0 18px 50px #0f3a2655;
}
html.christmas .marketplace-head-copy > * { position: relative; z-index: 1; }
html.christmas .marketplace-head-copy h1 { text-shadow: 0 2px 18px #000c, 0 0 28px #ffd76a44; }
html.christmas .xm-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 6px 12px;
  border: 1px solid #ffd76a; border-radius: 999px; background: #3a1418d9; color: #ffe7a3;
  font-size: 13px; font-weight: 900; letter-spacing: .04em;
}
html.christmas .xm-hero-tree {
  position: absolute; right: 6%; bottom: 8%; z-index: 1; width: clamp(64px,13vw,120px);
  filter: drop-shadow(0 0 18px #ffd76a77); animation: xm-sway 4s ease-in-out infinite; transform-origin: 50% 100%;
}
html.christmas .marketplace-head-copy .home-screen-button, html.christmas .market-hero-link {
  border-color: #ffd76a; background: #0f1d17e8; box-shadow: 0 0 0 1px #e8394a80, 0 6px 20px #ffd76a33;
}

html.christmas .market-section-head h2::first-letter { color: #ff6b78; }
html.christmas .location-chip, html.christmas .marketplace-search input, html.christmas .market-searchbar select { background: #0f1d17; border-color: #2c4a3c; }
html.christmas .location-chip .bi { color: #ffd76a; }

/* Machine cards: gold rim and a soft glow. */
html.christmas .marketplace-list .merchant-card { border-color: #2c4a3c; background: #0d1a14; }
html.christmas .marketplace-list .merchant-card:hover { border-color: #ffd76a; box-shadow: 0 10px 34px #ffd76a2e; }
html.christmas .merchant-cover-badge { border-color: #ffd76a; background: #3a1418e6; color: #ffe7a3; }
html.christmas .marketplace-list .small-btn.secondary { border-color: #e8394a; background: #3a1418; color: #ffe2e5; }
html.christmas .btn.accent, html.christmas .store-sticky-action .btn.accent { background: linear-gradient(115deg,#e8394a 0%,#b3122a 45%,#1f7a4d 100%); border-color: #ffd76a; box-shadow: 0 6px 20px #e8394a47; }
html.christmas .bottom-nav { background: rgba(8,18,14,.97); border-color: #24392f; }
html.christmas .bottom-nav a.active { color: #ffd76a; }

/* String lights along the top edge and slow snow, never blocking taps. */
.xm-sky { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.xm-flake { position: absolute; top: -20px; color: #fff; opacity: .8; text-shadow: 0 0 6px #fff8; animation: xm-fall linear infinite; }
.xm-lights { position: fixed; top: 0; left: 0; right: 0; z-index: 61; height: 18px; pointer-events: none; display: flex; justify-content: space-around; }
.xm-lights i { width: 8px; height: 11px; margin-top: 4px; border-radius: 50% 50% 45% 45%; animation: xm-blink 1.6s ease-in-out infinite; }
.xm-lights i:nth-child(4n+1) { background: #ff4d5e; box-shadow: 0 0 8px #ff4d5e; }
.xm-lights i:nth-child(4n+2) { background: #ffd76a; box-shadow: 0 0 8px #ffd76a; animation-delay: -.4s; }
.xm-lights i:nth-child(4n+3) { background: #4ade80; box-shadow: 0 0 8px #4ade80; animation-delay: -.8s; }
.xm-lights i:nth-child(4n+4) { background: #7cc4ff; box-shadow: 0 0 8px #7cc4ff; animation-delay: -1.2s; }
@keyframes xm-fall {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(18px, 55vh) rotate(180deg); }
  100% { transform: translate(-10px, 110vh) rotate(360deg); }
}
@keyframes xm-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes xm-sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (max-width: 767px) { .xm-lights i:nth-child(n+15) { display: none; } }
@media (prefers-reduced-motion: reduce) { .xm-sky { display: none; } .xm-lights i { animation: none; } html.christmas .xm-hero-tree { animation: none; } }
