/* Gearo interactive homepage — Apple-like dark stage, zero build. */
:root,
[data-theme="classic"] {
  --bg: #000000;
  --bg2: #0a0a0c;
  --surface: rgba(28, 28, 30, 0.72);
  --surface-solid: #161618;
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --accent: #d2f84b;
  --accent-2: #eaff8a;
  --on-accent: #0b0f02;
  --glow: rgba(210, 248, 75, 0.22);
  --glow-strong: rgba(210, 248, 75, 0.45);
  --theme-rgb: 210, 248, 75;
}
[data-theme="hard"] {
  --accent: #7eb6ff;
  --accent-2: #c5deff;
  --on-accent: #051018;
  --glow: rgba(80, 150, 255, 0.28);
  --glow-strong: rgba(80, 150, 255, 0.5);
  --theme-rgb: 126, 182, 255;
}
[data-theme="clay"] {
  --accent: #e8a078;
  --accent-2: #ffd0b0;
  --on-accent: #1a0c06;
  --glow: rgba(197, 106, 69, 0.32);
  --glow-strong: rgba(232, 160, 120, 0.5);
  --theme-rgb: 232, 160, 120;
}
[data-theme="grass"] {
  --accent: #c5e89a;
  --accent-2: #e8f5c8;
  --on-accent: #0c1408;
  --glow: rgba(90, 140, 70, 0.3);
  --glow-strong: rgba(183, 224, 122, 0.45);
  --theme-rgb: 183, 224, 122;
}
[data-theme="night"] {
  --accent: #9ab0ff;
  --accent-2: #d4dcff;
  --on-accent: #070814;
  --glow: rgba(90, 110, 255, 0.32);
  --glow-strong: rgba(154, 176, 255, 0.5);
  --theme-rgb: 154, 176, 255;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 88px; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
body {
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "PingFang SC", "Noto Sans CJK JP", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
.nw { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Ambient stage glow follows the active theme */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 90vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 70% 20%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 15% 0%, rgba(var(--theme-rgb), 0.14), transparent 70%);
  transition: background 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wrap, .nav, footer { position: relative; z-index: 1; }

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 28px;
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand b {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.theme-pills, .lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.theme-pills button, .lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
}
.theme-pills button.on, .lang-switch button.on {
  background: var(--accent);
  color: var(--on-accent);
  transition: background 350ms ease, color 350ms ease;
}

/* ——— Hero ——— */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 28px 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 64px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(var(--theme-rgb), 0.1);
  border: 1px solid rgba(var(--theme-rgb), 0.4);
  padding: 6px 14px;
  border-radius: 999px;
}
.status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow-strong);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--glow-strong); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
h1, .chapter h2, .gallery h2 {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
}
h1 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
h1 .l2 { display: block; color: var(--accent); transition: color 500ms ease; white-space: nowrap; }
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  max-width: 34em;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--ink);
  font-weight: 700;
  cursor: default;
}
.btn-soon small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 999px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--theme-rgb), 0.55);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: background 250ms ease;
}
.btn-ghost:hover { background: rgba(var(--theme-rgb), 0.1); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  box-shadow: 0 8px 24px var(--glow);
}
.btn-solid:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-solid:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.nav-beta {
  font-weight: 800 !important;
  color: var(--accent) !important;
}
.nav-beta:hover { background: rgba(var(--theme-rgb), 0.12) !important; }

/* ——— Beta signup ——— */
.beta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 28px 48px;
  scroll-margin-top: 96px;
}
.beta header { margin-bottom: 28px; max-width: 760px; }
.beta h2 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.035em;
  font-weight: 800;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
.beta .sub { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.beta-panel {
  max-width: 760px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(var(--theme-rgb), 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.beta-form { display: flex; flex-direction: column; gap: 18px; }
.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.beta-grid .span-2 { grid-column: 1 / -1; }
.beta-form label, .beta-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.beta-form legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.beta-form input[type="email"],
.beta-form input[type="text"],
.beta-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.beta-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.beta-form input:focus-visible,
.beta-form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.beta-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.beta-checks label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  font-weight: 600;
  cursor: pointer;
}
.beta-checks input { accent-color: var(--accent); }
.beta-agree {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px !important;
  font-weight: 600;
}
.beta-agree input { accent-color: var(--accent); width: 18px; height: 18px; }
.beta-agree a { font-weight: 700; }
.beta-req, .beta-note, .beta-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
}
.beta-status.is-ok { color: var(--accent); }
.beta-status.is-err { color: #ff8d8d; }
.beta-status.is-wait { color: #c8c4a6; }
.beta-form .btn-solid { align-self: flex-start; min-width: 220px; }
.beta-form.is-sending .btn-solid { opacity: 0.7; pointer-events: none; }
.beta-turnstile { min-height: 0; }
.beta-turnstile:not([hidden]) { margin-top: 2px; }

.beta-form input.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
#betaTfWrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
#betaTfWrap[hidden] { display: none !important; }
#betaForm.is-compact .beta-grid fieldset,
#betaForm.is-compact label:not(.beta-agree):not(.span-email) { }
.beta.is-tf #betaForm { margin-top: 8px; }


/* Hero cluster: Fuzzy stands in leftover space LEFT of the phone — never over the bezel. */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  min-height: 640px;
  padding-top: 8px;
  overflow: visible;
}
.fuzzy-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  z-index: 1;
  width: min(210px, 38%);
  min-width: 0;
  padding-top: 56px;
  overflow: visible;
}
.fuzzy-welcome {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  z-index: 1;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.55));
  transform-origin: 50% 90%;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fuzzy-welcome img { width: 100%; height: auto; pointer-events: none; display: block; }
