:root {
  color-scheme: light;
  --ink: #351b4c;
  --pink: #f33991;
  --pink-deep: #d91d78;
  --pink-light: #ff96cf;
  --violet: #7e56c4;
  --cream: #fff8f0;
  --blue: #5bc8ff;
  --card-size: min(38rem, 68vw, 72vh);
  font-family: "Noto Sans TC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--cream);
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 53% 47%, rgb(255 255 255 / 92%) 0 15%, transparent 42%),
    linear-gradient(135deg, #fff8ee 0%, #fff2f7 50%, #f7f2ff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(100 61 130 / 16%) 0.7px, transparent 0.7px);
  background-size: 11px 11px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-glow {
  position: fixed;
  z-index: -2;
  width: min(42rem, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
}

.page-glow--pink {
  top: -18rem;
  left: 0;
  background: #ff5fac;
}

.page-glow--blue {
  right: 0;
  bottom: -21rem;
  background: #70ccff;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
}

.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 2.1rem;
}

.site-nav {
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.28rem;
  border: 1px solid rgb(53 27 76 / 9%);
  border-radius: 999px;
  background: rgb(255 255 255 / 50%);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  color: rgb(53 27 76 / 52%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a:hover {
  color: var(--pink-deep);
}

.site-nav a.is-active {
  color: white;
  background: var(--pink);
  box-shadow: 0 7px 18px rgb(236 45 137 / 23%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  min-width: 0;
  color: var(--ink);
  font-family: "Outfit", "Noto Sans TC", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand__text {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  color: var(--pink);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
}

.brand__spark {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.12rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
  box-shadow: 0 7px 18px rgb(236 45 137 / 28%);
  font-size: 0.78rem;
}

.event-tag {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.event-tag span {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgb(53 27 76 / 16%);
  border-radius: 999px;
  color: var(--pink-deep);
  background: rgb(255 255 255 / 52%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(17rem, 0.76fr) minmax(28rem, 1.24fr);
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100svh - 176px);
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
}

.hero__copy {
  position: relative;
  z-index: 5;
  padding-bottom: 2.25rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  color: var(--pink-deep);
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.eyebrow span {
  width: 2rem;
  height: 2px;
  background: var(--pink);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 span {
  display: block;
  color: var(--pink);
  text-shadow: 0.04em 0.055em 0 #ffd0e8;
}

.intro {
  margin: 1.7rem 0 0;
  color: rgb(53 27 76 / 64%);
  font-size: 0.98rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-link,
.ghost-link,
.raffle-primary,
.raffle-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-link,
.raffle-primary {
  border: 1px solid rgb(243 57 145 / 18%);
  color: white;
  background: var(--pink);
  box-shadow: 0 14px 30px rgb(236 45 137 / 24%);
}

.ghost-link,
.raffle-secondary {
  border: 1px solid rgb(53 27 76 / 11%);
  color: var(--ink);
  background: rgb(255 255 255 / 66%);
  box-shadow: 0 12px 28px rgb(64 35 81 / 8%);
}

.primary-link:hover,
.ghost-link:hover,
.raffle-primary:hover,
.raffle-secondary:hover {
  transform: translateY(-2px);
}

.side-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 2rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 58%);
  box-shadow: 0 12px 35px rgb(93 43 94 / 8%);
  backdrop-filter: blur(12px);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.side-status__dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgb(243 57 145 / 12%);
}

.side-status strong {
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.fan-stage {
  position: relative;
  display: grid;
  min-height: calc(var(--card-size) + 7rem);
  place-items: center;
  perspective: 1500px;
}

.flip-card {
  position: relative;
  z-index: 3;
  width: var(--card-size);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: transparent;
  cursor: pointer;
  perspective: 1500px;
  touch-action: pan-y;
  animation: fan-float 5.5s ease-in-out infinite;
}

.flip-card::before {
  position: absolute;
  inset: 3.5%;
  z-index: -1;
  border-radius: 50%;
  background: rgb(128 49 119 / 34%);
  box-shadow: 0 2.5rem 3rem rgb(97 48 108 / 24%);
  content: "";
  filter: blur(20px);
  transform: translateY(5%);
  transition: background 600ms ease;
}

.flip-card:focus-visible::after {
  position: absolute;
  inset: -0.7rem;
  border: 3px solid var(--pink);
  border-radius: 50%;
  content: "";
  animation: focus-pulse 1.4s ease-in-out infinite;
}

.flip-card__inner {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.2, 0.74, 0.25, 1);
}

.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 8px solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(84 45 93 / 9%),
    inset 0 0 0 1px rgb(255 255 255 / 80%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card__face::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgb(255 255 255 / 42%) 0%,
    transparent 19%,
    transparent 74%,
    rgb(255 255 255 / 16%) 100%
  );
  content: "";
  pointer-events: none;
}

.flip-card__face--back {
  transform: rotateY(180deg);
}

.flip-card__face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.flip-hint {
  position: absolute;
  right: 2.5%;
  bottom: 0.75rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border: 1px solid rgb(53 27 76 / 11%);
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 12px 32px rgb(64 35 81 / 12%);
  backdrop-filter: blur(14px);
  font: 600 0.76rem/1 "Noto Sans TC", sans-serif;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.flip-hint:hover {
  box-shadow: 0 14px 36px rgb(64 35 81 / 18%);
  transform: translateY(-2px);
}

.flip-hint__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
}

.flip-hint__icon svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgb(218 46 130 / 14%);
  border-radius: 50%;
  pointer-events: none;
}

.orbit--outer {
  width: calc(var(--card-size) + 6rem);
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbit-spin 35s linear infinite;
}

.orbit--inner {
  width: calc(var(--card-size) + 2.8rem);
  aspect-ratio: 1;
}

.spark {
  position: absolute;
  z-index: 4;
  color: var(--pink);
  text-shadow: 0 4px 12px rgb(218 46 130 / 25%);
  animation: spark-pulse 2.8s ease-in-out infinite;
}

.spark--one {
  top: 11%;
  right: 5%;
  font-size: 1.3rem;
}

.spark--two {
  bottom: 15%;
  left: 2%;
  color: var(--violet);
  font-size: 0.9rem;
  animation-delay: -1.2s;
}

.spark--three {
  top: 25%;
  left: 3%;
  color: #f0a524;
  font-size: 0.65rem;
  animation-delay: -2s;
}

.site-footer {
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  min-height: 80px;
  padding: 0.8rem 0 1rem;
  border-top: 1px solid rgb(53 27 76 / 10%);
  color: rgb(53 27 76 / 48%);
  font-family: "Outfit", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.footer-disclaimer {
  flex: 0 0 100%;
  margin: -0.15rem 0 0;
  color: rgb(53 27 76 / 56%);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pagination__dot {
  padding: 0;
  width: 0.38rem;
  height: 0.38rem;
  border: 0;
  border-radius: 999px;
  background: rgb(53 27 76 / 18%);
  cursor: pointer;
  transition:
    width 320ms ease,
    background 320ms ease;
}

.pagination__dot.is-active {
  width: 1.35rem;
  background: var(--pink);
}

.merch-page {
  --fan-head-size: min(29rem, 50vw, 59vh);
  --keychain-size: min(21rem, 38vw, 43vh);
  --merch-card-width: min(31rem, 47vw, 58vh);
  background:
    radial-gradient(circle at 68% 42%, rgb(255 255 255 / 96%) 0 14%, transparent 42%),
    linear-gradient(135deg, #fff8ee 0%, #fff4fa 48%, #f5f1ff 100%);
}

.merch-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(19rem, 0.82fr) minmax(31rem, 1.18fr);
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100svh - 176px);
  margin-inline: auto;
  padding: 1rem 0 7rem;
}

.merch-copy {
  position: relative;
  z-index: 5;
}

.collection-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
}

.collection-tabs button {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 999px;
  color: rgb(53 27 76 / 35%);
  background: rgb(255 255 255 / 48%);
  cursor: pointer;
  font: 600 0.65rem/1 "Outfit", sans-serif;
  letter-spacing: 0.08em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.collection-tabs button:hover {
  color: var(--pink-deep);
}

.collection-tabs button.is-active {
  border-color: rgb(243 57 145 / 16%);
  color: var(--pink);
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 10px 24px rgb(93 43 94 / 8%);
}

.collection-tabs strong {
  font-size: 0.9rem;
}

.collection-tabs span {
  font-size: 0.55rem;
}

.merch-copy h1 #product-title-prefix {
  color: var(--ink);
  text-shadow: none;
}

.merch-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  width: fit-content;
  margin-top: 2.2rem;
  overflow: hidden;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 56%);
  box-shadow: 0 16px 40px rgb(93 43 94 / 7%);
  backdrop-filter: blur(12px);
}

.merch-meta div {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
}

.merch-meta div + div {
  border-left: 1px solid rgb(53 27 76 / 9%);
}

.merch-meta span {
  color: var(--pink-deep);
  font: 700 0.56rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
}

.merch-meta strong {
  font: 600 0.66rem/1 "Outfit", sans-serif;
  letter-spacing: 0.09em;
}

.product-showcase {
  position: relative;
  display: grid;
  min-height: calc(var(--fan-head-size) + 13rem);
  place-items: start center;
  perspective: 1800px;
}

.product-showcase::after {
  position: absolute;
  bottom: 5.9rem;
  left: 50%;
  z-index: 0;
  width: calc(var(--fan-head-size) * 0.7);
  height: 2rem;
  border-radius: 50%;
  background: rgb(73 36 93 / 18%);
  content: "";
  filter: blur(16px);
  transform: translateX(-50%);
  animation: product-shadow 9s ease-in-out infinite;
}

.product-fan {
  position: relative;
  z-index: 3;
  width: var(--fan-head-size);
  height: calc(var(--fan-head-size) + 10.2rem);
  transform-style: preserve-3d;
}

.product-fan__rotator {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: product-turn 9s linear infinite;
}

.product-fan.is-paused .product-fan__rotator {
  animation-play-state: paused;
}

.product-fan__face {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.product-fan__face--front {
  transform: translateZ(4px);
}

.product-fan__face--back {
  transform: rotateY(180deg) translateZ(4px);
}

.product-fan__head {
  position: relative;
  z-index: 3;
  width: var(--fan-head-size);
  aspect-ratio: 1;
  padding: 0.42rem;
  overflow: hidden;
  border: 0.42rem solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(60 31 75 / 17%),
    0 1.8rem 3.8rem rgb(83 39 95 / 20%),
    inset 0 0 1rem rgb(255 255 255 / 58%);
}

.product-fan__head::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgb(255 255 255 / 40%), transparent 20% 75%, rgb(255 255 255 / 15%));
  content: "";
  pointer-events: none;
}

.product-fan__head img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
}

.product-fan__handle {
  position: absolute;
  top: calc(var(--fan-head-size) - 1.25rem);
  left: 50%;
  z-index: 1;
  width: clamp(3.6rem, calc(var(--fan-head-size) * 0.16), 4.7rem);
  height: 11.25rem;
  border: 1px solid rgb(60 31 75 / 18%);
  border-radius: 0 0 2.1rem 2.1rem;
  background:
    linear-gradient(90deg, rgb(229 225 230 / 72%), #fff 20% 78%, rgb(221 217 224 / 76%)),
    #fff;
  box-shadow:
    0 1.2rem 2rem rgb(65 36 75 / 17%),
    inset 0 0 0 1px rgb(255 255 255 / 75%);
  transform: translateX(-50%);
}

.product-fan__handle::before {
  position: absolute;
  top: -0.35rem;
  left: -0.35rem;
  width: calc(100% + 0.7rem);
  height: 2.6rem;
  border-radius: 0 0 45% 45%;
  background: white;
  content: "";
}

.product-fan__hole {
  position: absolute;
  bottom: 0.82rem;
  left: 50%;
  width: 1.08rem;
  aspect-ratio: 1;
  border: 2px solid rgb(53 27 76 / 18%);
  border-radius: 50%;
  background: rgb(246 243 246 / 80%);
  box-shadow: inset 0 2px 3px rgb(53 27 76 / 8%);
  transform: translateX(-50%);
}

.product-keychain {
  --keychain-item-size: calc(var(--keychain-size) * 0.72);
  position: relative;
  z-index: 3;
  width: min(100%, calc(var(--keychain-item-size) * 2 + 2rem));
  height: calc(var(--keychain-item-size) + 11rem);
  margin-top: 1.2rem;
  transform-style: preserve-3d;
}

.product-keychain__pair {
  display: grid;
  grid-template-columns: repeat(2, var(--keychain-item-size));
  gap: clamp(0.9rem, 2.2vw, 2rem);
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-keychain__item {
  position: relative;
  width: var(--keychain-item-size);
  height: calc(var(--keychain-item-size) + 9.4rem);
  transform-style: preserve-3d;
}

.product-keychain__item--night {
  transform: translateY(0.55rem) rotateZ(-1.6deg);
}

.product-keychain__item--day {
  transform: translateY(-0.2rem) rotateZ(1.6deg);
}

.product-keychain__rotator {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: keychain-turn 8s linear infinite;
}

.product-keychain.is-paused .product-keychain__rotator {
  animation-play-state: paused;
}

.product-keychain__face {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.product-keychain__face--front {
  transform: translateZ(5px);
}

.product-keychain__face--back {
  transform: rotateY(180deg) translateZ(5px);
}

.product-keychain__ring {
  position: absolute;
  top: 0;
  left: 50%;
  width: 5.2rem;
  aspect-ratio: 1;
  border: 0.48rem solid #d9d8df;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 78%),
    0 0.55rem 1.2rem rgb(53 27 76 / 16%);
  transform: translateX(-50%);
}

.product-keychain__ring::after {
  position: absolute;
  inset: -0.3rem;
  border: 1px solid rgb(53 27 76 / 18%);
  border-radius: inherit;
  content: "";
}

.product-keychain__link {
  position: absolute;
  left: 50%;
  width: 1.05rem;
  height: 1.65rem;
  border: 0.22rem solid #d9d8df;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%);
  transform: translateX(-50%);
}

.product-keychain__link--one {
  top: 4.25rem;
}

.product-keychain__link--two {
  top: 5.55rem;
}

.product-keychain__connector {
  position: absolute;
  top: 6.75rem;
  left: 50%;
  z-index: 1;
  width: 2.5rem;
  height: 2.8rem;
  border: 0.24rem solid #d9d8df;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 75%);
  transform: translateX(-50%);
}

.product-keychain__charm {
  position: absolute;
  top: 8.2rem;
  left: 50%;
  width: var(--keychain-item-size, var(--keychain-size));
  aspect-ratio: 1;
  padding: 0.58rem;
  overflow: hidden;
  border: 0.28rem solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  background: rgb(255 255 255 / 38%);
  box-shadow:
    0 0 0 1px rgb(60 31 75 / 18%),
    0 1.8rem 3.8rem rgb(83 39 95 / 20%),
    inset 0 0 1.2rem rgb(255 255 255 / 72%);
  transform: translateX(-50%);
  backdrop-filter: blur(3px);
}

.product-keychain__charm::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(125deg, rgb(255 255 255 / 58%), transparent 22% 68%, rgb(255 255 255 / 20%)),
    linear-gradient(90deg, rgb(255 255 255 / 22%), transparent 8% 92%, rgb(255 255 255 / 30%));
  content: "";
  pointer-events: none;
}

.product-keychain__charm img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
}

.product-keychain__eyelet {
  position: absolute;
  top: 0.82rem;
  left: 50%;
  z-index: 2;
  width: 1.2rem;
  aspect-ratio: 1;
  border: 0.22rem solid #d9d8df;
  border-radius: 50%;
  background: rgb(255 255 255 / 74%);
  box-shadow:
    0 2px 5px rgb(53 27 76 / 16%),
    inset 0 0 0 1px white;
  transform: translateX(-50%);
}

.product-keychain__label {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: 999px;
  color: var(--pink-deep);
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 10px 22px rgb(64 35 81 / 10%);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.product-card {
  position: relative;
  z-index: 3;
  width: var(--merch-card-width);
  aspect-ratio: 1555 / 1012;
  margin-top: 6.4rem;
  transform-style: preserve-3d;
}

.product-card__rotator {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: card-float 4.2s ease-in-out infinite;
}

.product-card.is-paused .product-card__rotator {
  animation-play-state: paused;
}

.product-card__face {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.product-card__face--front {
  transform: translateZ(4px);
}

.product-card__face--back {
  transform: rotateY(180deg) translateZ(4px);
}

.product-card__sheet {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.42rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 62%), rgb(238 225 246 / 34%)),
    rgb(255 255 255 / 28%);
  box-shadow:
    0 0 0 1px rgb(70 38 88 / 14%),
    0 2rem 4rem rgb(83 39 95 / 19%),
    inset 0 0 1.2rem rgb(255 255 255 / 70%);
  backdrop-filter: blur(5px) saturate(0.9);
}

.product-card__sheet::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 48%), transparent 24% 68%, rgb(255 255 255 / 24%)),
    radial-gradient(circle at 24% 20%, rgb(255 255 255 / 28%), transparent 30%);
  content: "";
  pointer-events: none;
}

