:root {
  --bg: #eff3ff;
  --ink: #1b2451;
  --muted: #6872a2;
  --white: #ffffff;
  --blue: #2468ff;
  --blue-deep: #1938ad;
  --violet: #7d53ff;
  --violet-soft: #d8d2ff;
  --pink: #ff86bd;
  --orange: #ff8d4f;
  --gold: #ffd45c;
  --line: rgba(44, 60, 134, 0.13);
  --shadow: 0 22px 55px rgba(44, 58, 137, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(73, 101, 214, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(73, 101, 214, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f4f7ff 0%, #eef3ff 48%, #f4f7ff 100%);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

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

button {
  font: inherit;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 248, 255, 0.54), rgba(244, 247, 255, 0.72)),
    linear-gradient(145deg, rgba(244, 247, 255, 0.58) 0%, rgba(223, 231, 255, 0.58) 100%);
  box-shadow: none;
}

.phone-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(73, 101, 214, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(73, 101, 214, 0.05) 1px, transparent 1px) 0 0 / 22px 22px;
  content: "";
  pointer-events: none;
}

.phone-shell > * {
  position: relative;
  z-index: 1;
}

.speed-wrap {
  position: relative;
  z-index: 10;
  padding: 12px 16px 6px;
}

.speed-tip {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(74, 91, 183, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #5260a0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 8px 18px rgba(47, 63, 148, 0.07);
}

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

.speed-card {
  width: 100%;
  display: grid;
  min-height: 54px;
  place-items: center;
  position: relative;
  z-index: 2;
  padding: 0;
  border: 1px solid rgba(74, 91, 183, 0.14);
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(47, 63, 148, 0.08);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.speed-card:hover {
  transform: translateY(-2px);
}

.speed-card strong {
  color: var(--blue-deep);
  font-size: 15px;
  line-height: 1;
}

.speed-card span {
  font-size: 12px;
  font-weight: 800;
}

.speed-card.is-fastest {
  border-color: rgba(36, 104, 255, 0.38);
  background: linear-gradient(180deg, #ffffff, #edf3ff);
}

.hero {
  z-index: 1;
  margin-top: 2px;
  padding: 0 18px 6px;
  text-align: center;
  pointer-events: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: transparent;
  box-shadow: none;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--white);
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.68), transparent 18%),
    linear-gradient(135deg, #266cff, #704cff);
  font-size: 13px;
  font-weight: 900;
}

.brand-icon.image-logo {
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
}

.brand-icon.image-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.brand-badge .image-logo {
  width: 86px;
  height: 86px;
}

.brand-badge b {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand-badge small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
}

.hero-art {
  position: relative;
  display: flex;
  height: 218px;
  margin-top: -8px;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.hero-art img {
  display: block;
  width: min(108%, 470px);
  max-width: none;
  max-height: 248px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(50, 54, 142, 0.22));
}

.portal {
  position: absolute;
  left: 50%;
  top: 22px;
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.94) 0 34%, transparent 35%),
    conic-gradient(from 20deg, #405bff, #a85cff, #ff8ec3, #58d3ff, #405bff);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.52),
    0 20px 54px rgba(76, 75, 203, 0.38);
  transform: translateX(-50%);
}

.portrait {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 16%, #ffe1ef 0 17%, transparent 18%),
    linear-gradient(160deg, #f5c7de 0 48%, #cab9ff 49% 100%);
  box-shadow: inset 0 -18px 0 rgba(62, 67, 168, 0.12);
}

.portrait span {
  width: 60px;
  height: 74px;
  margin-top: 26px;
  border-radius: 48% 48% 38% 38%;
  background:
    radial-gradient(circle at 36% 22%, #25316c 0 3px, transparent 4px),
    radial-gradient(circle at 64% 22%, #25316c 0 3px, transparent 4px),
    radial-gradient(ellipse at 50% 0%, #fff7fb 0 24%, transparent 25%),
    linear-gradient(#ffe5d4 0 42%, #754ef4 43% 100%);
  box-shadow:
    -20px -20px 0 -12px #f3c2da,
    20px -20px 0 -12px #f3c2da;
}

.ring {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  pointer-events: none;
}

.ring-one {
  inset: 16px;
}

.ring-two {
  inset: -10px;
  border-color: rgba(94, 110, 255, 0.22);
}

.phone {
  position: absolute;
  top: 48px;
  width: 58px;
  height: 122px;
  border: 6px solid #fdfdff;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(160deg, #d9e4ff, #7a93ff);
  box-shadow: 0 20px 36px rgba(52, 68, 151, 0.28);
}

.phone-left {
  left: 34px;
  transform: rotate(-12deg);
}

.phone-right {
  right: 34px;
  transform: rotate(12deg);
}

.chip,
.card {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.chip {
  width: 50px;
  height: 50px;
  border: 5px dashed rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, #4b6bff, #b85cff);
  box-shadow: 0 14px 28px rgba(76, 75, 203, 0.24);
}

.chip-one {
  left: 74px;
  bottom: 34px;
  transform: rotate(-14deg);
}

.chip-two {
  right: 74px;
  bottom: 44px;
  transform: rotate(11deg);
}

.card {
  width: 42px;
  height: 56px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: 0 12px 24px rgba(44, 60, 134, 0.16);
}

.card-a {
  left: 122px;
  bottom: 8px;
  transform: rotate(-10deg);
}

.card-k {
  right: 120px;
  bottom: 8px;
  transform: rotate(10deg);
}

.hero-copy {
  margin-top: -8px;
}

.hero-copy h1 {
  margin: 0;
  color: #172166;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.8);
}

.hero-copy p {
  margin: 8px 0 0;
  color: #6270b3;
  font-size: 14px;
  font-weight: 800;
}

.category-panel,
.trust-strip,
.promo-card,
.game-recommend {
  width: calc(100% - 36px);
  margin: 0 auto;
}

.category-panel {
  padding: 0;
  border: 1px solid rgba(120, 129, 214, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(55, 72, 158, 0.13);
  overflow: hidden;
}

.category-banner {
  display: block;
}

.category-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.trust-strip {
  margin-top: 12px;
  padding: 2px 0;
}

.trust-strip img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(120, 129, 214, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 34px rgba(55, 72, 158, 0.13);
}

.official-card {
  min-height: 126px;
}

.logo-stack {
  display: grid;
  gap: 7px;
  min-width: 78px;
  place-items: center;
}

.logo-stack .brand-icon {
  width: 88px;
  height: 60px;
}

.logo-stack small {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.promo-copy {
  flex: 1;
  min-width: 0;
}

.label {
  display: inline-flex;
  margin: 0 0 4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 11px;
  font-weight: 900;
}

.promo-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.stars {
  margin-top: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.stars span,
.promo-card p:last-child {
  color: var(--muted);
}

.promo-card p:last-child {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.bonus-card {
  position: relative;
  min-height: auto;
  justify-content: center;
  overflow: hidden;
  padding: 16px 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.34), transparent 7rem),
    linear-gradient(135deg, #235dff, #5f4dff 56%, #a55dff);
  text-align: center;
}

.bonus-card > div {
  position: relative;
  z-index: 1;
}

.bonus-chip {
  position: absolute;
  top: 50%;
  z-index: 0;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 6px dashed rgba(255, 242, 155, 0.96);
  border-radius: 50%;
  color: #fff4a8;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.58), transparent 17%),
    radial-gradient(circle, #884cff 0 38%, #3a62ff 39% 58%, #191f80 59% 100%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.13),
    0 12px 24px rgba(17, 25, 105, 0.24),
    0 0 22px rgba(255, 230, 88, 0.45);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(38, 28, 94, 0.55);
  transform: translateY(-50%);
  animation: chipFlash 1.45s ease-in-out infinite;
}

.bonus-chip::after {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  content: "";
}

.bonus-chip-left {
  left: -24px;
  transform: translateY(-50%) rotate(-16deg);
}

.bonus-chip-right {
  right: -24px;
  transform: translateY(-50%) rotate(16deg);
  animation-delay: 0.28s;
}

.bonus-card .label {
  color: #1b2451;
  background: rgba(255, 255, 255, 0.88);
}

.bonus-card h2 {
  color: var(--white);
  font-size: 20px;
  line-height: 1.15;
}

.bonus-card strong {
  color: #ffef8a;
  font-size: 28px;
}

.bonus-card .stars span {
  color: rgba(255, 255, 255, 0.74);
}

.game-recommend {
  margin-top: 16px;
  margin-bottom: 96px;
  border-radius: 18px;
  overflow: hidden;
  filter: drop-shadow(0 18px 34px rgba(55, 72, 158, 0.13));
}

.game-recommend img {
  display: block;
  width: 100%;
  height: auto;
}

.bottom-bar {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 999;
  display: flex;
  gap: 10px;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(245, 248, 255, 0.88);
  box-shadow: 0 -16px 34px rgba(50, 68, 158, 0.14);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.ghost-button,
.main-button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 900;
}

.ghost-button {
  border: 1px solid rgba(36, 104, 255, 0.2);
  color: var(--blue-deep);
  background: var(--white);
}

.main-button {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, #ff2f45, #ff6b2f);
  box-shadow:
    0 14px 28px rgba(215, 44, 46, 0.3),
    0 0 0 0 rgba(255, 49, 69, 0.42);
  animation: ctaPulse 1.25s ease-in-out infinite;
  transform-origin: center;
}

.button-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 3px 7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #b01920;
  background: linear-gradient(180deg, #fff7ac, #ffd45c);
  box-shadow: 0 8px 16px rgba(170, 43, 16, 0.24);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

@keyframes chipFlash {
  0%,
  100% {
    filter: brightness(1);
    opacity: 0.72;
    box-shadow:
      inset 0 0 0 5px rgba(255, 255, 255, 0.13),
      0 12px 24px rgba(17, 25, 105, 0.24),
      0 0 14px rgba(255, 230, 88, 0.32);
  }

  50% {
    filter: brightness(1.28);
    opacity: 1;
    box-shadow:
      inset 0 0 0 5px rgba(255, 255, 255, 0.22),
      0 16px 28px rgba(17, 25, 105, 0.34),
      0 0 28px rgba(255, 230, 88, 0.78);
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 14px 28px rgba(215, 44, 46, 0.3),
      0 0 0 0 rgba(255, 49, 69, 0.42);
  }

  50% {
    transform: scale(1.06);
    box-shadow:
      0 18px 34px rgba(215, 44, 46, 0.38),
      0 0 0 8px rgba(255, 49, 69, 0);
  }
}

@media (max-width: 360px) {
  .hero-art {
    height: 214px;
  }

  .portal {
    width: 148px;
    height: 148px;
  }

  .phone {
    width: 54px;
    height: 114px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .promo-card {
    padding: 13px;
  }

  .logo-stack {
    min-width: 68px;
  }

  .logo-stack .brand-icon {
    width: 78px;
    height: 54px;
  }

  .promo-card h2 {
    font-size: 19px;
  }
}
