/* Mist Tower — lore landing & privacy pages */

:root {
  --bg-deep: #12100c;
  --bg-mid: #171711;
  --bg-elevated: #1e1c16;
  --text-primary: #c4b48a;
  --text-body: #b8aa8e;
  --text-muted: #6e6654;
  --text-subtle: #8a7e62;
  --accent: #8a7a50;
  --accent-dim: rgba(138, 122, 80, 0.35);
  --border: rgba(196, 180, 138, 0.12);
  --font-display: "Cinzel", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  --max-width: 1080px;
  --section-pad: clamp(3rem, 8vw, 5.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #e8dcc0;
}

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

/* ── Nav ── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(18, 16, 12, 0.92) 0%, rgba(18, 16, 12, 0) 100%);
  pointer-events: none;
}

.site-nav > * {
  pointer-events: auto;
}

.site-nav__brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  font-size: 0.88rem;
}

.site-nav__links a {
  color: var(--text-subtle);
  text-decoration: none;
}

.site-nav__links a:hover {
  color: var(--text-primary);
}

.site-nav__more {
  position: relative;
}

.site-nav__more-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--text-subtle);
  cursor: pointer;
  letter-spacing: inherit;
}

.site-nav__more-btn:hover,
.site-nav__more-btn[aria-expanded="true"] {
  color: var(--text-primary);
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 10.5rem;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 120;
}

.site-nav__dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text-subtle);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__dropdown a:hover {
  color: var(--text-primary);
  background: rgba(196, 180, 138, 0.06);
}

.download-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.download-meta strong {
  color: var(--text-subtle);
  font-weight: 500;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 12, 0.35) 0%, rgba(18, 16, 12, 0.75) 55%, var(--bg-deep) 100%),
    url("images/bg_surface.png") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__bg--wide {
  background:
    linear-gradient(180deg, rgba(18, 16, 12, 0.4) 0%, rgba(18, 16, 12, 0.8) 60%, var(--bg-deep) 100%),
    url("images/hero_mist_wide.png") center / cover no-repeat,
    url("images/bg_surface.png") center / cover no-repeat;
}

.hero__mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 70%, rgba(154, 144, 128, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 30% at 20% 50%, rgba(106, 100, 88, 0.12), transparent 50%);
  animation: mistPulse 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  animation: fadeUp 1.1s ease-out both;
}

.hero__emblem {
  width: clamp(120px, 22vw, 180px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
  animation: emblemFloat 4s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.hero__en {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.45em;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-body);
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  background: #2a2820;
  border-color: var(--accent-dim);
  color: #e8dcc0;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(180deg, #3a3630 0%, #2a2820 100%);
  border-color: rgba(196, 180, 138, 0.28);
}

.btn--ghost {
  background: transparent;
}

.btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* ── Sections ── */

.section {
  padding: var(--section-pad) clamp(1.25rem, 5vw, 2rem);
}

.section--alt {
  background: var(--bg-mid);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--text-primary);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.section__lead {
  max-width: 38rem;
  color: var(--text-body);
  margin-bottom: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Layers grid ── */

.layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.layer {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elevated);
}

.layer__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  image-rendering: pixelated;
  opacity: 0.92;
}

.layer__body {
  padding: 1rem 1.1rem 1.2rem;
}

.layer__name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.layer__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Journey ── */

.journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.journey__item {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.journey__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
}

.journey__caption {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.journey__caption strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
}

/* ── Version ── */

.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.version-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.5rem 1.35rem;
}

.version-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.version-card ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.version-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.55rem;
}

.version-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.version-card--next li::before {
  content: "○";
  font-size: 0.7rem;
  top: 0.15rem;
}

/* ── Studio ── */

.studio {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.studio__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.studio__dev {
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.studio__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  font-size: 0.92rem;
}

/* ── Play strip ── */

.play-strip {
  text-align: center;
  padding: var(--section-pad) clamp(1.25rem, 5vw, 2rem);
  border-top: 1px solid var(--border);
}

.play-strip__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.play-strip .download-meta {
  margin-top: 1.1rem;
}

/* ── Footer ── */

.site-footer {
  padding: 2rem clamp(1.25rem, 5vw, 2rem) 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p + p {
  margin-top: 0.5rem;
}

.site-footer a {
  color: var(--text-subtle);
}

/* ── Privacy page ── */

.page-header {
  padding: 6rem clamp(1.25rem, 5vw, 2rem) 2rem;
  max-width: 42rem;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-header .meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.privacy-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) 4rem;
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.privacy-content p,
.privacy-content ul {
  margin-bottom: 0.85rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

.privacy-content ul {
  padding-left: 1.25rem;
}

.privacy-content li {
  margin-bottom: 0.55rem;
}

.privacy-content li span[lang] {
  display: inline;
}

.privacy-block + .privacy-block {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.legal-id {
  margin: 1.25rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.92rem;
}

.legal-id dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.legal-id dt:first-child {
  margin-top: 0;
}

.legal-id dd {
  margin: 0.25rem 0 0;
  color: var(--text-body);
  line-height: 1.55;
}

.addr-zh,
.addr-block {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Animations ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes emblemFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translateX(-1%);
  }
  to {
    transform: scale(1.08) translateX(1%);
  }
}

@keyframes mistPulse {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .site-nav__links {
    font-size: 0.8rem;
    gap: 0.4rem 0.9rem;
  }

  .hero__title {
    letter-spacing: 0.18em;
  }
}
