/* ============================================================
   native-real AI — Drops × subtle esthetic
   ------------------------------------------------------------
   cream background, coral / ink / mint / caramel palette,
   chunky rounded tiles, rounded sans, game-feel animations.
   ============================================================ */

:root {
  /* ── ground (Drops: white-cool) ──────── */
  --bg:           #f4f7fb;
  --bg-2:         #e6edf6;
  --paper:        #ffffff;
  --ink:          #1f2937;
  --ink-2:        #4b5563;
  --ink-3:        #8a93a3;
  --line:         #dde4ee;

  /* ── Drops 6 hues (vivid, flat) ──────── */
  --blue:         #0095ff;
  --blue-deep:    #0078d4;
  --blue-soft:    #d6ecff;
  --yellow:       #ffd93d;
  --yellow-deep:  #e8b500;
  --yellow-soft:  #fff4c4;
  --coral:        #ff6b6b;
  --coral-deep:   #e84a4a;
  --coral-soft:   #ffe1e1;
  --mint:         #4ecdc4;
  --mint-deep:    #2bb5ab;
  --mint-soft:    #d9f5f2;
  --purple:       #a363d9;
  --purple-deep:  #7e3eb8;
  --purple-soft:  #ecdff6;
  --orange:       #ff9e3d;
  --orange-deep:  #e87a00;
  --orange-soft:  #ffe4c4;

  /* legacy aliases (keep working) */
  --caramel:      var(--yellow);
  --caramel-deep: var(--yellow-deep);
  --caramel-soft: var(--yellow-soft);
  --plum:         var(--purple);
  --plum-deep:    var(--purple-deep);
  --plum-soft:    var(--purple-soft);

  /* ── tone for esthetic accent ────────── */
  --gold:         var(--yellow-deep);

  /* ── radii & shadows ─────────────────── */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 9999px;
  --shadow-tile: 0 6px 0 0 rgba(42, 38, 48, 0.10);
  --shadow-tile-press: 0 1px 0 0 rgba(42, 38, 48, 0.10);
  --shadow-soft: 0 12px 32px -16px rgba(42, 38, 48, 0.18);
  --shadow-pop: 0 18px 40px -16px rgba(232, 74, 57, 0.35);

  /* ── type ────────────────────────────── */
  --font-ui: 'Nunito', 'Hiragino Maru Gothic ProN', 'Rounded Mplus 1c', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Hiragino Mincho ProN', serif;
  --font-num: 'Nunito', 'Hiragino Sans', system-ui, sans-serif;
}

/* ── reset ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0; padding: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}
html { width: 100%; }
body { width: 100%; position: relative; }
button { touch-action: manipulation; }
body {
  background:
    radial-gradient(900px 700px at 92% -8%, var(--blue-soft) 0%, transparent 55%),
    radial-gradient(900px 700px at -8% 108%, var(--mint-soft) 0%, transparent 55%),
    radial-gradient(700px 500px at 50% 50%, var(--yellow-soft) 0%, transparent 70%),
    var(--bg);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

button { font-family: inherit; }

/* ── kill old aurora bg ─────────────────────────── */
.aurora { display: none; }

/* ── screens ────────────────────────────────────── */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-top))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-right))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-bottom))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-left));
  animation: pop-in 0.5s cubic-bezier(.2,.9,.3,1.2) both;
}
[hidden] { display: none !important; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ── brand ──────────────────────────────────────── */
.brand {
  position: absolute;
  top:  calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-top));
  left: calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-left));
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800;
  color: var(--ink);
  z-index: 10;
}
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--blue);
  position: relative;
  box-shadow: 0 4px 0 0 var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 16px;
}
.brand__mark::after {
  content: "N";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
}
.brand__name em {
  font-style: normal;
  color: var(--blue);
  margin-left: 4px;
  font-weight: 900;
}

