:root {
  color-scheme: dark;
  --red-950: #250104;
  --red-900: #420407;
  --red-800: #65090e;
  --red-700: #8f1016;
  --red-600: #c51d24;
  --red-500: #ef3430;
  --gold-500: #f7c75d;
  --gold-300: #ffe4a1;
  --ink: #fff7ea;
  --muted: #f4c7b8;
  --line: rgba(255, 219, 142, 0.26);
  --panel: rgba(82, 5, 9, 0.74);
  --panel-strong: rgba(118, 9, 13, 0.86);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 204, 96, 0.25), transparent 24rem),
    radial-gradient(circle at 88% 28%, rgba(239, 52, 48, 0.28), transparent 24rem),
    linear-gradient(145deg, var(--red-950) 0%, var(--red-900) 44%, #170003 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 230, 164, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 230, 164, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.prototype-banner {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 221, 145, 0.2);
  padding: 10px 16px;
  color: rgba(255, 231, 166, 0.92);
  background: rgba(31, 0, 4, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.language-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 16px 0 4px;
}

.language-option {
  min-width: 154px;
  border: 1px solid rgba(255, 226, 156, 0.42);
  border-radius: 999px;
  padding: 14px 26px;
  color: var(--gold-300);
  background: rgba(44, 2, 5, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 38px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.language-option.is-active {
  color: #3a0703;
  background: linear-gradient(135deg, #fff1b8, var(--gold-500) 55%, #e6922e);
}

main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(340px, 0.9fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding-bottom: 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span:last-child {
  border-radius: 999px;
  padding: 5px 10px;
  color: #451007;
  background: var(--gold-500);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 5.55rem;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.headline-statement {
  max-width: 690px;
  margin-bottom: 12px;
  color: var(--gold-300);
  font-size: 2.02rem;
  font-weight: 900;
  line-height: 1.12;
  text-wrap: balance;
}

.headline-translation {
  max-width: 690px;
  margin-bottom: 20px;
  color: var(--gold-300);
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

html[lang="zh-Hans"] h1 {
  font-size: 5rem;
  line-height: 1.03;
  word-break: keep-all;
}

html[lang="zh-Hans"] .headline-statement {
  font-size: 1.72rem;
  line-height: 1.22;
}

.hero-lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 690px);
  margin-top: 38px;
}

.open-button {
  position: relative;
  isolation: isolate;
  width: min(100%, 440px);
  min-height: 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 153, 0.82);
  border-radius: 999px;
  padding: 22px 34px;
  color: #fff7dc;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.36) 44%, transparent 51%),
    radial-gradient(circle at 28% 12%, rgba(255, 244, 170, 0.58), transparent 34%),
    linear-gradient(135deg, #f6b44b 0%, #e82424 34%, #8d090c 72%, #4a0305 100%);
  background-size: 240% 100%, 100% 100%, 100% 100%;
  box-shadow:
    0 0 0 6px rgba(255, 203, 88, 0.1),
    0 18px 42px rgba(255, 34, 24, 0.28),
    0 28px 66px rgba(0, 0, 0, 0.36),
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 18px rgba(69, 0, 0, 0.36);
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(78, 0, 0, 0.34), 0 0 18px rgba(255, 235, 157, 0.45);
  opacity: 1;
  cursor: not-allowed;
  animation: ctaSheen 4.8s ease-in-out infinite;
}

.open-button::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255, 248, 205, 0.42);
}

.open-button::after {
  content: "";
  position: absolute;
  inset: -34px 18%;
  z-index: -2;
  background: radial-gradient(circle, rgba(255, 217, 96, 0.32), transparent 65%);
  filter: blur(12px);
}

.ghost-button {
  border: 1px solid rgba(255, 230, 160, 0.36);
  border-radius: 999px;
  padding: 16px 26px;
  color: rgba(255, 248, 229, 0.64);
  background: linear-gradient(135deg, rgba(126, 126, 126, 0.82), rgba(48, 48, 48, 0.82));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  cursor: not-allowed;
}

.hero-actions p {
  margin: 0;
  color: var(--gold-300);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gift-stage {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.gift-stage::before {
  content: "";
  position: absolute;
  width: min(92%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 218, 120, 0.42), transparent 60%),
    conic-gradient(from 22deg, transparent, rgba(255, 226, 147, 0.34), transparent 38%);
  filter: blur(2px);
  animation: packetAura 5.8s ease-in-out infinite;
}

.gift-stage::after {
  content: "";
  position: absolute;
  width: min(78%, 430px);
  aspect-ratio: 0.86;
  border-radius: 38px;
  background: radial-gradient(circle, rgba(255, 58, 42, 0.34), rgba(255, 202, 83, 0.14) 42%, transparent 72%);
  filter: blur(24px);
  transform: translate(18px, 24px) rotate(-4deg);
}

.red-envelope {
  position: relative;
  z-index: 2;
  width: min(86vw, 460px);
  filter:
    drop-shadow(0 0 22px rgba(255, 208, 95, 0.34))
    drop-shadow(0 18px 34px rgba(231, 24, 20, 0.28))
    drop-shadow(0 38px 48px rgba(0, 0, 0, 0.48));
  transform: rotate(-3deg);
  animation: envelopeFloat 6.2s ease-in-out infinite;
}

.cet-friend {
  position: absolute;
  z-index: 4;
  right: clamp(28px, 5vw, 72px);
  bottom: 14px;
  width: min(34vw, 190px);
  border-radius: 26px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
  transform: none;
}

.contributions-section {
  margin: 8px 0 26px;
}

.contribution-heading {
  width: min(760px, 100%);
  margin-bottom: 18px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(280px, 0.88fr);
  gap: 18px;
  margin: 0;
}

.stat-card,
.contribution-card,
.panel,
.pool-drop,
.friendship-band {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 28%),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -68px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 104, 0.2), transparent 68%);
  pointer-events: none;
}

.stat-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
}