.product-card__sheet::after {
  position: absolute;
  inset: 0.18rem;
  z-index: 4;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 0.9rem;
  content: "";
  pointer-events: none;
}

.product-card__sheet img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.78rem;
  object-fit: cover;
  opacity: 0.82;
  filter: contrast(0.92) saturate(0.88);
  user-select: none;
}

.product-card__frost {
  position: absolute;
  inset: 0.42rem;
  z-index: 2;
  border-radius: 0.78rem;
  background-image: radial-gradient(rgb(255 255 255 / 24%) 0.6px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
  opacity: 0.78;
  pointer-events: none;
}

.product-card__face--back img {
  opacity: 0.5;
  filter: contrast(0.8) saturate(0.65) blur(0.35px);
  transform: scaleX(-1);
}

.product-card__face--back .product-card__frost {
  background-color: rgb(255 255 255 / 20%);
  opacity: 1;
}

.product-card__back-mark {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 5;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 999px;
  color: rgb(53 27 76 / 54%);
  background: rgb(255 255 255 / 26%);
  font: 700 0.55rem/1 "Outfit", sans-serif;
  letter-spacing: 0.14em;
  backdrop-filter: blur(5px);
}

.product-showcase.is-card::after {
  bottom: 14rem;
  width: calc(var(--merch-card-width) * 0.72);
  animation: card-shadow 4.2s ease-in-out infinite;
}

.product-showcase.is-keychain::after {
  bottom: 6.2rem;
  width: calc(var(--keychain-size) * 1.3);
}

.product-showcase.is-card .spin-control {
  bottom: 10rem;
}

.showcase-ring {
  position: absolute;
  top: calc(var(--fan-head-size) * 0.02);
  z-index: 0;
  aspect-ratio: 1;
  border: 1px solid rgb(218 46 130 / 13%);
  border-radius: 50%;
  pointer-events: none;
}

.showcase-ring--outer {
  width: calc(var(--fan-head-size) + 5rem);
  border-style: dashed;
  animation: orbit-spin 36s linear infinite;
}

.showcase-ring--inner {
  width: calc(var(--fan-head-size) + 2.2rem);
}

.merch-spark--one {
  top: 8%;
  right: 4%;
}

.merch-spark--two {
  top: 48%;
  left: 4%;
  color: var(--violet);
  animation-delay: -1.3s;
}

.spin-control {
  position: absolute;
  right: 1rem;
  bottom: 4.2rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spin-control button {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.52rem 0.8rem 0.52rem 0.55rem;
  border: 1px solid rgb(53 27 76 / 11%);
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 12px 30px rgb(64 35 81 / 11%);
  font: 600 0.7rem/1 "Noto Sans TC", sans-serif;
  cursor: pointer;
}

.spin-control__icon {
  position: relative;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
}

.spin-control__icon::before {
  width: 0.5rem;
  height: 0.62rem;
  border-right: 2px solid white;
  border-left: 2px solid white;
  content: "";
}

.spin-control button[aria-pressed="true"] .spin-control__icon::before {
  width: 0;
  height: 0;
  margin-left: 0.12rem;
  border-top: 0.35rem solid transparent;
  border-right: 0;
  border-bottom: 0.35rem solid transparent;
  border-left: 0.58rem solid white;
}

.spin-control p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgb(53 27 76 / 43%);
  font: 600 0.56rem/1 "Outfit", sans-serif;
  letter-spacing: 0.15em;
}

.spin-control .motion-indicator {
  width: 0.4rem;
  height: 0.4rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #54c78f;
  box-shadow: 0 0 0 4px rgb(84 199 143 / 12%);
}

.product-ticket {
  position: absolute;
  bottom: 2.15rem;
  left: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  width: min(42rem, 64%);
  padding: 0.85rem 1.1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 66%);
  box-shadow: 0 18px 48px rgb(79 39 91 / 9%);
  backdrop-filter: blur(16px);
}