.fuzzy-welcome:hover { transform: translateY(-8px) scale(1.03); }
.fuzzy-welcome.bounce { animation: fuzzyBounce 700ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fuzzyBounce {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-28px) scale(1.06) rotate(-4deg); }
  55% { transform: translateY(-6px) scale(1.02) rotate(3deg); }
  100% { transform: translateY(0) scale(1); }
}
.bubble {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 4;
  max-width: 220px;
  width: max-content;
  margin: 0;
  background: rgba(255,255,255,0.95);
  color: #111;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease, visibility 280ms ease;
}
.bubble.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
.hero-stage .iphone { z-index: 2; flex: 0 0 auto; width: min(300px, 58%); }

/* ——— Titanium iPhone ——— */
.iphone {
  --bezel: 11px;
  width: min(340px, 100%);
  aspect-ratio: 1206 / 2622;
  position: relative;
  border-radius: 54px;
  padding: var(--bezel);
  background:
    linear-gradient(155deg,
      #e4e1db 0%,
      #9a9791 14%,
      #5c5a56 28%,
      #2a2927 46%,
      #141413 58%,
      #6a6863 82%,
      #d7d4ce 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 40px 80px rgba(0,0,0,0.55),
    0 8px 20px rgba(0,0,0,0.4);
  flex: none;
  z-index: 2;
}
.iphone::after {
  /* inner dark rim */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 49px;
  box-shadow: inset 0 0 0 1.5px #0c0c0c;
  pointer-events: none;
}
.iphone .btn-silent,
.iphone .btn-vol-up,
.iphone .btn-vol-down,
.iphone .btn-power {
  position: absolute;
  background: linear-gradient(180deg, #b8b5af, #4a4946);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.iphone .btn-silent { left: -3px; top: 18%; width: 3px; height: 28px; border-radius: 2px 0 0 2px; }
.iphone .btn-vol-up { left: -3px; top: 28%; width: 3px; height: 52px; border-radius: 2px 0 0 2px; }
.iphone .btn-vol-down { left: -3px; top: 40%; width: 3px; height: 52px; border-radius: 2px 0 0 2px; }
.iphone .btn-power { right: -3px; top: 30%; width: 3px; height: 86px; border-radius: 0 2px 2px 0; }
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: #000;
}
.iphone-screen img.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.iphone-screen img.shot.on { opacity: 1; }
.iphone-screen.view-side img.shot.on {
  transform: perspective(900px) rotateY(-28deg) scale(1.12) translateX(6%);
  transform-origin: 60% 45%;
}
.iphone-screen.view-top img.shot.on {
  transform: perspective(900px) rotateX(50deg) scale(1.28) translateY(-4%);
  transform-origin: 50% 42%;
}
.screen-hint {
  position: absolute;
  left: 12px;
  bottom: 14px;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.iphone-screen.is-schematic .screen-hint { opacity: 1; }

/* ball highlight dots for 3D court */
.dots { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 300ms ease; }
.dots.show { opacity: 1; }
.dots b {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.35), 0 0 16px var(--glow-strong);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { transform: scale(1.35); opacity: 0.7; } }

/* ——— Story sticky ——— */
.story {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 20px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 48px;
  align-items: start;
}
.story-rail { display: flex; flex-direction: column; }
.chapter {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 0;
  scroll-margin-top: 72px;
  border-top: 1px solid transparent;
  opacity: 0.38;
  transition: opacity 400ms ease;
}
.chapter.on { opacity: 1; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  transition: color 400ms ease;
}
.chapter h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 800;
}
.chapter p.body {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 36em;
}
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease, transform 200ms ease;
}
.chip:hover { background: rgba(255,255,255,0.1); }
.chip.on {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}
.chip.flash { animation: chipFlash 420ms ease; }
@keyframes chipFlash {
  0% { transform: scale(1); box-shadow: 0 0 0 0 var(--glow-strong); }
  40% { transform: scale(1.08); box-shadow: 0 0 0 10px transparent; }
  100% { transform: scale(1); }
}

