/* Kumustahan 2.0 — homepage ("Isang gabi sa mesa": one night at the table).
   Mobile-first: base rules are phones; wider layouts are added in
   @media (min-width: 861px) / (min-width: 1180px) blocks.
   The page is a night: day sections (paper) → the night (scroll-driven) →
   night sections → sunrise → morning. Section tone comes from data-tone.
   Cards, deck covers, the foil pass, skins and Salo are objects: fixed hex in
   every tone, like the app. Motion is transform/opacity only; card flips put
   one transform on each face and keep the parent flat (CLAUDE.md). */

:root {
  --paper: #F3ECDC;
  --paper-rgb: 243, 236, 220;
  --front: #FBF6EA;
  --back: #E8DEC9;
  --ink: #1F1B16;
  --ink-rgb: 31, 27, 22;
  --ink-soft: #4A3F33;
  --muted: #6E6253;
  --line: rgba(31, 27, 22, 0.12);

  --cream: #F3ECDC;
  --night: #1F1B16;
  --foil: #2A2520;
  --gold: #D9B26A;

  --gabi: #15120F;
  --gabi-2: #1F1A16;
  --gabi-3: #2A241E;
  --gabi-ink: #F1E9DA;
  --gabi-soft: #CFC3B0;
  --gabi-muted: #A89C8A;
  --gabi-line: rgba(241, 233, 218, 0.12);

  --terracotta: #C75B3E;
  --sun: #E4A951;
  --sage: #6B7E5B;
  --dusk: #4A6B80;
  --rose: #B8577A;
  --violet: #8B6FA8;
  --mint: #5E8C7F;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Curves: strong ease-out for entrances, ease-in-out for on-screen moves,
     and the app's own springs (src/theme/motion.ts) sampled into linear(). */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --spring-bounce: linear(0, 0.035, 0.119, 0.235, 0.368, 0.505, 0.638, 0.758, 0.863, 0.95, 1.018, 1.068, 1.101, 1.12, 1.127, 1.124, 1.115, 1.101, 1.085, 1.067, 1.05, 1.034, 1.021, 1.009, 1, 0.993, 0.988, 0.985, 0.984, 0.984, 0.985, 0.987, 0.989, 0.991, 0.993, 0.995, 1);
  --spring-snap: linear(0, 0.032, 0.099, 0.183, 0.273, 0.361, 0.445, 0.525, 0.592, 0.652, 0.704, 0.749, 0.788, 0.822, 0.85, 0.874, 0.894, 0.911, 0.925, 0.938, 0.948, 0.956, 0.963, 0.969, 0.974, 0.979, 0.982, 0.985, 0.987, 0.989, 0.991, 0.993, 0.994, 0.995, 0.996, 0.996, 1);
  --bounce-ms: 865ms;
  --snap-ms: 654ms;

  --shadow-card: 0 1px 1px rgba(31, 27, 22, 0.05), 0 10px 22px rgba(31, 27, 22, 0.12), 0 26px 48px rgba(31, 27, 22, 0.1);
  --radius-card: 22px;
  --nav-h: 64px;
  --gutter: 16px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
  background: var(--paper);
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Paper grain over everything (multiply on paper, soft-light at night). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-tone="night"]::after { opacity: 0.28; }