.product-ticket > p {
  margin: 0;
  padding-right: 1rem;
  color: var(--pink-deep);
  font: 700 0.54rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.product-ticket > strong {
  padding: 0 1.1rem 0 0.8rem;
  border-right: 1px solid rgb(53 27 76 / 10%);
  font: 700 2rem/1 "Outfit", sans-serif;
}

.product-ticket > div {
  display: grid;
  gap: 0.28rem;
  padding-left: 1.1rem;
}

.product-ticket span {
  font: 700 0.72rem/1 "Outfit", sans-serif;
  letter-spacing: 0.1em;
}

.product-ticket small {
  color: rgb(53 27 76 / 45%);
  font: 500 0.55rem/1 "Outfit", sans-serif;
  letter-spacing: 0.08em;
}

.raffle-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(28rem, 1.22fr);
  gap: 3rem;
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 4.5rem;
  padding: 4.6rem 0 2.4rem;
}

.raffle-section::before {
  position: absolute;
  top: 1.4rem;
  right: 6%;
  z-index: -1;
  width: min(31rem, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(255 255 255 / 78%) 0 16%, transparent 48%),
    radial-gradient(circle, rgb(243 57 145 / 14%) 0 42%, transparent 66%);
  content: "";
  filter: blur(2px);
}

.raffle-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.raffle-copy h2 span {
  display: block;
  color: var(--pink);
  text-shadow: 0.04em 0.055em 0 #ffd0e8;
}

.raffle-prize {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  width: fit-content;
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.1rem;
  background: rgb(255 255 255 / 62%);
  box-shadow: 0 18px 48px rgb(79 39 91 / 9%);
  backdrop-filter: blur(16px);
}

.raffle-prize strong {
  color: var(--pink);
  font: 800 2.4rem/1 "Outfit", sans-serif;
}

.raffle-prize div {
  display: grid;
  gap: 0.28rem;
}

.raffle-prize span {
  font: 700 0.72rem/1 "Outfit", sans-serif;
  letter-spacing: 0.12em;
}

