/* ==========================================================================
   水浒谁虎：梁山108将 — official site
   Ink, gold and vermilion. Mobile-first, no external dependencies.
   ========================================================================== */

:root {
  --ink: #080a0e;
  --ink-1: #0b0e13;
  --ink-2: #0f1319;
  --panel: #12161d;
  --panel-2: #161b23;
  --gold: #c9a35c;
  --gold-bright: #ecd19a;
  --gold-deep: #8c6a32;
  --gold-soft: #b99254;
  --red: #9c322a;
  --red-bright: #c2473a;
  --paper: #efe7d7;
  --paper-dim: #d9cfba;
  --muted: #a49a88;
  --muted-2: #7f7769;
  --line: rgba(201, 163, 92, 0.22);
  --line-soft: rgba(201, 163, 92, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 82px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 8px;
  --font: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
}

html[lang="zh-TW"] { --font: "Songti TC", "PMingLiU", "Noto Serif CJK TC", serif; }
html[lang="ja"] { --font: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif; }
html[lang="ko"] { --font: "AppleMyungjo", "Batang", "Nanum Myeongjo", "Noto Serif CJK KR", serif; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-dim);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(201, 163, 92, 0.32); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 10px;
  z-index: 10000;
  background: var(--gold);
  color: #14100a;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 10px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 0.65em;
  transform: rotate(45deg) translateY(-1px);
  background: var(--gold);
  opacity: 0.8;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.78), rgba(8, 10, 14, 0));
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 10, 14, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header.is-scrolled::before { opacity: 0; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: linear-gradient(155deg, #b23b30, #7c241d);
  border: 1px solid rgba(236, 209, 154, 0.55);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.35);
  color: #f4e6c8;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
}
.brand-text small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.main-nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-gold {
  background: linear-gradient(180deg, #b93b30, #8d261f);
  border-color: rgba(236, 209, 154, 0.55);
  color: #f8ecd2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #cc473a, #9e2a22);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}
.header-cta { min-height: 42px; padding: 0 20px; }

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--paper-dim);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu[open] summary { border-color: var(--gold); color: var(--gold-bright); }
.lang-menu summary .globe { color: var(--gold); font-size: 15px; line-height: 1; }
.lang-menu summary i {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  opacity: 0.7;
}
.lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 7px;
  background: rgba(13, 16, 22, 0.98);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 2px;
  z-index: 120;
}
.lang-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--paper-dim);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-list a:hover { background: rgba(201, 163, 92, 0.1); color: var(--gold-bright); }
.lang-list a[aria-current="page"] { color: var(--gold-bright); background: rgba(201, 163, 92, 0.08); }
.lang-list a, .mobile-langs a { font-family: var(--font); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  padding: 18px var(--gutter) 34px;
  background: rgba(8, 10, 14, 0.985);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-nav { display: grid; gap: 2px; }
.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 16px;
  letter-spacing: 0.06em;
}
.mobile-nav a:hover { color: var(--gold-bright); }
.mobile-langs { margin-top: 22px; }
.mobile-langs p {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.mobile-langs a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px;
}
.mobile-langs a[aria-current="page"] { border-color: var(--gold); color: var(--gold-bright); }
.mobile-download { display: flex; width: 100%; margin-top: 24px; min-height: 50px; font-size: 15px; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  z-index: -2;
}
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  opacity: 0.92;
  filter: saturate(0.92) contrast(1.02);
  -webkit-mask-image: linear-gradient(to left, #000 58%, transparent 100%);
  mask-image: linear-gradient(to left, #000 58%, transparent 100%);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 8% 45%, rgba(8, 10, 14, 0.96) 0%, rgba(8, 10, 14, 0.72) 38%, rgba(8, 10, 14, 0) 68%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.08) 36%, rgba(8, 10, 14, 0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-top: clamp(20px, 5vw, 60px);
  padding-bottom: clamp(90px, 12vh, 150px);
}
.hero-copy { max-width: 660px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
.eyebrow-rule { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.hero h1 {
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.hero-name {
  font-size: clamp(64px, 8.6vw, 132px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.98;
  background: linear-gradient(178deg, #f7ebcb 4%, #e2c184 36%, #c9a35c 64%, #97743a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 28px rgba(201, 163, 92, 0.16));
  padding-bottom: 0.08em;
}
html[lang="ko"] .hero-name { letter-spacing: 0.02em; }
html[lang="ja"] .hero-name { letter-spacing: 0.1em; }
.hero-sub {
  margin-top: 18px;
  font-size: clamp(20px, 2.2vw, 31px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero-lead {
  max-width: 580px;
  margin-top: 26px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
  color: var(--muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.hero .store-row { margin-top: 34px; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin-top: 30px;
  font-size: 13px;
  color: var(--paper-dim);
}
.hero-chips > span:not(.age-chip) {
  padding: 0 14px;
  border-right: 1px solid var(--line);
}
.hero-chips > span:first-child { padding-left: 0; }
.age-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 16px;
  padding: 4px 10px !important;
  border: 1px solid rgba(194, 71, 58, 0.55) !important;
  border-radius: 3px;
  color: var(--paper-dim);
}
.age-chip b { color: #e58274; font-size: 14px; letter-spacing: 0.04em; }
.age-chip small { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 163, 92, 0.35);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.text-link:hover { color: var(--gold-bright); border-color: var(--gold-bright); gap: 12px; }

.hero-seal {
  position: absolute;
  right: clamp(10px, 2.4vw, 38px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(239, 231, 215, 0.62);
  padding: 22px 8px;
  border-top: 1px solid rgba(236, 209, 154, 0.34);
  border-bottom: 1px solid rgba(236, 209, 154, 0.34);
}
.hero-seal::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  z-index: 3;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 20% { transform: scaleY(0.15); opacity: 0.2; }
  55% { transform: scaleY(1); opacity: 0.85; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ------------------------------------------------------------------ stores */

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 8px 18px;
  background: rgba(10, 12, 16, 0.55);
  border: 1px solid rgba(201, 163, 92, 0.42);
  border-radius: 7px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.store-badge:hover {
  border-color: var(--gold-bright);
  background: rgba(201, 163, 92, 0.12);
  transform: translateY(-2px);
}
.store-icon { width: 25px; height: 25px; color: var(--paper); flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.12; }
.store-text small { font-size: 9px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.store-text b { font-size: 18px; font-weight: 600; color: var(--paper); letter-spacing: 0.02em; }
.store-badge--lg { min-height: 68px; padding: 10px 24px; }
.store-badge--lg .store-icon { width: 32px; height: 32px; }
.store-badge--lg .store-text small { font-size: 10px; }
.store-badge--lg .store-text b { font-size: 23px; }

/* -------------------------------------------------------------- stat band */

.stat-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(80% 160% at 50% 0%, rgba(201, 163, 92, 0.07), transparent 65%),
    var(--ink-1);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(34px, 5vw, 58px);
}
.stat {
  padding: 6px clamp(14px, 3vw, 38px);
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
  display: block;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--paper);
  letter-spacing: 0.08em;
}
.stat-note { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- sections */

.section { position: relative; padding-block: clamp(76px, 9.5vw, 142px); }
section[id] { scroll-margin-top: var(--header-h); }

.section-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 64px); }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.kicker-en { color: var(--gold-soft); font-size: 10px; letter-spacing: 0.3em; }
.kicker-line { width: 34px; height: 1px; background: rgba(201, 163, 92, 0.45); }
.section h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.9vw, 52px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-wrap: balance;
}
.section-lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.95;
  color: var(--muted);
}
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 6vw, 90px);
  align-items: end;
}
.section-head--split .section-lead { margin-top: 0; padding-bottom: 8px; }

/* ---------------------------------------------------------------- features */

.features { overflow: hidden; }
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 78px);
}
.feature-row + .feature-row { border-top: 1px solid rgba(201, 163, 92, 0.09); }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 18px;
  isolation: isolate;
}
.feature-media::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 92, 0.13), transparent 68%);
  filter: blur(10px);
  z-index: -1;
}
.feature-num {
  position: absolute;
  top: 0;
  right: 2%;
  font-size: clamp(110px, 14vw, 200px);
  line-height: 0.8;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 163, 92, 0.13);
  letter-spacing: -0.04em;
  z-index: -1;
  user-select: none;
}
.feature-copy { max-width: 520px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.tag::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.7; }
.feature-copy h3 {
  margin-top: 16px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-wrap: balance;
}
.feature-copy > p {
  margin-top: 18px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 2;
  color: var(--muted);
}
.points { margin-top: 26px; display: grid; gap: 11px; }
.points li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: rgba(201, 163, 92, 0.16);
}

