/* Parkii: site styles.
 * Layout: a sticker sheet. Ink-outlined cards with hard drop shadows on warm paper, one live canvas per
 * section, bands tinted by the app's own places. Taken straight from the app's Theme.swift: warm paper,
 * dark ink outlines, one bright accent that changes with the place your buddy works in.
 */

:root {
  /* Paper and ink */
  --paper: #fbf5e6;
  --paper-2: #f4ead3;
  --surface: #fffdf6;
  --ink: #2b2326;
  --muted: #6f625b;
  --line: #e6dcc6;
  --outline: #2b2326;
  --cream: #fffdf6;

  /* Brand, from the app icon: lilac with gold sand */
  --lilac-top: #cdc4f7;
  --lilac-bottom: #a395ec;
  --lilac-deep: #6250c0;
  --sand: #f7c548;
  --sand-deep: #e8a42a;
  --night: #262040;
  --night-ink: #f6eee4;
  --sand-band: #fbe5ad;
  --court-top: #ffd8a8;
  --court-bottom: #f5a77f;

  /* The place accent (park by default); app.js sets data-place on <html> */
  --accent: #3f8f5a;
  --accent-soft: #e0efd9;
  --accent-ink: #ffffff;
  --cta: #2b2326;
  --cta-ink: #fffdf6;

  --glass: rgba(0, 0, 0, 0.3);
  --glass-line: rgba(255, 255, 255, 0.24);
  --shadow-soft: rgba(43, 35, 38, 0.28);

  --font-display: "Lilita One", "Arial Rounded MT Bold", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 26px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --band-pad: clamp(64px, 9vw, 118px);
  color-scheme: light;
}

