/* N-Sare Games – shared styles. Brand: flat #1A0B3D, accent #C8FF3D, white text. No shadows, no glow. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/montserrat-latin-900-italic.woff2") format("woff2"); }

:root {
  --bg: #1A0B3D;
  --surface: #241452;
  --line: #3A2A6B;
  --accent: #C8FF3D;
  --text: #FFFFFF;
  --muted: #C9C2E0;
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.wordmark .lines { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .12em; }
.wordmark .lines i { display: block; height: .14em; border-radius: .07em; background: var(--accent); }
.wordmark .lines i:nth-child(1) { width: .9em; }
.wordmark .lines i:nth-child(2) { width: .65em; }
.wordmark .lines i:nth-child(3) { width: .42em; }
.wordmark .dot { display: inline-block; width: .26em; height: .26em; border-radius: 50%; background: var(--accent); margin-left: -.3em; align-self: flex-end; margin-bottom: .06em; }
.slogan { font-weight: 800; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Games page ---------- */
.hero { text-align: center; padding: 40px 0 28px; }
.hero .logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; }
.hero h1 { margin: 0; font-size: clamp(30px, 9vw, 64px); }
.hero .slogan { margin: 14px 0 0; font-size: clamp(13px, 3.6vw, 20px); }
.hero .intro { margin: 18px auto 0; max-width: 34ch; color: var(--muted); font-size: 16px; }

.games { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 12px 0 40px; }
@media (min-width: 760px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .games { grid-template-columns: repeat(3, 1fr); } }

.game {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column;
}
.game .clip {
  position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 300px; margin: 0 auto 18px;
  border-radius: 16px; overflow: hidden; background: #0E0626; border: 2px solid var(--line);
}
.game .clip video, .game .clip img { width: 100%; height: 100%; object-fit: cover; }
.game .head { display: flex; align-items: center; gap: 14px; }
.game .icon { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.game h2 { margin: 0; font-weight: 900; font-style: italic; font-size: 24px; line-height: 1.1; }
.game .tag { margin: 4px 0 0; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.game .pitch { margin: 14px 0 18px; color: var(--muted); flex: 1; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.badges a { display: block; line-height: 0; border-radius: 8px; }
.badges .apple img { height: 44px; width: auto; }
.badges .google img { height: 66px; width: auto; margin: -11px -10px; } /* PNG has built-in clear space */
.game .links { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.game .links a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; text-align: center; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 14px;
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .contact { margin: 0 0 14px; }
.site-footer .contact a { font-weight: 800; }
.legal-links { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.legal-links a { color: var(--muted); }
.copy { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Legal pages ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.topbar .wordmark { font-size: 20px; }
.topbar .back { font-weight: 800; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.topbar .back:hover { color: var(--accent); }

.doc { max-width: 760px; margin: 0 auto; padding: 36px 0 56px; }
.doc .kicker { margin: 0 0 8px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.doc h1 { margin: 0 0 10px; font-weight: 900; font-style: italic; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; }
.doc .updated { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.doc .lede { font-size: 18px; color: var(--text); margin: 0 0 28px; }
.doc h2 { margin: 40px 0 12px; font-weight: 900; font-style: italic; font-size: 22px; line-height: 1.2; }
.doc h3 { margin: 22px 0 8px; font-weight: 800; font-size: 17px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 800; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--accent); font-weight: 800; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 8px; }
.toc p { margin: 0 0 8px; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 600px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0 0 4px; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.note p { margin: 0; color: var(--text); }
.note p + p { margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 800; }
@media (max-width: 599px) {
  table { min-width: 0; }
  thead { display: none; }
  tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: block; border: 0; padding: 3px 14px; }
}

.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { position: relative; padding-left: 46px; margin-bottom: 14px; min-height: 32px; }
.steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--bg);
  font-weight: 900; font-style: italic; display: flex; align-items: center; justify-content: center;
}
.btn {
  display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none;
  font-weight: 800; padding: 12px 20px; border-radius: 999px; min-height: 44px;
}
.btn:hover { text-decoration: none; background: #D8FF6E; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
