:root {
  --night: #061f1a;
  --forest: #0b392f;
  --jade: #0d755b;
  --mint: #bee9d7;
  --paper: #fffaf1;
  --mist: #edf4ed;
  --amber: #e8a64f;
  --coral: #ef7955;
  --ink: #102c24;
  --muted: #61716a;
  --line: rgba(16, 44, 36, .14);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--ink); background: var(--paper); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  background: rgba(5, 30, 24, .84);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
}

.nav-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand strong { display: block; font-size: 18px; line-height: 1; }
.brand small {
  display: block;
  margin-top: 5px;
  color: #ecc58e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.nav-links { display: flex; gap: 24px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 800; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.language-toggle {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.language-toggle button {
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.64);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-toggle button.is-active { color: var(--night); background: var(--paper); }

.button, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease;
}
.button:hover, .nav-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.nav-cta { min-height: 42px; padding: 0 18px; color: var(--night); background: var(--mint); font-size: 14px; }
.button { min-height: 56px; padding: 0 24px; font-size: 16px; }
.button-primary { color: var(--night); background: #f4c77c; box-shadow: 0 18px 42px rgba(232,166,79,.22); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); }

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 48px));
  padding: calc(98px + env(safe-area-inset-top)) max(24px, calc((100vw - 1180px) / 2)) 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--night) url("/spirit-art/app-bg.png") center 35% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,24,19,.97), rgba(3,24,19,.76) 48%, rgba(3,24,19,.08) 80%),
    linear-gradient(0deg, rgba(3,24,19,.92), transparent 58%);
}

.hero-copy { position: relative; z-index: 3; max-width: 660px; }
.eyebrow { margin: 0 0 18px; color: #f2c584; font-size: 13px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 76px;
  line-height: .94;
  letter-spacing: 0;
}
.hero-copy > p { max-width: 620px; margin: 24px 0 0; color: rgba(255,255,255,.76); font-size: clamp(17px, 1.9vw, 22px); line-height: 1.6; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; color: rgba(255,255,255,.58); font-size: 13px; font-weight: 750; }
.hero-notes span::before { content: "•"; margin-right: 8px; color: var(--amber); }

.hero-art {
  position: absolute;
  z-index: 1;
  right: max(26px, calc((100vw - 1260px) / 2));
  bottom: 48px;
  width: min(40vw, 500px);
  height: min(72vh, 680px);
  pointer-events: none;
}
.hero-card {
  position: absolute;
  width: 42%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.38);
}
.hero-card:nth-child(1) { right: 29%; top: 2%; transform: rotate(-7deg); }
.hero-card:nth-child(2) { right: 0; top: 20%; transform: rotate(7deg); }
.hero-card:nth-child(3) { right: 41%; top: 42%; transform: rotate(-2deg); }
.hero-badge {
  position: absolute;
  right: 0;
  bottom: 3%;
  padding: 13px 17px;
  border-radius: 999px;
  color: var(--night);
  background: rgba(255,250,241,.92);
  box-shadow: 0 24px 70px rgba(3,30,24,.24);
  font-size: 13px;
  font-weight: 900;
}