:root[data-place="gym"] { --accent: #d7531f; --accent-soft: #fbe1cf; }
:root[data-place="library"] { --accent: #6250c0; --accent-soft: #e7e2f8; }
:root[data-place="office"] { --accent: #a9620a; --accent-soft: #f8e9c4; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17151e; --paper-2: #1d1a27; --surface: #221f2b; --ink: #f6eee4; --muted: #b1a59c;
    --line: #37324a; --outline: #090708; --cream: #fffdf6;
    --lilac-top: #312a55; --lilac-bottom: #221d3d; --lilac-deep: #afa3f2;
    --night: #120f1d; --night-ink: #f6eee4; --sand-band: #2a2414; --court-top: #3a2433; --court-bottom: #2a1a22;
    --accent: #8ccb98; --accent-soft: #26352a; --accent-ink: #10200f; --cta: #f7c548; --cta-ink: #2b2326;
    --glass: rgba(0, 0, 0, 0.38); --shadow-soft: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
  :root:not([data-theme="light"])[data-place="gym"] { --accent: #f59a5e; --accent-soft: #40271b; --accent-ink: #26130a; }
  :root:not([data-theme="light"])[data-place="library"] { --accent: #afa3f2; --accent-soft: #2d2846; --accent-ink: #17122e; }
  :root:not([data-theme="light"])[data-place="office"] { --accent: #f2c25a; --accent-soft: #3d331a; --accent-ink: #231904; }
}
:root[data-theme="dark"] {
  --paper: #17151e; --paper-2: #1d1a27; --surface: #221f2b; --ink: #f6eee4; --muted: #b1a59c;
  --line: #37324a; --outline: #090708; --cream: #fffdf6;
  --lilac-top: #312a55; --lilac-bottom: #221d3d; --lilac-deep: #afa3f2;
  --night: #120f1d; --night-ink: #f6eee4; --sand-band: #2a2414; --court-top: #3a2433; --court-bottom: #2a1a22;
  --accent: #8ccb98; --accent-soft: #26352a; --accent-ink: #10200f; --cta: #f7c548; --cta-ink: #2b2326;
  --glass: rgba(0, 0, 0, 0.38); --shadow-soft: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
:root[data-theme="dark"][data-place="gym"] { --accent: #f59a5e; --accent-soft: #40271b; --accent-ink: #26130a; }
:root[data-theme="dark"][data-place="library"] { --accent: #afa3f2; --accent-soft: #2d2846; --accent-ink: #17122e; }
:root[data-theme="dark"][data-place="office"] { --accent: #f2c25a; --accent-soft: #3d331a; --accent-ink: #231904; }

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 600 1rem/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img, canvas { max-width: 100%; }
canvas { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 12px; border: 2px solid var(--outline); }
.skip:focus { left: 12px; }
.noscript { text-align: center; padding: 24px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 1em; height: 1em; }
.ico-xs { width: 0.85em; height: 0.85em; }

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

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.004em;
  text-wrap: balance;
  margin: 0;
}
/* Sticker lettering, after the app's OutlinedText: a light fill, a ring of ink, and a hard shadow underneath */
.outlined {
  --w: 0.05em;
  --d: 0.085em;
  color: var(--cream);
  text-shadow:
    var(--w) 0 0 var(--outline), calc(var(--w) * -1) 0 0 var(--outline), 0 var(--w) 0 var(--outline), 0 calc(var(--w) * -1) 0 var(--outline),
    calc(var(--w) * .71) calc(var(--w) * .71) 0 var(--outline), calc(var(--w) * -.71) calc(var(--w) * .71) 0 var(--outline),
    calc(var(--w) * .71) calc(var(--w) * -.71) 0 var(--outline), calc(var(--w) * -.71) calc(var(--w) * -.71) 0 var(--outline),
    calc(var(--w) * .92) calc(var(--w) * .38) 0 var(--outline), calc(var(--w) * -.92) calc(var(--w) * .38) 0 var(--outline),
    calc(var(--w) * .92) calc(var(--w) * -.38) 0 var(--outline), calc(var(--w) * -.92) calc(var(--w) * -.38) 0 var(--outline),
    calc(var(--w) * .38) calc(var(--w) * .92) 0 var(--outline), calc(var(--w) * -.38) calc(var(--w) * .92) 0 var(--outline),
    calc(var(--w) * .38) calc(var(--w) * -.92) 0 var(--outline), calc(var(--w) * -.38) calc(var(--w) * -.92) 0 var(--outline),
    var(--w) var(--d) 0 var(--outline), calc(var(--w) * -1) var(--d) 0 var(--outline), 0 calc(var(--d) + var(--w)) 0 var(--outline),
    calc(var(--w) * .71) calc(var(--d) + var(--w) * .71) 0 var(--outline), calc(var(--w) * -.71) calc(var(--d) + var(--w) * .71) 0 var(--outline);
}
.h2 { font-size: clamp(2.05rem, 4.6vw, 3.45rem); }
.eyebrow {
  margin: 0 0 12px;
  font: 900 0.8rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sub { margin: 14px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 780px; }
.section-head .h2 { color: var(--ink); }

/* ------------------------------------------------------------------ stickers, buttons, chips */

.sticker {
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--r-card);
  box-shadow: 0 3px 0 var(--outline);
}
.card { padding: clamp(18px, 2.6vw, 28px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.35em;
  border-radius: 999px;
  border: 2px solid var(--outline);
  box-shadow: 0 3.5px 0 var(--outline);
  font: 900 1rem/1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4.5px 0 var(--outline); }
.btn:active { transform: translateY(3px); box-shadow: 0 0.5px 0 var(--outline); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 0 3.5px 0 var(--outline); }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-paper { background: var(--surface); color: var(--ink); }
.btn-sand { background: var(--sand); color: #2b2326; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover, .btn-ghost:active { box-shadow: none; transform: none; }
.btn-sm { padding: 0.62em 1.05em; font-size: 0.9rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-center { justify-content: center; }

.icon-btn {
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: var(--surface);
  box-shadow: 0 2.5px 0 var(--outline);
  color: var(--ink);
  font-size: 1.2rem;
  transition: transform 0.12s, box-shadow 0.12s;
}
.icon-btn:active { transform: translateY(2.5px); box-shadow: 0 0 0 var(--outline); }

.chip {
  padding: 0.5em 1em;
  border-radius: 999px;
  border: 2px solid var(--outline);
  background: var(--surface);
  box-shadow: 0 2.5px 0 var(--outline);
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s;
}
.chip[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.chip:active { transform: translateY(2.5px); box-shadow: 0 0 0 var(--outline); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  font: 900 0.82rem/1 var(--font-body);
  letter-spacing: 0.04em;
  border: 2px solid var(--outline);
  box-shadow: 0 2.5px 0 var(--outline);
}
.pill-ink { background: var(--surface); color: var(--ink); }

.seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 2px solid var(--outline);
  background: var(--paper-2);
}
.seg button {
  border: 0; background: transparent;
  padding: 0.42em 0.95em;
  border-radius: 999px;
  font-weight: 800; font-size: 0.88rem;
  color: var(--muted);
}
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 2px var(--outline); }

.bubble {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--outline);
  box-shadow: 0 3px 0 var(--outline);
  font-weight: 800;
  line-height: 1.3;
}
.bubble::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: inherit;
  border-right: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
  bottom: -9px; left: 32px;
  transform: rotate(45deg);
}

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

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, background-color 0.4s;
}
.nav.scrolled { border-bottom-color: var(--outline); }
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 10px var(--gutter-r) 10px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-buddy { width: 40px; height: 48px; }
.brand-name { font: 400 1.32rem/1 var(--font-display); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 800; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px; color: var(--muted);
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 920px) { .nav-links { display: none; } }
@media (max-width: 420px) { .brand-name { font-size: 1.12rem; } .nav .get-app { display: none; } }

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--lilac-top), var(--lilac-bottom));
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 7vw, 92px);
  border-bottom: 2px solid var(--outline);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-title { font-size: clamp(2.7rem, 6.3vw, 5.3rem); }
.hero-title .line { display: block; }
.hero-title .line + .line { margin-top: 0.12em; }
.hero-title .line { color: var(--cream); }
.hero-title .line-sand { color: var(--sand); }
.hero .lede {
  margin: 26px 0 28px;
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  font-weight: 700;
  line-height: 1.55;
  max-width: 34em;
  color: var(--ink);
}
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 24px 0 0; font-weight: 800; font-size: 0.92rem; color: var(--ink); opacity: 0.85; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); border: 2px solid var(--outline); }

.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; position: relative; }
.bubble-hero { align-self: center; transform: rotate(-2deg); max-width: 300px; text-align: center; z-index: 2; }
.bubble-hero::after { left: 50%; margin-left: -7px; }

.sparkles .spark { position: absolute; fill: var(--sand); stroke: none; animation: twinkle 3.2s ease-in-out infinite; }
.spark.s1 { width: 42px; height: 42px; left: 4%; top: 12%; }
.spark.s2 { width: 26px; height: 26px; left: 46%; top: 8%; animation-delay: -1.1s; }
.spark.s3 { width: 34px; height: 34px; right: 5%; top: 18%; animation-delay: -2.1s; }
.spark.s4 { width: 22px; height: 22px; left: 8%; bottom: 14%; animation-delay: -0.6s; }
.spark.s5 { width: 30px; height: 30px; right: 40%; bottom: 8%; animation-delay: -1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.75) rotate(0deg); opacity: 0.75; } 50% { transform: scale(1.1) rotate(12deg); opacity: 1; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: left; }
}

