:root {
  --night: #071033;
  --deep: #090929;
  --violet: #31164e;
  --pink: #ff8fc5;
  --rose: #ff5d81;
  --gold: #ffd86d;
  --cream: #fff7dc;
  --ink: #321329;
  --line: rgba(255, 216, 109, 0.58);
  --soft-line: rgba(255, 216, 109, 0.22);
  --hero-height: clamp(760px, calc(100vh + 80px), 940px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans Thai", "Noto Sans", "Hiragino Sans GB", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 143, 197, 0.24), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(255, 216, 109, 0.16), transparent 24%),
    linear-gradient(180deg, #101a55 0%, #130931 45%, #07071f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.92) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 28%, rgba(255, 216, 109, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 12%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 26%, rgba(255, 143, 197, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.82) 0 1px, transparent 2px),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 96px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 52% 18%, rgba(255, 216, 109, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(7, 16, 51, 0), rgba(7, 7, 31, 0.86) 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 80px);
  background: rgba(7, 10, 37, 0.92);
  border-bottom: 1px solid rgba(255, 216, 109, 0.32);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 88px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(255, 216, 109, 0.36));
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.music-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff7ba;
  border: 1px solid rgba(255, 216, 109, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 247, 186, 0.28), transparent 38%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 18px rgba(255, 143, 197, 0.24);
  cursor: pointer;
}

.music-toggle::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #ff7d68;
  transform: rotate(-42deg);
  box-shadow: 0 0 8px rgba(255, 125, 104, 0.55);
  transition: opacity 0.2s ease;
}

.music-toggle.is-playing::after {
  opacity: 0;
}

.music-icon::before {
  content: "\266A";
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(255, 216, 109, 0.5);
}

.music-toggle.is-playing .music-icon::before {
  content: "\266B";
}

.language-menu {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
}

.language-current,
.language-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 152px;
  height: 42px;
  padding: 0 14px;
  color: #fffaf2;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(255, 216, 109, 0.34);
  cursor: pointer;
}

.language-current {
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(126, 45, 98, 0.58), rgba(16, 12, 55, 0.84)),
    rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.language-current::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}

.language-current[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.language-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 152px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 109, 0.34);
  border-radius: 8px;
  background: rgba(11, 9, 39, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 18, 0.46);
  backdrop-filter: blur(10px);
}

.language-list button {
  width: 100%;
  color: #fffaf2;
  background: transparent;
  border: 0;
}

.language-current-text,
.language-list button span:last-child {
  white-space: nowrap;
}

.language-list button:hover,
.language-list button:focus-visible,
.language-list button.is-active {
  color: #fff7ba;
  background: rgba(255, 143, 197, 0.14);
}

.language-flag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.meteor-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.meteor {
  position: absolute;
  width: clamp(130px, 14vw, 230px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96), rgba(255, 216, 109, 0.9));
  box-shadow: 0 0 18px rgba(255, 216, 109, 0.65);
  transform: rotate(-22deg) translateX(-120vw);
  animation: meteor-flow var(--meteor-duration, 7s) linear infinite;
  animation-delay: var(--meteor-delay, 0s);
}

.meteor::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff8d9;
  box-shadow: 0 0 18px #fff2a8;
}

.meteor-a {
  top: 15vh;
  left: -14vw;
  --meteor-duration: 8s;
  --meteor-delay: -2s;
}

.meteor-b {
  top: 36vh;
  left: -22vw;
  --meteor-duration: 10s;
  --meteor-delay: -6s;
}

.meteor-c {
  top: 58vh;
  left: -18vw;
  --meteor-duration: 9s;
  --meteor-delay: -4s;
}

.meteor-d {
  top: 78vh;
  left: -30vw;
  --meteor-duration: 11s;
  --meteor-delay: -8s;
}

@keyframes meteor-flow {
  0% {
    transform: rotate(-22deg) translateX(-120vw);
    opacity: 0;
  }
  10%,
  72% {
    opacity: 1;
  }
  100% {
    transform: rotate(-22deg) translateX(145vw);
    opacity: 0;
  }
}

.sparkle-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: var(--sparkle-size, 8px);
  height: var(--sparkle-size, 8px);
  border-radius: 50%;
  background: #fff5b8;
  box-shadow:
    0 0 8px rgba(255, 216, 109, 0.92),
    0 0 18px rgba(255, 143, 197, 0.42);
  animation: star-twinkle var(--sparkle-duration, 2.8s) ease-in-out infinite;
  animation-delay: var(--sparkle-delay, 0s);
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--sparkle-size, 8px) * 3.2);
  height: 1px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 184, 0.95), transparent);
}

