/* ============================================================
   NXVRMORE — public site
   near-black canvas · single crimson accent · Geist Sans/Mono
   ============================================================ */

:root {
  --bg: #0b0b0b;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f0;
  --muted: #9b9b97;
  --dim: #6a6a66;
  --accent: #ff1a16;
  --accent-hover: #d8110d;
  --accent-soft: rgba(255, 26, 22, 0.12);
  --radius: 0.8rem;
  --pad: clamp(20px, 4vw, 56px);
  --font-sans: 'Geist', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.39, 0.575, 0.565, 1);
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- micro labels (mono, uppercase) ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

/* ---------- page transition (blur fade) ---------- */
#veil {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}
#veil.on { opacity: 0.6; backdrop-filter: blur(6px); pointer-events: all; }
body.entering main, body.entering .site-header { opacity: 0; }
main, .site-header, .site-footer {
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  height: 72px;
  background: rgba(11, 11, 11, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand img { height: 42px; width: auto; }
.brand .label { color: var(--dim); }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--text); }
.nav a .n { color: var(--accent); font-size: 10px; }

/* burger (mobile) */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s; }
.burger.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 720px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(11, 11, 11, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: all; }
  .nav a { font-size: 15px; padding: 10px 0; width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) clamp(48px, 8vh, 96px);
  position: relative;
  overflow: hidden;
  overflow: clip;
}
/* ---------- hero ambient animation (subtle corporate red) ---------- */
.hero-glow {
  position: absolute; inset: 0; overflow: hidden;
  overflow: clip; pointer-events: none; z-index: -1;
}
.hero-glow::before,
.hero-glow::after {
  content: ''; position: absolute; border-radius: 50%;
  will-change: transform;
}
.hero-glow::before {
  width: 55vmax; height: 55vmax; right: -14vmax; top: -18vmax;
  background: radial-gradient(circle, rgba(255, 26, 22, 0.075), transparent 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.hero-glow::after {
  width: 38vmax; height: 38vmax; left: -8vmax; bottom: -14vmax;
  background: radial-gradient(circle, rgba(255, 26, 22, 0.05), transparent 62%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-7vmax, 5vmax) scale(1.12); }
  100% { transform: translate(4vmax, 9vmax) scale(0.94); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, -4vmax) scale(1.08); }
  100% { transform: translate(-3vmax, -8vmax) scale(1.02); }
}

.hero-raven {
  position: absolute; right: calc(var(--pad) * -0.1); top: 50%;
  transform: translateY(-54%);
  width: clamp(300px, 42vw, 620px);
  opacity: 0.09;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero-raven { opacity: 0.06; right: -22%; width: 120vw; max-width: 520px; }
  .hero::before { background: radial-gradient(ellipse 90% 50% at 50% 40%, rgba(255, 26, 22, 0.07), transparent 70%); }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.22s ease;
}
.lightbox.on { opacity: 1; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox-figure {
  position: relative; margin: 0; max-width: min(92vw, 560px);
  transform: scale(0.96); transition: transform 0.28s var(--ease-out);
}
.lightbox.on .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  max-height: 86svh; max-width: 100%; width: auto; margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
}
.lightbox-figure figcaption {
  text-align: center; margin-top: 16px; color: var(--muted);
}
.lightbox-close {
  position: absolute; top: calc(20px + env(safe-area-inset-top)); right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--text); font-size: 16px; cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

/* featured game icon — mobile only */
.featured-icon {
  display: none;
  width: 64px; height: 64px; border-radius: 16px;
  border: 1px solid var(--line-strong);
  object-fit: cover; margin-bottom: 22px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7);
}
.hero .label { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 28px; max-width: 52ch;
  color: var(--muted); font-size: clamp(15px, 1.4vw, 18px);
}
.hero-stats {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: clamp(24px, 5vw, 72px); flex-wrap: wrap;
}
.stat .v { font-family: var(--font-mono); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.02em; }
.stat .k { margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 12vh, 128px) var(--pad); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(40px, 6vh, 72px);
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
}
.section-head .label { white-space: nowrap; }

