/* Taptur Games — tapturgames.com
   One stylesheet for every page. Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations"), url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0b0b0d;
  --bg-2: #101013;
  --surface: #151519;
  --surface-2: #1c1c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f3;
  --muted: #a6a6b0;
  --faint: #83838d;
  --accent: #ff6b2c;
  --accent-hi: #ff8a55;
  --accent-soft: rgba(255, 107, 44, 0.12);
  --on-accent: #120a06;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 600px) { :root { --gutter: 16px; --radius: 14px; } }

/* --- Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); 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; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* --- Type ----------------------------------------------------------------- */

.display, .title, .h3, .prose h2 { font-family: var(--display); font-stretch: 112%; color: var(--text); }
.display {
  margin: 0;
  font-weight: 800;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 { margin: 0 0 8px; font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.005em; font-stretch: 106%; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 620px; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font: 600 13px/1.2 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.accent { color: var(--accent); }

/* --- Buttons and chips ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--body); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); font: 500 13px/1 var(--body);
  white-space: nowrap;
}
.chip--accent { border-color: rgba(255, 107, 44, 0.35); background: var(--accent-soft); color: var(--accent-hi); }
.chip--accent::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--accent-hi); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 800 15px/1 var(--display); font-stretch: 118%; letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 14px; border-radius: 999px;
  color: var(--muted); font: 500 15px/1 var(--body); text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: 0.06em; text-decoration: none;
}
.lang-switch svg { width: 15px; height: 15px; }
.lang-switch:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

.menu-btn {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .close { display: none; }
.menu-open .menu-btn .open { display: none; }
.menu-open .menu-btn .close { display: block; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-header .container { gap: 12px; }
  .nav-wrap {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    display: none; flex-direction: column; gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .menu-open .nav-wrap { display: flex; }
  .menu-open { overflow: hidden; }
  /* backdrop-filter would make the header the box the fixed menu is placed in */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav a {
    padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
    font: 700 26px/1.1 var(--display); font-stretch: 110%; color: var(--text);
  }
  .nav a:hover { background: none; color: var(--accent-hi); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-hi); }
  .header-actions { justify-content: space-between; }
  .header-actions .btn { flex: 1; }
}
@media (min-width: 861px) {
  .nav-wrap { display: flex; align-items: center; gap: 20px; margin-left: auto; }
}

/* --- Sections ------------------------------------------------------------- */

.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin: 18px 0 0; }
@media (max-width: 700px) { .section-head { flex-direction: column; align-items: flex-start; gap: 18px; } .section-head .lead { margin: 0; } }

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

.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.6;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -120px; top: -80px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.22), rgba(255, 107, 44, 0) 62%);
  pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 48px;
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px);
}
.hero .lead { margin: 28px 0 36px; }
.hero__mark { justify-self: end; width: min(100%, 420px); }
.hero__mark img { width: 100%; filter: drop-shadow(0 20px 60px rgba(255, 107, 44, 0.18)); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero__mark { order: -1; justify-self: start; width: 120px; margin-bottom: 20px; }
  .hero::after { width: 480px; height: 480px; right: auto; left: -140px; top: -160px; }
}

/* --- Game cards ----------------------------------------------------------- */

.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.games--single { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 960px) { .games, .games--single { grid-template-columns: 1fr; } }

.game-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 520px; padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none; color: var(--text);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.game-card:hover { border-color: var(--line-2); }
.game-card__art {
  position: absolute; z-index: -2; top: 0; right: 0; bottom: 0;
  width: 72%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform 0.6s var(--ease);
}
.game-card:hover .game-card__art { transform: scale(1.035); }
.game-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--surface) 28%, rgba(21, 21, 25, 0.86) 48%, rgba(21, 21, 25, 0.1) 78%),
    linear-gradient(0deg, rgba(21, 21, 25, 0.9) 0%, rgba(21, 21, 25, 0) 45%);
}
.game-card__body { max-width: 380px; }
.game-card__logo { width: min(100%, 300px); margin: 22px 0 18px; }
.game-card__body p { color: var(--muted); margin: 0 0 26px; }
.game-card .chips { margin-bottom: 4px; }
@media (max-width: 960px) {
  .game-card { min-height: 0; padding: 0; justify-content: flex-start; }
  .game-card::before { display: none; }
  .game-card__art { position: relative; z-index: 0; width: 100%; height: auto; aspect-ratio: 16 / 10; object-position: 50% 28%; border-bottom: 1px solid var(--line); }
  .game-card__body { max-width: none; padding: 24px 24px 28px; }
  .game-card__logo { width: min(100%, 240px); margin: 20px 0 14px; }
}

.soon-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 520px; padding: clamp(24px, 3.4vw, 40px);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 107, 44, 0.08), transparent 55%),
    var(--bg-2);
}
.soon-card img { width: 72px; opacity: 0.35; }
.soon-card p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .soon-card { min-height: 0; } }

/* --- Studio --------------------------------------------------------------- */

.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.studio .lead { margin-top: 24px; }
.principles { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); color: var(--accent); font: 700 15px/1.6 var(--display); font-stretch: 110%; letter-spacing: 0.04em; }
.principles p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* --- Contact band --------------------------------------------------------- */

