/* Abyse. Night blue, soft corners, one typeface. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050a1c;
  --surface: #0b1636;
  --surface-2: #0f1d45;
  --border: rgba(157, 181, 255, 0.11);
  --border-2: rgba(157, 181, 255, 0.2);
  --text: #e9eeff;
  --text-2: #a3b0d6;
  --text-3: #8290ba;
  --accent: #9db5ff;
  --live: #5ee0a1;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --nav-h: 72px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

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

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.022em; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
.lead { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 36em; }
.sub { margin: 10px 0 0; color: var(--text-2); font-size: 17px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; background: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-soft { background: rgba(157, 181, 255, 0.08); border-color: var(--border); color: var(--text); }
.btn-soft:hover { background: rgba(157, 181, 255, 0.14); border-color: var(--border-2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--text);
  transition: color .2s ease;
}
.link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.link:hover { color: var(--accent); }
.link:hover svg { transform: translate(1px, -1px); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(5, 10, 28, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; }
.brand svg { width: 34px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(157, 181, 255, 0.07); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(157, 181, 255, 0.06);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { display: block; position: relative; width: 16px; height: 1.5px; border-radius: 2px; background: var(--text); transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; border-radius: 2px; background: var(--text);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
    padding: 24px var(--gutter) 40px; background: var(--bg);
    flex-direction: column; gap: 24px; overflow-y: auto;
  }
  .nav.is-open + .mobile-menu { display: flex; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu li a { display: block; padding: 14px 16px; border-radius: var(--r-sm); font-size: 20px; font-weight: 600; }
  .mobile-menu li a:hover { background: rgba(157, 181, 255, 0.07); }
  .mobile-menu .btn { width: 100%; }
}

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(64px, 11vh, 128px)) 0 clamp(72px, 9vw, 112px);
}
.hero-glow {
  position: absolute; z-index: -1; right: -12%; top: -20%;
  width: 70%; height: 130%;
  background: radial-gradient(closest-side, rgba(52, 86, 210, 0.28), rgba(5, 10, 28, 0));
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-mark {
  position: absolute; z-index: -1; right: var(--gutter); top: 50%;
  width: min(30vw, 400px); transform: translateY(-58%);
  filter: drop-shadow(0 0 60px rgba(157, 181, 255, 0.22));
}
.hero .h1 span { color: var(--accent); }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.stats { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 64px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: clamp(28px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { margin-top: 4px; font-size: 14.5px; color: var(--text-3); }

@media (max-width: 900px) {
  .hero-mark { width: 78vw; right: -26vw; top: 90px; transform: none; opacity: 0.16; }
  .hero-glow { width: 120%; right: -50%; }
}
@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
  .stats { gap: 20px 32px; }
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 6.5vw, 88px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .25s ease, background-color .25s ease;
}

/* ---------- games ---------- */

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game { overflow: hidden; display: flex; flex-direction: column; }
.game:hover { border-color: var(--border-2); }
.game-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1230; }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.game:hover .game-media img { transform: scale(1.04); }
.game-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.game-body p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.game-body .meta { font-size: 14px; color: var(--text-3); }
.game-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(157, 181, 255, 0.08); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(94, 224, 161, 0.18); }
@media (max-width: 800px) { .games { grid-template-columns: 1fr; } }

/* ---------- what we do ---------- */

.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cap { padding: 26px 24px 28px; }
.cap:hover { border-color: var(--border-2); }
.cap-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 14px;
  background: rgba(157, 181, 255, 0.1); color: var(--accent);
}
.cap-icon svg { width: 22px; height: 22px; }
.cap p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
@media (max-width: 1000px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* ---------- work with us ---------- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px; }
.offer .small { font-weight: 600; color: var(--accent); }
.offer p { margin: 0 0 12px; color: var(--text-2); max-width: 30em; }
.offer .btn { margin-top: auto; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .offer { padding: 28px 24px; } }


/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 72px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-grid .sub a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 4px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 22px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .h3 { font-size: 17px; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 6.25px; left: 0; width: 14px; height: 1.5px; border-radius: 2px;
  background: var(--text-2); transition: transform .25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-body { padding: 0 22px 22px; }
.faq-body p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.faq-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- closing ---------- */

.closing {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 96px) 24px; text-align: center;
}
.closing .mark-bg { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(70%, 520px); transform: translate(-50%, -48%); opacity: 0.06; }
.closing .h2 { font-size: clamp(32px, 4.2vw, 52px); }
.closing .lead { margin: 16px auto 0; }
.closing .actions { justify-content: center; margin-top: 32px; }

/* ---------- footer ---------- */