.cets-coin {
  overflow: hidden;
  border: 2px solid #ffe8a1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 25%, #fff4bd, transparent 28%),
    linear-gradient(145deg, #ffda76, #dd8f26 72%, #7d3309);
  box-shadow:
    0 0 22px rgba(255, 213, 101, 0.32),
    inset 0 2px 0 rgba(255, 255, 255, 0.46),
    inset 0 -7px 12px rgba(106, 42, 5, 0.38);
}

.cets-coin img {
  width: 86%;
  height: 86%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 26%;
  filter: saturate(1.08) contrast(1.04);
}

.gold-bar {
  width: 76px;
  height: 46px;
  border: 1px solid rgba(255, 242, 184, 0.82);
  border-radius: 9px 12px 8px 10px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.56), transparent 24%),
    linear-gradient(145deg, #fff0a8 0%, #f7c75d 34%, #bd721d 100%);
  box-shadow:
    0 0 24px rgba(255, 213, 101, 0.26),
    0 13px 24px rgba(0, 0, 0, 0.26),
    inset 0 2px 0 rgba(255, 255, 255, 0.52),
    inset 0 -8px 12px rgba(107, 57, 8, 0.28);
  transform: skewX(-9deg) rotate(-3deg);
}

.gold-bar::before {
  content: "";
  position: absolute;
  inset: 8px 10px;
  border: 1px solid rgba(112, 60, 7, 0.2);
  border-radius: 5px 7px 4px 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 62%);
}

.gold-bar span {
  position: relative;
  z-index: 1;
  color: #5b2104;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: skewX(9deg);
}

.stat-card > span,
.section-heading span,
.prize-card span,
.wallet-field span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  color: #fff8e3;
  font-size: clamp(2.4rem, 4.6vw, 4.9rem);
  line-height: 0.9;
}

.gold-stat strong {
  color: var(--gold-500);
}

.weekly-section {
  margin: 18px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  margin: 0;
}

.panel,
.pool-drop,
.friendship-band {
  border-radius: 8px;
  padding: clamp(22px, 3.6vw, 40px);
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.selected-panel p,
.checker-panel p,
.drop-note,
.friendship-band p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.week-countdown,
.contribute-box {
  border: 1px solid rgba(255, 224, 148, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 214, 104, 0.1), transparent 42%),
    rgba(36, 0, 4, 0.32);
}

.week-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
  padding: 18px clamp(18px, 3vw, 28px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.week-countdown span,
.contribute-box span {
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-countdown strong {
  color: #fff7e4;
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.contribute-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
}

.contribution-card {
  align-content: center;
  grid-template-columns: 1fr;
  min-height: 150px;
  margin-top: 0;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 211, 97, 0.15), transparent 36%),
    rgba(64, 2, 6, 0.7);
}

.contribute-box strong {
  color: #fff3c8;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.coin-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.coin-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  border: 1px solid rgba(255, 224, 148, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(38, 0, 3, 0.36);
}

.coin-card img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.coin-card strong,
.coin-card span {
  display: block;
}

.coin-card strong {
  font-size: 1.8rem;
}

.coin-card span {
  color: var(--muted);
  font-weight: 700;
}

.wallet-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.wallet-field input {
  width: 100%;
  border: 1px solid rgba(255, 224, 148, 0.28);
  border-radius: 8px;
  padding: 16px;
  color: rgba(255, 248, 229, 0.62);
  background: rgba(28, 0, 3, 0.46);
}

.ghost-button {
  margin-top: 16px;
  width: 100%;
}

.pool-drop {
  overflow: hidden;
  margin-top: 18px;
}

.centered {
  text-align: center;
}

.drop-note {
  width: min(660px, 100%);
  margin: 0 auto 24px;
  text-align: center;
}

.drop-carousel {
  overflow: hidden;
  margin: 0 -40px;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.drop-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: prizeSlide 36s linear infinite;
}