[hidden] { display: none !important; }
::selection { background: var(--terracotta); color: var(--cream); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea, select { font-size: 16px; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button, a, [role="button"], summary { touch-action: manipulation; }
button, [role="button"], .chip, summary, .lens, .stickers li, .kcard, .fan-card {
  -webkit-user-select: none;
  user-select: none;
}
:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: 3px; border-radius: 10px; }
[data-tone="night"] :focus-visible { outline-color: var(--sun); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 { font-size: clamp(38px, 10vw, 76px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; }
em { font-style: italic; }
.ln, .k-q, .k-b, .hour-line, .lede, p { text-wrap: pretty; }
h3, .dawn-sub, .stickers li, .bubble { text-wrap: balance; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 400;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.kicker {
  margin: 0 0 14px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--terracotta);
}
[data-tone="night"] .kicker { color: var(--sun); }
.lede {
  margin-top: 16px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
[data-tone="night"] .lede { color: var(--gabi-soft); }
.lede b { font-weight: 700; color: var(--ink); }
[data-tone="night"] .lede b { color: var(--gabi-ink); }
.muted { color: var(--muted); }
[data-tone="night"] .muted { color: var(--gabi-muted); }

/* Tones */
[data-tone="day"] { background: var(--paper); color: var(--ink); }
[data-tone="night"] { background: var(--gabi); color: var(--gabi-ink); }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-cream { background: var(--gabi-ink); color: var(--night); }
.btn-ghost { border: 1.5px solid var(--line); background: rgba(251, 246, 234, 0.6); color: var(--ink); }
[data-tone="night"] .btn-ghost { border-color: var(--gabi-line); background: rgba(241, 233, 218, 0.04); color: var(--gabi-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #352D25; }
  .btn-ghost:hover { border-color: rgba(31, 27, 22, 0.3); }
  [data-tone="night"] .btn-ghost:hover { border-color: rgba(241, 233, 218, 0.3); }
  .btn-cream:hover { background: #FFF8EA; }
}
.text-link { font-weight: 700; text-underline-offset: 4px; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gabi-line);
  color: var(--gabi-ink);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip-ink { background: var(--gabi-ink); color: var(--night); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: rgba(241, 233, 218, 0.34); }
  .chip-ink:hover { background: #FFF8EA; }
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.1;
  font-weight: 700;
  font-size: 17px;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.78; }
[data-tone="night"] .store { background: var(--gabi-ink); color: var(--night); }
@media (hover: hover) and (pointer: fine) {
  .store:hover { background: #352D25; }
  [data-tone="night"] .store:hover { background: #FFF8EA; }
}
.store:active { transform: scale(0.97); }

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

.nav {
  position: fixed;
  z-index: 200;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  transition: transform 0.45s var(--ease-drawer), color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--paper-rgb), 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.35s ease, border-color 0.35s ease;
}
.nav.is-scrolled::before, html:not(.js) .nav::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
body[data-tone="night"] .nav { color: var(--gabi-ink); }
body[data-tone="night"] .nav::before { background: rgba(21, 18, 15, 0.7); border-color: var(--gabi-line); }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}
.clock {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 4px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}
body[data-tone="night"] .clock { border-color: var(--gabi-line); }
.clock-face {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.8;
}
.clock-face i {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 1.5px;
  margin-left: -0.75px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: 50% 100%;
}
.clock-h { height: 4.5px; transform: rotate(var(--hr, 135deg)); }
.clock-m { height: 6.5px; transform: rotate(var(--mr, 180deg)); }
.clock-text { display: flex; gap: 6px; }
.clock-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.clock-name { opacity: 0.72; }

.nav-links { display: none; }
.lens {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.07);
}
body[data-tone="night"] .lens { background: rgba(241, 233, 218, 0.1); }
.lens button {
  position: relative;
  z-index: 1;
  min-width: 44px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.lens button::before { content: ""; position: absolute; inset: -4px 0; } /* 44px tall hit area */
.lens button[aria-pressed="true"] { color: var(--paper); }
body[data-tone="night"] .lens button[aria-pressed="true"] { color: var(--night); }
.lens-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.42s var(--spring-snap), background-color 0.35s ease;
}
body[data-tone="night"] .lens-thumb { background: var(--gabi-ink); }
html.lang-tl .lens-thumb { transform: translateX(100%); }
.nav-get { display: none; }
.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.menu-btn i {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.menu-btn i:first-of-type { transform: translateY(-4px); }
.menu-btn i:last-of-type { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  color: var(--ink);
}
body[data-tone="night"] .menu { background: var(--gabi); color: var(--gabi-ink); }
.menu nav { display: grid; }
.menu nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
body[data-tone="night"] .menu nav a { border-color: var(--gabi-line); }
.menu nav small { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.55; }
.menu-get { align-self: stretch; min-height: 54px; }
.menu { overflow-y: auto; overscroll-behavior: contain; }
/* Sits at the bottom while it fits; on short screens (iPhone SE) it scrolls from the
   top. justify-content: flex-end pushed the overflow above the top edge, out of reach. */
.menu > :first-child { margin-top: auto; }
/* `.menu-more` is a nav inside .menu, so it must outrank `.menu nav` / `.menu nav a` (the big story links). */
.menu nav.menu-more { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: -8px; }
.menu nav.menu-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; font-family: var(--ui); font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
body[data-tone="night"] .menu-get { background: var(--gabi-ink); color: var(--night); }
.menu.is-open nav a { animation: menuIn 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes menuIn { from { opacity: 0; transform: translateY(16px); } }

/* ------------------------------------------------------------------ cards
   The app's CardFace, on the web. Each face carries its whole transform. */

.kcard {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 5 / 7;
  container-type: inline-size;
  flex: none;
  cursor: pointer;
  outline: none;
  touch-action: pan-y;
}
.kface {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 8cqi 8cqi 6.5cqi;
  border-radius: var(--radius-card);
  background: var(--front);
  color: var(--night);
  box-shadow: var(--shadow-card);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: perspective(1400px) rotateY(0deg);
  will-change: transform;
}
.kcard .front { background-image: radial-gradient(70% 55% at var(--gx, 50%) var(--gy, -20%), rgba(255, 255, 255, var(--glare, 0)), rgba(255, 255, 255, 0) 70%); }
.kface.back {
  background: var(--back);
  transform: perspective(1400px) rotateY(180deg);
}
.kcard[aria-pressed="true"]:not(.is-driven) .front { transform: perspective(1400px) rotateY(-180deg); }
.kcard[aria-pressed="true"]:not(.is-driven) .back { transform: perspective(1400px) rotateY(0deg); }
/* WebKit can show a back face mirrored through backface-visibility; the
   hidden face also swaps visibility at the turn (CardRig does it inline). */
.kcard:not(.is-driven) .kface { transition: transform var(--bounce-ms) var(--spring-bounce), visibility 0s linear 120ms; }
.kcard:not(.is-driven) .back,
.kcard[aria-pressed="true"]:not(.is-driven) .front { visibility: hidden; }
.kcard[aria-pressed="true"]:not(.is-driven) .back { visibility: visible; }
.kcard:focus-visible .kface { outline: 2.5px solid var(--terracotta); outline-offset: 4px; }
.k-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.k-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--ui);
  font-size: clamp(10px, 3.5cqi, 12px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-ink, #A9472D);
}
.k-kicker > span { overflow: hidden; text-overflow: ellipsis; }
/* Small text in a deck's colour, darkened to pass AA on card paper. */
[data-deck="getting"] { --accent-ink: #A9472D; }
[data-deck="fun"] { --accent-ink: #855A12; }
[data-deck="reflect"] { --accent-ink: #4F6142; }
[data-deck="faith"] { --accent-ink: #3D5A6C; }
[data-deck="couples"] { --accent-ink: #994465; }
[data-deck="friends"] { --accent-ink: #6E5490; }
[data-deck="icebreakers"] { --accent-ink: #436E62; }
.k-kicker i { background: var(--accent, currentColor); }
.k-kicker i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.back .k-kicker { color: var(--muted); }
.k-no {
  flex: none;
  white-space: nowrap;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(11px, 4.8cqi, 16px);
  color: #74685A;
}
.k-q {
  margin: auto 0;
  padding: 6cqi 0;
  font-family: var(--display);
  font-weight: 550;
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
  font-size: clamp(17px, 8.4cqi, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.k-b {
  margin: auto 0;
  padding: 6cqi 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(15px, 6.4cqi, 22px);
  line-height: 1.38;
  color: var(--ink-soft);
}
.k-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.k-hint { font-size: clamp(11px, 4.2cqi, 14px); color: #74685A; }
.k-mark {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(12px, 4.6cqi, 15px);
  letter-spacing: 0.02em;
  color: #8E8170;
}

/* Language: both are in the DOM (crawlable); the toggle shows one. */
.tl { display: none; }
html.lang-tl .tl { display: inline; }
html.lang-tl .en { display: none; }

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

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 10px) 0 76px;
  overflow: clip;
  isolation: isolate;
}
.hero-light {
  position: absolute;
  inset: -20% -30% auto auto;
  width: 120vw;
  height: 120vw;
  max-width: 1200px;
  max-height: 1200px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 196, 120, 0.42), rgba(244, 196, 120, 0.14) 46%, rgba(244, 196, 120, 0) 72%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 22px; }
.pill-new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: rgba(251, 246, 234, 0.72);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.pill-new b {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) { .pill-new:hover { border-color: rgba(31, 27, 22, 0.3); } }
.hero-title {
  margin-top: 18px;
  font-size: clamp(48px, 14vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 520;
}
.hero-title .ln { display: block; }
.hero-title .dodge {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--muted);
}
.strike {
  position: absolute;
  left: -3%;
  width: 106%;
  top: 38%;
  height: 0.42em;
  overflow: visible;
}
.strike path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hero-title .real em {
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--terracotta);
}
.hero-sub {
  margin-top: 18px;
  max-width: 30em;
  font-size: 17px;
  color: var(--ink-soft);
}
.hero-copy .stores { margin-top: 22px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

.hero-stage {
  --w: min(76vw, 320px);
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: calc(var(--w) * 0.36);
  isolation: isolate;
}
.hero-salo {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: calc(var(--w) * 0.5);
  aspect-ratio: 420 / 430;
  margin-left: calc(var(--w) * -0.42);
  cursor: pointer;
  outline: none;
  border-radius: 40%;
}
.hero-salo:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: -12%; }
.salo-host { touch-action: manipulation; }
.salo-host .salo-svg, .salo-host .salo-still { width: 100%; height: 100%; display: block; overflow: visible; }
.bubble {
  position: absolute;
  z-index: 3;
  padding: 9px 14px 10px;
  border-radius: 18px 18px 18px 6px;
  background: var(--front);
  color: var(--night);
  box-shadow: 0 8px 22px rgba(31, 27, 22, 0.14);
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: 0% 100%;
  transition: opacity 0.22s ease, transform 0.42s var(--spring-snap);
}
.bubble.is-hidden { opacity: 0; transform: translateY(6px) scale(0.92); }
.hero-bubble { top: calc(var(--w) * 0.03); left: calc(50% + var(--w) * 0.06); max-width: min(46vw, 230px); white-space: normal; }

.table-deck {
  position: relative;
  z-index: 1;
  width: var(--w);
  aspect-ratio: 5 / 7;
}
.table-deck .kcard { --w: 100%; position: absolute; inset: 0; width: 100%; z-index: 2; }
.pile {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: var(--front);
  box-shadow: 0 1px 1px rgba(31, 27, 22, 0.05), 0 8px 18px rgba(31, 27, 22, 0.08);
}
.pile::before {
  /* The next card, face down: an inset rule and the wordmark. */
  content: "kumustahan";
  position: absolute;
  inset: 5.5%;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius-card) - 8px);
  border: 1px solid rgba(31, 27, 22, 0.1);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(31, 27, 22, 0.22);
  background: repeating-linear-gradient(45deg, rgba(199, 91, 62, 0.04) 0 2px, transparent 2px 9px);
}
.pile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(rgba(31, 27, 22, 0), rgba(31, 27, 22, 0.05));
}
.pile.p1 { transform: translateY(8px) scale(0.97); }
.pile.p2 { transform: translateY(16px) scale(0.94); }
.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.hero-tip { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--muted); }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}
.scroll-cue em { font-family: var(--display); font-weight: 400; font-size: 15px; }
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 22px;
  margin-left: 6px;
  background: linear-gradient(currentColor, transparent);
  animation: cue 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Intro. html.intro is set in <head> before first paint (motion allowed
   only). The type rises from CSS at once, so LCP never waits for scripts;
   the deck, Salo and the bubble wait for v2.js (.play). A timeout in <head>
   drops .intro if the script never runs, so nothing can stay hidden. */
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes strike { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
.intro .hero-title .ln { overflow: hidden; padding: 0 0.12em 0.14em; margin: 0 -0.12em -0.14em; }
.intro .hero-title .ln > span { display: inline-block; animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 40ms); }
.intro .strike { animation: strike 0.55s var(--ease-in-out) 0.85s both; }
.intro .pill-new, .intro .hero-sub, .intro .hero .stores, .intro .hero-facts { animation: fadeUp 0.9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms); }
.intro .table-deck, .intro .hero-actions { opacity: 0; transform: translateY(40px) rotate(4deg); }
.intro .hero-salo, .intro:not(.play) .hero-bubble { opacity: 0; }
.intro.play .table-deck { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 1.1s var(--spring-bounce); }
.intro.play .hero-actions { opacity: 1; transform: none; transition: opacity 0.5s ease 0.5s, transform 0.8s var(--ease-out) 0.5s; }
.intro.play .hero-salo { opacity: 1; transition: opacity 0.2s ease 0.8s; }

/* ----------------------------------------------------------------- ribbon */

.ribbon {
  display: grid;
  gap: 10px;
  padding: 18px 0 26px;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ribbon-row { display: flex; gap: 10px; width: max-content; will-change: transform; }
.ribbon-row > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--front);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 16px;
  white-space: nowrap;
}
.ribbon-row > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }

/* -------------------------------------------------------------- manifesto */

.manifesto { padding: 96px 0 110px; }
.manifesto-text {
  max-width: 19em;
  font-family: var(--display);
  font-size: clamp(32px, 8.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 450;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
}
.manifesto-text em { color: var(--terracotta); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.manifesto-text .ayos {
  position: relative;
  text-decoration: none;
  font-style: italic;
  color: var(--muted);
}
.manifesto-text .ayos::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.07em;
  border-radius: 1em;
  background: var(--terracotta);
  transform-origin: left;
  transform: scaleX(var(--strike, 1));
}
.js .manifesto-text .w { opacity: var(--o, 0.16); transition: opacity 0.25s linear; }
.manifesto-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.stamp b { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ decks */

.decks { padding: 40px 0 72px; overflow: clip; }
.decks-head { margin-bottom: 30px; }
.fan {
  --cw: 210px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px max(var(--gutter), env(safe-area-inset-left)) 24px;
  scrollbar-width: none;
}
.fan::-webkit-scrollbar { display: none; }
.fan-card {
  position: relative;
  flex: none;
  width: var(--cw);
  aspect-ratio: 5 / 7;
  scroll-snap-align: center;
  container-type: inline-size;
}
.fan-hit { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius-card); }
.fan-hit:focus-visible { outline-offset: 4px; }
.fan-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: var(--shadow-card);
  transform: perspective(1400px) rotateY(0deg);
}
.fan-back { transform: perspective(1400px) rotateY(180deg); }
.fan-card.is-open:not(.is-driven) .fan-front { transform: perspective(1400px) rotateY(-180deg); }
.fan-card.is-open:not(.is-driven) .fan-back { transform: perspective(1400px) rotateY(0deg); }
.fan-card:not(.is-driven) .fan-face { transition: transform var(--bounce-ms) var(--spring-bounce), visibility 0s linear 120ms; }
.fan-card:not(.is-driven) .fan-back,
.fan-card.is-open:not(.is-driven) .fan-front { visibility: hidden; }
.fan-card.is-open:not(.is-driven) .fan-back { visibility: visible; }
.cover {
  display: flex;
  flex-direction: column;
  padding: 9cqi 9cqi 10cqi;
  background: var(--accent);
  color: var(--on);
}
.cover::before {
  /* Cream veil + spine + inset rule, like DeckCover in the app. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(31, 27, 22, 0.12) 0 2.4cqi, transparent 2.4cqi),
    radial-gradient(120% 90% at 20% 0%, rgba(243, 236, 220, 0.28), rgba(243, 236, 220, 0) 60%);
  pointer-events: none;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 4.3cqi;
  border-radius: calc(var(--radius-card) - 7px);
  border: 1px solid currentColor;
  opacity: 0.3;
  pointer-events: none;
}
.cover-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(9.5px, 4.4cqi, 11px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cover-top em { font-family: var(--display); font-size: clamp(13px, 7.4cqi, 18px); letter-spacing: 0; text-transform: none; font-weight: 500; }
.cover-sym {
  position: relative;
  width: 24cqi;
  height: 24cqi;
  margin: auto 0 7cqi;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cover-sym .dot { fill: currentColor; }
.cover-title {
  position: relative;
  font-size: clamp(20px, 13.4cqi, 34px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 520;
}
.cover-line {
  position: relative;
  margin-top: 4cqi;
  font-size: clamp(11px, 5.6cqi, 14px);
  line-height: 1.35;
  font-weight: 600;
  opacity: 0.86;
}
.fan-back {
  display: flex;
  flex-direction: column;
  padding: 9cqi;
  background: var(--front);
  color: var(--night);
}
.fan-back .k-kicker { font-size: clamp(10px, 4.2cqi, 11px); }
.fan-back .k-q { font-size: clamp(14px, 9cqi, 24px); }
.fan-back .k-q span { transition: opacity 0.2s ease; }
.fan-back .k-q.is-swapping span { opacity: 0; }

.deck-info {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  min-height: 132px;
}
.deck-info-name { font-family: var(--display); font-size: 28px; font-weight: 520; letter-spacing: -0.02em; line-height: 1.1; }
.deck-info-for { margin-top: 4px; color: var(--ink-soft); }
.deck-info-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.deck-info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.deck-info-text, .deck-info-count { transition: opacity 0.2s ease; }
.deck-info.is-swapping .deck-info-text, .deck-info.is-swapping .deck-info-count { opacity: 0; }

/* Live fan (JS): a hand of cards. */
.fan.is-live {
  position: relative;
  display: block;
  overflow: visible;
  height: calc(var(--cw) * 1.4 + 90px);
  padding: 0;
  scroll-snap-type: none;
  touch-action: pan-y;
}
.fan.is-live .fan-card {
  position: absolute;
  left: 50%;
  top: 40px;
  margin-left: calc(var(--cw) / -2);
  scroll-snap-align: none;
}
.fan.is-live .fan-hit { pointer-events: none; }

/* ------------------------------------------------------------------ night */

.night { position: relative; padding-top: 40px; }
.night-head { padding-bottom: 36px; }
.night-head h2 { max-width: 13em; }

/* Without JS (or with Reduce Motion) the night is a plain list of hours. */
.night-scene { position: relative; }
.night-scene .sky, .night-scene .bulb, .night-scene .tabletop, .night-salo-wrap, .night-clock, .night-rail { display: none; }
.hours {
  display: grid;
  gap: 54px;
  margin: 0;
  padding: 0 var(--gutter) 90px;
  list-style: none;
  max-width: 1240px;
  margin-inline: auto;
}
.hour { display: grid; gap: 10px; justify-items: start; }
.hour .kcard { --w: min(80vw, 300px); margin-top: 10px; }
.hour-time { font-family: var(--display); font-size: 30px; font-weight: 520; letter-spacing: -0.02em; }
.hour-time time { font-variant-numeric: tabular-nums; }
.hour-depth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hour-depth i { position: relative; width: 22px; height: 6px; }
.hour-depth i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px 0 0 rgba(128, 118, 104, 0.4), 16px 0 0 rgba(128, 118, 104, 0.4);
}
.hour-depth i.d2::before { box-shadow: 8px 0 0 currentColor, 16px 0 0 rgba(128, 118, 104, 0.4); }
.hour-depth i.d3::before { box-shadow: 8px 0 0 currentColor, 16px 0 0 currentColor; }
.hour-line { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.3; max-width: 22em; }

/* Live: a sticky stage the scroll plays through. */
.night-track.is-live { height: 460vh; }
.night-track.is-live .night-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--night-fg, var(--ink));
  transition: color 0.5s ease;
}
.night-track.is-live .sky {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, var(--sky-a, #F2DDB8), var(--sky-b, #F3ECDC) 78%);
}
.night-track.is-live .sun {
  position: absolute;
  left: 8%;
  bottom: calc(var(--table-h) - 17vmin);
  width: 34vmin;
  height: 34vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.9), rgba(244, 170, 90, 0.5) 40%, rgba(244, 170, 90, 0) 70%);
  opacity: var(--sun-o, 1);
  transform: translateY(var(--sun-y, 0px));
}
.night-track.is-live .moon {
  position: absolute;
  right: 14%;
  top: 14%;
  width: 9vmin;
  height: 9vmin;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  background: #F4ECD8;
  box-shadow: 0 0 40px 8px rgba(244, 236, 216, 0.22), inset -0.9vmin -0.6vmin 0 rgba(31, 27, 22, 0.12);
  opacity: var(--moon-o, 0);
  transform: translateY(var(--moon-y, 40px));
}
.stars {
  position: absolute;
  inset: 0 0 35% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 40%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0 40%, #000 62%);
  opacity: var(--stars-o, 0);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 27% 8%, #fff 99%, transparent),
    radial-gradient(1.4px 1.4px at 41% 30%, #fff 99%, transparent),
    radial-gradient(1px 1px at 55% 12%, #fff 99%, transparent),
    radial-gradient(1.3px 1.3px at 68% 26%, #fff 99%, transparent),
    radial-gradient(1px 1px at 79% 6%, #fff 99%, transparent),
    radial-gradient(1.2px 1.2px at 91% 34%, #fff 99%, transparent),
    radial-gradient(1px 1px at 6% 44%, #fff 99%, transparent),
    radial-gradient(1px 1px at 35% 52%, #fff 99%, transparent),
    radial-gradient(1.2px 1.2px at 84% 48%, #fff 99%, transparent),
    radial-gradient(1px 1px at 61% 42%, #fff 99%, transparent),
    radial-gradient(1px 1px at 18% 60%, #fff 99%, transparent);
}
.night-track.is-live .bulb {
  display: block;
  position: absolute;
  z-index: -1;
  left: 58%;
  top: 0;
  width: 40px;
  height: 30vh;
}
.bulb .cord { position: absolute; left: 50%; top: 0; width: 1.5px; height: calc(100% - 22px); background: rgba(31, 27, 22, 0.45); }
.bulb .glass {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 26px;
  margin-left: -11px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 60%, #FFF4D6, #F2C46B 70%);
  opacity: calc(0.45 + var(--lamp, 0) * 0.55);
}
.bulb.is-flicker .glass, .bulb.is-flicker .glow { animation: flicker 0.9s steps(1); }
@keyframes flicker { 0% { opacity: 0.2; } 12% { opacity: 1; } 22% { opacity: 0.3; } 34% { opacity: 1; } 46% { opacity: 0.55; } 60%, 100% { opacity: 1; } }
.bulb .glow {
  position: absolute;
  left: 50%;
  bottom: -46vmin;
  width: 110vmin;
  height: 110vmin;
  margin-left: -55vmin;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 205, 120, 0.42), rgba(255, 205, 120, 0.12) 50%, rgba(255, 205, 120, 0) 75%);
  opacity: var(--lamp, 0);
  pointer-events: none;
}
.night-track.is-live .tabletop {
  display: block;
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: var(--table-h);
  background: linear-gradient(180deg, var(--table-a, #D8C4A2), var(--table-b, #C9B28C));
  border-top: 1px solid rgba(31, 27, 22, 0.1);
  border-radius: 50% 50% 0 0 / 22px 22px 0 0;
}
.night-track.is-live .tabletop::after {
  /* Wood grain, barely there. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(176deg, rgba(31, 27, 22, 0.05) 0 1px, transparent 1px 13px, rgba(255, 246, 224, 0.035) 13px 14px, transparent 14px 31px);
}
.night-cards::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -5%;
  height: 11%;
  border-radius: 50%;
  background: rgba(20, 14, 8, 0.32);
  filter: blur(10px);
}
.night-salo { width: 100%; aspect-ratio: 420 / 430; }
.zzz {
  position: absolute;
  right: 18%;
  top: 4%;
  display: block;
  width: 30px;
  height: 60px;
  pointer-events: none;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  color: currentColor;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.zzz.is-on { opacity: 1; }
.zzz i { position: absolute; left: 0; bottom: 0; font-size: 22px; opacity: 0; animation: zed 2.1s linear infinite; }
.zzz i:nth-child(2) { animation-delay: 0.7s; font-size: 18px; }
.zzz i:nth-child(3) { animation-delay: 1.4s; font-size: 14px; }
@keyframes zed {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-10px, -46px); }
}
.night-track.is-live .night-scene {
  --clock-size: clamp(64px, 19vw, 210px);
  --cw: min(54vw, 300px, 38svh);
  --table-h: 24svh;
  --card-left: var(--gutter);
}
.night-track.is-live .night-clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: absolute;
  left: var(--gutter);
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6px);
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  line-height: 0.9;
}
.nc-time { font-size: var(--clock-size); font-weight: 380; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.nc-ampm { font-size: clamp(18px, 4vw, 40px); font-weight: 500; letter-spacing: 0.02em; }
.night-caps {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + var(--clock-size) * 0.9 + 18px);
}
.cap { position: absolute; left: 0; right: 0; top: 0; }
.cap .hour-time {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cap .hour-depth, .cap .hour-line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.6s var(--ease-out);
}
.cap .hour-line { margin-top: 12px; font-size: clamp(19px, 5.2vw, 32px); max-width: 15em; }
.cap.is-now .hour-depth, .cap.is-now .hour-line { opacity: 1; transform: none; transition-delay: 0.12s; }
.cap.is-now .hour-depth { opacity: 0.88; }
.night-cards {
  position: absolute;
  left: var(--card-left);
  bottom: calc(var(--table-h) - var(--cw) * 0.24);
  width: var(--cw);
  aspect-ratio: 5 / 7;
}
.night-cards .kcard { --w: 100%; position: absolute; inset: 0; width: 100%; }
.night-track.is-live .night-salo-wrap {
  display: block;
  position: absolute;
  z-index: 2;
  left: calc(var(--card-left) + var(--cw) + 6px);
  bottom: calc(var(--table-h) - 14px);
  width: min(calc(100vw - var(--card-left) - var(--cw) - 6px - var(--gutter)), 210px);
}
.night-track.is-live .night-rail {
  display: flex;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  gap: 6px;
}
.night-rail i { flex: 1; height: 3px; border-radius: 3px; background: currentColor; opacity: 0.18; }
.night-rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(var(--rail, 0));
  opacity: 0.7;
}

/* -------------------------------------------------------------------- how */

.how { padding: 110px 0 60px; }
.how-head { margin-bottom: 40px; }
.how-grid { display: block; }
.how-phone { display: none; }
.how-steps { display: grid; gap: 64px; margin: 0; padding: 0; list-style: none; }
.how-step { display: grid; gap: 10px; }
.step-no { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--sun); }
.how-step h3 { font-size: clamp(28px, 7vw, 44px); }
.how-step p { max-width: 26em; font-size: 17px; color: var(--gabi-soft); }
.how-shot, .phone {
  border-radius: 38px;
  border: 7px solid #0E0C0A;
  box-shadow: 0 0 0 1px rgba(241, 233, 218, 0.14), 0 30px 70px rgba(0, 0, 0, 0.5);
  background: #0E0C0A;
}
.how-shot { width: min(72vw, 300px); margin-top: 18px; aspect-ratio: 620 / 1348; }
.phone { position: relative; overflow: hidden; aspect-ratio: 620 / 1348; }
.phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.phone img.is-on { opacity: 1; }

/* -------------------------------------------------------------------- new */

.new { padding: 100px 0 90px; }
.new-head { margin-bottom: 36px; }
.bento { display: grid; gap: 14px; }
.tile {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 24px;
  border-radius: 28px;
  background: var(--gabi-2);
  border: 1px solid var(--gabi-line);
  overflow: clip;
  min-width: 0;
}
.tile > * { min-width: 0; }
.tile-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 10px;
}
.tile-tag.tag-free { color: #9FC08E; }
.tile h3 { font-size: clamp(26px, 6.6vw, 36px); }
.tile-copy > p:not(.tile-tag) { margin-top: 10px; color: var(--gabi-soft); font-size: 16px; }

.maker-input {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--gabi-line);
  background: rgba(241, 233, 218, 0.05);
  color: var(--gabi-ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.35;
  resize: none;
}
.maker-input::placeholder { color: var(--gabi-muted); opacity: 1; }
.maker-input:focus { outline: none; border-color: var(--sun); }
.maker-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.maker-deck { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--gabi-soft); }
.maker-pile { position: relative; width: 34px; height: 46px; }
.maker-pile i, .maker-pile b {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--terracotta);
  border: 1px solid rgba(243, 236, 220, 0.35);
}
.maker-pile i:first-child { transform: rotate(-8deg); opacity: 0.5; }
.maker-pile i:nth-child(2) { transform: rotate(5deg); opacity: 0.75; }
.maker-pile b {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 17px;
  color: var(--cream);
  transition: transform 0.5s var(--spring-bounce);
}
.maker-pile.is-bump b { transform: translateY(-6px); transition-duration: 0.12s; }
.maker-stage { display: grid; place-items: center; padding: 8px 0; }
.maker-card { --w: min(70vw, 270px); cursor: default; }
.kcard-static .kface { transition: none; }
.maker-card .k-q { margin: 6cqi 0 auto; font-size: clamp(17px, 9.4cqi, 30px); line-height: 1.15; word-break: break-word; }
.maker-card .k-q.is-empty { color: #B3A796; }
.fly-card { position: fixed; z-index: 150; pointer-events: none; }

.skin-stack {
  position: relative;
  width: min(62vw, 250px);
  aspect-ratio: 460 / 647;
  margin: 8px auto 14px;
  align-self: center;
  outline: none;
}
.skin-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 14px 30px rgba(0, 0, 0, 0.35);
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg));
  transition: transform 0.7s var(--spring-snap), opacity 0.3s ease;
  background: #FBF6EA;
}
.skin-stack:focus-visible { outline: 2.5px solid var(--sun); outline-offset: 8px; border-radius: 18px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1.5px solid var(--gabi-line);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.swatch i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p) 50%, var(--i) 50%);
  box-shadow: inset 0 0 0 1px rgba(241, 233, 218, 0.25);
}
.swatch[aria-pressed="true"] { border-color: var(--gabi-ink); background: rgba(241, 233, 218, 0.08); }
.swatch-more { margin-top: 12px; font-size: 14px; }
.theme-phone { display: grid; place-items: center; padding: 6px 0; }
.phone-sm { width: min(56vw, 230px); border-radius: 32px; border-width: 6px; }
.tile-themes { transition: background-color 0.5s ease; }
.tile-themes::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 70% at 85% 60%, var(--theme-glow, rgba(243, 236, 220, 0.12)), transparent 70%);
  transition: background 0.5s ease;
}

.widgets-crop {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 1 / 1.1;
  border-radius: 28px;
  overflow: hidden;
  background: #4B3946;
}
.widgets-crop img {
  /* The capture's widget panel (x 6–94%, y 50.5–95%), scaled to fill. */
  position: absolute;
  left: -6.8%;
  width: 113.6%;
  top: -112.3%;
  max-width: none;
}

.pass-stage { display: grid; place-items: center; padding: 10px 0 4px; perspective: none; }
.pass {
  position: relative;
  width: min(68vw, 250px);
  aspect-ratio: 5 / 7;
  border-radius: 22px;
}
.pass-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at var(--gx, 30%) var(--gy, 0%), rgba(217, 178, 106, 0.32), rgba(217, 178, 106, 0) 55%),
    linear-gradient(160deg, #3A332B, var(--foil) 55%, #1C1814);
  color: var(--cream);
  text-align: left;
  box-shadow: 0 0 0 1px rgba(217, 178, 106, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: perspective(1200px) rotateY(0deg);
  transition: transform var(--bounce-ms) var(--spring-bounce), visibility 0s linear 120ms;
}
.pass-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 200, 0.22) 45%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: var(--glint, 120%) 0;
  pointer-events: none;
}
.pass-face.back { transform: perspective(1200px) rotateY(180deg); justify-content: flex-start; gap: 18px; visibility: hidden; }
.pass[aria-pressed="true"] .front { transform: perspective(1200px) rotateY(-180deg); visibility: hidden; }
.pass[aria-pressed="true"] .back { transform: perspective(1200px) rotateY(0deg); visibility: visible; }
.pass-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.pass-big { font-family: var(--display); font-size: 74px; line-height: 0.9; font-weight: 500; letter-spacing: -0.04em; color: #F6E7C6; }
.pass-label { font-family: var(--display); font-style: italic; font-size: 20px; margin-top: -40px; }
.pass-dots { display: flex; gap: 6px; }
.pass-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(243, 236, 220, 0.3); }
.pass-list { display: grid; gap: 10px; flex: 1; font-family: var(--display); font-size: 20px; line-height: 1.2; }
.pass-list span { padding-bottom: 10px; border-bottom: 1px solid rgba(217, 178, 106, 0.22); }
.pass-face.back .pass-top:last-child { margin-top: auto; }

.keep-art { display: flex; align-items: center; gap: 18px; padding: 6px 0; align-self: end; }
.keep-heart {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(241, 233, 218, 0.06);
  border: 1.5px solid var(--gabi-line);
}
.keep-heart svg { width: 34px; height: 34px; fill: none; stroke: var(--gabi-ink); stroke-width: 1.6; stroke-linejoin: round; transition: fill 0.2s ease, stroke 0.2s ease; }
.keep-heart[aria-pressed="true"] svg { fill: var(--rose); stroke: var(--rose); }
.keep-heart.is-pop svg { animation: pop 0.55s var(--spring-bounce); }
@keyframes pop { 0% { transform: scale(0.8); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.keep-note {
  padding-left: 14px;
  border-left: 2px solid var(--sage);
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
}
.keep-note span { display: block; margin-bottom: 4px; font-family: var(--ui); font-style: normal; font-size: 12px; font-weight: 600; color: var(--gabi-muted); }

/* ------------------------------------------------------------------- salo */

.salo { padding: 90px 0 100px; }
.salo-grid { display: grid; gap: 40px; }
.salo-copy h2 em { color: var(--sun); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.facts { margin: 30px 0 0; display: grid; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--gabi-line); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gabi-muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: 16px; }
.facts s { text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; font-family: var(--display); font-style: italic; }
.salo-small { margin-top: 18px; font-size: 14px; color: var(--gabi-muted); }

.house { display: grid; gap: 14px; justify-items: center; }
.house-scene {
  --floor: 30px;
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 0.92;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(242, 196, 107, 0.16), transparent 70%),
    linear-gradient(180deg, #221C2A, #1A1620 60%, #171310);
  border: 1px solid var(--gabi-line);
  touch-action: pan-y;
  isolation: isolate;
}
.house-scene.is-day {
  background: radial-gradient(60% 50% at 30% 30%, rgba(242, 196, 107, 0.2), transparent 70%), linear-gradient(180deg, #F3ECDC, #EFE4CF);
}
.house-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--floor);
  height: 1.5px;
  background: rgba(241, 233, 218, 0.18);
}
.house-floor::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.5px;
  height: var(--floor);
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}
.house-cards { position: absolute; inset: 0; }
.hc {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 5px;
  background: var(--c);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 246, 224, 0.28);
  will-change: transform;
  cursor: pointer;
}
.hc::after { content: ""; position: absolute; inset: 4px; border-radius: 3px; border: 1px solid rgba(255, 246, 224, 0.4); }
.hc.flat { border-radius: 2px; }
.hc.flat::after { display: none; }
.hc-door {
  position: absolute;
  border-radius: 4px 4px 1px 1px;
  background: #FBF6EA;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.2);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--ease-out), opacity 0.2s linear;
}
.hc-door::after { content: ""; position: absolute; right: 3px; top: 52%; width: 3px; height: 3px; border-radius: 50%; background: #6E6253; }
.parol {
  position: absolute;
  z-index: 1;
  left: 9%;
  top: 0;
  width: clamp(34px, 8vw, 54px);
  aspect-ratio: 54 / 150;
  transform-origin: 50% 0;
  animation: sway 3.4s var(--ease-in-out) infinite alternate;
}
.parol svg { width: 100%; height: 100%; overflow: visible; }
.parol-string { stroke: rgba(241, 233, 218, 0.35); stroke-width: 1.2; }
.parol-glow { fill: rgba(242, 196, 107, 0.35); filter: blur(6px); }
.parol-star { fill: #F2C46B; stroke: var(--rose); stroke-width: 1.4; stroke-linejoin: round; }
.parol-dot { fill: var(--rose); }
.parol-tail { stroke: var(--rose); stroke-width: 2; stroke-linecap: round; }
.parol.is-nudged { animation: none; transform: rotate(16deg); transition: transform 0.18s var(--ease-out); }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.house-shadow {
  position: absolute;
  left: 0;
  bottom: calc(var(--floor) - 9px);
  width: 120px;
  height: 18px;
  margin-left: -60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(2px);
  will-change: transform, opacity;
}
.house-salo {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 160px;
  aspect-ratio: 420 / 430;
  cursor: grab;
  touch-action: none;
  outline: none;
  will-change: transform;
}
.house-salo.is-held { cursor: grabbing; }
html:not(.js) .house-salo { left: 50%; top: auto; bottom: 22px; }
html:not(.js) .house-actions, html:not(.js) .house-hint { display: none; }
.house-salo .salo-host { position: absolute; inset: 0; }
.house-salo:focus-visible { outline: 2.5px solid var(--sun); outline-offset: -6px; border-radius: 30%; }
.held { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.held i {
  position: absolute;
  left: -13px;
  top: -18px;
  width: 26px;
  height: 36px;
  border-radius: 4px;
  background: var(--c, var(--terracotta));
  border: 1px solid rgba(255, 246, 224, 0.5);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.held.is-on i { opacity: 1; }
.held i:nth-child(1) { --c: var(--terracotta); }
.held i:nth-child(2) { --c: var(--sun); }
.held i:nth-child(3) { --c: var(--sage); }
.held i:nth-child(4) { --c: var(--rose); }
.held i:nth-child(5) { --c: var(--dusk); }
.house-zzz { left: 0; top: 0; right: auto; z-index: 3; color: var(--gabi-ink); }
.dealt {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 46px;
  height: 64px;
  border-radius: 6px;
  background: var(--front);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  will-change: transform;
}
.dealt::before { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--terracotta)); }
.dealt::after { content: ""; position: absolute; left: 7px; right: 9px; top: 22px; height: 22px; background: repeating-linear-gradient(rgba(31, 27, 22, 0.35) 0 2px, transparent 2px 7px); }
.house-hint { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--gabi-soft); text-align: center; }
.house-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.house-card-out { width: 100%; max-width: 560px; }
.house-card-out:empty { display: none; }
.house-card-out .out {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--front);
  color: var(--night);
  animation: outIn 0.5s var(--ease-out);
}
.house-card-out .out > span { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c); }
.house-card-out .out p { font-family: var(--display); font-size: 20px; line-height: 1.25; font-weight: 520; }
@keyframes outIn { from { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------------- promises */

.promises { padding: 40px 0 90px; }
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin: 0; padding: 0; list-style: none; }
.stickers li {
  padding: 14px 20px 15px;
  border-radius: 18px;
  background: var(--c);
  color: var(--t);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 10px 22px rgba(0, 0, 0, 0.25);
  cursor: grab;
  touch-action: pan-y;
  transition: box-shadow 0.25s ease;
}
.stickers li b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.stickers li.is-held { cursor: grabbing; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 24px 40px rgba(0, 0, 0, 0.4); z-index: 2; position: relative; }
.stickers-hint { margin-top: 22px; text-align: center; font-family: var(--display); font-style: italic; color: var(--gabi-muted); }

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

.faq { padding: 40px 0 110px; }
.faq-grid { display: grid; gap: 30px; }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--gabi-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--gabi-line); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 44px 14px 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s var(--spring-snap);
}
.faq-list details[open] summary::after { transform: translateY(5px) rotate(225deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 0 22px; max-width: 36em; color: var(--gabi-soft); font-size: 16px; }
.faq-a a { color: var(--sun); }

/* ------------------------------------------------------------------ dawn */

.dawn { position: relative; }
.dawn-scene { position: relative; isolation: isolate; padding: 110px 0 120px; overflow: hidden; color: var(--dawn-fg, var(--gabi-ink)); }
.dawn-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--dawn-a, #15120F), var(--dawn-b, #15120F)); }
.dawn-sky .stars { opacity: var(--dawn-stars, 0.7); }
.dawn-sun {
  position: absolute;
  left: 50%;
  bottom: -30vmin;
  width: 70vmin;
  height: 70vmin;
  margin-left: -35vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.95), rgba(246, 168, 96, 0.55) 35%, rgba(246, 168, 96, 0) 68%);
  transform: translateY(var(--dawn-sun, 40vmin));
}
.dawn-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 0; }
.dawn-salo-wrap { position: relative; width: clamp(130px, 34vw, 190px); margin-bottom: 18px; }
.dawn-salo { width: 100%; aspect-ratio: 420 / 430; cursor: pointer; outline: none; }
.dawn-salo:focus-visible { outline: 2.5px solid var(--terracotta); border-radius: 30%; }
.dawn-bubble { top: -8%; left: 78%; }
.dawn-time { font-family: var(--display); font-style: italic; font-size: 20px; }
.dawn-clock { font-style: normal; font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.7; margin-left: 6px; font-variant-numeric: tabular-nums; }
.dawn h2 { margin-top: 14px; max-width: 12em; font-size: clamp(42px, 11vw, 96px); }
.dawn-sub { margin-top: 16px; font-size: 18px; opacity: 0.85; }
.dawn .stores { margin-top: 28px; justify-content: center; }
.dawn .store { background: var(--dawn-btn, var(--gabi-ink)); color: var(--dawn-btn-fg, var(--night)); }