/* ---------- featured game (full-bleed card) ---------- */
.featured {
  display: block; position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: clamp(460px, 64vh, 620px);
  isolation: isolate;
}
.featured-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(30px) brightness(0.5) saturate(1.15);
  transform: scale(1.18);
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.featured::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(78deg, rgba(11,11,11,0.9) 18%, rgba(11,11,11,0.55) 55%, rgba(11,11,11,0.2) 100%);
}
.featured:hover .featured-bg { transform: scale(1.1); filter: blur(24px) brightness(0.58) saturate(1.2); }
.featured-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 4.5vw, 56px);
}
.featured-tag { margin-bottom: 20px; }
.featured h3 {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.04;
  max-width: 16ch;
}
.featured p { margin-top: 16px; color: #d3d3d3; max-width: 56ch; font-size: 15px; }
.featured-meta { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* sharp screenshots floating on the right (desktop) */
.featured-shots {
  position: absolute; right: clamp(28px, 5vw, 80px); bottom: -46px;
  display: flex; gap: clamp(14px, 1.8vw, 24px);
  z-index: 0; pointer-events: none;
}
.featured-shots img {
  height: clamp(320px, 46vh, 460px); width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  transform: rotate(2.5deg);
  transition: transform 0.6s var(--ease-out);
}
.featured-shots img:first-child { transform: rotate(-3deg) translateY(14px); }
.featured:hover .featured-shots img { transform: rotate(0deg) translateY(-6px); }
.featured:hover .featured-shots img:first-child { transform: rotate(-1deg) translateY(6px); }
@media (max-width: 900px) { .featured-shots { display: none; } }

/* stretched link (whole card clickable; store buttons stay on top) */
.stretched { position: absolute; inset: 0; z-index: 2; }
.featured .store-btns, .featured .store-btn { position: relative; z-index: 3; }

/* ---------- store buttons ---------- */
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(11, 11, 11, 0.6);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.store-btn:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn .t { text-align: left; line-height: 1.15; }
.store-btn .t small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.store-btn .t b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); min-height: 44px;
}
.link-arrow .arr { transition: transform 0.16s ease; color: var(--accent); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- games grid (staggered) ---------- */
.games-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.games-grid > :nth-child(even) { transform: translateY(clamp(40px, 7vw, 110px)); }
.games-grid { padding-bottom: clamp(40px, 7vw, 110px); }

.game-card { display: block; }
.game-card-media {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--surface);
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.game-card-media .card-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(26px) brightness(0.42) saturate(1.15);
  transform: scale(1.2);
  transition: filter 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.game-card-media::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(65deg, rgba(11,11,11,0.88) 30%, rgba(11,11,11,0.35) 70%, rgba(11,11,11,0.15) 100%);
  transition: opacity 0.5s var(--ease-out);
}
.game-card-media .card-shot {
  position: absolute; right: clamp(14px, 2.4vw, 30px); bottom: -26px;
  height: 84%; width: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  transform: rotate(3.5deg);
  transition: transform 0.5s var(--ease-out);
}
.game-card-media .idx {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: rgba(242, 242, 240, 0.55);
}
.card-info {
  position: absolute; left: clamp(18px, 2.6vw, 30px); right: clamp(18px, 2.6vw, 30px); bottom: clamp(18px, 2.4vw, 28px);
  display: flex; align-items: center; gap: 16px;
}
.card-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 13px; border: 1px solid var(--line-strong);
  object-fit: cover; background: var(--surface);
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.7);
}
.card-text { min-width: 0; max-width: 62%; }
.card-text h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.01em; line-height: 1.15; }
.card-text .genre {
  margin-top: 6px; font-size: 13px; line-height: 1.4;
  color: rgba(211, 211, 211, 0.72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game-card:hover .game-card-media { transform: translateY(-3px); border-color: var(--line-strong); }
.game-card:hover .card-bg { filter: blur(20px) brightness(0.55) saturate(1.25); transform: scale(1.14); }
.game-card:hover .card-shot { transform: rotate(0deg) translateY(-8px); }

/* tablet: narrower columns need a text reserve so the floating shot never covers the title */
@media (min-width: 721px) and (max-width: 1100px) {
  .game-card-media { aspect-ratio: 16 / 10; }
  .game-card-media .card-shot { height: 72%; bottom: -18px; right: 12px; }
  .card-text { max-width: 54%; }
  .card-text h3 { font-size: 19px; }
  .featured { height: clamp(400px, 52vh, 500px); }
  .featured-icon { display: block; }
  .games-grid > :nth-child(even) { transform: translateY(clamp(28px, 5vw, 64px)); }
}

@media (max-width: 720px) {
  .game-card-media { aspect-ratio: 16 / 10.5; }
  .game-card-media .card-shot { height: 70%; bottom: -18px; }
  .card-info { gap: 12px; }
  .card-icon { width: 46px; height: 46px; border-radius: 12px; }
  .card-text { max-width: 52%; }
}

/* narrow phones: shrink the floating shot a bit more so titles always breathe */
@media (max-width: 380px) {
  .game-card-media .card-shot { height: 62%; right: 10px; }
  .card-text { max-width: 50%; }
}
.game-card h3 { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.game-card .idx { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }
.game-card .genre { margin-top: 6px; }

@media (max-width: 720px) {
  .games-grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .games-grid > :nth-child(even) { transform: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .featured-icon { display: block; }
}

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line); padding-top: clamp(40px, 6vh, 72px);
}
.about-grid h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
}
.about-text { color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); white-space: pre-line; }
.about-links { margin-top: 40px; display: flex; flex-direction: column; }
.about-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; min-height: 44px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.about-links a:last-child { border-bottom: 1px solid var(--line); }
.about-links a:hover { color: var(--accent); padding-left: 8px; }
.about-links a .arr { color: var(--dim); transition: transform 0.16s ease, color 0.16s ease; }
.about-links a:hover .arr { transform: translateX(4px); color: var(--accent); }

