:root {
  --red: #c41e3a;
  --red-deep: #6e0d1c;
  --ink: #1a080c;
  --gold: #e6c36a;
  --gold-2: #f6e2a1;
  --cream: #fff6e8;
  --muted: rgba(255, 236, 214, 0.72);
  --card: rgba(255, 255, 255, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.55;
  padding-bottom: 88px;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(26, 8, 12, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 195, 106, 0.18);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; box-shadow: 0 0 0 1px rgba(230, 195, 106, 0.4);
}
.brand strong { display: block; font-size: 16px; letter-spacing: 0.04em; }
.brand span { font-size: 11px; color: var(--gold); }
.top-dl {
  border: 0; border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #f3d58a, #c9a227);
  color: #4a2a08; font-weight: 700;
}

.hero { position: relative; overflow: hidden; min-height: 88vh; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); filter: saturate(1.1);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,8,12,.35) 0%, rgba(26,8,12,.72) 45%, #1a080c 100%),
    radial-gradient(circle at 20% 20%, rgba(196,30,58,.35), transparent 42%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 40px;
  display: grid;
  gap: 28px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(196, 30, 58, 0.35);
  border: 1px solid rgba(230, 195, 106, 0.28);
  font-size: 13px; color: var(--gold-2);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7dff9a; box-shadow: 0 0 0 0 rgba(125, 255, 154, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(125, 255, 154, 0); }
}
.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #fff3c4, #d7a441);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); max-width: 36em; margin-bottom: 18px; }

