*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --red: #a70008;
  --red-dark: #5a0008;
  --red-deep: #270006;
  --gold: #f7c46b;
  --gold-bright: #ffe58c;
  --gold-soft: rgba(247, 196, 107, 0.18);
  --ink: #fff6e5;
  --muted: rgba(255, 246, 229, 0.72);
  --line: rgba(255, 229, 140, 0.24);
  --shadow: 0 18px 48px rgba(42, 0, 5, 0.38);
  --font: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, #3e0008 0%, #76000c 50%, #3e0008 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img, video {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100%, 750px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(74, 0, 8, 0) 0%, rgba(167, 0, 8, 0.94) 34%, #8f0009 100%),
    url("img/pic_01.png") no-repeat top center / 100% auto,
    var(--red);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.42);
  padding-bottom: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px clamp(18px, 5vw, 40px);
  background: rgba(75, 0, 9, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: clamp(118px, 24vw, 176px);
  height: auto;
}

.primary-cta,
.sticky-register a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 56%, #d6902e 100%);
  color: #690006;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 24px rgba(75, 0, 9, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.primary-cta:hover,
.sticky-register a:hover,
.site-footer a:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.header-label {
  color: #ffe9b0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 5vw, 38px) clamp(18px, 5vw, 42px) 24px;
}

.hero-stage {
  width: 100%;
  text-align: center;
}

.hero-title {
  width: min(100%, 640px);
  margin: 0 auto 12px;
  filter: drop-shadow(0 16px 22px rgba(70, 0, 0, 0.38));
}

.hero-stage h1 {
  max-width: 640px;
  margin: 0 auto;
  color: #fff9ec;
  font-size: clamp(30px, 7.2vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 4px 0 rgba(73, 0, 5, 0.28);
}

.hero-stage h1 span {
  display: block;
}

.hero-stage p {
  max-width: 520px;
  margin: 10px auto 16px;
  color: var(--muted);
  font-size: clamp(15px, 3.7vw, 19px);
}

.primary-cta {
  min-width: min(100%, 430px);
  min-height: 52px;
  padding: 0 34px;
  font-size: clamp(18px, 4.8vw, 24px);
}

.hero-note {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #ffeab5;
  font-size: 13px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(53, 0, 7, 0.28);
}

.bonus-section,
.games-section,
.rules-section,
.video-section,
.bottom-visual {
  margin: 0 auto;
  width: min(100% - 36px, 692px);
}

.bonus-section {
  padding-top: 10px;
  text-align: center;
}

.bonus-section h2,
.games-section h2,
.rules-section h2 {
  color: var(--gold-bright);
  font-size: clamp(22px, 5.5vw, 34px);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 2px 0 rgba(61, 0, 4, 0.42);
}

.bonus-media {
  margin-top: 14px;
  border: 1px solid rgba(255, 229, 140, 0.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bonus-media img {
  width: 100%;
}

.bonus-hint {
  width: min(100%, 560px);
  margin: 12px auto 0;
  color: rgba(255, 246, 229, 0.76);
  font-size: 15px;
}

.video-section {
  margin-top: 22px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 229, 140, 0.18);
  background: var(--red-deep);
  box-shadow: var(--shadow);
}

.video-section video {
  width: 100%;
}

.games-section {
  margin-top: 26px;
  text-align: center;
}

.section-image-title {
  width: 100%;
  margin: 0 auto 6px;
}

.games-section h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.game-panel {
  width: min(100%, 692px);
  margin: 12px auto 14px;
}

.game-panel img,
.bottom-visual img {
  width: 100%;
}

.game-marquee {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 229, 140, 0.16);
  background: rgba(51, 0, 7, 0.28);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.game-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.bottom-visual {
  margin-top: 24px;
}

.rules-section {
  margin-top: 22px;
  padding: 22px clamp(18px, 5vw, 30px);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(25, 0, 5, 0.42);
}

.rules-section h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 5vw, 30px);
}

.rules-section ol {
  padding-left: 22px;
  color: rgba(255, 246, 229, 0.78);
  font-size: 14px;
}

.rules-section li + li {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 36px, 692px);
  margin: 24px auto 0;
  padding: 16px 0 4px;
  color: rgba(255, 246, 229, 0.58);
  font-size: 13px;
  border-top: 1px solid rgba(255, 229, 140, 0.16);
}

.site-footer a {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.sticky-register {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 750px);
  transform: translateX(-50%);
  padding: 12px clamp(16px, 4vw, 34px) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(76, 0, 8, 0.1), rgba(54, 0, 8, 0.96) 30%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sticky-register.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sticky-register a {
  width: 100%;
  min-height: 58px;
  font-size: clamp(18px, 4.7vw, 22px);
}

@media (max-width: 680px) {
  .page-shell {
    padding-bottom: 88px;
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .header-label {
    font-size: 13px;
  }

  .hero-section {
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .hero-stage p {
    margin-bottom: 22px;
  }

  .bonus-section,
  .games-section,
  .rules-section,
  .video-section,
  .bottom-visual,
  .site-footer {
    width: calc(100% - 28px);
  }

  .game-marquee {
    padding: 12px;
  }

  .rules-section ol {
    font-size: 13px;
  }
}