.raffle-prize small {
  color: rgb(53 27 76 / 50%);
  font-size: 0.78rem;
  font-weight: 700;
}

.raffle-note {
  width: min(100%, 35rem);
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgb(243 57 145 / 46%);
  border-radius: 0.8rem;
  color: rgb(53 27 76 / 66%);
  background: rgb(255 255 255 / 50%);
  box-shadow: 0 14px 34px rgb(79 39 91 / 7%);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.75;
}

.raffle-note strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--pink-deep);
  font-size: 0.78rem;
}

.raffle-note strong + strong {
  margin-top: 0.85rem;
}

.raffle-panel {
  position: relative;
  overflow: hidden;
  min-height: 39rem;
  padding: 1.2rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.45rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 82%), rgb(255 244 250 / 70%)),
    rgb(255 255 255 / 62%);
  box-shadow:
    0 1.8rem 4rem rgb(83 39 95 / 14%),
    inset 0 0 0 1px rgb(255 255 255 / 54%);
  backdrop-filter: blur(18px);
}

.support-pool {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 35rem);
}

.support-pool__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
}

.support-pool__header p {
  margin: 0;
  color: var(--pink-deep);
  font: 800 0.58rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
}

.support-pool__header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0;
}

.support-pool__header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.support-pool__stage {
  --pool-accent: var(--pink);
  position: relative;
  overflow: hidden;
  min-height: 13.5rem;
  padding: 1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 18% 18%, rgb(255 255 255 / 88%) 0 12%, transparent 36%),
    linear-gradient(135deg, rgb(255 239 248 / 82%), rgb(239 249 255 / 76%));
  box-shadow: 0 18px 42px rgb(79 39 91 / 10%);
}

.support-pool__stage[data-accent="blue"] {
  --pool-accent: var(--blue);
}

.support-pool__stage[data-accent="violet"] {
  --pool-accent: var(--violet);
}

.support-pool__stage[data-accent="sun"] {
  --pool-accent: #ffb84d;
}

.support-pool__stage::before {
  position: absolute;
  inset: auto -18% -45% 22%;
  height: 78%;
  border-radius: 999px;
  background: rgb(255 255 255 / 54%);
  content: "";
  transform: rotate(-8deg);
}

.support-pool__stage::after {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  color: rgb(53 27 76 / 28%);
  font: 900 0.58rem/1 "Outfit", sans-serif;
  letter-spacing: 0.14em;
  content: "RANDOM";
}

.support-pool__spark {
  position: absolute;
  z-index: 2;
  color: var(--pool-accent);
  text-shadow: 0 0 16px rgb(255 255 255 / 90%);
  animation: supportSpark 2.8s ease-in-out infinite;
}

.support-pool__spark--one {
  top: 1.2rem;
  left: 1.15rem;
}

.support-pool__spark--two {
  right: 2.1rem;
  bottom: 1.35rem;
  animation-delay: 1.2s;
}

.support-pool__bubble {
  position: absolute;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--pool-accent) 20%, transparent);
  animation: supportBubble 6s ease-in-out infinite;
}

.support-pool__bubble--one {
  top: 2.2rem;
  right: 3.7rem;
  width: 3.1rem;
  aspect-ratio: 1;
}

.support-pool__bubble--two {
  left: 2.6rem;
  bottom: 1.1rem;
  width: 2.15rem;
  aspect-ratio: 1;
  animation-delay: 1.8s;
}

.support-pool-card {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.44rem;
  min-height: 11rem;
  align-content: center;
  padding: 1.15rem 0.85rem 0.95rem;
  color: var(--ink);
}

.support-pool-card.is-switching {
  animation: supportPoolPop 560ms cubic-bezier(0.19, 1, 0.22, 1);
}

.support-pool-card__label {
  width: fit-content;
  padding: 0.36rem 0.58rem;
  border-radius: 999px;
  color: white;
  background: var(--pool-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pool-accent) 24%, transparent);
  font: 900 0.62rem/1 "Noto Sans TC", sans-serif;
}

.support-pool-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.support-pool-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgb(53 27 76 / 68%);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.support-pool-card__message {
  font-size: 0.96rem;
  -webkit-line-clamp: 4;
}

.support-pool__status {
  margin: 0;
  color: rgb(53 27 76 / 52%);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.55;
}

.support-pool-main {
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100svh - 176px);
  margin-inline: auto;
  padding: 4.8rem 0 4rem;
}

.support-pool-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(27rem, 1.14fr);
  gap: 3.4rem;
  align-items: center;
}

.support-pool-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.support-pool-copy h1 span {
  display: block;
  color: var(--pink);
  text-shadow: 0.04em 0.055em 0 #ffd0e8;
}

.support-pool--page {
  width: 100%;
}

.support-pool--page .support-pool__stage {
  min-height: 26rem;
  padding: 1.3rem;
  border-radius: 1.6rem;
}

.support-pool--page .support-pool-card {
  min-height: 23rem;
  padding: 1.6rem 1.15rem 1.25rem;
}

.support-pool--page .support-pool-card strong {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.support-pool--page .support-pool-card p {
  font-size: 1rem;
}

.winner-main {
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100svh - 176px);
  margin-inline: auto;
  padding: 4.3rem 0 4.8rem;
}

.winner-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(28rem, 1.14fr);
  gap: 3rem;
  align-items: center;
}

.winner-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.winner-copy h1 span {
  display: block;
  color: var(--pink);
  text-shadow: 0.04em 0.055em 0 #ffd0e8;
}

.winner-machine {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 1.1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.55rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(255 239 247 / 68%)),
    rgb(255 255 255 / 78%);
  box-shadow: 0 28px 70px rgb(64 35 81 / 13%);
}

.winner-machine::before {
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgb(243 57 145 / 22%);
  border-radius: 1.1rem;
  content: "";
  pointer-events: none;
}

.winner-machine__media {
  position: absolute;
  right: -4.5rem;
  bottom: -6rem;
  width: min(22rem, 54vw);
  opacity: 0.15;
  pointer-events: none;
  transform: rotate(-12deg);
}

.winner-machine__media img {
  display: block;
  width: 100%;
  height: auto;
}

.winner-machine__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.winner-machine__topline p {
  margin: 0;
  color: var(--pink-deep);
  font: 800 0.68rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
}

.winner-machine__topline strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 2.2rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 72%);
  box-shadow: inset 0 0 0 1px rgb(53 27 76 / 8%);
  font: 900 0.88rem/1 "Outfit", sans-serif;
}

.winner-reel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  align-content: center;
  min-height: 12rem;
  padding: 1.2rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(234 248 255 / 74%)),
    rgb(255 255 255 / 86%);
  box-shadow: inset 0 -24px 50px rgb(91 200 255 / 10%);
  text-align: center;
}

.winner-reel span {
  color: rgb(53 27 76 / 48%);
  font: 900 0.72rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
}

.winner-reel strong {
  color: var(--pink);
  font: 900 clamp(1.55rem, 4vw, 2.75rem)/1.05 "Outfit", "Noto Sans TC", sans-serif;
  overflow-wrap: anywhere;
}

.winner-status {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  color: rgb(53 27 76 / 62%);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.55;
}

.winner-results {
  margin-top: 3.2rem;
}

.winner-results__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.winner-results__header h2 {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.winner-results__header > span {
  color: rgb(53 27 76 / 58%);
  font-size: 0.82rem;
  font-weight: 800;
}

.winner-table-wrap {
  overflow-x: auto;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 24px 58px rgb(64 35 81 / 10%);
}

.winner-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.winner-table th,
.winner-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgb(53 27 76 / 8%);
  text-align: left;
}