.sparkle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sparkle-a {
  left: 6vw;
  top: 18vh;
  --sparkle-size: 7px;
  --sparkle-delay: -0.4s;
}

.sparkle-b {
  left: 17vw;
  top: 48vh;
  --sparkle-size: 10px;
  --sparkle-duration: 3.1s;
  --sparkle-delay: -1.6s;
}

.sparkle-c {
  left: 27vw;
  top: 28vh;
  --sparkle-size: 6px;
  --sparkle-duration: 2.4s;
  --sparkle-delay: -1s;
}

.sparkle-d {
  right: 8vw;
  top: 20vh;
  --sparkle-size: 9px;
  --sparkle-delay: -1.9s;
}

.sparkle-e {
  right: 18vw;
  top: 44vh;
  --sparkle-size: 7px;
  --sparkle-duration: 3.3s;
  --sparkle-delay: -0.7s;
}

.sparkle-f {
  right: 28vw;
  top: 30vh;
  --sparkle-size: 5px;
  --sparkle-duration: 2.2s;
  --sparkle-delay: -1.4s;
}

.sparkle-g {
  left: 9vw;
  top: 72vh;
  --sparkle-size: 8px;
  --sparkle-duration: 3s;
  --sparkle-delay: -2.2s;
}

.sparkle-h {
  right: 12vw;
  top: 70vh;
  --sparkle-size: 6px;
  --sparkle-duration: 2.6s;
  --sparkle-delay: -0.9s;
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.58) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform: scale(1.2) rotate(22deg);
  }
  70% {
    opacity: 0.72;
    transform: scale(0.9) rotate(45deg);
  }
}

.coin-layer {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.fall-coin {
  position: fixed;
  top: -120px;
  z-index: 28;
  width: clamp(48px, 4.2vw, 82px);
  height: auto;
  opacity: 0.82;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.42));
  animation: coin-fall var(--coin-duration, 9s) linear infinite;
  animation-delay: var(--coin-delay, 0s);
  transform: translate3d(0, -120px, 0) rotate(var(--coin-rotate, 0deg));
}

.fall-coin-1 {
  left: 3vw;
  --coin-duration: 8.5s;
  --coin-delay: -1s;
  --coin-rotate: -18deg;
}

.fall-coin-2 {
  left: 9vw;
  --coin-duration: 11s;
  --coin-delay: -5.2s;
  --coin-rotate: 24deg;
}

.fall-coin-3 {
  left: 15vw;
  --coin-duration: 9.5s;
  --coin-delay: -7s;
  --coin-rotate: 8deg;
}

.fall-coin-4 {
  right: 3vw;
  --coin-duration: 10s;
  --coin-delay: -2.4s;
  --coin-rotate: 20deg;
}

.fall-coin-5 {
  right: 9vw;
  --coin-duration: 8.8s;
  --coin-delay: -6.2s;
  --coin-rotate: -14deg;
}

.fall-coin-6 {
  right: 15vw;
  --coin-duration: 12s;
  --coin-delay: -8.4s;
  --coin-rotate: 32deg;
}

@keyframes coin-fall {
  0% {
    transform: translate3d(0, -130px, 0) rotate(var(--coin-rotate, 0deg));
  }
  100% {
    transform: translate3d(0, calc(100vh + 160px), 0) rotate(calc(var(--coin-rotate, 0deg) + 360deg));
  }
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: var(--hero-height);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 216, 109, 0.18), transparent 18%),
    radial-gradient(circle at 18% 42%, rgba(255, 143, 197, 0.2), transparent 25%),
    radial-gradient(circle at 80% 45%, rgba(255, 216, 109, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(13, 22, 70, 0.05), rgba(9, 9, 41, 0.72) 86%, #07071f);
  pointer-events: none;
}

.gold-rain {
  position: absolute;
  top: -42px;
  z-index: 2;
  width: min(420px, 34vw);
  max-width: none;
  opacity: 0.72;
  filter: drop-shadow(0 0 18px rgba(255, 216, 109, 0.36));
  animation: side-gold-rain 8.5s linear infinite;
}

.gold-rain-left {
  left: max(-80px, -4vw);
}

.gold-rain-right {
  right: max(-80px, -4vw);
  transform: scaleX(-1);
  animation-delay: -4.25s;
}

@keyframes side-gold-rain {
  0% {
    translate: 0 -18%;
    opacity: 0;
  }
  12%,
  78% {
    opacity: 0.72;
  }
  100% {
    translate: 0 42%;
    opacity: 0;
  }
}

.red-rope-long {
  position: absolute;
  left: clamp(-50px, -2vw, 0px);
  top: 90px;
  z-index: 6;
  width: clamp(130px, 16vw, 260px);
  opacity: 0.92;
  transform: rotate(-8deg);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.34));
}

