/*
  Christmas Smooth Jazz

  Colours come from the Best Smooth Jazz brand (red and gold),
  set against a night sky for the snowy jazz club feel.
*/


/* Colours and Plyr theme */

:root {
  --night: #0B1630;
  --night-light: #13224A;
  --red: #C50122;
  --red-dark: #8A0016;
  --gold: #FBE347;
  --gold-dark: #B9A300;
  --cream: #FFF6E5;
  --ink: #2A1A12;
  --frost: #C9D2EA;
  --snow: #F4F7FF;
  --holly: #1B6A3A;
  --holly-dark: #0F4626;
  --radius: 6px;

  /* Plyr reads these to theme the video player */
  --plyr-color-main: var(--gold);
  --plyr-video-control-color: var(--cream);
  --plyr-video-control-color-hover: var(--ink);
  --plyr-video-control-background-hover: var(--gold);
  --plyr-focus-visible-color: var(--gold);
  --plyr-menu-background: var(--cream);
  --plyr-menu-color: var(--ink);
  --plyr-tooltip-background: var(--cream);
  --plyr-tooltip-color: var(--ink);
  --plyr-video-background: #000000;
  --plyr-font-family: 'Poppins', system-ui, sans-serif;
  --plyr-range-thumb-background: var(--cream);
  --plyr-video-range-track-background: rgba(255, 246, 229, 0.3);
  --plyr-video-progress-buffered-background: rgba(255, 246, 229, 0.45);
  --plyr-badge-background: var(--red);
  --plyr-badge-text-color: var(--cream);
}


/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--night);
  background-image: linear-gradient(
    var(--night) 0,
    var(--night-light) 60%,
    var(--night) 100%
  );
  color: var(--cream);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.05;
}

.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  box-shadow: 0 4px 0 var(--gold-dark);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #FFF07A;
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--gold-dark);
}


/* Falling snow sits behind everything else */

#snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
}


/* Header: a marquee sign over the club door */

.top {
  display: flex;
  justify-content: center;
  padding-top: 22px;
}

.logo {
  display: block;
  width: 132px;
  height: 132px;
}

.marquee {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding-top: clamp(34px, 5vw, 48px);
  padding-right: clamp(34px, 7vw, 88px);
  padding-bottom: clamp(30px, 4.5vw, 44px);
  padding-left: clamp(34px, 7vw, 88px);
  border-radius: 12px;
  background: var(--red);
  text-align: center;
}

/*
  The bulb border. "round" fits a whole number of bulbs on each edge,
  so all four corners share the same bulb at any width.
*/
.marquee:not(.has-lights)::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 8px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px)
      left top / 18px 18px round no-repeat,
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px)
      left bottom / 18px 18px round no-repeat,
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px)
      left top / 18px 18px no-repeat round,
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px)
      right top / 18px 18px no-repeat round;
}

/* Fairy lights round the sign, placed by assets/js/app.js. Neighbours start on different colours. */
.lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bulb {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 1px rgba(251, 227, 71, 0.8);
  animation:
    bulb-colour 6s linear infinite,
    bulb-twinkle var(--twinkle, 1.4s) ease-in-out var(--twinkle-delay, 0s) infinite alternate;
}

.bulb-1 { animation-delay: -1.5s, var(--twinkle-delay, 0s); }
.bulb-2 { animation-delay: -3s, var(--twinkle-delay, 0s); }
.bulb-3 { animation-delay: -4.5s, var(--twinkle-delay, 0s); }

@keyframes bulb-colour {
  0%, 20% {
    background: #FBE347;
    box-shadow: 0 0 7px 2px rgba(251, 227, 71, 0.85);
  }
  25%, 45% {
    background: #6BEA8A;
    box-shadow: 0 0 7px 2px rgba(107, 234, 138, 0.85);
  }
  50%, 70% {
    background: #9ADFFF;
    box-shadow: 0 0 7px 2px rgba(154, 223, 255, 0.85);
  }
  75%, 95% {
    background: #FF8AD0;
    box-shadow: 0 0 7px 2px rgba(255, 138, 208, 0.85);
  }
  100% {
    background: #FBE347;
    box-shadow: 0 0 7px 2px rgba(251, 227, 71, 0.85);
  }
}

