:root {
  --bg-page: #0b1120;
  --bg-card: #04332a;
  --bg-list: #063d32;
  --accent: #25d366;
  --accent-soft: #1ebe57;
  --text-primary: #e8f5e9;
  --text-muted: #9bbfb0;
  --heading-red: #ff6b6b;
  --shadow-glow: 0 0 28px rgba(37, 211, 102, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  padding: 1.25rem 1rem 2rem;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-page);
  background-image: radial-gradient(
    ellipse 130% 90% at 50% 20%,
    rgba(11, 17, 32, 0.12) 0%,
    rgba(11, 17, 32, 0.28) 55%,
    rgba(11, 17, 32, 0.4) 100%
  );
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}

/* 单独一层放 GIF，避免多图层 background-size 在部分环境下失效 */
body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96%;
  height: 100%;
  background-image: var(--cheer-icon, url("../images/cheer-icon.gif"));
  background-repeat: repeat-y;
  background-position: center;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
}

.hero-card {
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: 0.85rem 1.1rem 0.15rem;
  text-align: center;
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(37, 211, 102, 0.12);
}

.hero-card__label {
  color: var(--heading-red);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.hero-card__sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.winners-heading {
  margin: 1.35rem 0 0.5rem 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--heading-red);
}

.marquee {
  border-radius: 16px;
  background: var(--bg-list);
  overflow: hidden;
  height: 360px;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.marquee-track {
  display: flex;
  flex-direction: column;
  animation: marquee-up var(--marquee-duration, 28s) linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.winner-list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.65rem;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.winner-item:last-child {
  border-bottom: none;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(37, 211, 102, 0.35);
}

.winner-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.winner-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.winner-status {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cta {
  margin-top: 1.5rem;
}

.cta-button {
  width: 92%;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #022c22;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: cta-breath 1.8s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

.cta-button:active {
  transform: scale(0.98);
}

@keyframes cta-breath {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  }
}

.cta-footnote {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
