/* Kavun Games — site styles */
:root {
  --bg: #0a0614;
  --bg-2: #110a22;
  --surface: #160f2b;
  --surface-2: #1d1538;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f1ff;
  --muted: #a9a2c9;
  --dim: #7a7399;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --green: #34d399;
  --pink: #f472b6;
  --accent: var(--violet);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.prose a, .answer a, .legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Background decor ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 85% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(50vw 40vw at -10% 30%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  opacity: 0.5;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 6, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 6, 20, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand img { display: block; height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links .nav-cta a { color: var(--text); background: linear-gradient(135deg, var(--violet), #6d3df0); margin-left: 6px; }
.nav-links .nav-cta a:hover { filter: brightness(1.1); background: linear-gradient(135deg, var(--violet), #6d3df0); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s, background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(10, 6, 20, 0.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav-links .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; transition: transform 0.15s, filter 0.15s, background 0.15s, border-color 0.15s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--violet), #6d3df0); color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.btn svg { width: 18px; height: 18px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badges a { display: inline-block; border-radius: 10px; transition: transform 0.15s, filter 0.15s; }
.store-badges a:hover { transform: translateY(-2px); filter: brightness(1.15); }
.store-badges img { height: 48px; width: auto; }
.store-badges.sm img { height: 40px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.chip-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.gradient-text {
  background: linear-gradient(100deg, #c4b5fd 0%, var(--violet) 35%, var(--cyan) 70%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 112px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); line-height: 1.02; margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--green), var(--amber), var(--pink), var(--violet));
  filter: blur(60px); opacity: 0.45;
}
.hero-art a {
  position: absolute; width: 44%; border-radius: 24%; overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  animation: float 7s ease-in-out infinite;
}
.hero-art a:hover { transform: scale(1.05) rotate(0deg) !important; }
.hero-art a:nth-child(1) { top: 2%; left: 6%; transform: rotate(-8deg); }
.hero-art a:nth-child(2) { top: 8%; right: 2%; transform: rotate(7deg); animation-delay: -2s; }
.hero-art a:nth-child(3) { bottom: 4%; left: 2%; transform: rotate(6deg); animation-delay: -4s; }
.hero-art a:nth-child(4) { bottom: 0; right: 8%; transform: rotate(-6deg); animation-delay: -1s; }
@keyframes float { 50% { translate: 0 -10px; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; order: -1; }
}

/* ---------- Game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .games-grid { grid-template-columns: 1fr; } }

.game-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.game-card::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -25%; top: -45%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
  opacity: 0.55; transition: opacity 0.25s;
}
.game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.game-card:hover::before { opacity: 0.9; }
.game-card-top { display: flex; gap: 18px; align-items: center; }
.game-card-top img { width: 88px; height: 88px; border-radius: 22px; flex: none; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8); }
.game-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.game-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.game-card .tagline { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.game-card p.desc { color: var(--muted); }
.game-card .card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.game-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.game-card .more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.game-card .more:hover { color: var(--accent); }
.game-card:hover .more svg { transform: translateX(3px); }

/* ---------- Feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; }
.tile {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.tile-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.12rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-grid .prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose strong { color: var(--text); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Contact / CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(135deg, #2a1764 0%, #1a1240 50%, #0f2a3d 100%);
  border: 1px solid var(--line-strong); text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.25), transparent); pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta p { color: #cfc8ef; max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.socials a:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }
.socials svg { width: 18px; height: 18px; }
.cta .socials { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; background: rgba(0, 0, 0, 0.2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-family: var(--font); font-weight: 600; }
.footer-grid nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul a { color: var(--muted); transition: color 0.15s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-about p { color: var(--muted); margin: 14px 0 20px; max-width: 360px; font-size: 0.95rem; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 0.88rem; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 28px; font-size: 0.88rem; color: var(--dim); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--muted); }

/* ---------- Game page ---------- */
.game-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); position: relative; }
.game-hero::before {
  content: ""; position: absolute; z-index: -1; inset: -120px 0 0;
  background: radial-gradient(50% 60% at 20% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.game-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 44px); align-items: center; }
.game-hero-icon { width: clamp(120px, 18vw, 180px); border-radius: 24%; box-shadow: 0 30px 70px -24px color-mix(in srgb, var(--accent) 70%, #000), 0 0 0 1px rgba(255,255,255,.1); }
.game-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 12px 0 10px; }
.game-hero .subtitle { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--muted); margin-bottom: 24px; max-width: 640px; }
.game-hero .chips { margin-bottom: 4px; }
@media (max-width: 640px) {
  .game-hero-grid { grid-template-columns: 1fr; }
  .game-hero-icon { width: 112px; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 0; }
.facts div { background: var(--surface); padding: 18px 20px; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }
.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts dd a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px;
  margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
  list-style: none;
}
.shots li { flex: none; scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.shots.portrait img { width: clamp(200px, 26vw, 260px); aspect-ratio: 9 / 16; object-fit: cover; }
.shots.tall img { width: clamp(190px, 24vw, 240px); aspect-ratio: 374 / 810; object-fit: cover; }
.shots.landscape img { width: clamp(300px, 46vw, 520px); aspect-ratio: 16 / 9; object-fit: cover; }

.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 18px; color: var(--text); }
.prose p + p { margin-top: 16px; }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 18px 18px 64px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 0.95rem;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
}
.steps strong { color: var(--text); display: block; margin-bottom: 2px; }
.side-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-card h3 { font-size: 1.15rem; margin-bottom: 16px; }

.mini-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; }
.mini-games li { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.mini-games h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mini-games p { color: var(--muted); font-size: 0.93rem; }

.more-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.more-games a {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s;
}
.more-games a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.more-games img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.more-games strong { display: block; font-family: var(--font-display); }
.more-games span { color: var(--dim); font-size: 0.88rem; }
@media (max-width: 860px) { .more-games { grid-template-columns: 1fr; } }

/* ---------- Legal / simple pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 0 40px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li p { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal h4 { font-size: 1rem; margin: 22px 0 8px; color: var(--text); }
.legal .date, .legal .meta, .legal-game { color: var(--dim); font-size: 0.95rem; }
.legal-game { margin-bottom: 28px !important; }
.legal-game a + a { margin-left: 10px; }
.legal .summary { border-left: 3px solid var(--cyan); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 20px; }
.legal .summary ul { margin-bottom: 0; }
.legal-index li { margin-bottom: 10px; }
.legal code { font-size: 0.9em; }

.not-found { text-align: center; padding: clamp(80px, 16vw, 160px) 0; }
.not-found .big { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; margin-bottom: 12px; }
.not-found p { color: var(--muted); margin: 0 auto 28px; max-width: 440px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
