/* Keep the lit winter shopfront in full colour. Only the header needs a scrim. */
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] {
  --m3-ink: #24262a;
  --m3-muted: #58606a;
  --m3-coral: #b32640;
  --m3-rule: #d7dade;
  background-color: #25366a;
  background-image:
    linear-gradient(180deg, #101b38d6, #111c38ac 66px, transparent 124px),
    var(--m3-world-image);
}

html:not([data-season="new-year"]) #match3-view[data-theme="winter"] .m3-heading-label,
html[data-season="new-year"] #match3-view[data-theme="winter"] .m3-heading h1 img { display: none; }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-heading h1 {
  color: #fff;

  font-size: 27px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.8px;
  text-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-icon-button {
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  color: #fff;
  background: #17264bb8;
  box-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-icon-button::before,
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-arena::before,
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-arena::after {
  content: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-icon-button svg { filter: none; }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-level-counter,.m3-life-button,.m3-life-button strong) {
  color: #fff;
  text-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-life-button svg {
  color: #ff7088;
  filter: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-life-button.is-empty svg { color: #bdc7d6; }

html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-arena {
  border-color: #c7d8ee;
  background: #fafcff;
  box-shadow: 0 4px 16px #0d173a30;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-objectives {
  background: #fff;
  box-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-goal-label,.m3-goal-name,.m3-goal-progress,.m3-moves span,.m3-map-reward) { color: var(--m3-muted); }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-goal-progress b,.m3-moves,.m3-sheet-head h2,.m3-earned) { color: var(--m3-ink); }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-moves { border-color: var(--m3-rule); }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-moves.is-low,.m3-moves.is-low span) { color: var(--m3-coral); }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-goal.is-complete :is(.m3-goal-progress,b) { color: #24654f; }

/* Keep all seven cells and all interactive/obstacle layers at their native size. */
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-board {
  border-radius: 14px;
  background-color: #1e3064;
  background-image:
    linear-gradient(90deg,#b9dcff2b 1px,transparent 1px),
    linear-gradient(#b9dcff2b 1px,transparent 1px),
    linear-gradient(145deg,#304c83,#232f67 58%,#292755);
  background-size: calc(100% / 7) calc(100% / 7), calc(100% / 7) calc(100% / 7), 100% 100%;
  box-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-board::after {
  background: none;
  box-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-demo-grid,.m3-mechanic-demo,.m3-mechanic-art>img) {
  background: #25376b;
  box-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-tip,.m3-coach) {
  color: var(--m3-ink);
  background: #fff;
  border-color: var(--m3-rule);
  box-shadow: 0 2px 8px #181b2010;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-overlay { background: #22252b66; }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-sheet {
  border-color: #d8e4f5;
  background: #fff;
  box-shadow: 0 10px 35px #171b2321;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-primary {
  color: #fff;
  background: var(--m3-ink);
  border-color: var(--m3-ink);
  box-shadow: none;
  text-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-secondary { color: var(--m3-muted); }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-option-toggle.is-on { background: var(--m3-ink); border-color: var(--m3-ink); }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-life-row .is-full { color: var(--m3-coral); }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-map-path { stroke: #c5c9cf; }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-map-path-done { stroke: #737a83; }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-map-node,.m3-map-node.is-locked) {
  border-color: var(--m3-rule);
  color: var(--m3-muted);
  background: #eef0f2;
  box-shadow: none;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-map-node.is-done {
  border-color: #a4aab1;
  color: var(--m3-ink);
  background: #fff;
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] .m3-map-node.is-current {
  border-color: var(--m3-ink);
  color: #fff;
  background: var(--m3-ink);
}
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] button:focus-visible { outline-color: #b32640; }
html[data-season="new-year"] #match3-view.m3-shopper[data-theme="winter"] :is(.m3-board,.m3-header) button:focus-visible { outline-color: #fff; }

/* The wire follows the outside of the board, independently of the objectives. */
html:not([data-season="new-year"]) #match3-view .m3-winter-garland { display: none; }
html[data-season="new-year"] #match3-view .m3-winter-garland {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 8;
  pointer-events: none;
}
html[data-season="new-year"] #match3-view .m3-garland-circuit {
  animation: m3-winter-lights 3.2s ease-in-out infinite;
  animation-play-state: paused;
}
html[data-season="new-year"] #match3-view.active .m3-winter-garland.is-visible .m3-garland-circuit {
  animation-play-state: running;
}
@keyframes m3-winter-lights {
  0%, 100% { opacity: .48; }
  40%, 62% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-season="new-year"] #match3-view .m3-garland-circuit { animation: none; opacity: 1; }
}