.red-rope-bow {
  position: absolute;
  right: clamp(-24px, 2vw, 42px);
  top: 88px;
  z-index: 6;
  width: clamp(80px, 10vw, 154px);
  opacity: 0.92;
  transform: rotate(8deg);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.34));
}

.hero-copy {
  position: relative;
  z-index: 8;
  display: grid;
  justify-items: center;
  align-self: start;
  width: min(920px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(24px, 4.6vh, 50px) clamp(14px, 3vw, 34px) 12px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(50, 20, 72, 0.82), rgba(50, 20, 72, 0.34) 48%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(9, 9, 41, 0.54), transparent);
}

.hero-copy p {
  margin: 0;
}

.hero-eyebrow {
  color: var(--gold);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 8px 0 0;
  color: #fff2b8;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 0.95;
  font-weight: 900;
  text-shadow:
    0 5px 0 #742746,
    0 10px 0 rgba(8, 10, 45, 0.72),
    0 0 34px rgba(255, 216, 109, 0.62),
    0 0 72px rgba(255, 143, 197, 0.34);
  overflow-wrap: anywhere;
}

.hero-subtitle {
  margin-top: clamp(34px, 4vw, 56px);
  color: #ffe8f4;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 4px 18px rgba(255, 93, 129, 0.42), 0 2px 0 rgba(70, 18, 50, 0.72);
  overflow-wrap: anywhere;
}

.hero-copy .hero-sub {
  width: min(730px, 100%);
  margin-top: 18px;
  color: #fffaf2;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 3px 10px rgba(0, 0, 18, 0.9);
  overflow-wrap: anywhere;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 0;
  width: min(730px, 100%);
  margin-top: 12px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 216, 109, 0.58);
  border-bottom: 1px solid rgba(255, 143, 197, 0.36);
  background: linear-gradient(90deg, transparent, rgba(8, 7, 35, 0.78), transparent);
}

.hero-metrics span {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 4px;
  padding: 0 clamp(8px, 1.6vw, 18px);
}

.hero-metrics span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics b {
  color: #fff7ba;
  font-size: clamp(24px, 2.45vw, 34px);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.hero-metrics small {
  color: #ffc4dd;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-date {
  margin-top: 10px;
  width: min(760px, 100%);
  padding: 8px 16px;
  color: #ffffff;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 900;
  line-height: 1.35;
  border: 1px solid rgba(255, 216, 109, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 20px rgba(255, 216, 109, 0.05);
  text-shadow: 0 3px 12px rgba(0, 0, 18, 0.9);
  overflow-wrap: anywhere;
}

.tree-stage {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 4;
  width: min(900px, 94vw);
  height: min(640px, 68vh);
  min-height: 520px;
  transform: translateX(-50%);
}

.star-glow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(720px, 84vw);
  aspect-ratio: 1 / 0.38;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 216, 109, 0.48), rgba(255, 143, 197, 0.16) 48%, transparent 72%);
  filter: blur(14px);
}

.gold-tree {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(760px, 92vw);
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 34px rgba(0, 0, 18, 0.52)) drop-shadow(0 0 30px rgba(255, 216, 109, 0.32));
}

.hero-tag {
  position: absolute;
  right: clamp(16px, 8vw, 108px);
  bottom: clamp(70px, 10vh, 130px);
  z-index: 7;
  width: clamp(74px, 10vw, 126px);
  opacity: 0.92;
  transform: rotate(9deg);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 18, 0.4));
}