/* ── INTRO ──────────────────────────────────────── */
.screen--intro {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro__copy { max-width: 520px; width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 24px;
  box-shadow: 0 3px 0 0 var(--ink);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.intro__hero {
  position: relative;
  width: 240px; height: 240px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.intro__bigNum {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 120px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 2;
}
.intro__bigNum sup {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  vertical-align: top;
  margin-left: 4px;
}
.intro__blob {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.intro__blob svg { width: 100%; height: 100%; }

.intro__lead {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.display {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.display__accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--purple-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 32px;
  font-weight: 500;
}

/* ── buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 0 var(--ink); }

.btn--primary {
  background: var(--blue);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
}
.btn--primary:hover { background: #1aa1ff; box-shadow: 0 6px 0 0 var(--ink); }

.btn--ghost {
  background: transparent;
  box-shadow: 0 4px 0 0 var(--ink);
  font-weight: 700;
}
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 0 3px 0 0 var(--ink); }

.iconbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 0 var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.08s, box-shadow 0.1s;
}

.sfx-toggle {
  position: absolute;
  top:   calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-top));
  right: calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-right));
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 0 var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 10;
  padding: 0;
  transition: transform 0.08s, box-shadow 0.1s;
}
.sfx-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--ink); }
.sfx-toggle:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }
.sfx-toggle svg { width: 22px; height: 22px; }
.sfx-toggle[aria-pressed="false"] { background: var(--bg-2); opacity: 0.65; }

@media (max-width: 560px) {
  .sfx-toggle { width: 36px; height: 36px; box-shadow: 0 2px 0 0 var(--ink); }
  .sfx-toggle svg { width: 19px; height: 19px; }
}
.iconbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--ink); }
.iconbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }

.kbd {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(42,38,48,0.18);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── PLAYER ─────────────────────────────────────── */
.screen--player {
  justify-content: flex-start;
  gap: 24px;
  padding-top: clamp(70px, 8vw, 90px);
}

.player__topbar {
  display: flex; align-items: center; gap: 16px;
  max-width: 760px; width: 100%; margin: 0 auto;
}
.player__progress {
  flex: 1; height: 12px; border-radius: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 0 0 var(--ink);
}
.player__progress-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  width: 0%;
  transition: width 0.45s cubic-bezier(.2,.9,.3,1.1);
}
.player__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.streak {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
  transition: transform 0.2s;
}
.streak.is-active { background: var(--yellow); color: var(--ink); }
.streak.is-fire { background: var(--coral); color: white; animation: shake 0.4s ease; }
.streak__flame { font-size: 16px; }

.player__body {
  flex: 1;
  display: flex; align-items: flex-start; justify-content: center;
  width: 100%;
  padding-top: 12px;
}

.qcard {
  width: 100%;
  max-width: 720px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 8px 0 0 var(--ink), var(--shadow-soft);
  position: relative;
}
.qcard__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.qcard__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
  flex-shrink: 0;
}
.qcard__icon svg { width: 34px; height: 34px; }
.qcard__icon--coral   { background: var(--coral-soft); }
.qcard__icon--mint    { background: var(--mint-soft); }
.qcard__icon--caramel { background: var(--yellow-soft); }
.qcard__icon--plum    { background: var(--purple-soft); }
.qcard__icon--blue    { background: var(--blue-soft); }
.qcard__icon--yellow  { background: var(--yellow-soft); }
.qcard__icon--orange  { background: var(--orange-soft); }
.qcard__icon--purple  { background: var(--purple-soft); }

.qcard__labels { display: flex; flex-direction: column; gap: 2px; }
.qcard__source {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.qcard__axis {
  font-size: 17px; font-weight: 800;
  color: var(--ink);
}

.qcard__stem {
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 6px;
}
.qcard__ja {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 24px;
  line-height: 1.7;
  font-weight: 600;
}

/* choices = 2x2 grid of chunky tiles */
.choices {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.choices li { display: block; }

.choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: var(--shadow-tile);
  transition: transform 0.06s ease, box-shadow 0.08s ease, background 0.15s;
  min-height: 72px;
}
.choice:hover { background: var(--bg-2); }
.choice:active { transform: translateY(4px); box-shadow: var(--shadow-tile-press); }
.choice[disabled] { cursor: default; }

.choice__key {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  color: var(--ink);
  flex-shrink: 0;
}
.choice__text { flex: 1; line-height: 1.4; }

.choice[data-state="correct"] {
  background: var(--mint);
  color: white;
  border-color: var(--ink);
  animation: pop-correct 0.5s cubic-bezier(.2,.9,.3,1.4);
}
.choice[data-state="correct"] .choice__key {
  background: white; color: var(--mint-deep);
}
.choice[data-state="wrong"] {
  background: var(--coral);
  color: white;
  animation: shake 0.42s ease;
}
.choice[data-state="wrong"] .choice__key {
  background: white; color: var(--coral-deep);
}
.choice[data-state="dimmed"] { opacity: 0.42; }

.feedback {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  animation: pop-in 0.32s cubic-bezier(.2,.9,.3,1.2) both;
}
.feedback__badge {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
  flex-shrink: 0;
}
.feedback__badge[data-correct="true"]  { background: var(--mint); color: white; }
.feedback__badge[data-correct="false"] { background: var(--coral); color: white; }
.feedback__main { flex: 1; }
.feedback__verdict {
  font-size: 18px; font-weight: 900;
  margin: 4px 0 6px;
}
.feedback__verdict[data-correct="true"]  { color: var(--mint-deep); }
.feedback__verdict[data-correct="false"] { color: var(--coral-deep); }
.feedback__expl {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 16px;
  font-weight: 500;
}
.feedback__cta {
  display: flex; align-items: center; gap: 10px;
}

/* ── REPORT ─────────────────────────────────────── */
.screen--report {
  align-items: center; justify-content: center;
  padding-top: clamp(70px, 8vw, 90px);
}
.report {
  width: 100%; max-width: 720px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 8px 0 0 var(--ink), var(--shadow-soft);
}
.report__title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.report__sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 28px;
  font-weight: 700;
}

/* big BEFORE → AFTER swing */
.swing {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 2.5px solid var(--ink);
  margin-bottom: 28px;
  box-shadow: 0 4px 0 0 var(--ink);
}
.swing__col { text-align: center; }
.swing__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.swing__num {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.swing__num--after { color: var(--blue-deep); }
.swing__arrow {
  font-size: 28px;
  color: var(--ink);
  font-weight: 900;
}

.report__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat {
  padding: 16px 12px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  text-align: center;
  box-shadow: 0 4px 0 0 var(--ink);
}
.stat__num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.report__section { margin-bottom: 28px; }
.report__subtitle {
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.report__subtitle::before {
  content: ""; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue);
  border: 2px solid var(--ink);
}

.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.bar__name { color: var(--ink); }
.bar__track {
  height: 14px; border-radius: 8px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(.2,.9,.3,1.1);
}
.bar__val {
  text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.weak { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.weak__item {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 3px 0 0 var(--ink);
}
.weak__item:nth-child(1) { background: var(--coral-soft); }
.weak__item:nth-child(2) { background: var(--yellow-soft); }
.weak__item:nth-child(3) { background: var(--purple-soft); }
.weak__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.weak__icon svg { width: 24px; height: 24px; }
.weak__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.weak__title {
  font-size: 14.5px; font-weight: 800; color: var(--ink);
}
.weak__hint {
  font-size: 12px; color: var(--ink-2); line-height: 1.5; font-weight: 600;
}

.cooldown {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--blue);
  color: var(--paper);
  margin: 8px 0 24px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
}
.cooldown__lock {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}
.cooldown__body { flex: 1; }
.cooldown__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 2px;
}
.cooldown__time {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ── LP (landing page) ─────────────────────────── */
.lp {
  min-height: 100dvh;
  padding:
    calc(80px + env(safe-area-inset-top))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-right))
    calc(40px + env(safe-area-inset-bottom))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 80px);
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

/* ── LP hero ──────────────────────── */
.lp__hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.lp__display {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 18px 0 22px;
}
.lp__lead {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 32px;
  font-weight: 600;
}
.lp__lead strong { color: var(--ink); font-weight: 900; }
.lp__cta {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.lp__cta-btn { min-width: 220px; }
.lp__signal {
  margin: 22px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.lp__signalDot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}
.lp__signal strong { color: var(--ink); font-weight: 900; }

/* ── LP shots (iPhone mockups) ────── */
.lp__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: end;
  justify-items: center;
}
.phone {
  margin: 0;
  width: 100%;
  max-width: 240px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow:
    0 18px 40px -16px rgba(31, 41, 55, 0.32),
    0 0 0 4px var(--paper),
    0 0 0 6px var(--ink);
  display: block;
}
.phone figcaption {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  text-align: center;
  letter-spacing: 0.01em;
}
.phone--tilt-l { transform: rotate(-2deg) translateY(-4px); }
.phone--tilt-r { transform: rotate(2deg)  translateY(-4px); }
.phone--tilt-c { transform: scale(1.06); z-index: 2; }

/* ── LP perks ─────────────────────── */
.lp__perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.perk {
  padding: 24px 20px 22px;
  border-radius: var(--r-lg);
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 6px 0 0 var(--ink);
  position: relative;
}
.perk--coral  { background: var(--coral-soft); }
.perk--yellow { background: var(--yellow-soft); }
.perk--mint   { background: var(--mint-soft); }
.perk__num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-3);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.perk__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.perk__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 600;
}

/* ── LP closing CTA ──────────────── */
.lp__closing {
  text-align: center;
  padding: 32px 0;
  border-top: 2px dashed var(--line);
  margin-top: 0;
}
.lp__closingLead {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 700;
}

/* ── waitlist on LP variant ──────── */
.waitlist--lp {
  margin: 0 auto;
  max-width: 560px;
  width: 100%;
}

/* ── LP responsive ───────────────── */
@media (max-width: 880px) {
  .lp__shots { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 24px; }
  .phone--tilt-l, .phone--tilt-r, .phone--tilt-c { transform: none; }
  .lp__perks { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 560px) {
  .lp { padding-top: calc(70px + env(safe-area-inset-top)); gap: 44px; }
  .lp__display { font-size: 30px; }
  .lp__lead { font-size: 14.5px; }
  .lp__cta-btn { min-width: 0; width: 100%; max-width: 360px; }
  .lp__cta { flex-direction: column; align-items: center; }
  .perk { padding: 20px 18px; }
  .perk__title { font-size: 16px; }
  .perk__desc { font-size: 13px; }
  .phone img { border-radius: 22px; }
}

/* ── ai-progress (intro disclaimer + progress bar) ───── */
.ai-progress {
  margin: 28px auto 0;
  max-width: 420px;
  padding: 16px 18px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 0 var(--ink);
  text-align: left;
}
.ai-progress--ready {
  background: var(--mint-soft);
  border-color: var(--mint-deep);
  box-shadow: 0 4px 0 0 var(--mint-deep);
}
.ai-progress__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.ai-progress__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
}
.ai-progress--ready .ai-progress__chip {
  background: var(--mint);
  color: white;
  border-color: var(--ink);
}
.ai-progress__chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.4s ease-in-out infinite;
}
.ai-progress--ready .ai-progress__chip::before { background: white; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}
.ai-progress__count {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.ai-progress__bar {
  height: 8px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.ai-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  transition: width 0.6s cubic-bezier(.2,.9,.3,1.1);
}
.ai-progress__note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-3);
  font-weight: 600;
}