/* ------------------------------------------------------------------ phone */

.phone {
  position: relative;
  width: min(300px, 82vw);
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(155deg, #3a3124 0%, #12151a 24%, #090b0e 55%, #262019 100%);
  border: 1px solid rgba(201, 163, 92, 0.38);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.phone::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 38px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.phone img {
  width: 100%;
  aspect-ratio: 585 / 1266;
  object-fit: cover;
  border-radius: 34px;
}
.phone-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 7px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 3;
}
.phone--small { width: min(240px, 40vw); border-radius: 34px; padding: 7px; }
.phone--small img { border-radius: 28px; }
.phone--small .phone-notch { top: 13px; height: 5px; }
.phone--small figcaption {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ----------------------------------------------------------- hero gallery */

.heroes-section {
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(201, 163, 92, 0.06), transparent 70%),
    var(--ink-1);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.marquee-wrap {
  margin-top: clamp(20px, 4vw, 44px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 90s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  padding-right: clamp(14px, 1.8vw, 22px);
  flex: none;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.hero-card {
  position: relative;
  width: clamp(156px, 15vw, 196px);
  flex: none;
  border: 1px solid rgba(201, 163, 92, 0.25);
  border-radius: 7px;
  overflow: hidden;
  background: #0c0f14;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.hero-card > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.94) contrast(1.02);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.28), transparent);
  pointer-events: none;
}
.hero-rarity {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f5e7ca;
  padding: 2px 7px;
  border: 1px solid rgba(236, 209, 154, 0.45);
  background: rgba(8, 10, 14, 0.65);
  border-radius: 2px;
}
.hero-card figcaption {
  position: relative;
  padding: 10px 12px 13px;
  background: linear-gradient(180deg, rgba(12, 15, 20, 0.94), #0a0c10);
  border-top: 1px solid rgba(201, 163, 92, 0.16);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hero-star { font-size: 9px; letter-spacing: 0.16em; color: var(--gold-soft); }
.hero-card strong {
  margin-top: 3px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.hero-title {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marquee-note { margin-top: 28px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted-2); }

/* ------------------------------------------------------------------- world */

.world {
  position: relative;
  padding-block: clamp(90px, 12vw, 170px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.world-bg { position: absolute; inset: 0; z-index: 0; }
.world-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.34;
  filter: saturate(0.82) brightness(0.9);
}
.world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(90% 90% at 15% 30%, rgba(8, 10, 14, 0.88), rgba(8, 10, 14, 0.35) 60%, transparent 90%),
    linear-gradient(180deg, var(--ink) 0%, rgba(8, 10, 14, 0.18) 25%, rgba(8, 10, 14, 0.35) 75%, var(--ink) 100%);
}
.world-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.world-copy h2 { margin-top: 18px; font-size: clamp(30px, 4vw, 52px); line-height: 1.3; color: var(--paper); letter-spacing: 0.03em; text-wrap: balance; }
.world-copy .section-lead { max-width: 560px; }
.blockquote, blockquote {
  margin-top: 38px;
  padding: 4px 0 4px clamp(18px, 2.4vw, 30px);
  border-left: 1px solid rgba(201, 163, 92, 0.5);
}
blockquote p {
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 2;
  letter-spacing: 0.07em;
  color: var(--paper);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}
.world-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  padding-top: 40px;
}
.world-phones .phone--small:first-child { transform: rotate(-4deg); }
.world-phones .phone--small:last-child { transform: translateY(46px) rotate(4deg); }

/* ----------------------------------------------------------------- systems */

.systems {
  background: var(--ink-1);
  border-bottom: 1px solid var(--line-soft);
}
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.system-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  min-height: 214px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease);
  overflow: hidden;
}
.system-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.system-card:hover {
  border-color: rgba(201, 163, 92, 0.5);
  background: linear-gradient(160deg, rgba(201, 163, 92, 0.08), rgba(255, 255, 255, 0));
  transform: translateY(-3px);
}
.system-card:hover::after { opacity: 1; }
.system-icon { display: block; width: 38px; height: 38px; color: var(--gold); }
.system-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.system-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.system-card h3 {
  margin-top: 22px;
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--paper);
}
.system-card p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--muted); }

/* ------------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.about .section-head { margin-bottom: 0; }
.about h2 { font-size: clamp(25px, 2.5vw, 36px); text-wrap: balance; }
.definition {
  margin-top: 22px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 2.05;
  color: var(--muted);
}
.facts { border-top: 1px solid var(--line-soft); }
.facts > div {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt { font-size: 12px; letter-spacing: 0.14em; color: var(--gold-soft); white-space: nowrap; }
.facts dd { font-size: 14px; line-height: 1.75; color: var(--paper-dim); }

/* ---------------------------------------------------------------- download */

.download { padding-block: clamp(60px, 8vw, 110px); }
.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(30px, 5vw, 64px);
  padding: clamp(28px, 5vw, 66px);
  background:
    radial-gradient(90% 120% at 88% 12%, rgba(201, 163, 92, 0.13), transparent 55%),
    linear-gradient(150deg, #151a22 0%, #0d1117 42%, #0a0d12 100%);
  border: 1px solid rgba(201, 163, 92, 0.34);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.download-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 163, 92, 0.1);
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 46px;
  height: 46px;
  background: url("../img/ui-corner-ornament.webp") center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.corner--tl { top: 6px; left: 6px; }
.corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.corner--br { bottom: 6px; right: 6px; transform: scale(-1); }
.download-copy { position: relative; z-index: 2; align-self: center; }
.download-copy h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.28;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.download-copy .section-lead { max-width: 480px; }
.stores-heading {
  margin-top: 34px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
}
.download .store-row { margin-top: 12px; }
.platforms { margin-top: 28px; border-top: 1px solid var(--line-soft); max-width: 480px; }
.platforms > div {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.platforms dt { color: var(--gold-soft); letter-spacing: 0.1em; }
.platforms dd { color: var(--paper-dim); }
.download-note { margin-top: 18px; font-size: 11px; color: var(--muted-2); letter-spacing: 0.03em; }
.download-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.poster {
  position: relative;
  width: min(300px, 64vw);
  border: 1px solid rgba(201, 163, 92, 0.42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}
.poster::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(236, 209, 154, 0.16);
  pointer-events: none;
}
.poster img { width: 100%; aspect-ratio: 700 / 1244; object-fit: cover; }
.age-badge {
  position: absolute;
  left: max(0px, calc(50% - min(150px, 32vw) - 26px));
  bottom: 6%;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 84px;
  padding: 10px 4px 9px;
  background: rgba(8, 10, 14, 0.82);
  border: 1px solid rgba(194, 71, 58, 0.62);
  backdrop-filter: blur(6px);
}
.age-badge b { font-size: 24px; line-height: 1; color: #e58274; letter-spacing: 0.02em; }
.age-badge span { font-size: 9px; letter-spacing: 0.1em; color: var(--paper-dim); }
.age-badge small { font-size: 8px; line-height: 1.35; text-align: center; color: var(--muted-2); }

/* --------------------------------------------------------------------- faq */

.faq { padding-top: clamp(60px, 8vw, 100px); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 28px); }
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 4px;
  cursor: pointer;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item summary i {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border: 1px solid rgba(201, 163, 92, 0.5);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity 0.3s var(--ease); }
.faq-item[open] summary { color: var(--gold-bright); }
.faq-item[open] summary i { transform: rotate(90deg); border-color: var(--gold); }
.faq-item[open] summary i::after { opacity: 0; }
.faq-answer { overflow: hidden; }
.faq-answer p {
  padding: 0 40px 24px 4px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: #06070a;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(46px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding-bottom: clamp(36px, 5vw, 58px);
}
.footer-brand { max-width: 400px; }
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-name { font-size: 19px; letter-spacing: 0.08em; color: var(--paper); }
.footer-tagline { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: 0.05em; }
.footer-age {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted-2);
}
.footer-age b {
  font-size: 12px;
  color: #e58274;
  border: 1px solid rgba(194, 71, 58, 0.55);
  padding: 1px 6px;
  border-radius: 2px;
}
.footer-col h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-col a[aria-current="page"] { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.footer-bottom a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ error */

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(201, 163, 92, 0.12), transparent 70%),
    var(--ink);
}
.error-box { max-width: 560px; text-align: center; }
.error-box .brand-mark { margin: 0 auto 24px; }
.error-box .kicker { justify-content: center; }
.error-box h1 { margin-top: 20px; font-size: clamp(30px, 5vw, 46px); color: var(--paper); letter-spacing: 0.04em; }
.error-box > p { margin-top: 14px; color: var(--muted); }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0; }
.error-links a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--paper-dim);
}
.error-links a:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ------------------------------------------------------------- animations */

