*, *::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: flex-start;
  gap: 14px;
  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-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.partner-label {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--gold-bright);
  font-size: clamp(24px, 6.6vw, 49px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: none;
  -webkit-text-stroke: 1px rgba(65, 0, 6, 0.95);
  paint-order: stroke fill;
  text-shadow:
    1px 0 0 rgba(65, 0, 6, 0.95),
    -1px 0 0 rgba(65, 0, 6, 0.95),
    0 1px 0 rgba(65, 0, 6, 0.95),
    0 -1px 0 rgba(65, 0, 6, 0.95),
    0 2px 0 rgba(61, 0, 4, 0.5),
    0 0 8px rgba(255, 229, 140, 0.28);
}

.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 {
  flex: 0 0 auto;
  color: #ffe9b0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.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);
}

.floating-actions {
  position: fixed;
  inset: 0;
  z-index: 34;
  pointer-events: none;
}

.floating-actions__rail {
  position: fixed;
  top: 48%;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.floating-actions__rail--left {
  left: max(12px, calc((100vw - 750px) / 2 - 82px));
}

.floating-actions__rail--right {
  right: max(12px, calc((100vw - 750px) / 2 - 82px));
}

.floating-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 229, 140, 0.42);
  border-radius: 18px;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.82) 0 8%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(150deg, #fff0a7 0%, #f5bf46 37%, #c66b16 100%);
  color: #680006;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -7px 16px rgba(106, 0, 6, 0.16),
    0 14px 28px rgba(40, 0, 7, 0.34);
  animation: floatDrift 3.8s ease-in-out infinite;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.floating-action::before {
  content: "";
  position: absolute;
  inset: -36%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.8) 48%, transparent 60%);
  transform: translateX(-72%) rotate(8deg);
  animation: actionShine 3.1s ease-in-out infinite;
}

.floating-action::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(105, 0, 6, 0.18);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255, 229, 140, 0.44);
  animation: actionPulse 2.8s ease-in-out infinite;
}

.floating-action:nth-child(2) {
  animation-delay: -1.4s;
}

.floating-actions__rail--right .floating-action {
  animation-delay: -0.7s;
}

.floating-actions__rail--right .floating-action:nth-child(2) {
  animation-delay: -2s;
}

.floating-action:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.06) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -7px 16px rgba(106, 0, 6, 0.14),
    0 18px 34px rgba(40, 0, 7, 0.42);
}

.floating-action--pg {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.92) 0 8%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 72% 78%, rgba(255, 37, 28, 0.35), rgba(255, 37, 28, 0) 44%),
    linear-gradient(150deg, #fff2a7 0%, #ffc840 34%, #d82316 72%, #8d0009 100%);
}

.floating-action--baccarat {
  border-color: rgba(212, 255, 206, 0.52);
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.92) 0 8%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 58% 72%, rgba(255, 216, 96, 0.28), rgba(255, 216, 96, 0) 48%),
    linear-gradient(150deg, #f4ffd8 0%, #79c85b 28%, #11653c 66%, #032419 100%);
}

.floating-action--lottery {
  border-color: rgba(180, 224, 255, 0.52);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9) 0 8%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 76% 74%, rgba(255, 196, 64, 0.42), rgba(255, 196, 64, 0) 45%),
    linear-gradient(150deg, #eef8ff 0%, #63b5ff 30%, #6341c7 68%, #2b0c63 100%);
}

.floating-action__art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  margin-top: 3px;
  filter: drop-shadow(0 6px 7px rgba(90, 0, 8, 0.22));
  animation: iconLift 2.7s ease-in-out infinite;
}

.floating-action__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-action__label {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: -2px;
  padding: 0 4px;
  color: #6b0007;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 249, 226, 0.78);
}

.floating-action--baccarat .floating-action__label {
  color: #fff4bf;
  text-shadow:
    0 1px 0 rgba(0, 34, 20, 0.85),
    0 0 7px rgba(0, 38, 22, 0.6);
}

.floating-action--lottery .floating-action__label {
  color: #fff7d7;
  text-shadow:
    0 1px 0 rgba(15, 5, 78, 0.82),
    0 0 7px rgba(14, 23, 112, 0.56);
}

.floating-action--pg .floating-action__art {
  width: 62px;
  height: 49px;
  animation-name: jackpotPop;
}

.floating-action--baccarat .floating-action__art {
  width: 56px;
  height: 48px;
  animation-name: baccaratSwing;
}

.floating-action--lottery .floating-action__art {
  width: 60px;
  height: 48px;
  animation-name: lotteryBounce;
}

