/* SnatchGain 官网 — 全屏分屏游戏 GW */
:root {
  --ink: #08140e;
  --moss: #13261c;
  --gold: #e2b24a;
  --gold-deep: #b07a1c;
  --sand: #f4e6c2;
  --mist: rgba(244, 230, 194, 0.78);
  --line: rgba(226, 178, 74, 0.38);
  --display: "Cinzel", "Noto Serif SC", serif;
  --cn: "Noto Serif SC", "Songti SC", serif;
  --body: "Noto Sans SC", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "PingFang SC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--body);
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* —— 顶栏：Logo + 横条导航 —— */
.chrome {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 3vw, 40px) 0;
  pointer-events: none;
}

.chrome > * { pointer-events: auto; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.logo span {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.nav-bar {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  max-width: 720px;
  height: 46px;
  padding: 0 6px;
  background:
    linear-gradient(180deg, rgba(226, 178, 74, 0.22), rgba(8, 20, 14, 0.72)),
    var(--moss);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(244, 230, 194, 0.18), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.nav-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--cn);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.nav-tab.on,
.nav-tab:hover { color: var(--ink); }

.nav-cursor {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  background: linear-gradient(180deg, #f0c965, var(--gold-deep));
  box-shadow: 0 4px 12px rgba(176, 122, 28, 0.45);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s ease;
}

.chrome-side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(8, 20, 14, 0.55);
  overflow: hidden;
}

.lang-select-wrap {
  display: block;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 108px;
  height: 34px;
  padding: 0 28px 0 12px;
  border: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--sand) 50%) calc(100% - 14px) 14px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--sand) 50%, transparent 50%) calc(100% - 9px) 14px / 6px 6px no-repeat,
    transparent;
  color: var(--sand);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-select:focus {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
}

.lang-select option {
  color: #08140e;
  background: #f4e6c2;
}

body.is-rtl .lang-select {
  padding: 0 12px 0 28px;
  background:
    linear-gradient(45deg, transparent 50%, var(--sand) 50%) 14px 14px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--sand) 50%, transparent 50%) 9px 14px / 6px 6px no-repeat,
    transparent;
}

.age {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--sand);
  font-family: var(--display);
  font-size: 0.85rem;
  background: rgba(8, 20, 14, 0.55);
}

.apk-mini {
  display: none;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 1100px) {
  .apk-mini { display: inline-flex; }
}

/* —— 分屏舞台 —— */
.stage {
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.65, 0.05, 0.36, 1);
  will-change: transform;
}

.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.kv,
.page-bg {
  position: absolute;
  inset: 0;
}

.kv img,
.kv video,
.page-bg video,
.kv-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-bg {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 20, 14, 0.55), rgba(8, 20, 14, 0.72)),
    url("./assets/scene-run.jpg") center / cover;
}

.page-bg.has-video {
  background-image: linear-gradient(180deg, rgba(8, 20, 14, 0.55), rgba(8, 20, 14, 0.72));
}

.page-bg video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kv-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 14, 0.55) 0%, transparent 42%, rgba(8, 20, 14, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 20, 14, 0.25) 0%, transparent 28%, rgba(8, 20, 14, 0.45) 100%);
}

/* —— 首页 —— */
.home-copy {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 18vh;
  z-index: 3;
  max-width: 14em;
}

.wordmark {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.22em;
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.slogan {
  margin: 0 0 14px;
  font-family: var(--cn);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

.sub {
  margin: 0;
  max-width: 22em;
  color: var(--mist);
  font-size: 0.98rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.people-box {
  position: absolute;
  right: clamp(18px, 4.5vw, 56px);
  top: 26%;
  z-index: 4;
  text-align: center;
  transform: rotate(-9deg);
  pointer-events: none;
}

.people-num {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #fff6d4;
  text-shadow: 0 4px 0 var(--gold-deep), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.people-num .digit {
  display: inline-block;
  animation: digit-pop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.people-num .unit {
  margin-left: 4px;
  font-family: var(--cn);
  font-size: 0.42em;
  letter-spacing: 0.12em;
}

.people-label {
  margin: 8px 0 0;
  font-family: var(--cn);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: 0.28em;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

@keyframes digit-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.7); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-cta {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  top: 52%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-download {
  display: grid;
  place-items: center;
  min-width: 196px;
  height: 72px;
  padding: 0 28px;
  font-family: var(--cn);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #1a1204;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #f3cf72, var(--gold-deep));
  border: 1px solid #ffe9a8;
  box-shadow: 0 12px 28px rgba(176, 122, 28, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: breathe 1.6s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.05); filter: brightness(1.08); }
}

.cta-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--mist);
}

.page-next {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  transform: translateX(-50%);
  color: var(--mist);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  animation: bounce 1.8s ease-in-out infinite;
}

.page-next::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 6px auto 0;
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* —— 情报 —— */
.news-bg {
  background:
    linear-gradient(180deg, rgba(8, 20, 14, 0.55), rgba(8, 20, 14, 0.72)),
    url("./assets/scene-run.jpg") center / cover;
}

.page-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 110px clamp(18px, 4vw, 56px) 40px;
  display: flex;
  flex-direction: column;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading .en,
.play-copy .en {
  margin: 0 0 2px;
  font-family: var(--display);
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--gold);
}

.page-heading h2,
.play-copy h2,
.down-copy h2 {
  margin: 0;
  font-family: var(--cn);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
}

.news-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  min-height: 0;
}

.banner {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.banner-track {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.banner-slide.on { opacity: 1; }

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(8, 20, 14, 0.85));
  font-family: var(--cn);
}

.banner-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(244, 230, 194, 0.35);
}