.js .reveal { opacity: 1; transform: none; }
.js .reveal.is-in { animation: reveal-enter 0.85s var(--ease) both; }
@keyframes reveal-enter {
  from { transform: translateY(26px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
}

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 1120px) {
  :root { --header-h: 72px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero-art { width: 72%; }
  .hero-copy { max-width: 600px; }
  .hero-seal { display: none; }
}

@media (max-width: 960px) {
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .feature-media { padding-block: 6px; }
  .feature-copy { max-width: 620px; }
  .world-grid { grid-template-columns: 1fr; gap: 52px; }
  .world-phones { justify-content: flex-start; padding-left: 4px; }
  .world-phones .phone--small { width: min(220px, 38vw); }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .download-panel { grid-template-columns: 1fr; }
  .download-visual { margin-top: 10px; }
  .faq-grid { grid-template-columns: 1fr; gap: 26px; }
  .faq .section-head { position: static; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero-art { width: 150%; left: -32%; right: auto; height: 74%; opacity: 0.85; }
  .hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img {
    object-position: center 20%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 10, 14, 0.22) 0%, rgba(8, 10, 14, 0.72) 38%, rgba(8, 10, 14, 0.97) 66%, var(--ink) 100%),
      radial-gradient(90% 60% at 50% 100%, rgba(8, 10, 14, 0.72), transparent 60%);
  }
  .hero-inner {
    min-height: auto;
    align-items: flex-end;
    padding-top: 46vh;
    padding-bottom: 92px;
  }
  .hero-copy { max-width: none; }
  .hero-name { font-size: clamp(58px, 16vw, 92px); }
  .hero-sub { font-size: clamp(18px, 4.6vw, 24px); margin-top: 14px; }
  .hero-lead { margin-top: 20px; font-size: 15px; line-height: 1.95; }
  .hero .store-row { margin-top: 26px; }
  .hero-chips { margin-top: 22px; font-size: 12px; }
  .hero-chips > span:not(.age-chip) { padding: 0 10px; }
  .age-chip { margin-left: 10px; }
  .text-link { margin-top: 22px; }
  .scroll-cue { display: none; }

  .stat-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .stat { padding-left: 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  .section-head--split { grid-template-columns: 1fr; gap: 16px; }
  .section-head--split .section-lead { padding-bottom: 0; }

  .system-grid { grid-template-columns: 1fr 1fr; }
  .system-card { min-height: 190px; padding: 24px; }

  .world-phones { gap: 10px; }
  .world-phones .phone--small { width: min(190px, 42vw); }
  .world-phones .phone--small:last-child { transform: translateY(26px) rotate(4deg); }
  .phone--small figcaption { bottom: -28px; font-size: 10px; letter-spacing: 0.08em; white-space: normal; width: 160px; text-align: center; }

  .download-panel { padding: 32px 20px 40px; }
  .download-copy h2 { font-size: clamp(30px, 8vw, 40px); }
  .download .store-badge { flex: 1 1 100%; }
  .age-badge { left: 50%; transform: translateX(calc(-50% - min(150px, 32vw) - 14px)); bottom: 8%; }

  .faq-item summary { padding: 18px 2px; }
  .faq-answer p { padding-right: 22px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child a { display: inline-block; margin-right: 14px; }
}

@media (max-width: 540px) {
  .brand-text small { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 16px; }
  .brand-text b { font-size: 17px; }
  .header-actions { gap: 8px; }
  .lang-menu summary { padding: 0 10px; }
  .lang-menu summary .globe { display: none; }

  .hero-inner { padding-top: 42vh; }
  .hero .store-row { display: grid; grid-template-columns: 1fr 1fr; }
  .store-badge { min-height: 54px; padding: 7px 10px; gap: 8px; }
  .store-icon { width: 21px; height: 21px; }
  .store-text b { font-size: 16px; }
  .store-text small { font-size: 8px; }

  .hero-chips { gap: 8px 0; }
  .hero-chips > span:not(.age-chip) { border-right: 0; padding: 0 12px 0 0; }
  .age-chip { margin-left: 0; }

  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 0; }

  .world-phones { justify-content: center; }
  .world-phones .phone--small { width: min(180px, 43vw); }

  .download .store-row { display: grid; grid-template-columns: 1fr; }
  .download-visual { flex-direction: column; }
  .download-visual .poster { width: min(300px, 72vw); }
  .age-badge { position: static; transform: none; margin-top: 16px; width: auto; grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; padding: 8px 18px; }
  .age-badge small { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 380px) {
  .hero-name { font-size: 54px; }
  .hero-sub { font-size: 17px; }
  .stat-value { font-size: 40px; }
  .tag { letter-spacing: 0.14em; }
}

/* Legal documents share the site's ink, gold and self-hosted serif fonts. */
.footer-legal, .footer-legal nav, .legal-header, .legal-header nav,
.legal-actions, .legal-footer { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.footer-legal { padding-bottom: 24px; justify-content: space-between; }
.footer-legal a, .legal-page a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-legal a { min-height: 44px; display: inline-flex; align-items: center; }
.legal-header { padding-block: 24px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.legal-header a, .legal-actions a { padding-block: 10px; }
.legal-wrap { width: min(100% - 40px, 880px); margin-inline: auto; }
.legal-page main { padding-block: 48px; }
.legal-page h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.4; color: var(--paper); }
.legal-meta { color: var(--muted); margin-block: 18px; }
.legal-actions { margin-bottom: 28px; }
.legal-actions button { font: inherit; color: var(--gold-bright); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-height: 44px; padding: 8px 20px; cursor: pointer; }
.legal-notice { border-left: 3px solid var(--gold); background: var(--panel); padding: 20px 24px; margin-block: 28px; }
.legal-notice strong { color: var(--gold-bright); }
.legal-notice p { margin-top: 8px; }
.legal-page h2 { font-size: 22px; color: var(--paper); line-height: 1.5; margin-bottom: 18px; }
.legal-toc { padding: 24px; border: 1px solid var(--line); margin-block: 32px; }
.legal-toc ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.legal-toc a { display: block; padding-block: 8px; }
.legal-page article section { margin-block: 40px; scroll-margin-top: 24px; }
.legal-page article p { margin-block: 16px; overflow-wrap: anywhere; line-height: 1.95; }
.legal-footer { padding-block: 24px; border-top: 1px solid var(--line); justify-content: space-between; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.legal-page :focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 5px; }
@media (max-width: 600px) { .legal-toc ol { grid-template-columns: 1fr; } .legal-header { align-items: flex-start; } }
@media print {
  .legal-header, .legal-actions, .legal-toc, .legal-footer, .skip-link { display: none !important; }
  .legal-page, .legal-page h1, .legal-page h2, .legal-page a, .legal-meta, .legal-notice strong { background: white; color: black; }
  .legal-page::before { display: none; }
  .legal-wrap { width: 100%; }
  .legal-page main { padding: 0; }
  .legal-notice { background: white; border-color: black; }
  .legal-page h2 { break-after: avoid; }
  .legal-page p { orphans: 3; widows: 3; }
}
/* Language links use locally installed fonts for each script. */
a[lang="ko"] { font-family: "AppleMyungjo", "Batang", "Nanum Myeongjo", serif; }
a[lang="ja"] { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
a[lang="zh-CN"] { font-family: "Songti SC", "STSong", "SimSun", serif; }
a[lang="zh-TW"] { font-family: "Songti TC", "PMingLiU", serif; }