.footer { padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .brand svg { width: 36px; }
.footer p { margin: 16px 0 0; max-width: 24em; color: var(--text-2); font-size: 15px; }
.footer h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer li a { font-size: 14.5px; color: var(--text-2); transition: color .2s; }
.footer li a:hover { color: var(--text); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-3);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a, .footer-legal button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 14px; color: var(--text-3); transition: color .2s;
}
.footer-legal a:hover, .footer-legal button:hover, .footer-legal a[aria-current="page"] { color: var(--text); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- address (server IP) ---------- */

.address {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
}
.address code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14.5px; color: var(--text); }
.address code span { color: var(--text-3); }

/* ---------- inner pages ---------- */

.page { padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(72px, 9vw, 112px); }
.page-title { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.028em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-2); }
.crumbs a:hover { color: var(--text); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px 72px; align-items: start; }
.contact-intro .lead { margin-top: 20px; }
.reasons { display: flex; flex-direction: column; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.reasons li { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.reasons strong { display: block; font-weight: 650; }
.reasons span { display: block; margin-top: 2px; font-size: 15px; color: var(--text-2); }
.direct { margin-top: 28px; font-size: 15px; color: var(--text-2); }
.direct a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 4px; }

.form-card { padding: clamp(24px, 3.5vw, 40px); }
.form-card form { display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg);
  font-size: 14.5px; font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice label:hover { color: var(--text); border-color: var(--text-3); }
.choice input:checked + label { background: var(--text); border-color: var(--text); color: var(--bg); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--bg);
  font-size: 16px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238290BA' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #66749f; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(157, 181, 255, 0.15); }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: #ff8a8a; }
.field .err { font-size: 13.5px; color: #ffa3a3; }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { max-width: 30em; font-size: 13.5px; color: var(--text-3); }
.form-foot small a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status[data-kind="error"] { color: #ffa3a3; }
.form-card .btn[disabled] { opacity: 0.6; cursor: progress; }
.sent { display: none; padding: 12px 0; }
.sent .check {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%;
  background: rgba(157, 181, 255, 0.12); color: var(--accent);
}
.sent .check svg { width: 24px; height: 24px; }
.sent p { margin: 12px 0 28px; max-width: 30em; color: var(--text-2); }
.form-card.is-sent form { display: none; }
.form-card.is-sent .sent { display: block; }
.js [data-show-for] { display: none; }
.js [data-show-for].is-visible { display: flex; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ---------- case study ---------- */

.case-head { max-width: 760px; }
.case-head .lead { margin-top: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.case-media { margin: 40px 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 8; background: #0a1230; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.case-stats li { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.case-stats strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.case-stats span { font-size: 14px; color: var(--text-3); }
.case-text { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 72px; }
.case-text p { margin: 0 0 16px; color: var(--text-2); font-size: 17px; }
.case-text p:last-child { margin-bottom: 0; }
.built { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.built .card { padding: 24px; }
.built p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
.play { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; }
.play .address { flex: 0 1 420px; }
@media (max-width: 900px) {
  .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-text { grid-template-columns: 1fr; }
  .built { grid-template-columns: 1fr; }
  .case-media { aspect-ratio: 16 / 10; }
}

/* ---------- legal ---------- */

.legal-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px 80px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: var(--r-sm); font-size: 15px; color: var(--text-2); transition: color .2s, background-color .2s; }
.legal-nav a:hover { color: var(--text); background: rgba(157, 181, 255, 0.06); }
.legal-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.legal-body { max-width: 740px; }
.legal-body > .lead { margin-top: 18px; }
.legal-meta { display: block; margin-top: 14px; font-size: 14px; color: var(--text-3); }
.legal-section { margin-top: 44px; }
.legal-section h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.02em; }
.legal-section p, .legal-section li { color: var(--text-2); font-size: 16px; }
.legal-section p { margin: 0 0 12px; }
.legal-section ul { margin: 0 0 12px; padding-left: 20px; }
.legal-section li { margin-bottom: 6px; }
.legal-section li::marker { color: var(--text-3); }
.legal-section a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-section code { font-size: 14px; }
.rows { margin: 0 0 12px; padding: 6px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.rows div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.rows div + div { border-top: 1px solid var(--border); }
.rows dt { font-size: 14.5px; color: var(--text-3); }
.rows dd { margin: 0; font-size: 15.5px; color: var(--text); }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-nav a { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }
}
@media (max-width: 560px) { .rows div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 404 ---------- */

.lost { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.lost .lead { margin-top: 18px; }

/* ---------- consent banner ---------- */

.consent {
  position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 60;
  max-width: 480px; margin-left: auto; padding: 20px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; margin-top: 16px; }
.consent-actions .btn { flex: 1; }

/* ---------- reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .game-media img, .btn svg, .link svg { transition: none; }
}