@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 7vh, 72px) var(--pad) calc(32px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.site-footer img { height: 44px; width: auto; opacity: 0.95; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-meta a:hover { color: var(--accent); }

/* ---------- game detail ---------- */
.game-hero {
  padding: calc(72px + clamp(48px, 9vh, 96px)) var(--pad) clamp(40px, 6vh, 64px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: end;
}
.game-icon {
  width: clamp(96px, 12vw, 144px); height: auto; aspect-ratio: 1;
  border-radius: 22%; border: 1px solid var(--line);
  object-fit: cover; background: var(--surface);
}
.game-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.03;
  margin-top: 14px;
}
.game-hero .tagline { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.game-hero .crumb { display: flex; gap: 10px; align-items: center; }
.game-hero .crumb a:hover { color: var(--accent); }
.game-actions { margin-top: 28px; }

/* screenshot drag gallery */
.gallery {
  display: flex; gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 8px var(--pad) 24px;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-behavior: auto; }
.gallery figure {
  flex: none; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery img { height: clamp(340px, 52vh, 480px); width: auto; user-select: none; -webkit-user-drag: none; }
.gallery-hint { padding: 0 var(--pad); }

/* meta grid */
.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
  margin: 0 var(--pad);
}
.meta-cell { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.meta-cell .v { font-family: var(--font-mono); font-size: 15px; margin-top: 8px; word-break: break-word; }
.meta-cell .v .star { color: var(--accent); }

/* description */
.game-desc {
  padding: clamp(48px, 8vh, 80px) var(--pad);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px);
}
.game-desc .body { color: #d3d3d3; white-space: pre-line; font-size: 15.5px; max-width: 72ch; }
@media (max-width: 720px) {
  .game-hero { grid-template-columns: 1fr; align-items: start; }
  .game-desc { grid-template-columns: 1fr; }
}

/* next game */
.next-game {
  display: block; border-top: 1px solid var(--line);
  padding: clamp(48px, 9vh, 96px) var(--pad);
  transition: background 0.2s ease;
}
.next-game:hover { background: var(--surface); }
.next-game h3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; margin-top: 12px; }
.next-game:hover h3 { color: var(--accent); }

/* ---------- legal pages ---------- */
.legal-hero { padding: clamp(140px, 20vh, 200px) var(--pad) clamp(32px, 5vh, 56px); }
.legal-hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin-top: 22px; }
.legal-updated { margin-top: 18px; color: var(--muted); }
.legal-doc {
  max-width: 76ch; padding: 0 var(--pad) clamp(72px, 10vh, 120px);
  color: #d3d3d3; font-size: 15.5px; line-height: 1.75;
}
.legal-doc h2 {
  font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); margin: clamp(36px, 6vh, 56px) 0 14px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 16.5px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .16s ease; }
.legal-doc a:hover { border-color: var(--accent); }
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-game {
  border-top: 1px solid var(--line); padding: 18px 0;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.legal-game h3 { margin: 0; flex: none; min-width: 200px; }
.legal-game p { margin: 0; font-size: 14px; color: var(--muted); }
.legal-game .arr { color: var(--accent); }
.legal-link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color .16s ease, border-color .16s ease; }
.legal-link:hover { color: var(--accent); border-color: var(--accent); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; }
.footer-legal a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); transition: color .16s ease;
}
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .footer-meta { align-items: flex-start; }
  .footer-legal { justify-content: flex-start; }
  .legal-game h3 { min-width: 0; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- empty state ---------- */
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: clamp(48px, 8vh, 96px); text-align: center; color: var(--muted);
}
.empty .label { display: block; margin-bottom: 12px; color: var(--dim); }

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