/* Silver from the mascot, cool violet from its reflections, red from the hat. */
html[data-season="new-year"] {
  --ny-ink: #20212b;
  --ny-muted: #5b6071;
  --ny-red: #cb193a;
  --ny-pressed: #a91230;
  --ny-ice: #edf0f8;
  --ny-paper: #fff;
  --ny-line: #d6d9e5;
  --ny-pearl: radial-gradient(ellipse at 18% 12%, #fff 4%, #f8f9fd 43%, #e1e5f5 100%);
  --ny-crystal: url("assets/new-year-2026/snow.webp");
  --retail-base: var(--ny-ice);
  --retail-surface: var(--ny-paper);
  --retail-card: #eceef6;
  --retail-ink: var(--ny-ink);
  --retail-secondary: var(--ny-muted);
  --retail-line: var(--ny-line);
  --retail-accent: var(--ny-red);
  --atelier-deep: var(--ny-ink);
  --atelier-coral: var(--ny-red);
  --atelier-soft: var(--ny-ice);
  background: #dce0eb;
  color: var(--ny-ink);
}
html[data-season="new-year"] body { background: #dce0eb; }
html[data-season="new-year"] #app { background: var(--ny-paper); }
html[data-season="new-year"] #app > :is(.header,.tabbar) {
  color: var(--ny-ink);
  background: var(--ny-paper);
  border-color: var(--ny-line);
  box-shadow: none;
}
html[data-season="new-year"] #app .tabbar :is(button,.nav-symbol) { color: var(--ny-muted); }
html[data-season="new-year"] #app .tabbar :is(.selected,.selected .nav-symbol) { color: var(--ny-ink); }
html[data-season="new-year"] #app .tab-glow { background: var(--ny-red); box-shadow: none; }
html[data-season="new-year"] #app #task-dot { background: var(--ny-red); border-color: white; }
html[data-season="new-year"] #app :is(button,a):focus-visible {
  outline: 2px solid #414c81;
  outline-offset: -3px;
}

/* The single accent is reserved for the wheel action. */
html[data-season="new-year"] #app :is(.spin-button,.word-next,.prize-claim,.shop-buy,.certificate-button,.mascot-primary,.top-retry,.referral-invite-button) {
  --ny-button: var(--ny-ink);
  --ny-button-hover: #333645;
  --ny-button-active: #14151c;
  border: 0;
  border-radius: 12px;
  background: var(--ny-button);
  color: white;
  box-shadow: none;
  text-shadow: none;
}
@media (hover:hover) {
  html[data-season="new-year"] #app :is(.spin-button,.word-next,.prize-claim,.shop-buy,.certificate-button,.mascot-primary,.top-retry,.referral-invite-button):enabled:hover {
    background: var(--ny-button-hover);
    color: white;
  }
}
html[data-season="new-year"] #app :is(.spin-button,.word-next,.prize-claim,.shop-buy,.certificate-button,.mascot-primary,.top-retry,.referral-invite-button):enabled:active { background: var(--ny-button-active); }
html[data-season="new-year"] #app :is(.spin-button,.word-next,.prize-claim,.shop-buy,.certificate-button,.mascot-primary,.top-retry,.referral-invite-button):disabled {
  background: #e7e9f0;
  color: #646879;
  opacity: 1;
}
html[data-season="new-year"] #app :is(.spin-button,.word-next,.prize-claim,.shop-buy,.certificate-button,.mascot-primary,.top-retry,.referral-invite-button):enabled:focus-visible {
  outline-color: white;
  outline-offset: -4px;
}

/* Keep the wheel and its replay action filled through the handoff to a new round. */
#app :is(#spin, #again) {
  appearance: none;
  background: var(--ny-red, #cb193a);
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  text-shadow: none;
  font-weight: 650;
  letter-spacing: -.2px;
}
@media (hover:hover) {
  #app :is(#spin, #again):enabled:hover { background: #b91635; }
}
#app :is(#spin, #again):enabled:active,
#app #spin[aria-busy="true"],
#app #again:disabled {
  background: var(--ny-pressed, #a91230);
  opacity: 1;
}
#app #spin:disabled:not([aria-busy="true"]) {
  background: #e7e9f0;
  color: #646879;
}
#app :is(#spin, #again):focus-visible {
  outline: 2px solid white;
  outline-offset: -4px;
}