.section { padding: 104px 24px; }
.section-inner { width: min(1120px, 100%); margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-head h2 {
  max-width: 730px;
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 58px;
  line-height: 1.03;
}
.section-head p { max-width: 420px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; font-weight: 600; }

.collection { color: #fff; background: var(--forest); }
.collection .section-head p { color: rgba(255,255,255,.65); }
.card-ribbon { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card-ribbon figure { margin: 0; min-width: 0; }
.card-ribbon img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: 0 22px 50px rgba(0,0,0,.24);
}
.card-ribbon figure:nth-child(even) { transform: translateY(24px); }
.card-ribbon figcaption { padding: 13px 3px 0; color: rgba(255,255,255,.66); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }

.play-flow { background: var(--mist); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 30px 30px 12px 0; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step strong { display: block; color: var(--coral); font-size: 13px; letter-spacing: .16em; }
.step h3 { margin: 28px 0 12px; font-size: 26px; }
.step p { margin: 0; color: var(--muted); line-height: 1.65; font-weight: 600; }

.platforms { background: var(--paper); }
.store-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.store-card {
  min-height: 190px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.store-card.primary { color: #fff; border-color: transparent; background: var(--night); }
.store-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--night);
  background: #f0eee7;
  font-size: 18px;
  font-weight: 950;
}
.store-card.primary .store-mark { color: #fff; background: var(--jade); font-size: 22px; }
.store-card h3 { margin: 23px 0 6px; font-size: 22px; }
.store-card p { margin: 0; color: var(--muted); line-height: 1.5; font-weight: 600; }
.store-card.primary p { color: rgba(255,255,255,.62); }
.store-status { margin-top: 24px; color: var(--jade); font-size: 13px; font-weight: 900; }
.store-card.primary .store-status { color: #f2c584; }

.legal-band { padding: 44px 24px; color: rgba(255,255,255,.7); background: #0b3027; }
.legal-inner { width: min(1120px, 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.legal-inner strong { display: block; margin-bottom: 7px; color: #fff; font-size: 17px; }
.legal-inner p { max-width: 680px; margin: 0; font-size: 14px; line-height: 1.6; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.legal-links a { padding: 11px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 850; }

.site-footer { padding: 26px 24px calc(26px + env(safe-area-inset-bottom)); color: rgba(255,255,255,.54); background: var(--night); font-size: 13px; text-align: center; }
.site-footer a:hover { color: #fff; }

.legal-page { min-height: 100vh; background: var(--mist); }
.legal-topbar { color: #fff; background: var(--night); }
.legal-topbar-inner {
  width: min(900px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.legal-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 900; }
.legal-brand img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.legal-controls { display: flex; align-items: center; gap: 8px; }
.legal-controls a, .legal-controls button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.legal-controls button.is-active { color: var(--night); background: var(--paper); }
.legal-main { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.legal-title { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal-kicker { color: #bc6949; font-size: 12px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.legal-title h1 { margin: 12px 0 10px; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(42px, 7vw, 72px); line-height: 1; }
.legal-title p { margin: 0; color: var(--muted); font-weight: 700; }
.legal-copy { padding-top: 12px; }
.legal-copy section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal-copy h2 { margin: 0 0 11px; font-size: 21px; }
.legal-copy p, .legal-copy li { color: var(--muted); font-size: 16px; line-height: 1.78; }
.legal-copy ul { padding-left: 22px; }
.operator { margin-top: 32px; padding: 22px; border-left: 4px solid var(--jade); background: rgba(255,255,255,.7); }
[data-lang-panel] { display: none; }
[data-lang-panel].is-active { display: block; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { min-height: min(860px, calc(100svh - 36px)); align-items: flex-start; padding-top: calc(124px + env(safe-area-inset-top)); }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: 66px; max-width: 630px; }
  .hero-art { width: 520px; max-width: 82vw; height: 410px; right: -4vw; bottom: 30px; }
  .hero-card { width: 34%; }
  .hero-card:nth-child(1) { right: 45%; top: 1%; }
  .hero-card:nth-child(2) { right: 13%; top: 14%; }
  .hero-card:nth-child(3) { right: 55%; top: 42%; }
  .hero-badge { right: 12%; }
  .section { padding: 78px 22px; }
  .section-head { display: block; }
  .section-head p { margin-top: 20px; }
  .card-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-ribbon figure:nth-child(n+4) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step h3 { margin-top: 16px; }
  .store-grid { grid-template-columns: 1fr; }
  .store-card { min-height: 160px; }
  .legal-inner { display: block; }
  .legal-links { justify-content: flex-start; margin-top: 22px; }
}

@media (max-width: 560px) {
  .nav-inner { width: calc(100% - 24px); min-height: 66px; }
  .brand img { width: 39px; height: 39px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 9px; }
  .nav-cta { display: none; }
  .language-toggle button { min-width: 39px; min-height: 32px; padding: 0 9px; }
  .hero {
    min-height: min(790px, calc(100svh - 28px));
    padding-top: calc(102px + env(safe-area-inset-top));
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-art {
    width: 400px;
    max-width: 100vw;
    height: 160px;
    right: -5vw;
    bottom: 0;
  }
  .hero-card { width: 29%; }
  .hero-card:nth-child(1) { right: 58%; top: 0; }
  .hero-card:nth-child(2) { right: 4%; top: 6%; }
  .hero-card:nth-child(3) { right: 31%; top: 2%; }
  .hero-badge { right: 3%; bottom: 2px; }
  .hero-notes { display: none; }
  .section-head h2 { font-size: 39px; }
  .card-ribbon { gap: 9px; }
  .card-ribbon img { border-radius: 10px; }
  .card-ribbon figcaption { font-size: 9px; }
  .legal-brand span { display: none; }
  .legal-controls a { display: none; }
  .legal-main { padding-top: 44px; }
}

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