.winner-table th {
  color: rgb(53 27 76 / 54%);
  background: rgb(255 239 247 / 72%);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.winner-table td {
  color: var(--ink);
  font-weight: 800;
}

.winner-table td:first-child {
  width: 4.2rem;
  color: var(--pink-deep);
  font-family: "Outfit", sans-serif;
}

.winner-table td strong {
  color: var(--ink);
  font: 900 0.95rem/1.3 "Outfit", sans-serif;
  overflow-wrap: anywhere;
}

.winner-table tr:last-child td {
  border-bottom: 0;
}

.winner-result-note {
  margin: 1rem 0 0;
  color: rgb(53 27 76 / 62%);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.7;
}

.stats-main {
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100svh - 176px);
  margin-inline: auto;
  padding: 4.3rem 0 4.8rem;
}

.stats-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(20rem, 0.74fr);
  gap: 3rem;
  align-items: end;
}

.stats-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.stats-copy h1 span {
  display: block;
  color: var(--pink);
  text-shadow: 0.04em 0.055em 0 #ffd0e8;
}

.stats-summary {
  position: relative;
  overflow: hidden;
  width: min(100%, 22rem);
  justify-self: end;
  padding: 1.15rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(240 249 255 / 70%)),
    rgb(255 255 255 / 76%);
  box-shadow: 0 22px 52px rgb(64 35 81 / 11%);
}

.stats-summary::after {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  color: rgb(243 57 145 / 12%);
  font: 900 3.8rem/1 "Outfit", sans-serif;
  content: "#";
}

.stats-summary p {
  position: relative;
  z-index: 1;
  margin: 0 0 0.55rem;
  color: var(--pink-deep);
  font: 900 0.64rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
}

.stats-summary strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.stats-summary span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.65rem;
  color: rgb(53 27 76 / 58%);
  font-size: 0.82rem;
  font-weight: 800;
}

.stats-leaders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.stats-leader {
  --stats-accent: var(--pink);
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 12rem;
  padding: 1.05rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(255 241 248 / 78%)),
    rgb(255 255 255 / 78%);
  box-shadow: 0 20px 48px rgb(64 35 81 / 11%);
}

.stats-leader:nth-child(2) {
  --stats-accent: var(--blue);
}

.stats-leader:nth-child(3) {
  --stats-accent: var(--violet);
}

.stats-leader::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.28rem;
  background: var(--stats-accent);
  content: "";
}

.stats-leader::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.62rem;
  color: color-mix(in srgb, var(--stats-accent) 16%, transparent);
  font: 900 4.8rem/1 "Outfit", sans-serif;
  content: "01";
  pointer-events: none;
}

.stats-leader__tag {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: white;
  background: var(--stats-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--stats-accent) 24%, transparent);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.stats-leader strong {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.stats-leader p {
  position: relative;
  z-index: 1;
  margin: 0.8rem 0 0;
  color: rgb(53 27 76 / 62%);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.stats-leader__bar {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 0.5rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgb(53 27 76 / 8%);
}

.stats-leader__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--stats-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.2rem;
}

.stats-leaders + .stats-grid {
  margin-top: 1rem;
}

.stats-card {
  --stats-accent: var(--pink);
  position: relative;
  overflow: hidden;
  min-height: 27rem;
  padding: 1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(255 244 250 / 72%)),
    rgb(255 255 255 / 76%);
  box-shadow: 0 22px 54px rgb(64 35 81 / 10%);
}

.stats-card:nth-child(2) {
  --stats-accent: var(--blue);
}

.stats-card:nth-child(3) {
  --stats-accent: var(--violet);
}

.stats-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.28rem;
  background: var(--stats-accent);
  content: "";
}

.stats-card__header {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 1rem;
}

.stats-card__header span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--stats-accent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--stats-accent) 24%, transparent);
  font: 900 0.78rem/1 "Outfit", sans-serif;
}

.stats-card__header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.25;
}

.stats-list {
  display: grid;
  gap: 0.62rem;
}

.stats-rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  min-height: 4.35rem;
  padding: 0.72rem;
  border: 1px solid rgb(53 27 76 / 8%);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 70%);
}

.stats-rank__number {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  color: var(--stats-accent);
  background: color-mix(in srgb, var(--stats-accent) 12%, white);
  font: 900 0.78rem/1 "Outfit", sans-serif;
}

.stats-rank__body {
  display: grid;
  min-width: 0;
  gap: 0.52rem;
}

.stats-rank__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stats-rank__bar {
  overflow: hidden;
  width: 100%;
  height: 0.42rem;
  border-radius: 999px;
  background: rgb(53 27 76 / 8%);
}

.stats-rank__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--stats-accent);
}

.stats-rank em {
  color: rgb(53 27 76 / 62%);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.stats-empty,
.stats-status {
  color: rgb(53 27 76 / 62%);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.7;
}

.stats-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgb(53 27 76 / 13%);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 52%);
}

.stats-status {
  margin: 1.2rem 0 0;
}

.raffle-panel::after {
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 16rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(91 200 255 / 14%);
  content: "";
  filter: blur(8px);
}

.raffle-panel__topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.35rem 1rem;
}

.raffle-panel__topline p {
  margin: 0;
  color: var(--pink-deep);
  font: 700 0.64rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
}

.raffle-progress {
  flex: 0 0 min(12rem, 42%);
  height: 0.54rem;
  padding: 0.13rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 64%);
}

.raffle-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--pink-light), var(--blue));
  transition: width 260ms ease;
}

.raffle-root {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.raffle-screen-copy {
  margin-bottom: 1.35rem;
}

.raffle-screen-copy p,
.raffle-result p {
  margin: 0 0 0.72rem;
  color: var(--pink-deep);
  font: 700 0.66rem/1 "Outfit", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.raffle-screen-copy h3,
.raffle-result h3 {
  margin: 0;
  color: var(--ink);
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.raffle-form-grid {
  display: grid;
  gap: 1rem;
}

.raffle-field,
.raffle-textarea {
  display: grid;
  gap: 0.55rem;
  color: rgb(53 27 76 / 62%);
  font-size: 0.82rem;
  font-weight: 800;
}

.raffle-field input,
.raffle-textarea textarea {
  width: 100%;
  border: 1px solid rgb(53 27 76 / 11%);
  border-radius: 1rem;
  color: var(--ink);
  background: rgb(255 255 255 / 76%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 50%);
  outline: none;
}

.raffle-field input {
  min-height: 3.45rem;
  padding: 0.9rem 1rem;
}

.raffle-textarea textarea {
  min-height: 10rem;
  padding: 1rem;
  line-height: 1.7;
  resize: vertical;
}

.raffle-field input:focus,
.raffle-textarea textarea:focus {
  border-color: rgb(243 57 145 / 48%);
  box-shadow: 0 0 0 4px rgb(243 57 145 / 12%);
}

.raffle-check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: rgb(53 27 76 / 72%);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.65;
}

.raffle-check input {
  width: 1.12rem;
  height: 1.12rem;
  margin-top: 0.2rem;
  accent-color: var(--pink);
}

.raffle-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.raffle-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.76rem;
}

.raffle-choice-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.raffle-choice {
  min-height: 4.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  color: var(--ink);
  background: rgb(255 255 255 / 66%);
  box-shadow: 0 12px 24px rgb(64 35 81 / 7%);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.raffle-choice--compact {
  min-height: 3.45rem;
  padding: 0.72rem 0.78rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.raffle-choice:hover,
.raffle-choice:focus-visible {
  border-color: rgb(243 57 145 / 34%);
  box-shadow: 0 16px 32px rgb(64 35 81 / 11%);
  outline: none;
  transform: translateY(-2px);
}

.raffle-choice.is-selected {
  border-color: rgb(243 57 145 / 34%);
  color: var(--pink-deep);
  background: rgb(255 239 247 / 86%);
}

.raffle-field--custom {
  margin-top: 1rem;
}

.raffle-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin-bottom: 1rem;
}

.raffle-template {
  min-height: 5.2rem;
  padding: 0.88rem 1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  color: var(--ink);
  background: rgb(255 255 255 / 66%);
  box-shadow: 0 12px 24px rgb(64 35 81 / 7%);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.55;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.raffle-template:hover,
.raffle-template:focus-visible,
.raffle-template.is-selected {
  border-color: rgb(243 57 145 / 34%);
  background: rgb(255 239 247 / 86%);
  box-shadow: 0 16px 32px rgb(64 35 81 / 11%);
  outline: none;
  transform: translateY(-2px);
}

.raffle-member-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.raffle-member-card {
  position: relative;
  display: grid;
  min-height: 7.4rem;
  padding: 0.9rem 0.72rem;
  overflow: hidden;
  border: 1px solid rgb(53 27 76 / 12%);
  border-radius: 1rem;
  color: var(--ink);
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 14px 28px rgb(64 35 81 / 8%);
  cursor: pointer;
  place-items: end start;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.raffle-member-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 62%), transparent 38% 72%, rgb(255 255 255 / 22%)),
    var(--member-color);
  content: "";
  opacity: 0.84;
}

.raffle-member-card span,
.raffle-member-card strong {
  position: relative;
  z-index: 1;
}

.raffle-member-card span {
  font-size: 0.72rem;
  font-weight: 900;
}

.raffle-member-card strong {
  font-size: 1rem;
  line-height: 1.25;
}

.raffle-member-card:hover,
.raffle-member-card:focus-visible,
.raffle-member-card.is-selected {
  border-color: rgb(243 57 145 / 34%);
  box-shadow: 0 18px 34px rgb(64 35 81 / 13%);
  outline: none;
  transform: translateY(-2px);
}

.raffle-member-card--yellow {
  --member-color: #ffe27c;
}

.raffle-member-card--pink {
  --member-color: #ff9ccf;
}

.raffle-member-card--orange {
  --member-color: #ffb15f;
}

.raffle-member-card--blue {
  --member-color: #87cdfc;
}

.raffle-member-card--purple {
  --member-color: #c7a1ff;
}

.raffle-member-result {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 68%);
  box-shadow: 0 12px 28px rgb(64 35 81 / 8%);
}