@keyframes bulb-twinkle {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

/* The two smaller lines, in white with a deep green shadow */
.marquee small {
  display: block;
  color: #FFFFFF;
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 var(--holly-dark);
}

.marquee .presents {
  font-size: clamp(1.6rem, 4.6vw, 2.75rem);
}

@media (max-width: 440px) {
  .marquee {
    padding-right: 26px;
    padding-left: 26px;
  }
}

.marquee h1 {
  margin: 14px 0;
  color: var(--gold);
  font-size: clamp(2.3rem, 8vw, 5.25rem);
  text-shadow: 3px 3px 0 var(--red-dark);
}

/* A glowing yellow crescent moon in the top corner, behind the snow and the page content.
   drop-shadow follows the crescent shape, so the glow hugs the lit edge. */
.moon {
  position: absolute;
  top: 26px;
  right: max(16px, 7vw);
  z-index: 0;
  width: clamp(54px, 8vw, 112px);
  aspect-ratio: 1;
  filter:
    drop-shadow(0 0 6px rgba(252, 226, 122, 0.85))
    drop-shadow(0 0 22px rgba(252, 226, 122, 0.5))
    drop-shadow(0 0 60px rgba(251, 227, 71, 0.3));
  pointer-events: none;
}

.moon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lede {
  max-width: 72ch;
  margin: 24px auto 0;
  color: var(--frost);
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  text-align: center;
}


/* Main screen: the year and title on top, the player at full width below */

.featured {
  padding: 48px 0 64px;
  scroll-margin-top: 16px;
}

.featured-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 24px;
  margin-bottom: 22px;
}

.featured-titles {
  flex: 1 1 320px;
  padding-bottom: 8px;
}

.kicker {
  margin: 0 0 4px;
  color: var(--frost);
  font-weight: 600;
}

.featured-year {
  margin: 0;
  color: var(--gold);
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 0.85;
  text-shadow: 4px 4px 0 var(--red-dark);
}

.featured h2 {
  color: var(--cream);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.tv {
  padding: 14px;
  border-radius: 14px;
  background: var(--red-dark);
  box-shadow:
    0 0 0 6px var(--gold),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #000000;
}

.player-frame > video,
.player-frame > iframe,
.player-frame > .plyr {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Cast button, added into the player's control bar */

.cast-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  padding: 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.cast-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cast-button:hover {
  background: var(--gold);
  color: var(--ink);
}

.cast-button.is-casting {
  color: var(--gold);
}

.cast-button.is-casting:hover {
  color: var(--ink);
}


/* Show picker: upright gift tags with the year and a play button */

.archive {
  padding: 8px 0 72px;
}

.archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.archive h2 {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3rem);
}

.archive-head p {
  margin: 0;
  color: var(--frost);
}

.tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 32px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tag {
  --swing: -4deg;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 160px;
  padding: 44px 12px 18px;
  border: 0;
  background: var(--red);
  color: var(--cream);
  font: inherit;
  cursor: pointer;
  clip-path: polygon(22% 0, 78% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
  transform-origin: 50% 0;
  transition:
    transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1),
    background-color 0.2s;
}

.tags li:nth-child(even) .tag {
  --swing: 4deg;

  background: var(--red-dark);
}

/* The eyelet the string would go through */
.tag::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: inset 0 0 0 4px var(--gold);
}

.tag:hover,
.tag:focus-visible {
  transform: rotate(var(--swing));
}

/* clip-path would cut off an outline, so focus shows as a ring on the play button */
.tag:focus-visible {
  outline: none;
}

.tag:focus-visible .tag-play {
  box-shadow:
    0 0 0 3px var(--cream),
    0 0 0 6px var(--ink);
}

.tag-year {
  color: var(--gold);
  font-family: 'Lilita One', sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}

/* Used when a show has no year to show, so its title is cut to two lines */
.tag .tag-year-text {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--cream);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-play {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.2s;
}

/* The play triangle */
.tag-play::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 19px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--ink);
}

.tag:hover .tag-play {
  transform: scale(1.08);
}

.tag-status {
  min-height: 1.3em;
  font-size: 0.85rem;
  font-weight: 600;
}