/* ── ai-status (report banner) ─────────────────── */
.ai-status {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
  margin: 4px 0 18px;
}
.ai-status--ready {
  background: var(--mint-soft);
  border-color: var(--mint-deep);
}
.ai-status__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  flex-shrink: 0;
}
.ai-status--ready .ai-status__icon { background: var(--mint); color: white; }
.ai-status__body { flex: 1; min-width: 0; }
.ai-status__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}
.ai-status__sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 560px) {
  .ai-progress { margin-top: 22px; padding: 14px 16px 12px; }
  .ai-progress__note { font-size: 11px; }
  .ai-status { padding: 10px 12px; }
  .ai-status__icon { width: 32px; height: 32px; font-size: 15px; }
}

/* ── waitlist ─────────────────────────────────── */
.waitlist {
  margin: 28px 0 24px;
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 360px at -10% -30%, var(--coral-soft) 0%, transparent 60%),
    radial-gradient(500px 300px at 110% 130%, var(--yellow-soft) 0%, transparent 55%),
    var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 0 6px 0 0 var(--ink);
  position: relative;
}
.waitlist::before {
  content: "BETA INVITE";
  position: absolute;
  top: -12px; left: 20px;
  padding: 4px 12px;
  background: var(--coral);
  color: white;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
}
.waitlist__title {
  margin: 6px 0 10px;
  font-family: var(--font-ui);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.waitlist__lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  font-weight: 600;
}
.waitlist__lead strong { color: var(--ink); font-weight: 900; }