.balls { display: flex; gap: 12px; margin: 8px 0 18px; }
.ball {
  width: 86px; height: 86px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, #ff7d8d, #c41e3a 46%, #6a101c 100%);
  box-shadow: inset 0 -10px 16px rgba(0,0,0,.28), 0 12px 24px rgba(0,0,0,.35);
  animation: float 3.2s ease-in-out infinite;
}
.ball.gold {
  background: radial-gradient(circle at 32% 28%, #fff1b3, #e0b33a 48%, #8a6412 100%);
  animation-delay: .4s;
}
.ball.ivory {
  background: radial-gradient(circle at 32% 28%, #fff, #f0d7b0 50%, #b8895c 100%);
  color: #6b2a16; animation-delay: .8s;
}
.ball small { font-size: 11px; opacity: .85; }
.ball b { font-size: 32px; line-height: 1; }
@keyframes float {
  50% { transform: translateY(-8px); }
}

.draw-card {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(230,195,106,.22);
  margin-bottom: 18px;
}
.draw-card .muted { display: block; font-size: 12px; color: var(--muted); }
.draw-card strong { font-size: 18px; color: var(--gold-2); }
.countdown { display: flex; gap: 8px; }
.countdown span {
  display: flex; align-items: baseline; gap: 2px;
  font-size: 12px; color: var(--muted);
}
.countdown b {
  min-width: 32px; text-align: center;
  background: #2a0d14; border-radius: 8px;
  padding: 6px 4px; color: #fff; font-size: 18px;
}

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  flex: 1; min-width: 140px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 13px 16px; font-weight: 700;
}
.btn img { width: 22px; height: 22px; }
.btn.android { background: linear-gradient(180deg, #f3d58a, #c9a227); color: #4a2a08; }
.btn.ios {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(230,195,106,.35);
}
.cta-tip { margin-top: 10px; font-size: 12px; color: var(--muted); }

.phone {
  width: min(280px, 72vw);
  margin: 0 auto;
  background: #0c0708;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #3a2418;
}
.phone-notch {
  width: 42%; height: 10px; margin: 4px auto 8px;
  background: #1a0c0e; border-radius: 999px;
}
.phone-screen {
  background: linear-gradient(180deg, #8b1526, #2a0a12 40%, #14080b);
  border-radius: 26px; padding: 16px 14px 18px; min-height: 460px;
}
.app-bar { display: flex; justify-content: space-between; font-size: 13px; color: var(--gold-2); }
.app-draw {
  margin: 16px 0; padding: 16px; border-radius: 18px;
  background: rgba(0,0,0,.22); text-align: center;
}
.app-draw p { font-size: 12px; color: var(--muted); }
.app-balls { display: flex; justify-content: center; gap: 8px; margin: 10px 0 14px; }
.app-balls i {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-weight: 800; font-size: 22px;
  background: radial-gradient(circle at 30% 28%, #fff1b3, #d4a017);
  color: #5a2a08;
}
.app-meta { list-style: none; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.app-meta b { color: var(--gold-2); }
.app-list { display: grid; gap: 8px; margin-bottom: 16px; }
.app-list div {
  display: flex; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px;
}
.app-list em { font-style: normal; color: var(--gold); }
.app-cta {
  width: 100%; border: 0; border-radius: 12px; padding: 12px;
  background: linear-gradient(180deg, #f3d58a, #c9a227); color: #4a2a08; font-weight: 800;
}

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-width: 1100px; margin: -8px auto 0; padding: 0 18px;
}
.stat {
  background: #2a1016; border: 1px solid rgba(230,195,106,.16);
  border-radius: 14px; padding: 14px;
}
.stat b { display: block; color: var(--gold-2); font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }

.block { max-width: 1100px; margin: 0 auto; padding: 42px 18px; }
.block-head { margin-bottom: 20px; }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .12em; }
.block-head h2 { font-size: 26px; margin: 6px 0 8px; }
.block-head p { color: var(--muted); }

.play-grid, .feat-grid { display: grid; gap: 12px; }
.play-card, .feat-grid article {
  background: #2a1016; border: 1px solid rgba(230,195,106,.16);
  border-radius: var(--radius); padding: 18px;
}
.play-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--red); margin-bottom: 8px;
}
.play-card h3, .feat-grid h3 { margin-bottom: 8px; }
.play-card p, .feat-grid p { color: var(--muted); font-size: 14px; }
.prize { margin-top: 12px; color: var(--gold-2); font-weight: 700; }
.prize em { font-style: normal; font-size: 28px; }

.gold-block { position: relative; }
.gold-photo {
  height: 160px; border-radius: 18px; margin-bottom: 18px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(230,195,106,.2);
}
.feat-ico {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f3d58a, #c9a227); color: #4a2a08; font-weight: 800;
}

.dl-panel {
  display: grid; gap: 20px;
  background: #2a1016; border: 1px solid rgba(230,195,106,.2);
  border-radius: 22px; padding: 22px;
}
.qr-wrap { text-align: center; }
.qr {
  width: 168px; height: 168px; margin: 0 auto 10px;
  background: #fff; border-radius: 12px; padding: 8px;
}
.qr canvas, .qr img { width: 100% !important; height: 100% !important; }
.qr-wrap p { color: var(--muted); font-size: 13px; }
.invite {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 12px; border-radius: 12px;
  background: rgba(0,0,0,.2);
}
.invite strong { font-size: 22px; letter-spacing: .2em; color: var(--gold-2); }
.invite button {
  margin-left: auto; border: 0; border-radius: 8px; padding: 6px 10px;
  background: var(--gold); color: #4a2a08; font-weight: 700;
}
.steps { margin-top: 16px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.steps li { margin: 6px 0; }

.faq details {
  background: #2a1016; border: 1px solid rgba(230,195,106,.14);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.site-foot {
  text-align: center; padding: 12px 18px 24px;
  color: rgba(255,236,214,.45); font-size: 12px;
}

.stick {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px;
  background: rgba(26, 8, 12, 0.94);
  border: 1px solid rgba(230,195,106,.28);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.stick img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.stick strong { display: block; font-size: 14px; }
.stick span { font-size: 11px; color: var(--muted); }
.stick button {
  margin-left: auto; border: 0; border-radius: 999px;
  padding: 10px 14px; font-weight: 800;
  background: linear-gradient(180deg, #f3d58a, #c9a227); color: #4a2a08;
}

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 70; background: #111; color: #fff; padding: 10px 14px;
  border-radius: 10px; font-size: 13px;
}

.wx-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.78); color: #fff;
}
.wx-mask-inner { padding: 28px 24px; text-align: right; }
.wx-arrow { font-size: 42px; color: var(--gold-2); }
.wx-strong { font-size: 22px; margin: 6px 0; color: var(--gold-2); }
.wx-sub { color: rgba(255,255,255,.7); }

@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 48px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .play-grid, .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .dl-panel { grid-template-columns: 220px 1fr; align-items: center; }
  .hero-phone { justify-self: end; }
}