/* ------------------------------------------------------------------ the phone (live demo) */

.phone {
  position: relative;
  width: min(336px, 84vw);
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border-radius: 54px;
  background: #1c1820;
  border: 2px solid var(--outline);
  box-shadow: 0 6px 0 var(--outline), 0 34px 60px -24px var(--shadow-soft);
}
.phone::before {
  /* side buttons */
  content: ""; position: absolute; left: -6px; top: 22%; width: 4px; height: 12%;
  background: #1c1820; border-radius: 3px 0 0 3px; border: 2px solid var(--outline); border-right: 0;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: #c8e4ee;
  container-type: size;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-body);
  color: #2b2326;
}
.phone-screen:focus-visible { outline-offset: -4px; }
.ps-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-island {
  position: absolute; top: 3.2cqw; left: 50%; width: 30cqw; height: 8.4cqw; margin-left: -15cqw;
  background: #0d0b0f; border-radius: 99px; z-index: 3;
}

.ps-top {
  position: absolute; top: 14.5cqw; left: 4cqw; right: 4cqw;
  display: flex; align-items: center; gap: 2.6cqw; z-index: 4;
}
.phone-screen .sticker { border-radius: 4.6cqw; box-shadow: 0 0.65cqw 0 #2b2326; border-color: #2b2326; background: rgba(255, 253, 246, 0.97); }
.ps-task {
  display: flex; align-items: center; gap: 1.6cqw;
  padding: 2cqw 3.6cqw; margin-right: auto; max-width: 64cqw;
  text-align: left; color: #2b2326;
}
.ps-task-text { display: flex; flex-direction: column; min-width: 0; }
.ps-now { font-size: 2.6cqw; font-weight: 900; letter-spacing: 0.12em; color: #766a63; line-height: 1.2; }
.ps-task-name { font-size: 4.2cqw; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-task .ico { color: #766a63; }
.ps-round {
  width: 11.8cqw; height: 11.8cqw; flex: none;
  display: grid; place-items: center;
  border-radius: 50% !important; padding: 0;
  font-size: 4.4cqw; color: #2b2326;
}
.ps-done { background: var(--accent); color: var(--accent-ink); border: 2px solid #2b2326; box-shadow: 0 0.75cqw 0 #2b2326; }
.ps-done .ico { stroke-width: 3.2; }
.ps-round:active, .ps-task:active { transform: translateY(0.6cqw); box-shadow: 0 0 0 #2b2326; }

.ps-menu {
  position: absolute; z-index: 6; top: 29cqw; left: 4cqw; right: 4cqw;
  max-height: 62cqh; overflow: auto;
  padding: 2.4cqw;
  font-size: 3.8cqw; cursor: default;
}
.ps-menu h4 { margin: 2.2cqw 2.6cqw 1.2cqw; font-size: 2.7cqw; letter-spacing: 0.12em; text-transform: uppercase; color: #766a63; font-weight: 900; }
.ps-menu button {
  display: flex; align-items: center; gap: 2.4cqw; width: 100%;
  padding: 2.4cqw 2.6cqw; border: 0; background: transparent; border-radius: 3cqw;
  text-align: left; font-weight: 800; color: #2b2326;
}
.ps-menu button:hover, .ps-menu button:focus-visible { background: #f1ead9; }
.ps-menu button .min { margin-left: auto; color: #766a63; font-variant-numeric: tabular-nums; }
.ps-menu button.danger { color: #c24e2e; }
.ps-menu .row { display: flex; gap: 1.6cqw; padding: 0 1.2cqw 1.6cqw; flex-wrap: wrap; }
.ps-menu .row button { width: auto; flex: 1; justify-content: center; background: #f4eddc; padding: 2cqw; }

.ps-floor {
  position: absolute; left: 5cqw; right: 5cqw; top: calc(44% + 2.4cqw);
  display: flex; flex-direction: column; align-items: center; gap: 2.5cqw; z-index: 2;
  pointer-events: none;
}
.ps-floor button { pointer-events: auto; }
.ps-digits {
  --w: 0.042em; --d: 0.06em; --o: #2b2326;
  font: 900 20.5cqw/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow:
    var(--w) 0 0 var(--o), calc(var(--w) * -1) 0 0 var(--o), 0 var(--w) 0 var(--o), 0 calc(var(--w) * -1) 0 var(--o),
    calc(var(--w) * .71) calc(var(--w) * .71) 0 var(--o), calc(var(--w) * -.71) calc(var(--w) * .71) 0 var(--o),
    calc(var(--w) * .71) calc(var(--w) * -.71) 0 var(--o), calc(var(--w) * -.71) calc(var(--w) * -.71) 0 var(--o),
    calc(var(--w) * .92) calc(var(--w) * .38) 0 var(--o), calc(var(--w) * -.92) calc(var(--w) * .38) 0 var(--o),
    calc(var(--w) * .92) calc(var(--w) * -.38) 0 var(--o), calc(var(--w) * -.92) calc(var(--w) * -.38) 0 var(--o),
    calc(var(--w) * .38) calc(var(--w) * .92) 0 var(--o), calc(var(--w) * -.38) calc(var(--w) * .92) 0 var(--o),
    var(--w) var(--d) 0 var(--o), calc(var(--w) * -1) var(--d) 0 var(--o), 0 calc(var(--d) + var(--w)) 0 var(--o);
  transition: color 0.3s;
}
.ps-digits.over { color: #ffe27a; }
.ps-goal {
  display: inline-flex; align-items: center; gap: 1.6cqw;
  padding: 1.7cqw 3.6cqw;
  border-radius: 99px;
  background: rgba(255, 253, 246, 0.97);
  border: 1.5px solid #2b2326; box-shadow: 0 0.65cqw 0 #2b2326;
  font-size: 3.3cqw; font-weight: 900; color: #2b2326;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ps-goal.over { background: var(--accent); color: var(--accent-ink); }
.ps-glass {
  width: 100%;
  padding: 3cqw 4cqw;
  border-radius: 4.6cqw;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.ps-progress { display: flex; flex-direction: column; gap: 2.4cqw; align-items: center; }
.ps-line { margin: 0; font-size: 3.8cqw; font-weight: 800; text-align: center; line-height: 1.3; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.ps-bar { display: flex; align-items: center; gap: 2.4cqw; width: 100%; font-size: 3cqw; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-track { position: relative; flex: 1; height: 3cqw; border-radius: 99px; background: rgba(230, 220, 198, 0.7); overflow: hidden; box-shadow: inset 0 0 0 1.5px #2b2326; }
.ps-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #f7c548, #e8a42a); box-shadow: inset 0 0 0 1.5px #2b2326; }
.ps-extra { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.ps-extra-title { margin: 0; font-size: 3.8cqw; font-weight: 900; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.ps-chips { display: flex; gap: 2cqw; width: 100%; }
.ps-chip {
  flex: 1; padding: 2.4cqw 0; border-radius: 99px;
  font: 900 4cqw/1 var(--font-body); font-variant-numeric: tabular-nums;
  background: #fffdf6; color: #2b2326; border: 2px solid #2b2326; box-shadow: 0 0.9cqw 0 #2b2326;
  transition: transform 0.1s, box-shadow 0.1s;
}
.ps-chip.primary { background: var(--accent); color: var(--accent-ink); }
.ps-chip:active { transform: translateY(0.8cqw); box-shadow: 0 0.1cqw 0 #2b2326; }
.ps-chipbox { width: 100%; padding: 3cqw; border-radius: 4.6cqw; background: rgba(0, 0, 0, 0.3); border: 1.5px solid rgba(255, 255, 255, 0.22); display: flex; flex-direction: column; align-items: center; gap: 2.2cqw; }
.ps-tiles { display: flex; gap: 2.5cqw; width: 100%; }
.ps-tile {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6cqw;
  padding: 2.4cqw 0; border-radius: 4cqw;
  background: rgba(0, 0, 0, 0.3); border: 1.5px solid rgba(255, 255, 255, 0.22); color: #fff;
}
.ps-tile .ico { width: 4cqw; height: 4cqw; opacity: 0.9; }
.ps-tile b { font-size: 4.3cqw; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-tile span { font-size: 2.6cqw; font-weight: 800; opacity: 0.88; }

.ps-bottom {
  position: absolute; left: 4cqw; right: 4cqw; bottom: 20cqw;
  display: flex; flex-direction: column; align-items: center; gap: 2.6cqw; z-index: 3;
  pointer-events: none;
  transition: bottom 0.3s ease;
}
.phone-screen.immersive .ps-bottom { bottom: 6cqw; }
.ps-bottom > * { pointer-events: auto; }
.ps-hint {
  margin: 0; padding: 2.2cqw 4cqw; border-radius: 99px;
  background: rgba(255, 253, 246, 0.97); color: #766a63;
  border: 1.5px solid #2b2326; box-shadow: 0 0.55cqw 0 #2b2326;
  font-size: 3.2cqw; font-weight: 800; text-align: center; line-height: 1.3;
  pointer-events: none !important;
}
.ps-hint.msg { color: #2b2326; }
.ps-reward {
  display: inline-flex; align-items: center; gap: 2cqw;
  padding: 2.6cqw 4.4cqw; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid #2b2326; box-shadow: 0 0.8cqw 0 #2b2326;
  font-size: 3.5cqw; font-weight: 900;
  animation: bounce-in 0.5s cubic-bezier(.3, 1.6, .5, 1);
}
.ps-reward .ico { animation: wiggle 2.4s ease-in-out infinite; }
.ps-reward-count { padding: 0.4cqw 1.8cqw; border-radius: 99px; background: rgba(0, 0, 0, 0.18); font-size: 3cqw; }
.ps-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: 17cqw; z-index: 3;
  display: flex; justify-content: space-around; align-items: flex-start; padding-top: 2.4cqw;
  background: rgba(250, 246, 236, 0.9);
  border-top: 1px solid rgba(43, 35, 38, 0.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 2.5cqw; font-weight: 800; color: #9a8f88;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.ps-tabs span { display: flex; flex-direction: column; align-items: center; gap: 0.6cqw; }
.ps-tabs .ico { width: 5.6cqw; height: 5.6cqw; }
.ps-tabs .on { color: var(--accent); }
.phone-screen.immersive .ps-tabs { transform: translateY(100%); opacity: 0; }

@keyframes bounce-in { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }

.add-bar {
  display: flex; align-items: center; gap: 8px;
  width: min(420px, 100%);
  padding: 6px 6px 6px 16px;
  border-radius: 20px;
}
.add-bar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; font-weight: 700; color: var(--ink); outline: none; }
.add-bar input::placeholder { color: var(--muted); opacity: 0.9; }
.add-bar select { border: 0; background: transparent; font-weight: 800; font-size: 0.9rem; color: var(--muted); padding: 6px 2px; cursor: pointer; font-variant-numeric: tabular-nums; }
.add-bar:focus-within { box-shadow: 0 3px 0 var(--outline), 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.chunky-icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--outline); background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 3px 0 var(--outline);
  transition: transform 0.1s, box-shadow 0.1s;
}
.chunky-icon .ico { stroke-width: 3; }
.chunky-icon:active { transform: translateY(2.5px); box-shadow: 0 0.5px 0 var(--outline); }
.demo-under { display: flex; justify-content: center; }
.speed {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: transparent; padding: 6px 10px; border-radius: 99px;
  font-weight: 800; font-size: 0.88rem; color: var(--ink);
}
.speed-dot { width: 30px; height: 18px; border-radius: 99px; background: var(--paper-2); border: 2px solid var(--outline); position: relative; transition: background-color 0.2s; }
.speed-dot::after { content: ""; position: absolute; top: 1px; left: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--outline); transition: transform 0.2s; }
.speed[aria-pressed="true"] .speed-dot { background: var(--sand); }
.speed[aria-pressed="true"] .speed-dot::after { transform: translateX(12px); }

/* ------------------------------------------------------------------ marquee */

.marquee {
  overflow: hidden;
  background: var(--outline);
  color: var(--cream);
  border-bottom: 2px solid var(--outline);
  padding: 14px 0;
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll-x 60s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 99px;
  background: #3a3036; color: #fffdf6;
  font-weight: 800; font-size: 0.95rem; white-space: nowrap;
}
.marquee-item b { color: var(--sand); font-variant-numeric: tabular-nums; }
.marquee-item .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: #2b2326; }
.marquee-item .tick .ico { width: 14px; height: 14px; stroke-width: 3.4; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ bands */

.band { padding-block: var(--band-pad); position: relative; }
.band-paper { background: var(--paper); }
.band-ink { background: var(--night); color: var(--night-ink); }
.band-ink .section-head .h2 { color: var(--night-ink); }
.band-ink .sub { color: color-mix(in srgb, var(--night-ink) 72%, transparent); }
.band-ink .eyebrow { color: var(--sand); }
.band-lilac { background: linear-gradient(180deg, var(--lilac-top), var(--lilac-bottom)); border-block: 2px solid var(--outline); }
.band-lilac .eyebrow { color: var(--ink); opacity: 0.8; }
.band-lilac .sub { color: var(--ink); opacity: 0.82; }
.band-place { background: var(--accent-soft); transition: background-color 0.45s; }
.band-court { background: linear-gradient(180deg, var(--court-top), var(--court-bottom)); border-block: 2px solid var(--outline); }
.band-court .sub { color: var(--ink); opacity: 0.82; }
.band-court .eyebrow { color: var(--ink); opacity: 0.8; }
.band-sand { background: var(--sand-band); border-top: 2px solid var(--outline); }
.band-sand .eyebrow, .band-sand .sub { color: var(--ink); }
.band-sand .sub { opacity: 0.8; }

/* ------------------------------------------------------------------ law */

.law { display: grid; gap: 22px; }
.law-tasks { display: flex; flex-wrap: wrap; gap: 10px; }
.law-stage { position: relative; }
.law-blob { width: 100%; height: clamp(150px, 22vw, 220px); }
.law-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.8rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 2px; }
.law-control { display: grid; gap: 10px; }
.law-label { font-weight: 800; font-size: 1.02rem; }
.law-label b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--accent); font-variant-numeric: tabular-nums; margin-left: 4px; }
.law-bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.law-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 120px; counter-reset: none; }
.law-log li {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 10px 14px; border-radius: 14px;
  background: var(--paper); border: 2px dashed var(--line);
  animation: slide-in 0.35s ease both;
}
.law-log li time { font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.law-log li.real { border-style: solid; border-color: var(--outline); background: var(--surface); }
.law-log li.final { background: var(--accent-soft); border-style: solid; border-color: var(--outline); }
@keyframes slide-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.law-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.law-stats .btn { grid-column: 1 / -1; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); text-align: center; }
.stat b { font: 400 1.55rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.stat-warn b { color: #c24e2e; }
:root[data-theme="dark"] .stat-warn b { color: #f0906a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-warn b { color: #f0906a; } }
@media (max-width: 760px) { .law-bottom { grid-template-columns: minmax(0, 1fr); } }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; border-radius: 99px;
  background: linear-gradient(90deg, var(--sand) var(--fill, 0%), var(--paper-2) var(--fill, 0%));
  border: 2px solid var(--outline);
  box-shadow: 0 2.5px 0 var(--outline);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2326' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12M6 21h12M7.5 3c0 5.5 4.5 6 4.5 9s-4.5 3.5-4.5 9M16.5 3c0 5.5-4.5 6-4.5 9s4.5 3.5 4.5 9'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 2px solid #2b2326;
  box-shadow: 0 3px 0 #2b2326;
}
input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fffdf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2326' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12M6 21h12M7.5 3c0 5.5 4.5 6 4.5 9s-4.5 3.5-4.5 9M16.5 3c0 5.5-4.5 6-4.5 9s4.5 3.5 4.5 9'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 2px solid #2b2326;
  box-shadow: 0 3px 0 #2b2326;
}

.quote { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 760px; text-align: center; }
.quote blockquote { margin: 0; font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--font-display); text-wrap: balance; }
.quote figcaption { margin-top: 12px; color: var(--muted); font-weight: 700; font-size: 0.95rem; }

/* ------------------------------------------------------------------ excuses */

.excuses {
  position: relative;
  min-height: clamp(360px, 44vw, 460px);
  border-radius: var(--r-card);
  border: 2px dashed color-mix(in srgb, var(--night-ink) 22%, transparent);
  overflow: hidden;
}
.excuse {
  position: absolute;
  max-width: 230px;
  padding: 10px 16px;
  border-radius: 18px 18px 18px 6px;
  border: 2px solid #090708;
  box-shadow: 0 3px 0 #090708;
  background: #fffdf6;
  color: #2b2326;
  font-weight: 800; font-size: 0.95rem; line-height: 1.3; text-align: left;
  animation: drift var(--dur, 6s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  transition: transform 0.18s ease;
  will-change: transform;
}
.excuse:hover { transform: scale(1.06) rotate(-1deg); }
.excuse.popping { animation: pop-out 0.28s ease-in forwards; pointer-events: none; }
@keyframes drift { from { translate: 0 0; rotate: var(--r0, -2deg); } to { translate: var(--dx, 10px) var(--dy, -12px); rotate: var(--r1, 2deg); } }
@keyframes pop-out { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.22); opacity: 1; } 100% { transform: scale(0.2); opacity: 0; } }
.pop-bit { position: absolute; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; border: 2px solid #090708; animation: bit 0.55s ease-out forwards; }
@keyframes bit { to { transform: translate(var(--bx), var(--by)) scale(0.3); opacity: 0; } }
.excuse-foot { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.excuse-count { margin: 0; font-weight: 800; color: color-mix(in srgb, var(--night-ink) 75%, transparent); font-variant-numeric: tabular-nums; }
.excuse-done p { margin: 0 0 14px; font: 400 clamp(1.4rem, 3vw, 2rem)/1.2 var(--font-display); }
.band-ink .btn-ghost { color: var(--night-ink); }
.excuse-calm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.excuse-calm canvas { width: 180px; height: 220px; }

/* ------------------------------------------------------------------ steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step h3 { margin: 6px 0 0; font: 900 1.15rem/1.25 var(--font-body); }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.step-n {
  position: absolute; top: -14px; left: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand); color: #2b2326; border: 2px solid var(--outline); box-shadow: 0 2.5px 0 var(--outline);
  font: 400 1.15rem/1 var(--font-display);
}
.step-art { height: 140px; border-radius: 18px; background: var(--accent-soft); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; border: 2px solid var(--line); transition: background-color 0.45s; }
.step-canvas { width: 100%; height: 100%; }
.mini-add { display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--surface); border: 2px solid var(--outline); box-shadow: 0 2.5px 0 var(--outline); font-size: 0.82rem; font-weight: 700; }
.mini-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.mini-type::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mini-min { color: var(--muted); font-weight: 800; font-size: 0.76rem; white-space: nowrap; }
.mini-plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--outline); flex: none; }
.step-art-chips { display: flex; justify-content: center; gap: 5px; padding: 0 8px; grid-template-columns: none; }
.mchip { flex: 0 1 auto; min-width: 0; padding: 7px 8px; border-radius: 99px; border: 2px solid var(--outline); background: var(--surface); box-shadow: 0 2.5px 0 var(--outline); font-weight: 900; font-size: 0.8rem; font-variant-numeric: tabular-nums; animation: chip-bob 2.4s ease-in-out infinite; }
.mchip:nth-child(2) { animation-delay: 0.2s; } .mchip:nth-child(3) { animation-delay: 0.4s; } .mchip:nth-child(4) { animation-delay: 0.6s; }
.mchip-on { background: var(--accent); color: var(--accent-ink); }
@keyframes chip-bob { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-5px); } }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 540px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ builder */

.builder { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.builder-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.builder-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--sand) 35%, transparent), transparent 62%);
  pointer-events: none;
}
.builder-canvas { position: relative; width: min(100%, 320px); height: clamp(280px, 34vw, 380px); cursor: pointer; touch-action: manipulation; }
.builder-tag { position: relative; text-align: center; }
.builder-tag input {
  width: 230px; max-width: 100%;
  text-align: center;
  font: 400 1.9rem/1.1 var(--font-display);
  border: 0; border-bottom: 2px dashed var(--line); background: transparent; color: var(--ink);
  padding: 2px 6px;
}
.builder-tag input:focus { outline: none; border-bottom-color: var(--accent); }
.builder-summary { margin: 6px 0 0; color: var(--muted); font-weight: 800; font-size: 0.9rem; }
.builder-tip { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 700; position: relative; }
.builder-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 18px; background: var(--paper-2); border: 2px solid var(--outline); }
.tabs button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; padding: 10px 4px; border-radius: 13px; font-weight: 900; font-size: clamp(0.8rem, 2.9vw, 1rem); color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 2px var(--outline), 0 2.5px 0 2px var(--outline); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; align-content: start; min-height: 220px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 10px; border-radius: 18px;
  border: 2px solid var(--line); background: var(--paper);
  font-weight: 800; font-size: 0.84rem; color: var(--ink);
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.12s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { border-color: var(--outline); background: var(--surface); box-shadow: 0 3px 0 var(--outline); }
.swatch canvas { width: 80px; height: 80px; }
.swatch .dot { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--outline); box-shadow: 0 2.5px 0 var(--outline); margin: 9px 0; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
@media (max-width: 860px) { .builder { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .tabs { flex-wrap: nowrap; gap: 3px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .swatch canvas { width: 64px; height: 64px; }
  .excuse { font-size: 0.86rem; padding: 8px 12px; }
  .outlined { --w: 0.042em; --d: 0.07em; }
}

/* ------------------------------------------------------------------ hangouts */

.places { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.place-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 99px;
  border: 2px solid var(--outline); background: var(--surface); box-shadow: 0 3px 0 var(--outline);
  font-weight: 900; font-size: 1rem;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.3s;
}
.place-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.place-tab:active { transform: translateY(3px); box-shadow: 0 0 0 var(--outline); }
.hangout { position: relative; padding: 0; overflow: hidden; }
.hangout-canvas { width: 100%; aspect-ratio: 16 / 8.2; height: auto; }
.bubble-scene { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); max-width: min(80%, 420px); text-align: center; font-size: clamp(0.9rem, 1.6vw, 1.08rem); transition: opacity 0.25s; }
.bubble-scene::after { left: 50%; margin-left: -7px; }
.hangout-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.hangout-desc { margin: 0; max-width: 58ch; color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .hangout-canvas { aspect-ratio: 4 / 3.3; } }

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

.tickets {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 18px; margin-bottom: 18px;
  font-weight: 800; max-width: 760px;
}
.tickets .ico { color: var(--accent); width: 1.6em; height: 1.6em; }
.tickets.has { background: var(--sand); color: #2b2326; }
.tickets.has .ico { color: #2b2326; }
.game-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; }
.game-card canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; border: 2px solid var(--outline); }
.game-card h3 { margin: 4px 4px 0; font: 400 1.5rem/1.1 var(--font-display); }
.game-card p { margin: 0 4px; color: var(--muted); font-size: 0.95rem; }
.game-card .game-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 4px 2px; }
.game-card .best { font-weight: 900; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.game-stage { margin-top: 18px; padding: 0; overflow: hidden; }
.game-mount { position: relative; width: 100%; height: min(72vh, 600px); min-height: 460px; }
@media (max-width: 860px) { .game-picker { grid-template-columns: minmax(0, 1fr); } .game-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; } .game-card canvas { grid-row: span 3; } }
@media (max-width: 480px) { .game-card { grid-template-columns: 110px minmax(0, 1fr); } .game-mount { height: 76vh; min-height: 480px; } }

/* ------------------------------------------------------------------ dashboard */

.streaks-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks .ico { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 2px solid var(--outline); }
.ticks span { color: var(--muted); }
.ticks b { color: var(--ink); }
.dash { display: grid; gap: 14px; padding: 20px; border-radius: 34px; background: var(--paper-2); border: 2px solid var(--outline); box-shadow: 0 5px 0 var(--outline); }
.dash-card { padding: 16px; border-radius: 22px; }
.dash-streak { display: flex; gap: 16px; align-items: center; }
.dash-avatar { position: relative; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--outline); background: var(--accent-soft); flex: none; }
.dash-avatar canvas { width: 100%; height: 100%; border-radius: 50%; }
.dash-flame { position: absolute; right: -8px; bottom: -2px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--outline); font-size: 0.72rem; box-shadow: 0 1.5px 0 var(--outline); }
.dash-flame.zero { background: var(--surface); color: var(--muted); }
.dash-big { margin: 0; font-weight: 900; font-size: 1.3rem; line-height: 1.2; }
.dash-note { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.dash-small { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.dash-head b { font-weight: 900; font-size: 1.05rem; }
.dash-head span { color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.dash-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dash-day { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: transparent; padding: 0; color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.dash-day .c { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform 0.12s; }
.dash-day.today { color: var(--accent); }
.dash-day.today .c { border: 2px solid var(--accent); }
.dash-day.done .c { background: var(--accent); border: 2px solid var(--outline); color: var(--accent-ink); }
.dash-day.future .c { opacity: 0.45; }
.dash-day[aria-pressed="true"] .c { transform: scale(1.12); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--outline); }
.dash-day .c .ico { width: 14px; height: 14px; stroke-width: 3.4; }
.dash-day .n { min-height: 1em; font-variant-numeric: tabular-nums; }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; text-align: center; }
.dash-stats b { display: block; font-weight: 900; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.dash-stats span { font-size: 0.78rem; color: var(--muted); }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--paper); }
.dash-list .ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--outline); }
.dash-list .ck .ico { width: 13px; height: 13px; stroke-width: 3.4; }
.dash-list .nm { font-weight: 800; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list .tm { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-list .tm.late { color: #c24e2e; }
.dash-list .empty { display: block; color: var(--muted); font-size: 0.9rem; background: transparent; padding: 4px 2px; }
.dash-list .tag { font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-left: 6px; }
.dash-foot { margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .streaks-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ quiz */

.quiz { max-width: 860px; margin: 0 auto; min-height: 380px; display: flex; flex-direction: column; gap: 20px; }
.quiz-progress { display: flex; gap: 6px; }
.quiz-progress i { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--outline); }
.quiz-progress i.on { background: var(--sand); }
.quiz-q { margin: 0; font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--font-display); text-wrap: balance; }
.quiz-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-answer {
  text-align: left; padding: 16px 18px; border-radius: 18px;
  border: 2px solid var(--outline); background: var(--paper); box-shadow: 0 3px 0 var(--outline);
  font-weight: 800; font-size: 1rem; line-height: 1.4;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s;
}
.quiz-answer:hover { background: var(--accent-soft); }
.quiz-answer:active, .quiz-answer.chosen { transform: translateY(3px); box-shadow: 0 0 0 var(--outline); background: var(--accent); color: var(--accent-ink); }
.quiz-step { margin: 0; font-weight: 900; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.quiz-result { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; }
.quiz-result canvas { width: 220px; height: 260px; justify-self: center; }
.quiz-type { margin: 0; font: 400 clamp(2rem, 4.5vw, 3rem)/1 var(--font-display); color: var(--ink); }
.quiz-desc { margin: 10px 0 0; font-size: 1.08rem; }
.quiz-rx { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); border: 2px solid var(--outline); font-weight: 700; }
.quiz-rx b { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; font-weight: 900; }
.quiz-result .cta-row { margin-top: 18px; }
@media (max-width: 640px) { .quiz-answers { grid-template-columns: minmax(0, 1fr); } .quiz-result { grid-template-columns: minmax(0, 1fr); } .quiz-result canvas { width: 180px; height: 210px; } }

/* ------------------------------------------------------------------ faq */

.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 2px solid var(--outline); border-radius: 20px; background: var(--surface); box-shadow: 0 3px 0 var(--outline); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 56px 18px 20px; position: relative;
  font-weight: 900; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; border: 2px solid var(--outline); background: var(--sand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2326' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); max-width: 70ch; }

/* ------------------------------------------------------------------ final + footer */

.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-buddies { width: min(640px, 100%); height: clamp(150px, 22vw, 210px); margin-bottom: 12px; }
.final-title { color: var(--cream); font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 20ch; }
.final .sub { margin-inline: auto; }
.final .cta-row { margin-top: 26px; }
.waitlist { width: min(560px, 100%); margin: 24px auto 0; text-align: center; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.waitlist input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 0.8em 1.1em;
  border: 2px solid var(--outline); border-radius: 999px; box-shadow: 0 3.5px 0 var(--outline);
  background: var(--surface); color: var(--ink); font-weight: 700;
}
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist-turnstile { display: flex; justify-content: center; }
.waitlist-turnstile:not(:empty) { margin-top: 12px; }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-note { margin: 12px 0 0 !important; font-size: 0.85rem; font-weight: 700; color: var(--ink) !important; }
.waitlist-error { margin: 12px 0 0 !important; font-weight: 800; color: #9b2c12 !important; }
.waitlist-done {
  display: inline-block; margin: 24px auto 0 !important; padding: 12px 18px; border-radius: 18px;
  background: var(--surface); color: var(--ink) !important; border: 2px solid var(--outline); box-shadow: 0 3px 0 var(--outline); font-weight: 800;
}
.privacy { max-width: 720px; display: grid; gap: 16px; }
.privacy p { margin: 0; }
.final-note { margin: 18px 0 0; font-weight: 800; font-size: 0.9rem; color: var(--ink); opacity: 0.8; }

.footer { background: var(--paper); padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--outline); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-brand b { color: var(--ink); }
@media (max-width: 720px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ------------------------------------------------------------------ mobile bar */

.mobile-bar {
  position: fixed; z-index: 40;
  left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: 22px; background: var(--surface);
  border: 2px solid var(--outline); box-shadow: 0 3px 0 var(--outline), 0 12px 30px -10px var(--shadow-soft);
  transform: translateY(140%); transition: transform 0.35s cubic-bezier(.3, 1.3, .5, 1);
}
.mobile-bar.show { transform: none; }
.mobile-buddy { width: 38px; height: 44px; }
.mobile-bar p { margin: 0 auto 0 0; display: flex; flex-direction: column; line-height: 1.2; }
.mobile-bar p b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.mobile-bar p span { font-size: 0.78rem; color: var(--muted); font-weight: 800; }
@media (max-width: 720px) { .mobile-bar { display: flex; } }

/* ------------------------------------------------------------------ confetti, toast, modal */

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(92vw, 460px);
  padding: 12px 18px; border-radius: 18px;
  background: var(--outline); color: var(--cream);
  border: 2px solid var(--outline); box-shadow: 0 10px 30px -10px var(--shadow-soft);
  font-weight: 800; text-align: center;
  animation: toast-in 0.35s cubic-bezier(.3, 1.4, .5, 1);
}
:root[data-theme="dark"] .toast { background: var(--sand); color: #2b2326; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--sand); color: #2b2326; } }
@media (max-width: 720px) { .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }
@keyframes toast-in { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

.modal { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 18, 30, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(440px, 100%); max-height: 90vh; overflow: auto; padding: 28px 24px 24px; text-align: center; animation: bounce-in 0.35s cubic-bezier(.3, 1.4, .5, 1); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; }
.modal-card h3 { margin: 6px 0 8px; font: 400 1.9rem/1.1 var(--font-display); }
.modal-card p { margin: 0 0 16px; color: var(--muted); }
.modal-card img { display: block; margin: 6px auto 14px; width: 220px; height: 220px; border-radius: 26px; border: 2px solid var(--outline); background: var(--paper-2); }
.modal-card canvas { margin: 0 auto 10px; width: 140px; height: 160px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