.waitlist__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
.waitlist__perks li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.waitlist__perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--ink);
}

.waitlist__form {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 10px;
}
.waitlist__form input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 0 var(--ink);
  outline: none;
  transition: box-shadow 0.1s ease;
  -webkit-appearance: none;
  appearance: none;
}
.waitlist__form input[type="email"]:focus {
  box-shadow: 0 4px 0 0 var(--blue);
  border-color: var(--blue);
}
.waitlist__form input[type="email"]::placeholder {
  color: var(--ink-3);
  font-weight: 600;
}
.waitlist__form input[type="email"][aria-invalid="true"] {
  border-color: var(--coral-deep);
  box-shadow: 0 4px 0 0 var(--coral-deep);
}
.waitlist__submit { width: 100%; }

.waitlist__fineprint {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.waitlist__done {
  text-align: center;
  padding: 18px 0 6px;
  animation: pop-in 0.5s cubic-bezier(.2,.9,.3,1.3) both;
}
.waitlist__doneIcon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--mint);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 4px 0 0 var(--ink);
}
.waitlist__doneTitle {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}
.waitlist__doneSub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 560px) {
  .waitlist { padding: 22px 18px 18px; margin: 22px 0 18px; }
  .waitlist__perks { grid-template-columns: 1fr; gap: 6px; }
  .waitlist__title { font-size: 22px; }
  .waitlist__lead { font-size: 13px; }
  .waitlist__form input[type="email"] { font-size: 16px; padding: 14px 16px; }
}