.section-panel,
.showcase,
.rules,
.timeline,
.tips {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.timeline::before,
.timeline::after,
.section-panel::before,
.section-panel::after {
  content: "";
  position: absolute;
  top: -56px;
  z-index: 0;
  width: clamp(220px, 24vw, 360px);
  height: clamp(170px, 18vw, 250px);
  pointer-events: none;
  background: url("./assets/side-gold-mist.png") center / contain no-repeat;
  opacity: 0.42;
  filter: blur(1.5px);
  mix-blend-mode: screen;
}

.timeline::before {
  left: max(-148px, -8vw);
  transform: rotate(-12deg) scaleX(-1);
}

.timeline::after {
  right: max(-148px, -8vw);
  transform: rotate(12deg);
}

.section-panel::before {
  left: max(-154px, -8vw);
  transform: rotate(12deg) scaleY(-1);
}

.section-panel::after {
  right: max(-154px, -8vw);
  transform: rotate(-12deg) scaleX(-1) scaleY(-1);
}

.showcase::before,
.rules::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -74px;
  z-index: 0;
  width: min(640px, 76vw);
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
  background-image: url("./assets/star-trail.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(520px, 76vw) auto;
  opacity: 0.22;
  filter: blur(1px);
  mix-blend-mode: screen;
}

.section-heading,
.benefit-grid,
.feature-lineup,
.period-grid,
.formula,
.rule-list,
.tips h2,
.tips ul {
  position: relative;
  z-index: 1;
}

.tagged-section {
  padding-top: 18px;
}

.section-tag {
  position: absolute;
  top: -28px;
  left: clamp(10px, 3vw, 34px);
  z-index: 4;
  width: clamp(54px, 6vw, 82px);
  opacity: 0.94;
  transform: rotate(-8deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 18, 0.4));
}

.section-tag.red-tag {
  left: auto;
  right: clamp(10px, 3vw, 34px);
  width: clamp(44px, 5vw, 70px);
  transform: rotate(7deg);
}

.section-tag.small-tag {
  width: clamp(42px, 4.5vw, 64px);
}

.section-panel {
  margin-top: clamp(30px, 4vw, 54px);
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 0 18px rgba(255, 143, 197, 0.36);
  overflow-wrap: anywhere;
}

.benefit-grid,
.feature-lineup,
.period-grid {
  display: grid;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background:
    linear-gradient(90deg, transparent, rgba(42, 17, 69, 0.78), transparent),
    rgba(10, 9, 42, 0.72);
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255, 216, 109, 0.14);
}

.benefit:last-child {
  border-right: 0;
}

