/* Gunshot Survivors VR - shared styles */

:root {
  --bg: #0b0d12;
  --bg-2: #10131b;
  --surface: #161a24;
  --surface-2: #1c2130;
  --border: #272d3c;
  --text: #e8ecf4;
  --muted: #99a3b8;
  --accent: #2fd6ff;
  --accent-2: #ff7a2f;
  --brand-green: #4dfb6b;
  --on-accent: #04121a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --radius: 14px;
  --maxw: 1060px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f3f9;
    --border: #dde2ec;
    --text: #131721;
    --muted: #5a6379;
    --accent: #0a7ea4;
    --accent-2: #c2410c;
    --brand-green: #0f7a33;
    --on-accent: #ffffff;
    --shadow: 0 10px 30px rgba(20, 30, 50, .10);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

/* ---------- language switching ----------
   Default (no JS): English visible, Japanese hidden.
   lang.js sets html[data-lang] to flip it.
   Note: never put data-l on a flex/grid container - `revert` would drop its display. */
[data-l="ja"] { display: none; }
html[data-lang="ja"] [data-l="en"] { display: none; }
html[data-lang="ja"] [data-l="ja"] { display: revert; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand-mark em {
  font-style: normal;
  color: var(--brand-green);
}

/* keep the header name on one line on narrow phones */
@media (max-width: 430px) {
  .brand-mark { font-size: 12.5px; letter-spacing: .02em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #05070c url("../img/hero.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, rgba(5, 7, 12, .78) 60%, rgba(5, 7, 12, .95) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
  color: #f2f6ff;
}

.hero-logo {
  width: min(520px, 100%);
  margin: 0 auto 8px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6));
}

.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: .01em;
}

.hero .tagline {
  font-size: clamp(15px, 2.2vw, 19px);
  color: #cfd8ea;
  margin: 0 auto 28px;
  max-width: 40em;
}

.hero .meta-line {
  font-size: 13px;
  color: #9fb0c8;
  margin-top: 22px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn-primary:hover { color: var(--on-accent); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .28);
  color: #eaf1ff;
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.btn-disabled {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .16);
  color: #9aa6bd;
  cursor: default;
  pointer-events: none;
}

/* ---------- sections ---------- */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: 0; }
.section-alt { background: var(--bg-2); }

.section h2 {
  font-size: clamp(21px, 3vw, 27px);
  margin: 0 0 8px;
  letter-spacing: .01em;
}

.section .lead { color: var(--muted); margin: 0 0 28px; max-width: 62em; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--accent);
}

.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* screenshots */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shots img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }

/* spec list */
.spec {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.spec > dt,
.spec > dd {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.spec > dt { font-weight: 700; background: var(--surface-2); }
.spec > dd { color: var(--muted); }
.spec > dt:nth-last-of-type(1),
.spec > dd:nth-last-of-type(1) { border-bottom: 0; }

@media (max-width: 620px) {
  .spec { grid-template-columns: 1fr; }
  .spec > dt { border-bottom: 0; padding-bottom: 4px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- legal document ---------- */
.doc { padding: 44px 0 64px; }
.doc h1 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }

.doc h2 {
  font-size: 19px;
  margin: 40px 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.doc h3 { font-size: 16px; margin: 24px 0 6px; color: var(--accent); }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.35em; }
.doc li { margin-bottom: 6px; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--muted);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.toc ol { margin: 8px 0 0; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
}

/* key art image inside a two-column section */
.art {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* looping clips reused from the Steam store page */
.clip {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1170 / 488;
  margin-top: 22px;
  background: #05070c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