.report__plan {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 600;
  padding: 16px 18px;
  background: var(--blue-soft);
  border: 2px dashed var(--blue-deep);
  border-radius: var(--r-md);
}

.report__cta {
  display: flex; gap: 12px; margin-top: 28px;
  flex-wrap: wrap;
}

/* ── animations ─────────────────────────────────── */
@keyframes pop-correct {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06) rotate(-1deg); }
  70%  { transform: scale(0.98) rotate(0.5deg); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(5px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}
@keyframes bigNum {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.intro__bigNum, .swing__num { animation: bigNum 0.7s cubic-bezier(.2,.9,.3,1.3) both; }

/* ── responsive ─────────────────────────────────── */

/* tablet ~ small laptop tweaks */
@media (max-width: 720px) {
  .intro__hero { width: 200px; height: 200px; margin-bottom: 4px; }
  .intro__bigNum { font-size: 96px; }
  .intro__bigNum sup { font-size: 30px; }
}

/* phone — main mobile target */
@media (max-width: 560px) {
  .screen { gap: 18px; }
  .screen--player { padding-top: calc(64px + env(safe-area-inset-top)); gap: 16px; }
  .screen--report { padding-top: calc(64px + env(safe-area-inset-top)); }

  .brand { font-size: 14px; gap: 8px; }
  .brand__mark { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; box-shadow: 0 3px 0 0 var(--blue-deep); }

  .intro__hero { width: 168px; height: 168px; }
  .intro__bigNum { font-size: 80px; }
  .intro__bigNum sup { font-size: 24px; }
  .display { font-size: 28px; }
  .lead { font-size: 14px; }
  .eyebrow { font-size: 11px; padding: 5px 12px; }

  .btn { padding: 16px 22px; font-size: 15px; width: 100%; max-width: 360px; }
  .btn--sm { padding: 14px 18px; font-size: 14px; width: auto; }

  /* player */
  .player__topbar { gap: 10px; }
  .player__progress { height: 10px; box-shadow: 0 2px 0 0 var(--ink); }
  .player__meta { font-size: 12.5px; gap: 8px; }
  .streak { padding: 5px 10px; font-size: 12px; box-shadow: 0 2px 0 0 var(--ink); }
  .iconbtn { width: 36px; height: 36px; font-size: 16px; box-shadow: 0 2px 0 0 var(--ink); }

  .qcard { padding: 20px 18px 22px; border-width: 2px; border-radius: 24px; box-shadow: 0 6px 0 0 var(--ink); }
  .qcard__head { gap: 10px; margin-bottom: 16px; }
  .qcard__icon { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 3px 0 0 var(--ink); }
  .qcard__icon svg { width: 28px; height: 28px; }
  .qcard__source { font-size: 10px; }
  .qcard__axis { font-size: 15px; }
  .qcard__stem { font-size: 19px; line-height: 1.5; }
  .qcard__ja { font-size: 12.5px; margin-bottom: 18px; }

  .choices { grid-template-columns: 1fr; gap: 10px; }
  .choice {
    padding: 18px 18px;
    min-height: 62px;
    font-size: 16px;
    border-width: 2px;
    border-radius: 18px;
  }
  .choice__key { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }

  .feedback { margin-top: 18px; padding-top: 16px; gap: 12px; }
  .feedback__badge { width: 44px; height: 44px; font-size: 20px; box-shadow: 0 3px 0 0 var(--ink); }
  .feedback__verdict { font-size: 16px; }
  .feedback__expl { font-size: 13px; line-height: 1.7; }

  /* report */
  .report { padding: 22px 18px; border-width: 2px; border-radius: 24px; box-shadow: 0 6px 0 0 var(--ink); }
  .report__title { font-size: 24px; }
  .report__sub { font-size: 11.5px; margin-bottom: 20px; }

  .swing { grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 18px 14px; }
  .swing__arrow { transform: none; font-size: 22px; }
  .swing__num { font-size: 36px; }
  .swing__label { font-size: 10px; letter-spacing: 0.1em; margin-bottom: 4px; }

  .report__stats { gap: 8px; margin-bottom: 22px; }
  .stat { padding: 12px 4px; border-width: 2px; border-radius: 14px; box-shadow: 0 3px 0 0 var(--ink); }
  .stat__num { font-size: 22px; }
  .stat__label { font-size: 10px; letter-spacing: 0.06em; }

  .report__section { margin-bottom: 22px; }
  .report__subtitle { font-size: 14px; }
  .report__subtitle::before { width: 10px; height: 10px; }

  .bar { grid-template-columns: 80px 1fr 40px; gap: 8px; font-size: 12.5px; }
  .bar__track { height: 12px; }

  .weak__item { padding: 12px 14px; border-width: 2px; border-radius: 14px; box-shadow: 0 3px 0 0 var(--ink); }
  .weak__icon { width: 38px; height: 38px; border-radius: 10px; }
  .weak__icon svg { width: 22px; height: 22px; }
  .weak__title { font-size: 13.5px; }
  .weak__hint { font-size: 11.5px; line-height: 1.5; }

  .cooldown { padding: 14px 16px; border-radius: 18px; gap: 12px; box-shadow: 0 4px 0 0 var(--ink); }
  .cooldown__lock { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }
  .cooldown__title { font-size: 10.5px; }
  .cooldown__time { font-size: 19px; }

  .report__plan { font-size: 13.5px; padding: 14px 16px; line-height: 1.7; }
  .report__cta { gap: 10px; margin-top: 22px; flex-direction: column; }
  .report__cta .btn { width: 100%; max-width: none; }
}

/* iPhone SE / 小型機 */
@media (max-width: 380px) {
  .screen { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .intro__hero { width: 148px; height: 148px; }
  .intro__bigNum { font-size: 68px; }
  .intro__bigNum sup { font-size: 20px; }
  .display { font-size: 24px; line-height: 1.22; }
  .lead { font-size: 13.5px; }
  .qcard__stem { font-size: 17px; }
  .swing { gap: 6px; padding: 16px 10px; }
  .swing__num { font-size: 30px; }
  .swing__arrow { font-size: 18px; }
  .stat__num { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