.story-stage {
  position: sticky;
  top: 96px;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: visible;
}
.story-stage .iphone { width: min(300px, 100%); z-index: 2; order: 2; }
.watch-block {
  display: none;
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 5;
  pointer-events: auto;
  justify-content: center;
  order: 1;
  flex: 0 0 auto;
}
.story[data-chapter="watch"] .story-stage > .watch-block { display: flex; }
.fuzzy-block {
  display: none;
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 5;
  pointer-events: auto;
  text-align: center;
  width: min(240px, 42%);
  order: 1;
  flex: 0 0 auto;
}
.story[data-chapter="fuzzy"] .story-stage > .fuzzy-block { display: block; }
.fuzzy-block .fuzzy-welcome { width: min(240px, 100%); }
.mobile-stage { display: none; }

/* Interactive Apple Watch */
.awatch {
  width: 196px;
  height: 236px;
  position: relative;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.5));
}
.awatch-band-t, .awatch-band-b {
  position: absolute;
  left: 50%;
  width: 86px;
  height: 36px;
  transform: translateX(-50%);
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
}
.awatch-band-t { top: 0; border-radius: 10px 10px 0 0; }
.awatch-band-b { bottom: 0; border-radius: 0 0 10px 10px; }
.awatch-case {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  width: 168px;
  height: 180px;
  border-radius: 38px;
  background: linear-gradient(145deg, #4a4a4c, #1a1a1c 40%, #0a0a0a);
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 20px rgba(0,0,0,0.4);
}
.awatch-crown {
  position: absolute;
  right: -6px;
  top: 58px;
  width: 8px;
  height: 28px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#888, #333);
}
.awatch-face {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #000;
  color: #fff;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.awatch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #aeaeb2;
  font-weight: 700;
}
.awatch-top .bp { color: var(--accent); background: #1c1c1e; padding: 1px 6px; border-radius: 999px; }
.awatch-score {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  gap: 4px;
  align-items: center;
  background: #1c1c1e;
  border-radius: 14px;
  padding: 6px 8px;
}
.awatch-score .who { font-size: 9px; font-weight: 700; color: #d1d1d6; }
.awatch-score .who.me { color: var(--accent); }
.awatch-score .pt {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  min-width: 28px;
  text-align: center;
  transition: transform 250ms ease, color 250ms ease;
}
.awatch-score .pt.pop { animation: chipFlash 420ms ease; color: var(--accent); }
.awatch-plus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.awatch-plus span {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.awatch-plus span small { font-size: 8px; font-weight: 700; margin-top: 4px; letter-spacing: 0; }
.awatch-plus .me { background: var(--accent); color: var(--on-accent); }
.awatch-plus .op { background: #2c2c2e; color: #fff; }
.awatch-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.awatch-foot i {
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  background: #1c1c1e;
  border-radius: 9px;
  padding: 5px 0;
  color: #d1d1d6;
}
.game-banner {
  position: absolute;
  inset: 36px 16px auto;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 14px;
  padding: 10px 0;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
  z-index: 2;
}
.game-banner.show { opacity: 1; transform: scale(1); }


/* ——— Gallery ——— */
.gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 40px;
  scroll-margin-top: 72px;
}
.gallery header { margin-bottom: 28px; max-width: 720px; }
.gallery h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.035em;
  font-weight: 800;
}
.gallery .sub { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px 14px;
}
.bento button {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  cursor: pointer;
  aspect-ratio: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bento button .frame {
  display: block;
  aspect-ratio: 0.52;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0c0e;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.bento button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.bento button .cap {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-shadow: none;
  line-height: 1.35;
  padding: 0 2px;
}
.bento button.on,
.bento button:hover {
  transform: translateY(-4px);
}
.bento button.on .frame,
.bento button:hover .frame {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--accent);
}

/* ——— Footer ——— */
.foot {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 28px 28px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 13px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
.note-dev { font-size: 12px; color: var(--faint); }

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding-top: 24px; padding-bottom: 8px; }
  .hero-stage {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0 24px;
  }
  .hero-stage .fuzzy-cluster {
    min-width: 0;
    width: min(180px, 52%);
    padding-top: 52px; /* reserved for the absolute bubble, below sticky nav */
    order: 1;
  }
  .hero-stage .fuzzy-welcome { width: 100%; }
  .hero-stage .iphone { width: min(200px, 60vw); order: 2; }
  .story { display: block; grid-template-columns: 1fr; padding-top: 12px; }
  /* Desktop sticky stage is fully off — each chapter has its own in-flow stage. */
  .story-stage { display: none !important; }
  .chapter { min-height: 0; padding: 36px 0 12px; opacity: 1; justify-content: flex-start; }
  .mobile-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 24px 0 36px;
    margin-top: 4px;
  }
  .mobile-stage .iphone { width: min(240px, 70vw); }
  .mobile-stage[data-ms="watch"] { gap: 22px; }
  .mobile-stage[data-ms="fuzzy"] {
    padding-top: 16px;
    gap: 12px;
  }
  .mobile-stage[data-ms="fuzzy"] .fuzzy-cluster {
    width: min(200px, 62%);
    min-width: 0;
    padding-top: 8px;
  }
  .mobile-stage .watch-block,
  .mobile-stage .watch-block.is-flow {
    display: flex;
    position: static;
    width: auto;
  }
  .awatch { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento button:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
  .nav { padding: 8px 14px; }
  h1 { font-size: 40px; }
}
@media (max-width: 1080px) {
  .theme-pills .t-label { display: none; }
  .theme-pills .t-dot { display: inline; }
  .theme-pills button { padding: 0 8px; min-width: 28px; }
  .theme-pills button.on .t-dot { color: var(--on-accent); }
  .nav-links a.desk { display: none; }
}
@media (max-width: 720px) {
  .hero { padding: 20px 16px 8px; }
  .hero-stage { min-height: 0; }
  .story, .gallery, .beta, .foot { padding-left: 16px; padding-right: 16px; }
  .beta { padding-top: 48px; padding-bottom: 28px; }
  .beta .sub { font-size: 16px; }
  .beta-panel { padding: 20px 16px; border-radius: 22px; }
  .beta-grid { grid-template-columns: 1fr; }
  .beta-form .btn-solid { width: 100%; min-width: 0; }
  .lead, .chapter p.body, .gallery .sub { font-size: 16px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bento button { border-radius: 20px; }
  .bento button:last-child { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.theme-pills .t-dot { display: none; font-size: 12px; line-height: 1; }
.theme-pills button[data-theme="classic"] .t-dot { color: #d2f84b; }
.theme-pills button[data-theme="hard"] .t-dot { color: #7eb6ff; }
.theme-pills button[data-theme="clay"] .t-dot { color: #e8a078; }
.theme-pills button[data-theme="grass"] .t-dot { color: #c5e89a; }
.theme-pills button[data-theme="night"] .t-dot { color: #9ab0ff; }
@media (max-width: 1080px) {
  .theme-pills .t-dot { display: inline; }
  .theme-pills button.on .t-dot { color: var(--on-accent); }
}
.tension-overlay { bottom: auto; top: 54px; left: auto; right: 12px; opacity: 0; }
.tension-overlay.show { opacity: 1; }
.iphone-screen.is-schematic .tension-overlay { /* keep independent */ }
.awatch.flash .awatch-case { animation: chipFlash 420ms ease; }

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .beta { scroll-margin-top: 76px; }
  #navSupport, .nav-beta { display: none; }
  .hero-copy { gap: 12px; }
  h1 { font-size: 34px; }
  .lead { font-size: 15px; line-height: 1.55; }
  .ctas { gap: 8px; }
  .btn-soon, .btn-ghost, .btn-solid { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .hero-stage { min-height: 0; padding-top: 8px; }
  .hero-stage .iphone { width: min(210px, 64vw); }
  .hero-stage .fuzzy-cluster { width: min(170px, 52%); }
  .nav { gap: 8px; }
  .brand b { font-size: 15px; }
}

/* r2 tap targets: keep compact nav, enlarge hit area on touch-sized screens */
@media (max-width: 1080px) {
  .theme-pills button, .lang-switch button {
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
  }
  .brand { min-height: 36px; }
}
@media (max-width: 720px) {
  .theme-pills button, .lang-switch button {
    height: 40px;
    min-width: 40px;
    padding: 0 8px;
  }
}
.beta-checks label { min-height: 44px; padding: 8px 14px; }
.beta-agree { min-height: 44px; }
.beta-agree input { width: 22px; height: 22px; flex: none; }
.foot-links a { padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a { min-height: 36px; display: inline-flex; align-items: center; }

/* r2 scroll pad + agree link */
@media (max-width: 1080px) {
  html { scroll-padding-top: 128px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 168px; }
  #features, #gallery, #beta, .beta { scroll-margin-top: 168px; }
}
@media (max-width: 430px) {
  .brand b { display: none; }
  .brand {
    min-width: 40px;
    min-height: 40px;
    padding: 4px;
    justify-content: center;
  }
}
.beta-agree a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 0;
  font-weight: 700;
}

/* r2 re-hide compact nav (do not let .nav-links a {display:inline-flex} un-hide these) */
@media (max-width: 720px) {
  #navSupport, .nav-beta { display: none !important; }
}
