:root {
  --bg: #140804;
  --gold: #f5c542;
  --gold-2: #ffe38a;
  --ink: #fff8ea;
  --muted: #d7c4a4;
  --line: rgba(245, 197, 66, 0.28);
  --card: #1b0c08;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #090505;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.phone {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(92px + env(safe-area-inset-bottom));
  background:
    radial-gradient(520px 280px at 50% -40px, rgba(196, 18, 26, 0.4), transparent 60%),
    linear-gradient(180deg, #2a0d08, var(--bg));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--gold-2);
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 14px;
  height: 180px;
  border: 1px solid var(--line);
}
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 420ms ease;
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  position: relative;
}
.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 8, 4, 0.82) 0%, rgba(20, 8, 4, 0.2) 55%, transparent 100%);
}
.slide-copy {
  position: relative;
  z-index: 1;
  padding: 22px 18px;
  max-width: 70%;
}
.slide-copy p { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: 0.12em; font-weight: 700; }
.slide-copy h2 { margin: 6px 0; font-size: 28px; line-height: 1.1; }
.slide-copy h2 em { font-style: normal; color: var(--gold-2); }
.slide-copy span { color: #f0d9b0; font-size: 12px; }
.dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.dots button.on { background: var(--gold); width: 16px; border-radius: 8px; }

.notice, .ticker {
  overflow: hidden;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
}
.notice-track, .ticker-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 8px 0;
  font-size: 12px;
  color: var(--gold-2);
  animation: marquee 22s linear infinite;
}
.notice { background: linear-gradient(90deg, rgba(196,18,26,0.45), rgba(0,0,0,0.28)); }
.notice-track { color: #ffe38a; font-weight: 700; }

.promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.promo {
  display: block;
  text-decoration: none;
  color: var(--ink);
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #3a160e, #1b0c08);
}
.promo b { display: block; color: var(--gold-2); font-size: 14px; }
.promo span { color: var(--muted); font-size: 11px; }

.card {
  margin-top: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #2a110c, var(--card));
}
.kicker { margin: 0 0 8px; color: var(--gold); font-size: 12px; letter-spacing: 0.12em; }
.amount-wrap { text-align: center; }
.amount-wrap span { color: var(--muted); font-size: 12px; }
.amount { display: flex; justify-content: center; align-items: flex-start; gap: 4px; color: var(--gold-2); }
.amount small { font-size: 20px; margin-top: 14px; }
.amount b { font-size: 64px; line-height: 1; }
.live { text-align: center; color: #ffd9a0; font-size: 13px; margin: 6px 0 14px; }
.live span { color: var(--gold); font-weight: 800; }

label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #120705;
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}
input:focus { border-color: var(--gold); }
.cta {
  margin-top: 12px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  color: #4a2b00;
  background: linear-gradient(180deg, #ffe38a, #f5c542 55%, #d4a017);
}
.cta:hover, .cta:active { filter: brightness(1.06); }
.cta:disabled { cursor: wait; }
.hint { margin: 8px 0 0; color: #b79b7a; font-size: 12px; }
.hint.err { color: #ff8a7a; }
.success { text-align: center; }
.success h2 { margin: 8px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.steps article {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.steps b {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #4a2b00; font-size: 12px;
}

.rules { color: var(--muted); font-size: 12px; line-height: 1.65; }
.rules h3 { color: var(--gold-2); margin: 0 0 6px; font-size: 13px; }
.rules ol { margin: 0; padding-left: 18px; }

.stick {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  bottom: 0;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, #140804 28%);
}
.stick-cta { margin: 0; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .notice-track, .ticker-track, .slides { animation: none; transition: none; }
}