.pg-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, #fffef3 0 8%, transparent 28%),
    linear-gradient(145deg, #ff3a32 0%, #ac0009 64%, #5c0007 100%);
  color: #ffe58c;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    inset 0 0 0 2px rgba(255, 229, 140, 0.76),
    0 7px 12px rgba(92, 0, 7, 0.28);
  text-shadow: 0 2px 0 rgba(67, 0, 4, 0.7);
}

.jackpot-burst {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background:
    conic-gradient(from 8deg, rgba(255, 229, 140, 0) 0 11deg, rgba(255, 229, 140, 0.95) 11deg 16deg, rgba(255, 229, 140, 0) 16deg 45deg);
  animation: burstSpin 5.2s linear infinite;
}

.card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(100, 0, 7, 0.22);
  background: #fff8e7;
  color: #a70008;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 7px 10px rgba(92, 0, 7, 0.2);
}

.card--back {
  transform: translateX(-8px) rotate(-12deg);
  background:
    linear-gradient(45deg, rgba(255, 229, 140, 0.38) 25%, transparent 25% 50%, rgba(255, 229, 140, 0.38) 50% 75%, transparent 75%),
    #9d0009;
  background-size: 8px 8px;
}

.card--front {
  transform: translateX(8px) rotate(11deg);
}

.lottery-balls {
  width: 50px;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.lottery-balls span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff8e8;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.46),
    0 5px 10px rgba(82, 0, 8, 0.24);
}

.lottery-balls span:nth-child(1) {
  background: linear-gradient(145deg, #ff3f3f, #a00009);
  transform: translateY(7px);
}

.lottery-balls span:nth-child(2) {
  background: linear-gradient(145deg, #365cff, #091976);
}

.lottery-balls span:nth-child(3) {
  background: linear-gradient(145deg, #25b965, #036531);
  transform: translateY(7px);
}

.floating-action--service {
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 12px 22px rgba(54, 0, 8, 0.36));
}

.floating-action--service::before,
.floating-action--service::after {
  display: none;
}

.floating-action--service img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-action--service:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 14px 24px rgba(54, 0, 8, 0.42)) brightness(1.04);
}

@keyframes floatDrift {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes actionShine {
  0%, 36% {
    transform: translateX(-72%) rotate(8deg);
  }

  58%, 100% {
    transform: translateX(72%) rotate(8deg);
  }
}

@keyframes actionPulse {
  0%, 100% {
    opacity: 0.68;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.045);
  }
}

@keyframes burstSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes iconLift {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.06);
  }
}

@keyframes jackpotPop {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  36% {
    transform: translateY(-3px) scale(1.1) rotate(-2deg);
  }

  58% {
    transform: translateY(1px) scale(0.98) rotate(1deg);
  }
}

@keyframes baccaratSwing {
  0%, 100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  50% {
    transform: translateY(-2px) rotate(3deg) scale(1.05);
  }
}

@keyframes lotteryBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  28% {
    transform: translateY(-4px) scale(1.05);
  }

  46% {
    transform: translateY(1px) scale(0.99);
  }
}

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

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

@media (max-width: 430px) {
  .site-header {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-row {
    align-items: center;
    gap: 7px;
  }

  .brand img {
    width: 96px;
  }

  .partner-label {
    font-size: 26px;
    transform: none;
    -webkit-text-stroke-width: 0.8px;
  }

  .header-label {
    font-size: 12px;
  }

  .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;
  }

  .floating-actions__rail {
    top: auto;
    bottom: calc(98px + env(safe-area-inset-bottom));
    gap: 8px;
    transform: none;
  }

  .floating-actions__rail--left {
    left: -14px;
  }

  .floating-actions__rail--right {
    right: -14px;
  }

  .floating-action {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .floating-action::after {
    inset: 5px;
    border-radius: 11px;
  }

  .floating-action__art {
    width: 44px;
    height: 40px;
    margin-top: 0;
  }

  .floating-action--pg .floating-action__art,
  .floating-action--baccarat .floating-action__art,
  .floating-action--lottery .floating-action__art {
    width: 46px;
    height: 42px;
  }

  .floating-action__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .pg-mark {
    width: 33px;
    height: 33px;
    font-size: 14px;
  }

  .jackpot-burst {
    inset: -5px;
  }

  .card {
    width: 21px;
    height: 28px;
    border-radius: 4px;
    font-size: 15px;
  }

  .card--back {
    transform: translateX(-6px) rotate(-12deg);
  }

  .card--front {
    transform: translateX(6px) rotate(11deg);
  }

  .lottery-balls {
    width: 39px;
  }

  .lottery-balls span {
    width: 17px;
    height: 17px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-action,
  .floating-action::before,
  .floating-action::after,
  .floating-action__art,
  .jackpot-burst {
    animation: none;
  }
}