.raffle-member-result p {
  margin: 0;
  color: var(--pink-deep);
  font: 800 0.66rem/1 "Outfit", sans-serif;
  letter-spacing: 0.12em;
}

.raffle-member-result h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.raffle-member-result span {
  color: rgb(53 27 76 / 65%);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.65;
}

.raffle-youtube-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 64%);
  box-shadow: 0 14px 30px rgb(64 35 81 / 8%);
}

.raffle-youtube-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  background: rgb(53 27 76 / 90%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.raffle-youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.raffle-youtube-card strong {
  display: block;
  color: var(--ink);
  font: 900 1.2rem/1.2 "Outfit", sans-serif;
}

.raffle-youtube-card span {
  display: block;
  margin-top: 0.22rem;
  color: rgb(53 27 76 / 58%);
  font-size: 0.82rem;
  font-weight: 800;
}

.raffle-youtube-link {
  display: inline-flex;
  margin-top: 0.65rem;
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.raffle-song-grid,
.raffle-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.raffle-song-grid {
  margin-top: 0.78rem;
}

.raffle-resource-grid {
  margin-bottom: 1rem;
}

.raffle-resource-heading {
  margin: 0.9rem 0 0.65rem;
  color: rgb(53 27 76 / 72%);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.55;
}

.raffle-song-card,
.raffle-resource-card {
  min-width: 0;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1rem;
  color: var(--ink);
  background: rgb(255 255 255 / 66%);
  box-shadow: 0 12px 24px rgb(64 35 81 / 7%);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.raffle-song-card {
  display: grid;
  gap: 0.24rem;
  min-height: 5.55rem;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.raffle-song-pick {
  display: grid;
  gap: 0.24rem;
  width: 100%;
  min-height: 4.85rem;
  padding: 0.85rem 0.92rem 0.62rem;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.raffle-song-card span,
.raffle-resource-card span {
  color: var(--pink-deep);
  font: 800 0.58rem/1 "Outfit", sans-serif;
  letter-spacing: 0.12em;
}

.raffle-song-card strong,
.raffle-resource-card strong {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.raffle-song-card em {
  color: rgb(53 27 76 / 56%);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.raffle-song-card:hover,
.raffle-song-card:focus-visible,
.raffle-song-card.is-selected,
.raffle-resource-card:hover,
.raffle-resource-card:focus-visible {
  border-color: rgb(243 57 145 / 34%);
  background: rgb(255 239 247 / 86%);
  box-shadow: 0 16px 32px rgb(64 35 81 / 11%);
  outline: none;
  transform: translateY(-2px);
}

.raffle-song-card.is-selected {
  color: var(--pink-deep);
}

.raffle-song-pick:focus-visible,
.raffle-song-listen:focus-visible {
  outline: 2px solid rgb(243 57 145 / 52%);
  outline-offset: -2px;
}

.raffle-song-listen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.3rem;
  padding: 0.58rem 0.92rem;
  border-top: 1px solid rgb(53 27 76 / 8%);
  color: var(--pink-deep);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.raffle-song-listen::after {
  color: rgb(53 27 76 / 38%);
  font: 800 0.56rem/1 "Outfit", sans-serif;
  letter-spacing: 0.08em;
  content: "OPEN";
}

.raffle-resource-card {
  display: grid;
  gap: 0.38rem;
  min-height: 7.25rem;
  padding: 1rem;
  text-decoration: none;
}

.raffle-resource-card p {
  margin: 0;
  color: rgb(53 27 76 / 58%);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
}

.raffle-count {
  margin: 0.55rem 0 0;
  color: rgb(53 27 76 / 52%);
  font-weight: 800;
  text-align: right;
}

.raffle-energy {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 58%);
}

.raffle-energy strong {
  color: var(--pink);
  font: 900 6rem/0.9 "Outfit", sans-serif;
  text-align: center;
}

.raffle-energy > span {
  color: var(--pink-deep);
  font-weight: 900;
  text-align: center;
}

.raffle-energy input {
  width: 100%;
  accent-color: var(--pink);
}

.raffle-energy div {
  display: flex;
  justify-content: space-between;
  color: rgb(53 27 76 / 45%);
  font: 700 0.7rem/1 "Outfit", sans-serif;
}

.raffle-review {
  display: grid;
  gap: 0;
  margin: 0;
}

.raffle-review div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgb(53 27 76 / 9%);
}

.raffle-review dt {
  color: rgb(53 27 76 / 50%);
  font-weight: 900;
}

.raffle-review dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.raffle-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.raffle-primary,
.raffle-secondary {
  border-radius: 999px;
  cursor: pointer;
  font: 800 0.86rem/1 "Noto Sans TC", sans-serif;
}

.raffle-primary:disabled {
  cursor: progress;
  opacity: 0.72;
}

.raffle-error {
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(217 29 120 / 14%);
  border-radius: 1rem;
  color: var(--pink-deep);
  background: rgb(255 239 247 / 78%);
  font-weight: 900;
}

.raffle-result {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}

.raffle-result strong {
  width: min(100%, 34rem);
  padding: 1rem;
  border: 1px solid rgb(243 57 145 / 20%);
  border-radius: 1.05rem;
  color: var(--pink-deep);
  background: rgb(255 239 247 / 78%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 50%);
  font: 800 2rem/1.2 "Outfit", sans-serif;
  overflow-wrap: anywhere;
}

.raffle-result > span {
  color: rgb(53 27 76 / 58%);
  font-weight: 800;
  line-height: 1.6;
}

.raffle-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 28rem);
}

.serial-action-status {
  min-height: 1.35rem;
  color: rgb(53 27 76 / 56%);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
}

@keyframes keychain-turn {
  from {
    transform: rotateY(0deg) rotateZ(1deg);
  }
  to {
    transform: rotateY(360deg) rotateZ(1deg);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes card-shadow {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scaleX(1);
  }
  52% {
    opacity: 0.32;
    transform: translateX(-50%) scaleX(0.88);
  }
}

@keyframes fan-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.35deg);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spark-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
}

@keyframes focus-pulse {
  50% {
    opacity: 0.5;
    transform: scale(1.015);
  }
}

@keyframes supportPoolPop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96) rotate(-0.6deg);
  }
  64% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015) rotate(0.3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes supportSpark {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.82) rotate(0);
  }
  48% {
    opacity: 1;
    transform: scale(1.2) rotate(20deg);
  }
}

