/* asanga.ai · play. The shell shared by the in-development product pages (move, store, restore):
   the product's lockup, one small game drawn in the site's own signal language (graphite dots, with
   loop pink for what the machine adds), and the way back. Tokens are the asanga.ai 2.0 tokens. */

@font-face { font-family: "Lexend"; src: url("/fonts/lexend.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Anek Display"; src: url("/fonts/anek-latin.woff") format("woff"); font-weight: 400 700; font-display: swap; }

/* Layout: one column. Sphere label, lockup, one line on the product, the stage, then how to play and the way back. */
:root {
  --loop-pink: #ee6d8d;
  --pink-strong: #b8325a;
  --pink-tint: #fde9ee;
  --ink: #474747;
  --ink-muted: #6e6b72;
  --surface: #ffffff;
  --surface-2: #f7f5f2;
  --line: #e6e1e4;
  --line-strong: #8d8992;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anek Display", "Lexend", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-md: 10px; --r-lg: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink-strong: #f7a8bc; --pink-tint: #3a2029; --ink: #f4f2f5; --ink-muted: #a3a0aa;
    --surface: #141317; --surface-2: #1f1e24; --line: #34323a; --line-strong: #807c88;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pink-strong: #f7a8bc; --pink-tint: #3a2029; --ink: #f4f2f5; --ink-muted: #a3a0aa;
  --surface: #141317; --surface-2: #1f1e24; --line: #34323a; --line-strong: #807c88;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 350; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-light { display: none; } :root:not([data-theme="light"]) .on-dark { display: block; } }
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }

.pg { max-width: 1120px; margin: 0 auto; padding-block: 28px 64px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: grid; gap: 36px; }
.pg-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pg-top .mark { display: block; min-width: 0; }
.pg-top .mark img { height: 34px; width: auto; }
@media (max-width: 420px) { .pg-top .mark img { height: 26px; } }
.pg-top .back { font-size: 15px; color: var(--ink-muted); }

.intro { display: grid; gap: 14px; max-width: 70ch; }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: lowercase; color: var(--pink-strong); display: flex; align-items: center; gap: 10px; }
.kicker::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--loop-pink); animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }
.lockup { height: 52px; width: auto; }
.lead { color: var(--ink-muted); font-size: 18px; text-wrap: pretty; }

.stage { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stage canvas { display: block; width: 100%; aspect-ratio: 12 / 5; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
@media (max-width: 620px) { .stage canvas { aspect-ratio: 1 / 1; } }
.hud { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none;
  font-family: var(--mono); font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.hud b { display: block; font-weight: 500; font-size: 20px; color: var(--ink); letter-spacing: .01em; }
.hud .r { text-align: right; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(2px); }
.overlay[hidden] { display: none; }
.card { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 34ch; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.card p { color: var(--ink-muted); font-size: 15px; }
.btn { font: 600 16px/1 var(--font); display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; background: var(--ink); color: var(--surface); }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--surface)); }
kbd { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; }

.notes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 26px; }
.notes h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.notes p { color: var(--ink-muted); font-size: 16px; max-width: 60ch; }
.notes ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-muted); font-size: 15px; }
.notes li { display: flex; gap: 10px; align-items: baseline; }
.notes li i { flex: none; width: 10px; height: 10px; border-radius: 2px; transform: translateY(1px); }
.i-ink { background: var(--ink); } .i-pink { background: var(--loop-pink); } .i-muted { background: var(--line-strong); }
.way { display: grid; gap: 10px; align-content: start; }
.way p { font-size: 15px; }
.way .mail { font-family: var(--mono); font-size: 14px; color: var(--ink); user-select: all; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } .lockup { height: 40px; } }
@media (prefers-reduced-motion: reduce) { .kicker::after { animation: none; } }

/* The light/dark switch, as on asanga.ai. */
.top-r { display: flex; align-items: center; gap: 14px; }
.theme { appearance: none; background: none; border: 1px solid var(--line); color: var(--ink-muted); width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme:hover { color: var(--ink); border-color: var(--line-strong); }

/* The asanga.ai footer, as on every Asanga page (asanga.css .foot), on the play pages' width. */
.foot { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--surface); }
.foot-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.foot-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.foot-lockup { display: inline-block; }
.foot-brand .foot-lockup img { width: 240px; height: auto; }
.foot-brand p { margin-top: 20px; color: var(--ink-muted); font-size: 15px; max-width: 32ch; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.foot-cols a { display: block; color: var(--ink-muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { margin-top: 56px; padding-top: 24px; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 1080px) { .foot-in { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 760px) { .foot { padding-top: 48px; } .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } .foot-brand .foot-lockup img { width: 200px; } .foot-legal { margin-top: 40px; } }