.banner-dots button.on { background: var(--gold); }

.news-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(8, 20, 14, 0.55);
  border: 1px solid var(--line);
  padding: 18px 20px 8px;
}

.news-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.news-tabs button {
  padding: 8px 4px 10px;
  font-family: var(--cn);
  color: var(--mist);
}

.news-tabs button.on {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.news-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(226, 178, 74, 0.16);
}

.news-list time {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.9rem;
  padding-top: 4px;
}

.news-list strong {
  display: block;
  font-family: var(--cn);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.news-list p {
  margin: 0;
  color: var(--mist);
  font-size: 0.88rem;
}

/* —— 玩法分镜 —— */
.play-slides { position: absolute; inset: 0; }

.play-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 20, 14, 0.62) 0%, rgba(8, 20, 14, 0.18) 48%, rgba(8, 20, 14, 0.4) 100%),
    var(--bg) center / cover;
  transition: opacity 0.7s ease;
}

.play-slide.on {
  opacity: 1;
  pointer-events: auto;
}

.play-icon {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: min(28vw, 280px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.play-copy {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 18vh;
  max-width: 16em;
}

.play-copy p:last-child {
  margin: 10px 0 0;
  color: var(--mist);
}

.play-nav {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-thumbs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(8, 20, 14, 0.55);
  border: 1px solid var(--line);
}

.play-thumbs button,
.play-arrow {
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
  font-family: var(--cn);
  color: var(--mist);
}

.play-thumbs button.on {
  background: linear-gradient(180deg, #f0c965, var(--gold-deep));
  color: var(--ink);
}

.play-arrow {
  min-width: 36px;
  font-size: 1.4rem;
  border: 1px solid var(--line);
}

/* —— 下载 —— */
.down-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  padding: 22vh 24px 0;
}

.down-icon {
  width: 120px;
  height: 120px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.down-copy { flex: 1 1 240px; }
.down-copy p { margin: 8px 0 0; color: var(--mist); }

.down-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qr {
  width: 132px;
  height: 132px;
  background: var(--sand);
  padding: 8px;
}

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 16px 24px 22px;
  background: linear-gradient(transparent, rgba(8, 20, 14, 0.92));
  color: var(--mist);
  font-size: 12px;
  line-height: 1.7;
}

.foot p { margin: 0 0 4px; }
.copy { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  html, body { overflow: auto; height: auto; }
  .stage { transform: none !important; height: auto; }
  .page { height: auto; min-height: 100dvh; overflow: visible; }
  .chrome { padding: 10px 12px; gap: 10px; }
  .logo span { display: none; }
  .nav-bar { height: 40px; }
  .nav-tab { font-size: 0.82rem; letter-spacing: 0.08em; }
  .age, .apk-mini { display: none; }
  .page-home { padding-top: 88px; }
  .home-copy, .home-cta, .people-box {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    text-align: center;
    margin: 0 auto;
    padding: 8px 20px 12px;
    transform: none;
  }
  .home-cta { padding-bottom: 48px; }
  .news-layout { grid-template-columns: 1fr; }
  .banner { min-height: 220px; }
  .play-icon { width: 140px; right: 6%; bottom: 22%; }
  .play-copy { bottom: 18%; }
  .page { padding-bottom: 0; }
  .page-play { min-height: 100dvh; }
  .down-panel { padding-top: 110px; padding-bottom: 180px; }
  .foot { position: relative; }
}