.tags li .tag.is-current {
  background: var(--cream);
  color: var(--ink);
}

.tag.is-current .tag-year {
  color: var(--red);
}

.tag.is-current .tag-year-text {
  color: var(--ink);
}

.tag.is-current .tag-play {
  background: var(--red);
}

.tag.is-current .tag-play::after {
  border-left-color: var(--cream);
}


/* Loading, empty and error messages */

.state {
  padding: 64px 0 72px;
  text-align: center;
}

.state h2 {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: clamp(2rem, 6vw, 3.25rem);
}

.state p {
  max-width: 46ch;
  margin: 0 auto 20px;
  color: var(--frost);
}

.loading-gift {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  animation: wobble 1s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }
}


/* More from BSJ: record sleeves whose record slides out on hover or focus */

.more {
  padding: 16px 0 24px;
}

.more h2 {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3rem);
}

.more-sub {
  margin: 0 0 32px;
  color: var(--frost);
}

.sleeves {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sleeve {
  position: relative;
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1.6 / 1;
  text-decoration: none;
}

.sleeve:focus-visible {
  outline: none;
}

.sleeve:focus-visible .sleeve-face {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.disc {
  position: absolute;
  top: 5%;
  right: 0;
  height: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      var(--night) 0 3%,
      var(--gold) 3.2% 17%,
      #111111 17.5% 19%,
      transparent 19.5%
    ),
    conic-gradient(
      from 30deg,
      rgba(255, 255, 255, 0) 0 10%,
      rgba(255, 255, 255, 0.14) 14%,
      rgba(255, 255, 255, 0) 20% 60%,
      rgba(255, 255, 255, 0.12) 64%,
      rgba(255, 255, 255, 0) 70%
    ),
    repeating-radial-gradient(
      circle,
      #151515 0 2px,
      #262626 2px 4px
    );
  box-shadow:
    0 0 0 2px rgba(201, 210, 234, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateX(0) rotate(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sleeve:hover .disc,
.sleeve:focus-visible .disc {
  transform: translateX(14%) rotate(160deg);
}

.sleeve-face {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  width: 78%;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.sleeve-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--gold);
}

.sleeve-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.sleeve-title {
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 1;
}

.sleeve-text {
  font-size: 0.98rem;
  line-height: 1.4;
}

.sleeve-link {
  margin-top: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.sleeve-red .sleeve-face {
  background: var(--red);
  color: var(--cream);
}

.sleeve-red .sleeve-title {
  color: var(--gold);
}

.sleeve-cream .sleeve-face {
  background: var(--cream);
  color: var(--ink);
}

.sleeve-cream .sleeve-title {
  color: var(--red);
}

.sleeve-cream .sleeve-icon {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--red);
}

.sleeve-dark .sleeve-face {
  background: var(--red-dark);
  color: var(--cream);
}

.sleeve-dark .sleeve-title {
  color: var(--gold);
}


/* App store links */

.apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 48px;
  padding: 24px clamp(18px, 3vw, 32px);
  border: 2px dashed rgba(251, 227, 71, 0.5);
  border-radius: 12px;
}

.apps h3 {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.apps p {
  max-width: 44ch;
  margin: 0;
  color: var(--frost);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: block;
  height: 48px;
  border-radius: 7px;
}

.badge:focus-visible {
  outline-offset: 3px;
}

.badge img {
  display: block;
  width: auto;
  height: 48px;
}

/*
  Google's badge comes with transparent padding around it,
  so it is drawn larger and shifted to line up with the App Store badge.
*/
.badge-play {
  position: relative;
  width: 160px;
}

.badge-play img {
  position: absolute;
  top: -11px;
  left: -11px;
  max-width: none;
  height: 70px;
}


/* The bottom of the page: a still snowy night with a snowman */

.scene {
  position: relative;
  margin-top: 24px;
}

.scene-art {
  display: block;
  width: 100%;
  height: max(280px, 100vw * 430 / 1440);
}

.credit {
  margin-top: -1px;
  padding: 4px 16px 28px;
  background: var(--snow);
  color: var(--ink);
  text-align: center;
}

.credit a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.credit a:hover .credit-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credit a:focus-visible {
  outline-color: var(--red);
}

/* Rod's R mark, hung as a gold bauble */
.bauble {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -6px -8px 0 rgba(138, 0, 22, 0.18);
  isolation: isolate;
}

/* The bauble's cap */
.bauble::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 16px;
  height: 10px;
  margin-left: -8px;
  border-radius: 3px 3px 0 0;
  background: var(--red);
}

/* Multiply turns the white of the image into the gold behind it */
.bauble img {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin: 9px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}


/* Tablet and up */

@media (min-width: 760px) {
  .sleeves {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .sleeve {
    aspect-ratio: 1.15 / 1;
  }
}


/* Phones */

@media (max-width: 640px) {
  .logo {
    width: 108px;
    height: 108px;
  }

  .featured {
    padding: 40px 0 48px;
  }

  .tv {
    padding: 8px;
    box-shadow:
      0 0 0 4px var(--gold),
      0 12px 28px rgba(0, 0, 0, 0.45);
  }

  .archive {
    padding-bottom: 48px;
  }

  .tags {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 22px 12px;
  }

  .tag {
    padding-top: 40px;
  }

  .tag-year {
    font-size: 2.1rem;
  }
}


/* The snowman sways as he plays, and notes float out of the bell */

.snowman-play {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: snowman-sway 2.8s ease-in-out infinite alternate;
}

@keyframes snowman-sway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(2deg); }
}

.cheek {
  transform-box: fill-box;
  transform-origin: center;
  animation: cheek-puff 0.7s ease-in-out infinite alternate;
}

@keyframes cheek-puff {
  from { transform: scale(1); }
  to { transform: scale(1.25); }
}

.note {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: note-float 4s ease-out infinite;
}

@keyframes note-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  45% {
    transform: translate(calc(var(--dx) * 0.4), -40px) scale(1) rotate(-12deg);
  }
  75% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), -88px) scale(1.05) rotate(10deg);
  }
}