@keyframes supportBubble {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0.35rem, -0.55rem, 0) scale(1.08);
  }
}

@keyframes product-turn {
  from {
    transform: rotateY(0deg) rotateZ(-1deg);
  }
  to {
    transform: rotateY(360deg) rotateZ(-1deg);
  }
}

@keyframes product-shadow {
  0%,
  100% {
    opacity: 0.8;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.3;
    transform: translateX(-50%) scaleX(0.16);
  }
}

@media (max-width: 900px) {
  :root {
    --card-size: min(36rem, 76vw);
  }

  .site-header,
  .site-footer,
  .hero,
  .merch-main,
  .winner-main,
  .stats-main,
  .raffle-section {
    width: min(720px, calc(100% - 40px));
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    text-align: center;
  }

  .hero__copy {
    padding-bottom: 1rem;
  }

  .eyebrow,
  .side-status {
    margin-inline: auto;
  }

  .intro {
    margin-top: 1.3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .fan-stage {
    min-height: calc(var(--card-size) + 8rem);
  }

  .flip-hint {
    right: 5%;
  }

  .merch-page {
    --fan-head-size: min(30rem, 72vw);
    --keychain-size: min(22rem, 62vw);
    --merch-card-width: min(32rem, 76vw);
  }

  .merch-main {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    text-align: center;
  }

  .merch-copy {
    padding-bottom: 2.5rem;
  }

  .merch-copy .eyebrow,
  .merch-meta {
    margin-inline: auto;
  }

  .collection-tabs {
    justify-content: center;
  }

  .product-showcase {
    min-height: calc(var(--fan-head-size) + 14rem);
  }

  .product-ticket {
    position: relative;
    bottom: auto;
    width: min(34rem, 92%);
    margin: 0 auto 2rem;
    text-align: left;
  }

  .raffle-section {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-top: 4rem;
    text-align: center;
  }

  .raffle-copy .eyebrow,
  .raffle-prize,
  .raffle-note {
    margin-inline: auto;
  }

  .raffle-panel {
    text-align: left;
  }

  .support-pool {
    width: min(35rem, 100%);
    margin-inline: auto;
    text-align: left;
  }

  .support-pool-main {
    width: min(720px, calc(100% - 40px));
    min-height: auto;
    padding-top: 3.2rem;
  }

  .support-pool-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .support-pool-copy .eyebrow {
    margin-inline: auto;
  }

  .winner-main {
    min-height: auto;
    padding-top: 3.2rem;
  }

  .winner-hero {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: center;
  }

  .winner-copy .eyebrow {
    margin-inline: auto;
  }

  .winner-machine {
    text-align: left;
  }

  .stats-main {
    min-height: auto;
    padding-top: 3.2rem;
  }

  .stats-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .stats-copy .eyebrow,
  .stats-summary {
    margin-inline: auto;
  }

  .stats-summary {
    justify-self: center;
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-leaders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --card-size: min(31rem, 84vw);
  }

  .site-header {
    justify-content: flex-start;
    min-height: 76px;
    gap: 0.75rem;
  }

  .site-header,
  .site-footer,
  .hero,
  .merch-main,
  .winner-main,
  .stats-main,
  .raffle-section {
    width: calc(100% - 32px);
  }

  .brand strong,
  .event-tag {
    display: none;
  }

  .header-actions {
    flex: 1 1 auto;
    gap: 0;
    min-width: 0;
    overflow: hidden;
  }

  .brand {
    align-items: center;
    flex: 0 0 auto;
    gap: 0.35rem;
    font-size: 0.88rem;
    line-height: 1;
  }

  .brand__text {
    display: none;
  }

  .brand__spark {
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    margin-right: 0;
  }

  .site-nav {
    flex: 1 1 auto;
    gap: 0.12rem;
    padding: 0.18rem;
  }

  .site-nav a {
    padding: 0.46rem 0.4rem;
    font-size: 0.59rem;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero {
    min-height: calc(100svh - 144px);
    padding-top: 1.6rem;
  }

  .support-pool-main {
    width: calc(100% - 32px);
    padding-top: 2rem;
    padding-bottom: 2.4rem;
  }

  .support-pool-copy h1 {
    font-size: 2.3rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .support-pool--page .support-pool__stage {
    min-height: 21rem;
    padding: 0.9rem;
  }

  .support-pool--page .support-pool-card {
    min-height: 19rem;
    padding: 1rem 0.6rem;
  }

  .support-pool--page .support-pool-card strong {
    font-size: 2rem;
  }

  .support-pool--page .support-pool-card p {
    font-size: 0.9rem;
  }

  .winner-main {
    padding-top: 2rem;
    padding-bottom: 2.6rem;
  }

  .winner-copy h1 {
    font-size: 2.9rem;
    line-height: 1.03;
  }

  .winner-machine {
    min-height: 0;
    padding: 0.85rem;
  }

  .winner-machine::before {
    inset: 0.72rem;
  }

  .winner-reel {
    min-height: 10.8rem;
    padding: 0.9rem;
  }

  .winner-results__header {
    align-items: start;
    flex-direction: column;
  }

  .winner-table {
    min-width: 30rem;
  }

  .stats-main {
    padding-top: 2rem;
    padding-bottom: 2.6rem;
  }

  .stats-copy h1 {
    font-size: 2.9rem;
    line-height: 1.03;
  }

  .stats-summary {
    padding: 1rem;
  }

  .stats-grid {
    margin-top: 2rem;
  }

  .stats-leaders {
    margin-top: 1.7rem;
  }

  .stats-leader {
    min-height: 10.5rem;
    padding: 0.9rem;
  }

  .stats-card {
    min-height: 0;
    padding: 0.85rem;
  }

  .stats-rank {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .stats-rank em {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  h1 {
    font-size: 3.6rem;
  }

  .intro {
    font-size: 0.86rem;
  }

  .hero .intro br {
    display: none;
  }

  .primary-link,
  .ghost-link,
  .raffle-primary,
  .raffle-secondary {
    width: 100%;
  }

  .fan-stage {
    min-height: calc(var(--card-size) + 7rem);
    margin-top: 0.5rem;
  }

  .flip-card__face {
    border-width: 5px;
  }

  .orbit--outer {
    width: calc(var(--card-size) + 3rem);
  }

  .orbit--inner {
    width: calc(var(--card-size) + 1.25rem);
  }

  .flip-hint {
    right: 50%;
    bottom: 0.3rem;
    transform: translateX(50%);
  }

  .flip-hint:hover {
    transform: translate(50%, -2px);
  }

  .spark--one {
    right: 0;
  }

  .spark--two {
    left: -0.25rem;
  }

  .site-footer {
    min-height: 68px;
  }

  .site-footer > p:not(.footer-disclaimer) {
    display: none;
  }

  .site-footer {
    justify-content: center;
  }

  .raffle-section {
    margin-bottom: 2.3rem;
    padding-top: 2.6rem;
  }

  .support-pool__header {
    align-items: start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .support-pool__stage {
    min-height: 12.6rem;
    padding: 0.9rem;
  }

  .support-pool-card {
    min-height: 10.4rem;
    padding-inline: 0.55rem;
  }

  .raffle-copy h2 {
    font-size: 3.25rem;
  }

  .raffle-copy .intro {
    text-align: left;
  }

  .raffle-note {
    width: 100%;
    text-align: left;
  }

  .raffle-prize {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    text-align: center;
  }

  .raffle-panel {
    min-height: 39.5rem;
    padding: 0.85rem;
  }

  .raffle-panel__topline {
    align-items: stretch;
    flex-direction: column;
  }

  .raffle-progress {
    flex: 0 0 auto;
    width: 100%;
  }

  .raffle-root {
    min-height: 35rem;
    padding: 0.55rem;
  }

  .raffle-choice-grid {
    grid-template-columns: 1fr;
  }

  .raffle-choice-grid--compact,
  .raffle-template-grid,
  .raffle-song-grid,
  .raffle-resource-grid {
    grid-template-columns: 1fr;
  }

  .raffle-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raffle-choice {
    min-height: 3.85rem;
  }

  .raffle-review div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .raffle-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .merch-page {
    --fan-head-size: min(21.5rem, 82vw);
    --keychain-size: min(17.5rem, 68vw);
    --merch-card-width: min(22rem, 88vw);
  }

  .merch-main {
    padding-top: 1.8rem;
    padding-bottom: 1rem;
  }

  .merch-copy {
    padding-bottom: 2rem;
  }

  .merch-copy h1 {
    font-size: 3.35rem;
  }

  .merch-copy .intro br {
    display: none;
  }

  .merch-meta div {
    padding: 0.72rem 0.78rem;
  }

  .collection-tabs {
    gap: 0.4rem;
  }

  .collection-tabs button {
    padding: 0.45rem 0.56rem;
  }

  .collection-tabs span {
    font-size: 0.48rem;
  }

  .product-showcase {
    min-height: calc(var(--fan-head-size) + 12rem);
  }

  .product-fan {
    height: calc(var(--fan-head-size) + 8.6rem);
  }

  .product-keychain {
    --keychain-item-size: min(10rem, 39vw);
    height: calc(var(--keychain-size) + 9rem);
    margin-top: 0.5rem;
  }

  .product-keychain__pair {
    gap: 0.7rem;
  }

  .product-card {
    margin-top: 5.4rem;
  }

  .product-showcase.is-card::after {
    bottom: 12.5rem;
  }

  .product-showcase.is-card .spin-control {
    bottom: 7rem;
  }

  .product-fan__handle {
    width: calc(var(--fan-head-size) * 0.16);
    height: 9.5rem;
  }

  .showcase-ring--outer {
    width: calc(var(--fan-head-size) + 2.2rem);
  }

  .showcase-ring--inner {
    width: calc(var(--fan-head-size) + 1rem);
  }

  .spin-control {
    right: 50%;
    bottom: 2.75rem;
    flex-direction: column;
    gap: 0.7rem;
    transform: translateX(50%);
  }

  .product-showcase::after {
    bottom: 4rem;
  }

  .product-ticket {
    grid-template-columns: auto auto 1fr;
    width: 100%;
    padding: 0.75rem;
  }

  .product-ticket > p {
    display: none;
  }

  .product-ticket > strong {
    padding-left: 0.2rem;
  }

  .product-ticket > div {
    padding-left: 0.8rem;
  }
}

@media (max-width: 400px) {
  .site-header,
  .site-footer,
  .hero,
  .merch-main,
  .winner-main,
  .stats-main,
  .raffle-section {
    width: calc(100% - 24px);
  }

  .brand {
    flex: 0 1 auto;
    font-size: 0.82rem;
  }

  .site-nav a {
    padding-inline: 0.34rem;
    font-size: 0.57rem;
  }

  .support-pool-copy h1 {
    font-size: 2.05rem;
  }

  .stats-copy h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 340px) {
  .brand__text {
    display: none;
  }

  .brand__spark {
    width: 1.55rem;
    height: 1.55rem;
  }

  .site-nav a {
    padding-inline: 0.28rem;
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .flip-card__inner {
    transition-duration: 0.01ms;
  }

  .product-rotator {
    animation-duration: 0.01ms;
  }
}

/* Light stick battery page */
.battery-readout {
  position: relative;
  overflow: hidden;
  width: min(100%, 22rem);
  justify-self: end;
  padding: 1.15rem;
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(255 240 249 / 70%)),
    rgb(255 255 255 / 76%);
  box-shadow: 0 22px 52px rgb(64 35 81 / 11%);
}

.battery-readout::after {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  color: rgb(243 57 145 / 12%);
  font: 900 3.8rem/1 "Outfit", sans-serif;
  content: "⚡";
}

.battery-readout p {
  position: relative;
  z-index: 1;
  margin: 0 0 0.55rem;
  color: var(--pink-deep);
  font: 900 0.64rem/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
}

.battery-readout strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.battery-readout span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.35rem;
  color: rgb(53 27 76 / 58%);
  font-size: 0.82rem;
  font-weight: 800;
}

.battery-bar {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 0.7rem;
  margin: 0.85rem 0 0.7rem;
  border-radius: 999px;
  background: rgb(53 27 76 / 9%);
}

.battery-bar::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--battery-fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink-light), var(--pink));
  transition: width 320ms ease;
  content: "";
}

.battery-bar[data-battery-state="mid"]::before {
  background: linear-gradient(90deg, #ffd27a, #ffab3d);
}

.battery-bar[data-battery-state="low"]::before {
  background: linear-gradient(90deg, #ff9a9a, #f2453d);
}

.battery-panel {
  margin-top: 2.4rem;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border: 1px solid rgb(53 27 76 / 10%);
  border-radius: 1.4rem;
  background: rgb(255 255 255 / 74%);
  box-shadow: 0 22px 52px rgb(64 35 81 / 9%);
}

.battery-panel h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 900;
}

.battery-panel__lead {
  margin: 0 0 1.3rem;
  color: rgb(53 27 76 / 72%);
  font-size: 0.92rem;
  line-height: 1.75;
}

.battery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.battery-actions button {
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.battery-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* .primary-link sets an explicit display, which would otherwise win over the
   hidden attribute and leave the connected-only buttons on screen. */
.battery-actions button[hidden],
.battery-note[hidden] {
  display: none;
}

.battery-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.05rem;
  color: rgb(53 27 76 / 68%);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.battery-option input {
  accent-color: var(--pink);
}

#battery-status[data-battery-status="ok"] {
  color: var(--pink-deep);
}

#battery-status[data-battery-status="error"] {
  color: #c62828;
}

.battery-note {
  margin-top: 1.15rem;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid rgb(243 57 145 / 35%);
  border-radius: 0.5rem 1rem 1rem 0.5rem;
  background: rgb(255 246 251 / 78%);
}

.battery-note strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 900;
}

.battery-note p {
  margin: 0;
  color: rgb(53 27 76 / 70%);
  font-size: 0.85rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .battery-readout {
    justify-self: stretch;
    width: 100%;
  }

  .battery-actions button {
    flex: 1 1 100%;
  }
}

.battery-draft {
  margin: 0 0 1.6rem;
  padding: 0.8rem 1.1rem;
  border: 1px dashed rgb(53 27 76 / 24%);
  border-radius: 0.9rem;
  color: rgb(53 27 76 / 68%);
  background: rgb(255 255 255 / 58%);
  font-size: 0.86rem;
  font-weight: 800;
}