.dawn-track.is-live { height: 190vh; }
.dawn-track.is-live .dawn-scene { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--nav-h) + 20px) 0 60px; }

/* --------------------------------------------------------------- contact */

.contact { padding: 100px 0 90px; }
.contact-grid { display: grid; gap: 30px; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--front);
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--terracotta); }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-weight: 700; }
.contact-form .btn { justify-self: start; }

/* ---------------------------------------------------------------- footer */

.footer { padding: 30px 0 calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--paper); overflow: clip; border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-col:first-child { grid-row: span 2; }
.footer-head { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 600; font-size: 15px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; } }
@media (min-width: 861px) {
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-col:first-child { grid-row: auto; }
}
.footer-mark {
  margin: 30px 0 0;
  font-family: var(--display);
  font-size: var(--fit, 19vw);
  font-weight: 560;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  letter-spacing: -0.06em;
  line-height: 0.78;
  white-space: nowrap;
  margin-left: -0.04em;
  color: var(--ink);
}
.footer-mark span { display: inline-block; }
.footer-small { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

/* --------------------------------------------- easter egg: "ayos lang" */

.egg {
  position: fixed;
  z-index: 260;
  right: max(14px, env(safe-area-inset-right));
  bottom: 0;
  width: 150px;
  height: 118px;
  overflow: hidden;
  pointer-events: none;
}
.egg .salo-host { position: absolute; left: 0; bottom: -38px; width: 150px; aspect-ratio: 420 / 430; transform: translateY(110%); transition: transform 0.5s var(--spring-snap); }
.egg.is-up .salo-host { transform: none; }
.egg-bubble { position: fixed; z-index: 261; right: max(120px, calc(env(safe-area-inset-right) + 120px)); bottom: 92px; border-radius: 18px 18px 6px 18px; transform-origin: 100% 100%; }

/* ---------------------------------------------------------------- cursor */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    z-index: 300;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0);
  }
  .cursor-label {
    position: absolute;
    left: 22px;
    top: 24px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: 0 0;
    transition: opacity 0.16s ease, transform 0.2s var(--ease-out);
  }
  body[data-tone="night"] .cursor-label { background: var(--gabi-ink); color: var(--night); }
  .cursor.is-on .cursor-label { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- reveals */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ================================================================ ≥ 600 */

@media (max-width: 389px) {
  .store { gap: 8px; padding: 0 14px 0 12px; font-size: 16px; }
  .store svg { width: 21px; height: 21px; }
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .fan { --cw: 230px; }
}

@media (min-width: 600px) and (max-width: 860px) {
  .night-track.is-live .night-scene { --cw: min(40vw, 300px, 40svh); --card-left: calc(50% - var(--cw) / 2); }
  .night-track.is-live .bulb { left: 50%; margin-left: -20px; height: 12vh; }
  .how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; }
  .how-phone { display: block; position: sticky; top: calc(var(--nav-h) + 4vh); align-self: start; }
  .how-phone .phone { width: min(100%, 300px); margin: 0 auto; }
  .how-steps { gap: 0; }
  .how-step { min-height: 64vh; align-content: center; opacity: 0.32; transition: opacity 0.5s ease; }
  .how-step.is-on { opacity: 1; }
  .how-shot { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .tile-maker, .tile-themes { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
  .maker-card { --w: 230px; }
  .tile-themes .phone-sm { width: 200px; }
}

/* ================================================================ ≥ 861 */

@media (min-width: 861px) {
  :root { --gutter: 40px; --nav-h: 72px; }
  .clock { display: inline-flex; }
  .nav-links { display: flex; gap: 2px; margin-left: auto; }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  .nav-links a:hover { background: rgba(var(--ink-rgb), 0.06); }
  body[data-tone="night"] .nav-links a:hover { background: rgba(241, 233, 218, 0.08); }
  .lens { margin-left: 8px; }
  .nav-get {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease;
  }
  body[data-tone="night"] .nav-get { background: var(--gabi-ink); color: var(--night); }
  .menu-btn, .menu { display: none !important; }

  .hero { display: grid; align-items: center; padding-bottom: 90px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 40px; }
  .hero-title { font-size: clamp(60px, 8.6vw, 132px); }
  .hero-stage { --w: min(28vw, 350px); }
  .hero-sub { font-size: 19px; }

  .manifesto { padding: 150px 0 170px; }
  .manifesto-text { font-size: clamp(44px, 5.6vw, 84px); }

  .decks { padding: 60px 0 90px; }
  .decks-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; }
  .decks-head .kicker { grid-column: 1 / -1; }
  .decks-head .lede { margin: 0 0 8px; }
  .fan { --cw: clamp(190px, 17vw, 236px); }
  .deck-info { grid-template-columns: 1fr auto; align-items: center; gap: 6px 30px; text-align: left; min-height: 96px; }
  .deck-info-actions { grid-column: 1 / -1; }

  .night-head { display: grid; grid-template-columns: 1fr 0.8fr; align-items: end; gap: 0 60px; }
  .night-head .kicker { grid-column: 1 / -1; }
  .night-head .lede { margin: 0 0 6px; }
  .hours { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .night-track.is-live .night-scene { --cw: min(24vw, 330px, 44svh); --card-left: calc(62% - var(--cw) / 2); --clock-size: clamp(90px, 13vw, 210px); }
  .night-caps { right: auto; width: min(40%, 520px); }
  .night-track.is-live .night-salo-wrap { width: clamp(150px, 12vw, 210px); }
  .night-track.is-live .bulb { left: 62%; height: 20vh; margin-left: -20px; }
  .night-track.is-live .sun { left: 30%; }
  .night-rail { max-width: 40%; }

  .how { padding: 150px 0 80px; }
  .how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; }
  .how-phone { display: block; position: sticky; top: calc(var(--nav-h) + 6vh); align-self: start; }
  .how-phone .phone { width: min(100%, 340px); margin: 0 auto; }
  .how-steps { gap: 0; }
  .how-step { min-height: 72vh; align-content: center; opacity: 0.32; transition: opacity 0.5s ease; }
  .how-step.is-on { opacity: 1; }
  .how-shot { display: none; }

  .new { padding: 150px 0 110px; }
  .new-head { display: grid; grid-template-columns: 1fr 0.8fr; align-items: end; gap: 0 60px; }
  .new-head .kicker { grid-column: 1 / -1; }
  .new-head .lede { margin: 0 0 8px; }
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "maker maker maker maker skins skins"
      "themes themes themes themes skins skins"
      "widgets widgets pass pass keep keep";
    gap: 16px;
  }
  .tile { padding: 30px; }
  .tile-maker { grid-area: maker; grid-template-columns: 1fr auto; align-items: center; }
  .tile-skins { grid-area: skins; grid-template-rows: auto 1fr; }
  .tile-themes { grid-area: themes; grid-template-columns: 1fr auto; align-items: center; }
  .tile-widgets { grid-area: widgets; }
  .tile-pass { grid-area: pass; }
  .tile-keep { grid-area: keep; grid-template-rows: auto 1fr; }
  .maker-card { --w: 250px; }
  .phone-sm { width: 210px; }
  .skin-stack { width: min(100%, 270px); }
  .pass { width: 220px; }

  .salo { padding: 140px 0 120px; }
  .salo-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 70px; }

  .stickers { gap: 16px 14px; }
  .stickers li { font-size: 18px; padding: 16px 24px 17px; }
  .stickers li b { font-size: 22px; }

  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; }

  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
}