/* Santa's sleigh, flown across the top of the page once by assets/js/app.js */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sleigh {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(230px, 32vw, 460px);
  height: auto;
  will-change: transform;
  filter: drop-shadow(0 0 10px rgba(255, 246, 229, 0.18));
}

.deer {
  transform-box: fill-box;
  transform-origin: center;
  animation: deer-bob 0.6s ease-in-out infinite;
}

@keyframes deer-bob {
  0%, 100% { transform: translateY(1.5px) rotate(1deg); }
  50% { transform: translateY(-2.5px) rotate(-2deg); }
}

.leg {
  animation: 0.6s ease-in-out infinite;
}

.leg-front { animation-name: leg-front; }
.leg-back { animation-name: leg-back; }

@keyframes leg-front {
  0%, 100% { transform: rotate(-72deg); }
  50% { transform: rotate(-22deg); }
}

@keyframes leg-back {
  0%, 100% { transform: rotate(30deg); }
  50% { transform: rotate(72deg); }
}

.sleigh-body {
  transform-box: fill-box;
  transform-origin: 60% 80%;
  animation: sleigh-rock 1.2s ease-in-out infinite alternate;
}

@keyframes sleigh-rock {
  from { transform: rotate(-1.5deg) translateY(1px); }
  to { transform: rotate(1.5deg) translateY(-1px); }
}

.nose-glow {
  animation: nose-glow 0.9s ease-in-out infinite alternate;
}

@keyframes nose-glow {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.sparkle {
  position: absolute;
  width: var(--size, 8px);
  height: var(--size, 8px);
  margin: calc(var(--size, 8px) / -2) 0 0 calc(var(--size, 8px) / -2);
  background: var(--colour, #FBE347);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: sparkle-fall 1.5s ease-out forwards;
}

@keyframes sparkle-fall {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: translate(var(--drift, -10px), 34px) scale(0.2) rotate(120deg);
  }
}


/* Less motion for people who ask for it */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tag,
  .disc {
    transition: none;
  }

  .tag:hover,
  .tag:focus-visible {
    transform: none;
  }

  .loading-gift,
  .bulb,
  .snowman-play,
  .cheek {
    animation: none;
  }

  .note {
    display: none;
  }

  .bulb-1 { background: #6BEA8A; }
  .bulb-2 { background: #9ADFFF; }
  .bulb-3 { background: #FF8AD0; }
}
