:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #10110f;
  color: #f1eee6;
}

* { box-sizing: border-box; }

html { background: #10110f; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 235, 188, .08), transparent 24rem),
    #10110f;
}

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

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

.landing {
  position: relative;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, transparent 0 45%, rgba(10, 10, 8, .13) 62%, rgba(9, 10, 8, .72) 100%),
    url("images/bg.png");
  background-size: 100% auto, 100% auto;
  background-position: center top;
  box-shadow: 0 0 70px rgba(0, 0, 0, .8);
}

.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .5);
}

.hero {
  position: relative;
  min-height: clamp(650px, 77vw, 1110px);
}

.game-logo {
  position: absolute;
  z-index: 3;
  top: clamp(22px, 3.1vw, 46px);
  left: clamp(14px, 3.8vw, 55px);
  width: clamp(150px, 21.6%, 309px);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .72));
}

.characters {
  position: absolute;
  z-index: 2;
  top: clamp(130px, 16vw, 230px);
  left: 50%;
  width: min(98.9%, 1282px);
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .7));
}

.download {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(20px, 2.8vw, 42px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  width: min(70%, 900px);
  transform: translateX(-50%);
}

.game-description {
  margin: 0 auto clamp(10px, 1.2vw, 18px);
  color: #f1ede2;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.75;
  text-align: justify;
  text-shadow: 0 2px 4px #000, 0 0 10px #000;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
}

.download-button {
  display: flex;
  align-items: center;
  width: 78%;
  transition: transform .18s ease, filter .18s ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-4px) scale(1.015);
  filter: brightness(1.08) drop-shadow(0 10px 12px rgba(0, 0, 0, .65));
  outline: none;
}

.download-button:active { transform: translateY(1px) scale(.99); }

.download-button img {
  animation: tap-pulse 2.6s ease-in-out infinite;
}

@keyframes tap-pulse {
  0%, 100% { filter: brightness(1) drop-shadow(0 4px 5px rgba(255, 157, 0, .18)); }
  50% { filter: brightness(1.09) drop-shadow(0 7px 13px rgba(255, 134, 0, .48)); }
}

.ember-canvas {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fraud-tip {
  position: fixed;
  z-index: 21;
  max-width: min(310px, 78vw);
  padding: 9px 15px;
  border: 1px solid rgba(255, 185, 61, .78);
  border-radius: 6px;
  color: #fff7e9;
  background: linear-gradient(135deg, rgba(44, 17, 8, .96), rgba(112, 25, 14, .94));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 0 12px rgba(255, 140, 45, .13);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .02em;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.72) rotate(-2deg);
  animation: fraud-pop 1.35s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes fraud-pop {
  0% { opacity: 0; transform: translate(-50%, -35%) scale(.65) rotate(-3deg); }
  16% { opacity: 1; transform: translate(-50%, -62%) scale(1.05) rotate(1deg); }
  72% { opacity: 1; transform: translate(-50%, -78%) scale(1) rotate(-1deg); }
  100% { opacity: 0; transform: translate(-50%, -115%) scale(.92) rotate(0); }
}

.qr-link {
  flex: 0 0 auto;
  width: 19.7%;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .65));
}

.features {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  padding: clamp(14px, 2vw, 29px) clamp(16px, 3.2vw, 46px) 0;
}

.feature-card {
  position: relative;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 22px) clamp(7px, 1vw, 14px) clamp(9px, 1vw, 14px);
  overflow: hidden;
  border: 2px solid rgba(127, 103, 65, .65);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(14, 14, 12, .87), rgba(9, 10, 8, .95));
  box-shadow: inset 0 0 18px rgba(217, 159, 60, .08), 0 8px 22px rgba(0, 0, 0, .45);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background: repeating-linear-gradient(168deg, transparent 0 13px, rgba(255,255,255,.09) 14px, transparent 15px);
}

.feature-copy {
  position: relative;
  z-index: 1;
  min-height: 3.2em;
  margin: 0 0 clamp(10px, 1.2vw, 18px);
  color: #eeeae0;
  font-size: clamp(13px, 1.75vw, 25px);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  letter-spacing: .02em;
  text-shadow: 2px 3px 0 #111, 0 0 5px #000;
}

.feature-copy span { color: #d63b2e; }

.feature-card > img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid rgba(167, 139, 94, .32);
  border-radius: 4px;
}

.finale {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  min-height: clamp(220px, 31vw, 450px);
  padding: clamp(50px, 7vw, 100px) 5% clamp(65px, 8vw, 115px);
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .5));
}

.finale img {
  width: min(88%, 1120px);
  height: fit-content;
  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, .8));
}

@media (max-width: 720px) {
  .landing {
    background-size: auto 46%, auto 46%;
    background-repeat: no-repeat, repeat-y;
  }

  .hero { min-height: calc(156vw + 130px); }
  .game-logo { top: 3.5vw; width: 32.4%; }
  .characters { top: 24vw; width: 125.35%; }
  .download { bottom: 4vw; width: 92%; gap: 0; }
  .game-description {
    width: 94%;
    margin-bottom: 4vw;
    font-size: clamp(13px, 3.35vw, 17px);
    line-height: 1.7;
  }
  .download-actions { gap: 2.4vw; }
  .download-button { width: 70.2%; }
  .qr-link { width: 23.64%; }
  .qr-link { border-width: 2px; }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3vw;
    padding: 4vw 4vw 0;
  }

  .feature-card { padding: 3vw 2vw 2vw; }
  .feature-copy { font-size: clamp(14px, 3.8vw, 22px); }
  .finale { min-height: 45vw; padding: 11vw 3% 14vw; }
  .finale img { width: 96%; }
}

/* 宽屏按 1024×1536 效果图的首屏比例收紧核心视觉，避免素材随屏幕无限放大。 */
@media (min-width: 721px) and (orientation: landscape) {
  .hero {
    min-height: clamp(650px, 61vw, 790px);
  }

  .characters {
    top: clamp(70px, calc(3vw + 60px), 105px);
    left: 31%;
    width: min(61.11%, 779px);
  }

  .download {
    top: 50%;
    right: clamp(50px, 8vw, 130px);
    bottom: auto;
    left: auto;
    flex-direction: column;
    align-items: center;
    width: min(30%, 430px);
    gap: clamp(14px, 1.5vw, 22px);
    transform: translateY(-50%);
  }

  .game-description {
    width: 100%;
    margin-bottom: clamp(8px, 1vw, 14px);
    font-size: clamp(14px, 1.15vw, 17px);
  }

  .download-actions {
    flex-direction: column;
    gap: clamp(12px, 1.2vw, 18px);
  }

  .download-button {
    width: 90%;
  }

  .qr-link {
    width: min(54.72%, 223px);
  }
}

@media (max-width: 390px) {
  .features { grid-template-columns: 1fr; padding-inline: 7vw; }
  .feature-copy { font-size: 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  .download-button { transition: none; }
  .download-button img { animation: none; }
  .ember-canvas { display: none; }
}