@media (min-width: 1180px) {
  :root { --gutter: 56px; }
  .hero-stage { --w: 350px; }
}

/* Short landscape phones: keep the hero stage from towering. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-stage { --w: 200px; }
}

/* ================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .kcard:not(.is-driven) .kface, .fan-card:not(.is-driven) .fan-face, .pass-face { transition: opacity 0.3s ease; }
  .kcard[aria-pressed="true"] .front, .fan-card.is-open .fan-front, .pass[aria-pressed="true"] .front { opacity: 0; }
  .kcard[aria-pressed="true"] .back, .fan-card.is-open .fan-back, .pass[aria-pressed="true"] .back { opacity: 1; }
  .js [data-reveal] { transform: none; transition: opacity 0.4s ease; }
  .scroll-cue::after { display: none; }
  .parol { animation: none; }
  .zzz i { animation: none; opacity: 0.8; }
  .zzz i:nth-child(2) { transform: translate(-6px, -18px); }
  .zzz i:nth-child(3) { transform: translate(-10px, -34px); }
}

/* SEO links (2026-10): crawlable deck titles under the fan's tap layer, the how-to-play link */
.cover-title a { color: inherit; text-decoration: none; }
/* The live fan drops .fan-hit's pointer events, which exposed these links: a tap on a
   title left the page instead of peeking the card. The deck panel's link goes there. */
.fan.is-live .cover-title a { pointer-events: none; }
.deck-info-actions .text-link, .how-more .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.parol::before { content: ""; position: absolute; inset: 0 -5px; } /* 44px wide hit area on phones */
/* "How it plays" dims every step but the one JS marks .is-on; without JS, show them all. */
html:not(.js) .how-step { opacity: 1; }
.how-more { margin: 48px 0 0; }
@media (min-width: 861px) { .how-more { margin-top: 24px; } }