.benefit span,
.formula span {
  color: var(--gold);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.benefit strong {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.benefit:first-child strong {
  font-size: clamp(20px, 2.1vw, 30px);
}

.formula {
  width: min(930px, 100%);
  margin: 26px auto 0;
  padding: 18px 24px;
  color: #fffaf2;
  text-align: center;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: linear-gradient(90deg, transparent, rgba(142, 45, 96, 0.56), transparent);
}

.formula strong {
  display: block;
  margin-top: 8px;
  color: #fff7b9;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1.22;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  overflow-wrap: anywhere;
}

.formula p {
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.showcase,
.rules,
.timeline {
  margin-top: clamp(46px, 6vw, 78px);
}

.feature-lineup {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 56px);
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 28px 28px 30px;
}

.feature-lineup article {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: clamp(118px, 10vw, 144px);
  height: clamp(104px, 9vw, 132px);
  padding: 10px;
  border: 1px solid rgba(255, 216, 109, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.08), rgba(255, 143, 197, 0.05)),
    rgba(16, 9, 48, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(0, 0, 18, 0.24);
}

.feature-icon img {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.feature-icon.pool img {
  width: 86%;
  height: 86%;
}

.feature-icon.redpack img {
  width: 84%;
  height: 84%;
}

.feature-lineup b {
  color: #fff;
  font-size: clamp(19px, 1.9vw, 26px);
  overflow-wrap: anywhere;
}

.feature-lineup small {
  max-width: 240px;
  color: #ffe8f4;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.rules {
  padding: 30px 0 38px;
  border-top: 1px solid rgba(255, 216, 109, 0.4);
  border-bottom: 1px solid rgba(255, 143, 197, 0.28);
  background:
    linear-gradient(90deg, transparent, rgba(32, 15, 66, 0.76), transparent),
    rgba(10, 9, 42, 0.5);
}

.rule-list {
  display: grid;
  gap: 14px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding-left: 24px;
  color: #fffaf2;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.rule-list li::marker {
  color: var(--gold);
  font-weight: 900;
}

.period-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.period-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 112px;
  padding: 18px 18px 16px;
  border-right: 1px solid rgba(255, 216, 109, 0.14);
}

.period-grid article:last-child {
  border-right: 0;
}

.period-grid b {
  color: var(--gold);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  text-shadow: 0 3px 10px rgba(0, 0, 18, 0.38);
}

.period-grid span {
  color: #fff;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: normal;
  word-break: keep-all;
}

.period-time {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.period-time em {
  display: inline-block;
  font-style: normal;
  white-space: nowrap;
}

.period-start {
  position: relative;
  padding-bottom: 8px;
}

.period-start::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(84px, 78%);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 10px rgba(255, 216, 109, 0.26);
}

.tips {
  margin-top: 36px;
  margin-bottom: 58px;
  padding: 22px 0 26px;
  background:
    linear-gradient(90deg, transparent, rgba(142, 45, 96, 0.28), transparent),
    rgba(10, 9, 42, 0.36);
}

.tips h2 {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 10px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tips ul {
  display: grid;
  gap: 7px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 22px 16px 34px;
  color: rgba(255, 250, 242, 0.82);
  background: rgba(7, 7, 31, 0.78);
}

.site-footer span,
.site-footer a {
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 1020px) {
  .site-header {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
  }

  .header-right {
    display: contents;
  }

  .brand-logo {
    width: 78px;
  }

  .music-toggle {
    order: 2;
    margin-left: auto;
  }

  .language-menu {
    order: 3;
    margin-left: 0;
  }

  .hero {
    min-height: 820px;
  }

  .tree-stage {
    height: 540px;
    min-height: 480px;
  }

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

  .benefit:nth-child(2),
  .period-grid article:nth-child(2) {
    border-right: 0;
  }

  .benefit:nth-child(n + 3),
  .period-grid article:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 216, 109, 0.14);
  }
}

@media (max-width: 720px) {
  .fall-coin {
    width: 46px;
    opacity: 0.64;
  }

  .fall-coin-2,
  .fall-coin-3,
  .fall-coin-6 {
    display: none;
  }

  .music-toggle {
    width: 38px;
    height: 38px;
  }

  .music-icon::before {
    font-size: 22px;
  }

  .language-current,
  .language-list button {
    min-width: 144px;
    height: 38px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .language-flag {
    width: 24px;
    height: 24px;
    font-size: 22px;
  }

  .hero {
    min-height: 790px;
  }

  .hero-copy {
    width: min(100% - 24px, 520px);
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-subtitle {
    font-size: clamp(22px, 7vw, 32px);
    margin-top: 34px;
  }

  .hero-metrics {
    gap: 8px;
    padding: 10px 8px;
  }

  .hero-metrics b {
    font-size: 20px;
  }

  .hero-metrics small {
    font-size: 11px;
  }

  .tree-stage {
    bottom: 0;
    height: 470px;
    min-height: 420px;
  }

  .gold-tree {
    width: min(520px, 104vw);
    bottom: 0;
  }

  .hero-tag {
    right: 24px;
    bottom: 98px;
    width: 70px;
  }

  .gold-rain {
    top: 12px;
    width: 210px;
    opacity: 0.54;
  }

  .gold-rain-left {
    left: -92px;
  }

  .gold-rain-right {
    right: -92px;
  }

  .red-rope-long {
    width: 118px;
    top: 96px;
  }

  .red-rope-bow {
    width: 74px;
    top: 118px;
    right: -8px;
  }

  .section-tag {
    width: 48px;
    top: -22px;
  }

  .benefit-grid,
  .feature-lineup,
  .period-grid {
    grid-template-columns: 1fr;
  }

  .benefit,
  .benefit:nth-child(2),
  .period-grid article,
  .period-grid article:nth-child(2) {
    border-right: 0;
  }

  .benefit + .benefit,
  .period-grid article + article {
    border-top: 1px solid rgba(255, 216, 109, 0.14);
  }

  .benefit {
    min-height: 86px;
    padding: 16px 10px;
  }

  .benefit:first-child strong {
    font-size: clamp(18px, 5vw, 24px);
  }

  .formula {
    padding-inline: 12px;
  }

  .feature-lineup {
    padding: 24px 14px;
  }

  .rule-list {
    font-size: 16px;
    line-height: 1.6;
  }

  .tips h2 {
    font-size: 22px;
  }

  .tips ul {
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