.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, #1a120e 0%, var(--surface) 55%);
}
.contact::after {
  content: ""; position: absolute; z-index: -1; right: -160px; bottom: -220px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.28), transparent 62%);
}
.contact .lead { margin: 20px 0 0; }
.contact__mail {
  display: inline-block; margin-bottom: 20px;
  font: 800 clamp(19px, 2.4vw, 28px)/1.25 var(--display); font-stretch: 106%;
  color: var(--text); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px;
}
.contact__mail:hover { color: var(--accent-hi); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; align-items: start; } }

/* --- Footer --------------------------------------------------------------- */

.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid .brand { margin-bottom: 16px; }
.footer-grid p { max-width: 280px; }
.footer-col h2 { margin: 4px 0 16px; color: var(--text); font: 600 13px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-bottom a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* --- Game page ------------------------------------------------------------ */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--faint); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }

.game-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.game-hero::after {
  content: ""; position: absolute; z-index: -1; width: 800px; height: 800px; right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.16), transparent 60%);
}
.game-hero .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px);
}
.game-hero h1 { margin: 0; }
.game-hero__logo { width: min(100%, 440px); }
.game-hero .tagline { margin: 26px 0 12px; font: 800 clamp(24px, 2.8vw, 34px)/1.15 var(--display); font-stretch: 108%; letter-spacing: -0.01em; text-wrap: balance; }
.game-hero .lead { margin: 0 0 28px; }
.game-hero .chips { margin-bottom: 32px; }
.game-hero__art { position: relative; }
.game-hero__art img { width: 100%; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); }
@media (max-width: 860px) {
  .game-hero .container { grid-template-columns: 1fr; }
  .game-hero__art { order: -1; }
}

.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); color: var(--text); text-decoration: none;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; color: var(--faint); font: 500 12px/1.2 var(--body); }
.store strong { display: block; font: 600 16px/1.2 var(--body); }
.store[aria-disabled="true"] { cursor: default; }

.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.story__text p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--text); }
.story__text p:last-child { color: var(--accent-hi); margin: 0; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features li { padding: clamp(24px, 3vw, 36px); background: var(--bg-2); }
.features li::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 22px; border-radius: 3px; background: var(--accent); }
.features p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.gallery { position: relative; }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 760px); gap: 20px;
  margin: 0; padding: 0 0 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  overscroll-behavior-x: contain;
}
.gallery__track li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1920 / 844; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.gallery__nav { display: flex; gap: 8px; }
.gallery__nav button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.gallery__nav button:hover { background: rgba(255, 255, 255, 0.06); }
.gallery__nav button:disabled { opacity: 0.35; cursor: default; }
.gallery__nav svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .gallery__track { grid-auto-columns: 88%; gap: 12px; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.facts dt { margin-bottom: 8px; color: var(--faint); font: 600 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.help-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help-links a {
  display: flex; flex-direction: column; gap: 6px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--text); transition: border-color 0.2s var(--ease);
}
.help-links a:hover { border-color: var(--line-2); }
.help-links span { color: var(--muted); font-size: 15px; }
.help-links strong { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.help-links svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 760px) { .help-links { grid-template-columns: 1fr; } }

/* --- Text pages (support, privacy, deletion) ----------------------------- */

.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero .title { font-size: clamp(34px, 5vw, 60px); }
.page-hero .meta { margin: 16px 0 0; color: var(--muted); }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(80px, 10vw, 128px); }
.doc-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.doc-nav p { margin: 0 0 12px; color: var(--faint); font: 600 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.doc-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.doc-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-nav { position: static; }
  .doc-nav p { display: none; }
  .doc-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .doc-nav a { white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
  .doc-nav a[aria-current="page"] { box-shadow: none; border-color: rgba(255, 107, 44, 0.5); background: var(--accent-soft); }
}

.prose { max-width: 740px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 14px; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.01em; font-stretch: 108%; }
.prose h3 { margin: 32px 0 8px; font: 600 18px/1.4 var(--body); color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: #d7d7dc; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.callout { margin: 0 0 28px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.callout p:last-child { margin: 0; }

.toc { margin: 0 0 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.toc p { margin: 0 0 10px; color: var(--faint); font: 600 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-hi); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface); color: var(--faint); font: 600 12px/1.3 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
td { color: #d7d7dc; }
td:first-child { color: var(--text); font-weight: 600; min-width: 150px; }

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 8px 48px; margin-bottom: 10px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hi); border: 1px solid rgba(255, 107, 44, 0.4);
  font: 700 14px/1 var(--body);
}

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin: 0 0 24px; padding: 24px 28px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(135deg, #1a120e, var(--surface) 60%);
}
.contact-card p { margin: 0; }
.contact-card .label { color: var(--muted); font-size: 14px; }
.contact-card .mail { color: var(--text); font: 800 20px/1.3 var(--display); font-stretch: 106%; text-decoration: none; }
.contact-card .mail:hover { color: var(--accent-hi); }

.faq { border-top: 1px solid var(--line); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 44px 20px 0;
  color: var(--text); font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; 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 var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent-hi); }
.faq details > div { padding: 0 0 20px; }
.faq details > div p:last-child { margin: 0; }

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

.notfound { min-height: calc(100svh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 96px; margin: 0 auto 32px; opacity: 0.9; }
.notfound .lead { margin: 20px auto 32px; }
.notfound .btn-row { justify-content: center; }

/* --- Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .game-card:hover .game-card__art { transform: none; }
}