.prize-card {
  position: relative;
  width: 280px;
  min-height: 172px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px 18px 18px 84px;
  background: rgba(45, 1, 5, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.prize-card::before {
  content: "CET";
  position: absolute;
  left: 18px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  border: 1px solid rgba(255, 221, 116, 0.72);
  border-radius: 7px;
  color: #ffd870;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 234, 150, 0.28) 0 18%, transparent 19%),
    linear-gradient(150deg, transparent 0 42%, rgba(255, 213, 105, 0.7) 43% 46%, transparent 47%),
    linear-gradient(30deg, transparent 0 42%, rgba(255, 213, 105, 0.7) 43% 46%, transparent 47%),
    linear-gradient(145deg, #f83a2f, #a50e14 62%, #620407);
  box-shadow:
    0 0 20px rgba(255, 50, 36, 0.28),
    0 12px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(77, 0, 0, 0.45);
}

.prize-card::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 42px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b8 0 28%, #f7c75d 31% 100%);
  box-shadow: 0 0 12px rgba(255, 226, 131, 0.46);
}

.prize-card strong {
  display: block;
  min-height: 60px;
  color: #fff8e7;
  font-size: 1.32rem;
  line-height: 1.12;
}

.prize-card em {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #2b0505;
  background: rgba(255, 236, 181, 0.92);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.rarity-grand {
  background: linear-gradient(145deg, rgba(255, 245, 181, 0.28), rgba(121, 10, 15, 0.86));
  border-color: rgba(255, 231, 130, 0.72);
}

.rarity-big {
  background: linear-gradient(145deg, rgba(255, 78, 82, 0.32), rgba(88, 5, 11, 0.9));
  border-color: rgba(255, 113, 113, 0.7);
}

.rarity-medium {
  background: linear-gradient(145deg, rgba(159, 113, 255, 0.32), rgba(74, 4, 18, 0.88));
  border-color: rgba(183, 146, 255, 0.7);
}

.rarity-nice {
  background: linear-gradient(145deg, rgba(47, 204, 158, 0.26), rgba(63, 6, 12, 0.88));
  border-color: rgba(88, 231, 190, 0.62);
}

.rarity-welcome {
  background: linear-gradient(145deg, rgba(119, 148, 177, 0.24), rgba(44, 3, 8, 0.88));
  border-color: rgba(198, 213, 230, 0.46);
}

.friendship-band {
  margin-top: 18px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 208, 93, 0.22), transparent 42%),
    var(--panel-strong);
}

.friendship-band p {
  width: min(780px, 100%);
  margin: 0 auto 16px;
}

.friendship-band h2 {
  margin-bottom: 12px;
  color: var(--gold-500);
  font-size: clamp(2.7rem, 8vw, 7rem);
  line-height: 0.9;
}

@keyframes prizeSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@keyframes envelopeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-18px) rotate(-1.4deg);
  }
}

@keyframes packetAura {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes ctaSheen {
  0%,
  45% {
    background-position: 170% 0, 0 0, 0 0;
    transform: translateY(0);
  }
  55% {
    background-position: 32% 0, 0 0, 0 0;
    transform: translateY(-2px);
  }
  100% {
    background-position: -80% 0, 0 0, 0 0;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  main {
    padding-top: 22px;
  }

  .hero,
  .two-column,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat-card strong {
    font-size: clamp(2.4rem, 9vw, 5.3rem);
  }

  .hero {
    min-height: auto;
    gap: 30px;
  }

  h1 {
    font-size: 4.45rem;
  }

  html[lang="zh-Hans"] h1 {
    font-size: 4.1rem;
  }

  .headline-statement {
    font-size: 1.72rem;
  }

  .gift-stage {
    min-height: 420px;
    order: -1;
  }

  .cet-friend {
    right: 22px;
    bottom: 0;
    width: 150px;
  }

  .drop-carousel {
    margin: 0 -24px;
  }
}

@media (max-width: 560px) {
  .prototype-banner {
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .language-bar {
    gap: 8px;
    padding-top: 14px;
  }

  .language-option {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 3.25rem;
    line-height: 0.98;
  }

  html[lang="zh-Hans"] h1 {
    font-size: 2.9rem;
  }

  .headline-statement {
    font-size: 1.28rem;
  }

  .headline-translation {
    font-size: 1.02rem;
  }

  .gift-stage {
    min-height: 330px;
  }

  .red-envelope {
    width: min(88vw, 360px);
  }

  .cet-friend {
    width: 118px;
  }

  .stat-card,
  .panel,
  .pool-drop,
  .friendship-band {
    padding: 22px;
  }

  .week-countdown {
    align-items: flex-start;
    flex-direction: column;
  }

  .week-countdown strong {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .coin-card strong {
    font-size: 1.45rem;
  }

  .prize-card {
    width: 244px;
    padding-left: 72px;
  }

  .prize-card::before {
    left: 14px;
    width: 40px;
    height: 52px;
  }

  .prize-card::after {
    left: 26px;
  }
}

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

  .drop-track {
    animation: none;
  }

  .red-envelope,
  .gift-stage::before,
  .open-button {
    animation: none;
  }

  .drop-carousel {
    overflow-x: auto;
    mask-image: none;
  }
}
