* {
  box-sizing: border-box;
}

html {
  background: #05040c;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fff6db;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(68, 35, 107, 0.45), transparent 34rem),
    linear-gradient(180deg, #080512 0%, #070511 100%);
}

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

button {
  border: 0;
  font: inherit;
}

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

.landing-page {
  position: relative;
  isolation: isolate;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 106px;
  overflow: hidden;
  background: #110c24;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

.top-bg {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 0;
  width: 100%;
  height: 956px;
  object-fit: cover;
  pointer-events: none;
}

.landing-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 760px 0 0;
  background: linear-gradient(180deg, rgba(17, 12, 36, 0), #0b0818 190px, #080611 100%);
  pointer-events: none;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 96px 100px 1fr;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 8px;
  background: rgba(17, 12, 36, 0.96);
  border-bottom: 1px solid rgba(246, 204, 137, 0.22);
  backdrop-filter: blur(12px);
}

.brand-logo {
  position: relative;
  display: block;
  width: 96px;
  height: 36px;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.22s ease;
}

.brand-logo-base {
  width: 96px;
  height: 36px;
}

.brand-domain-item {
  position: absolute;
  left: 33px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4250 0%, #fa2438 100%);
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.brand-domain-item.is-active {
  opacity: 1;
  transform: translateY(0);
  z-index: 3;
}

.brand-domain-item.is-prev {
  opacity: 0;
  transform: translateY(-3px);
  z-index: 2;
}

.brand-domain {
  display: block;
  width: 56px;
  height: auto;
  filter: brightness(0) invert(1);
}

.top-badge-rotator {
  position: relative;
  width: 100px;
  height: 38px;
  overflow: hidden;
}

.top-badge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateX(14px) scale(0.94);
  filter: blur(3px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.top-badge.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
  z-index: 2;
}

.top-badge.is-prev {
  opacity: 0;
  transform: translateX(-12px) scale(0.98);
  filter: blur(2px);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .brand-domain-item,
  .top-badge,
  .hero-slide {
    transition-duration: 0.01ms;
    filter: none;
    transform: none;
  }

  .brand-logo,
  .pill,
  .copy-button,
  .download-actions a {
    transition-duration: 0.01ms;
  }

  .brand-logo:hover,
  .pill:hover,
  .copy-button:hover,
  .download-actions a:hover {
    transform: none;
    filter: none;
    box-shadow: none;
  }
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pill {
  min-width: 62px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.pill-muted {
  background: rgba(255, 255, 255, 0.24);
}

.pill-hot {
  background: linear-gradient(180deg, #ff4250 0%, #fa2438 100%);
}

@media (hover: hover) {
  .brand-logo:hover {
    transform: scale(1.03);
    filter: brightness(1.08);
  }

  .pill-muted:hover {
    transform: translateY(-1px) scale(1.05);
    background: rgba(255, 255, 255, 0.36);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.14);
  }

  .pill-hot:hover {
    transform: translateY(-1px) scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(250, 36, 56, 0.45);
  }
}

.brand-logo:active,
.pill:active {
  transform: scale(0.98);
}

.hero {
  margin: 16px 10px 16px;
}

.hero-stack {
  width: 421px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #120a1f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  touch-action: pan-y;
}

.hero-carousel::before {
  content: "";
  display: block;
  padding-top: 54.6318%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(36px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.78s;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active,
.hero-slide.is-prev {
  visibility: visible;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 3;
}

.hero-slide.is-prev {
  opacity: 0;
  transform: translateX(-36px);
  z-index: 2;
}

.hero-banner {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 12px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease;
}

.hero-dot.is-active {
  width: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-bottom {
  display: block;
  width: 100%;
  aspect-ratio: 421 / 80;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.panel {
  position: relative;
  margin: 16px 10px 0;
  padding: 16px 10px 18px;
  border: 1px solid rgba(216, 155, 83, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(12, 22, 52, 0.92), rgba(13, 10, 28, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(39, 80, 132, 0.22), transparent 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 26px rgba(0, 0, 0, 0.22);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 22%, rgba(98, 146, 180, 0.18), transparent 52%);
  pointer-events: none;
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: 22px max-content 22px;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  padding-bottom: 14px;
  text-align: center;
}

.section-heading span {
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 186, 87, 0), #e1aa5e);
}

.section-heading span:last-of-type {
  transform: scaleX(-1);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #fff0be;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  text-shadow: 0 0 12px rgba(254, 213, 117, 0.35);
}

.section-heading p {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: rgba(255, 246, 219, 0.62);
  font-size: 14px;
  line-height: 18px;
}

.benefits {
  padding-bottom: 14px;
}

.benefit-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.benefit-card {
  min-height: 72px;
  padding: 13px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background:
    linear-gradient(105deg, rgba(36, 49, 75, 0.8), rgba(20, 19, 37, 0.78)),
    radial-gradient(circle at 15% 0%, rgba(255, 217, 128, 0.15), transparent 26%);
  box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.04);
}

.benefit-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.benefit-title b {
  min-width: 54px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #6a4219;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffe79d 0%, #d69638 100%);
}

.benefit-title strong {
  color: #fff1bc;
  font-size: 15px;
  line-height: 20px;
}

.benefit-card p {
  margin: 0;
  color: rgba(255, 246, 219, 0.86);
  font-size: 12px;
  line-height: 17px;
}

.category-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.category-grid img {
  width: 100%;
  aspect-ratio: 143 / 123;
  object-fit: cover;
  border-radius: 8px;
}

.games {
  padding-bottom: 16px;
}

.game-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 12px;
  row-gap: 18px;
  padding: 0 10px;
}

.game-card {
  min-width: 0;
  text-align: center;
}

.game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.game-card p {
  margin: 6px 0 0;
  color: rgba(255, 246, 219, 0.82);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.licenses {
  margin-bottom: 20px;
  padding-bottom: 22px;
}

.license-grid {
  position: relative;
  display: grid;
  text-align: center;
}

.license-grid-four {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 0;
}

.license-grid-three {
  grid-template-columns: repeat(3, 100px);
  justify-content: center;
  margin-top: 14px;
}

.license-grid article {
  min-width: 0;
}

.license-grid img {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.license-grid p {
  min-height: 34px;
  margin: 0;
  color: rgba(255, 246, 219, 0.78);
  font-size: 12px;
  line-height: 17px;
}

.bottom-bar {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 76px 1fr 92px;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  min-height: 88px;
  padding: 9px 11px;
  border-top: 1px solid rgba(255, 205, 145, 0.55);
  background:
    linear-gradient(180deg, rgba(30, 17, 38, 0.94), rgba(12, 8, 24, 0.98)),
    radial-gradient(circle at 12% 50%, rgba(255, 114, 77, 0.32), transparent 22%);
  transform: translateX(-50%);
  box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.contact-copy {
  min-width: 0;
}

.contact-copy strong {
  display: block;
  color: #ffe3b4;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
}

.contact-copy p {
  margin: 2px 0 1px;
  color: #fff5d8;
  font-size: 12px;
  line-height: 17px;
}

.contact-copy em {
  color: #ff5b42;
  font-style: normal;
  font-weight: 700;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff6db;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.copy-row b {
  color: #ff4d35;
}

.copy-button {
  min-width: 40px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #fff6db;
  border-radius: 999px;
  color: #fff6db;
  background: rgba(85, 76, 76, 0.12);
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

@media (hover: hover) {
  .copy-button:hover {
    transform: translateY(-1px) scale(1.06);
    background: rgba(255, 246, 219, 0.2);
    border-color: #ffe6a6;
    color: #ffe6a6;
    box-shadow: 0 4px 14px rgba(255, 230, 166, 0.22);
  }
}

.copy-button:active {
  transform: scale(0.96);
}

.download-actions {
  display: grid;
  gap: 6px;
}

.download-actions a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  background: #f79d60;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.22s ease,
    box-shadow 0.22s ease;
}

@media (hover: hover) {
  .download-actions a:hover {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.08);
    box-shadow: 0 8px 18px rgba(247, 157, 96, 0.4);
  }

  .download-actions .letter:hover {
    box-shadow: 0 8px 18px rgba(250, 44, 54, 0.45);
  }
}

.download-actions a:active {
  transform: scale(0.97);
}

.download-actions .letter {
  background: #fa2c36;
}

.toast {
  position: fixed;
  z-index: 40;
  bottom: 102px;
  left: 50%;
  min-width: 120px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #1c1005;
  font-size: 13px;
  text-align: center;
  background: #ffe6a6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.service-float {
  position: fixed;
  z-index: 35;
  right: max(10px, calc((100vw - 440px) / 2 + 10px));
  bottom: 98px;
  width: 88px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-float img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

@media (hover: hover) {
  .service-float:hover {
    transform: translateY(-2px) scale(1.04);
  }
}

.service-float:active {
  transform: scale(0.96);
}

@media (max-width: 380px) {
  .topbar {
    grid-template-columns: 86px 82px 1fr;
    gap: 8px;
  }

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

  .brand-logo-base {
    width: 86px;
    height: auto;
  }

  .brand-domain-item {
    left: 29px;
    top: 22px;
    padding: 2px 4px;
  }

  .brand-domain {
    width: 50px;
  }

  .top-badge-rotator {
    width: 82px;
    height: 32px;
  }

  .pill {
    min-width: 50px;
    height: 30px;
    font-size: 12px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 25px;
  }

  .game-grid {
    column-gap: 8px;
    padding: 0 6px;
  }

  .bottom-bar {
    grid-template-columns: 62px 1fr 82px;
    gap: 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .app-icon {
    width: 58px;
    height: 58px;
  }

  .contact-copy strong {
    font-size: 13px;
  }

  .contact-copy p,
  .copy-row,
  .download-actions a {
    font-size: 11px;
  }
}
