/* Shared styles for gamesbyxenia.com. System fonts only: fastest in the TikTok in-app browser,
   and no third-party font requests (no Google Fonts → nothing to disclose, no cookie banner). */
:root {
  --bg: #16121d;
  --fg: #f3ece1;
  --muted: #9a8fa7;
  --field: #221b30;
  --accent: #ff6448;
  --accent-ink: #2a0d06;
  --line: rgba(255,255,255,.12);
  color-scheme: dark;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4eee3; --fg: #19131f; --muted: #6b6175; --field: #fffaf1;
    --accent: #df3f1e; --accent-ink: #fff4ef; --line: rgba(25,19,31,.14); color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.wrap {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; }

header { padding-block: 18px; }
.brandmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

main { flex: 1; display: flex; align-items: center; padding-block: 8px 32px; }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}

/* Game page: name, offer line, loop, form — all above the fold on a phone. */
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 3vw, 2.8rem);
  line-height: 1; letter-spacing: -.02em; margin: 0;
}
.offer { margin: 8px 0 0; color: var(--muted); font-size: 1.05rem; }
.loop {
  display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 42vh; max-height: 42svh;
  object-fit: cover; object-position: 50% 15%; margin-top: 18px; border-radius: 14px; background: var(--field);
}

form.capture { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
main.home form.capture { margin-top: 0; }
form.capture input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  font-family: var(--body); font-size: 1rem; color: var(--fg);
  background: var(--field); border: 1px solid var(--line); border-radius: 11px; padding: 14px 15px;
}
form.capture .btn { flex: 1 0 auto; }
form.capture input::placeholder { color: color-mix(in srgb, var(--muted) 90%, transparent); }
form.capture input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn {
  font-family: var(--display); font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none;
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 11px; padding: 14px 20px; transition: filter .15s, transform .12s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.fine { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.fine a { color: inherit; }

.success { display: none; margin-top: 18px; }
.success p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.success .btn { margin-top: 14px; }
.capture-wrap.done form.capture, .capture-wrap.done .fine { display: none; }
.capture-wrap.done .success { display: block; }

footer { padding-block: 20px 28px; }
.social {
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
  font-family: var(--mono); font-size: .74rem; color: var(--muted);
}
.social span { min-width: 9.5em; }
.social a { display: inline-flex; color: var(--muted); }
.social a:hover { color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.foot { margin-top: 6px; }
.foot {
  display: flex; gap: 8px 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .74rem; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* Legal pages: plain readable text. */
main.legal { display: block; }
.legal h1 { font-size: 1.8rem; margin-bottom: 20px; }
.legal h2 { font-family: var(--display); font-size: 1.05rem; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--fg); font-size: .95rem; }
.todo { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 4px; border-radius: 4px; }