html[data-season="new-year"] #app .scene {
  background: radial-gradient(ellipse at 52% 48%, #fff 18%, #f6f7fc 63%, #e2e6f2);
}
html[data-season="new-year"] #app :is(.scene-title,.gift-label,.top-heading,.profile-name,.tasks-section-heading h2,.task-game-copy strong) { color: var(--ny-ink); }
html[data-season="new-year"] #app .scene .spin-controls { background-image: none; }
html[data-season="new-year"] #app .scene-balances .balance { color: var(--ny-ink); }

/* One cropped, translucent crystal sits behind each main illustration. */
html[data-season="new-year"] #app .scene::before,
html[data-season="new-year"] #profile-view .profile-hero::before,
html[data-season="new-year"] #top-view .top-hero::before {
  content: "";
  display: block;
  position: absolute;
  inset: auto;
  width: clamp(120px,38%,182px);
  height: auto;
  aspect-ratio: 150 / 160;
  background: linear-gradient(135deg,#c3c9e0,#fff 46%,#a7b2cf);
  -webkit-mask: var(--ny-crystal) center / contain no-repeat;
  mask: var(--ny-crystal) center / contain no-repeat;
  opacity: .55;
  pointer-events: none;
}
html[data-season="new-year"] #app .scene::before { top: 19%; right: -12%; z-index: 0; }
html[data-season="new-year"] #profile-view .profile-hero::before { top: 19%; right: -10%; z-index: -1; }
html[data-season="new-year"] #top-view .top-hero::before { top: 17%; left: -12%; z-index: -1; }
html[data-season="new-year"] #profile-view,
html[data-season="new-year"] #top-view { background: var(--ny-paper); color: var(--ny-ink); }
html[data-season="new-year"] #profile-view .profile-hero,
html[data-season="new-year"] #top-view .top-hero { background: var(--ny-pearl); border-bottom: 1px solid var(--ny-line); }
html[data-season="new-year"] #profile-view .profile-wallet { background: transparent; border: none; box-shadow: none; }
html[data-season="new-year"] #profile-view :is(.profile-wallet-item,.profile-wallet-item + .profile-wallet-item) { border-color: var(--ny-line); }
html[data-season="new-year"] #profile-view :is(.profile-wallet-value,.profile-companion-level,.referral-offer,.profile-banner-title) { color: var(--ny-ink); }
html[data-season="new-year"] #profile-view :is(.profile-wallet-label,.profile-companion-note,.profile-goal-heading,.profile-goal-count,.referral-condition,.profile-banner-note,.profile-shop-detail) { color: var(--ny-muted); }
html[data-season="new-year"] #profile-view .profile-companion-level::after { color: var(--ny-muted); }
html[data-season="new-year"] #profile-view .profile-progress { background: #cdd2e1; box-shadow: none; }
html[data-season="new-year"] #profile-view .profile-progress-fill { background: var(--ny-ink); }
html[data-season="new-year"] #profile-view .profile-lower { background: white; }
html[data-season="new-year"] #profile-view .profile-links { gap: 0; }
html[data-season="new-year"] #profile-view .profile-banner {
  border: none;
  border-bottom: 1px solid var(--ny-line);
  border-radius: 0;
  background: white;
  color: var(--ny-ink);
  box-shadow: none;
}
html[data-season="new-year"] #profile-view .profile-banner::before { content: none; }
html[data-season="new-year"] #profile-view .profile-banner-arrow { color: var(--ny-muted); stroke: currentColor; }
html[data-season="new-year"] #profile-view .profile-banner:last-child { border-bottom: none; }
@media (hover:hover) {
  html[data-season="new-year"] #profile-view .profile-banner:hover { transform: none; background: #f5f6fa; }
}
html[data-season="new-year"] #profile-view .profile-banner:active { background: var(--ny-ice); }
html[data-season="new-year"] #top-view .top-prize-strip { background: #fff; border: 1px solid var(--ny-line); box-shadow: none; }
html[data-season="new-year"] #top-view .top-prize + .top-prize::before { background: var(--ny-line); }
html[data-season="new-year"] #top-view .top-row-1 {
  background: linear-gradient(110deg, #435463, #536675 73%, #475966);
  color: white;
}
html[data-season="new-year"] #top-view .top-row-1 .top-title { opacity:.94; }
html[data-season="new-year"] #top-view :is(.top-row-1,.top-row-2,.top-row-3)[data-rank]::before {
  display: block;
}
html[data-season="new-year"] #top-view .top-row-1[data-rank]::before,
html[data-season="new-year"] #top-view .top-row-1[data-rank]::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 20px;
  background: url("./assets/new-year-2026/rank-lights.svg") left top / 144px 40px repeat-x;
  pointer-events: none;
  z-index: -1;
}
html[data-season="new-year"] #top-view .top-row-1[data-rank]::after {
  background-position: left bottom;
  opacity: .72;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-season="new-year"] #top-view.active .top-row-1[data-rank]::after {
    animation: ny-ranking-lights 2.4s ease-in-out infinite alternate;
  }
}
@keyframes ny-ranking-lights { from { opacity: .12; } to { opacity: 1; } }
html[data-season="new-year"] #top-view .top-row-2 {
  color: var(--ny-ink);
  background: linear-gradient(100deg, #f1f5f1, #dcebe5 74%, #eaf1eb);
}
html[data-season="new-year"] #top-view .top-row-2[data-rank]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("./assets/new-year-2026/rank-forest.svg") right 47px bottom / min(32%, 134px) auto no-repeat;
}
@media (max-width: 350px) {
  html[data-season="new-year"] #top-view .top-row-2[data-rank]::before {
    background-position: right 36px bottom;
    background-size: 29% auto;
  }
}
html[data-season="new-year"] #top-view .top-row-3 {
  color: var(--ny-ink);
  background: linear-gradient(110deg, #f1f3f9, #e4ebf5 80%, #edf1f8);
}
html[data-season="new-year"] #top-view .top-row-3[data-rank]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .48;
  background: url("./assets/new-year-2026/snow.webp") right 96px bottom -8px / 43px auto no-repeat,
              url("./assets/new-year-2026/snow.webp") right 60px top -9px / 31px auto no-repeat,
              url("./assets/new-year-2026/snow.webp") left -6px bottom -7px / 26px auto no-repeat;
}
html[data-season="new-year"] #top-view :is(.top-rules,.top-status) { color: var(--ny-muted); }

html[data-season="new-year"] #app :is(#tasks-view,#word-view,#quiz-view) { background: var(--ny-ice); color: var(--ny-ink); }
html[data-season="new-year"] #tasks-view :is(.tasks-games,.tasks-daily-panel,.referral-invite) {
  background: var(--ny-paper);
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}
html[data-season="new-year"] #tasks-view :is(h1,.task-game-copy strong,.daily-task-title,.referral-offer,.subscription-name) { color: var(--ny-ink); }
html[data-season="new-year"] #tasks-view :is(.tasks-reset-note,.task-game-status,.task-game-copy small,.daily-task-reward,.task-game-arrow,.referral-condition,.subscription-reward,.referral-monthly-count) { color: var(--ny-muted); }
html[data-season="new-year"] #tasks-view .task-game-heart { color: var(--ny-red); }
html[data-season="new-year"] #tasks-view .task-game:active { background: #f4f5fa; }
html[data-season="new-year"] #tasks-view .daily-streak-coin { background: #eceef5; box-shadow: none; color: var(--ny-muted); }
html[data-season="new-year"] #tasks-view .daily-streak-day.is-current .daily-streak-coin {
  background: var(--ny-ink);
  color: white;
  box-shadow: none;
}
html[data-season="new-year"] #app #tasks-view :is(.is-claimed .daily-task-reward,.daily-task .subscription-confirmed,#subscription-tasks-host .subscription-confirmed) {
  color: var(--ny-muted);
}
html[data-season="new-year"] #tasks-view .subscription-confirmed::before { color: var(--ny-muted); }
html[data-season="new-year"] #app #tasks-view :is(.daily-task-action,.subscription-link,.referral-invite-button) { background: transparent; box-shadow: none; }
html[data-season="new-year"] #app #tasks-view :is(.daily-task-action:enabled,.subscription-link[href],.referral-invite-button:enabled)::before { background: var(--ny-ink); box-shadow: none; }
html[data-season="new-year"] #app #tasks-view :is(.daily-task-action:enabled,.referral-invite-button:enabled),
html[data-season="new-year"] #app #tasks-view #subscription-tasks-host .subscription-link[href] { color: white !important; }
html[data-season="new-year"] #app #tasks-view :is(.daily-task-action,.referral-invite-button):disabled::before { background: #e7e9f0; }
html[data-season="new-year"] #app #tasks-view :is(.daily-task-action,.referral-invite-button):disabled { color: #646879; }
/* The wire follows the contours of the chrome wordmark. Its two layers use
   the same transparent margins so the glass, glow and lettering scale together. */
html[data-season="new-year"]:not([data-winter-loader-ready]) .app-loader-stage-v2::after {
  content: "";
  position: absolute;
  inset: -6.25%;
  background: url("./assets/new-year-2026/loader-poster.webp") center / contain no-repeat;
  pointer-events: none;
}
html[data-season="new-year"]:not([data-winter-loader-ready]) .app-loader-stage-v2 > :is(.app-loader-companion,.app-loader-wordmark) {
  opacity: 0;
}
html[data-season="new-year"] .app-loader-wordmark::before,
html[data-season="new-year"] .app-loader-wordmark::after {
  content:"";
  position:absolute;
  inset:-12.397% -4.132%;
  pointer-events:none;
  background:center / 100% 100% no-repeat;
}
html[data-season="new-year"] .app-loader-wordmark::after {
  z-index:2;
  background-image:url("./assets/new-year-2026/loader-garland.svg");
}
@media (prefers-reduced-motion:no-preference) {
  html[data-season="new-year"] .app-loader-wordmark::before {
    z-index:3;
    background-image:url("./assets/new-year-2026/loader-garland-glow.svg");
  }
}
html[data-season="new-year"] #app :is(.app-loader-wordmark-image,.app-loader-drip-image) { filter: grayscale(1); }
/* One transparent accessory follows the existing sprite, poster and WebGL rigs. */
html[data-season="new-year"] .app-loader-companion::after,
html[data-season="new-year"] .app-loader-companion .mascot-compositor > span::after,
html[data-season="new-year"] .top-hero-art:not(.top-art-pending)::after,
html[data-season="new-year"] .profile-companion.is-ready:not(.with-live-pet) .profile-companion-stage::after,
html[data-season="new-year"] .profile-hero-art.is-loaded .profile-pet::after,
html[data-season="new-year"] .mascot-stage[data-art="ready"] .mascot-art::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 18%;
  top: -2%;
  width: 69%;
  aspect-ratio: 420 / 213;
  background: url("./assets/new-year-2026/hat.webp") center / contain no-repeat;
  transform: rotate(7deg);
  pointer-events: none;
}
/* The loader and monthly ranking share the same head in their square sprites. */
html[data-season="new-year"] .app-loader-companion::after,
html[data-season="new-year"] .app-loader-companion .mascot-compositor > span::after,
html[data-season="new-year"] .top-hero-art:not(.top-art-pending)::after {
  left: 25%;
  top: -5%;
  width: 70%;
  transform: rotate(2deg);
}
@media (prefers-reduced-motion: no-preference) {
  html[data-season="new-year"] .app-loader-companion.has-mascot-motion::after { content: none; }
}
/* Leave room above the hat inside the clipped ranking header; keep the base in place. */
html[data-season="new-year"] .top-hero-art {
  transform-origin: center bottom;
  transform: scale(.92);
}

