:root {
  --bg: #fffaf2;
  --card: #ffffff;
  --ink: #23324a;
  --muted: #5d6b82;
  --line: #eadfcd;
  --brand: #ff7a45;
  --brand-ink: #ffffff;
  --brand-soft: #ffe7dc;
  --sky: #3d8bfd;
  --sky-soft: #e3efff;
  --leaf: #23a26d;
  --leaf-soft: #ddf5ea;
  --sun: #ffc93c;
  --sun-soft: #fff3cf;
  --shadow: 0 2px 0 #eadfcd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161b26; --card: #1f2634; --ink: #eef2f8; --muted: #a8b3c6; --line: #2f3a4d;
    --brand: #ff8a5c; --brand-soft: #3a2a24; --sky: #6ea8ff; --sky-soft: #1e2d45;
    --leaf: #45c48d; --leaf-soft: #1b3329; --sun: #ffd25e; --sun-soft: #3a3220; --shadow: 0 2px 0 #11151d;
  }
}
:root[data-theme="dark"] {
  --bg: #161b26; --card: #1f2634; --ink: #eef2f8; --muted: #a8b3c6; --line: #2f3a4d;
  --brand: #ff8a5c; --brand-soft: #3a2a24; --sky: #6ea8ff; --sky-soft: #1e2d45;
  --leaf: #45c48d; --leaf-soft: #1b3329; --sun: #ffd25e; --sun-soft: #3a3220; --shadow: 0 2px 0 #11151d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 500 17px/1.5 Nunito, ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input { font: inherit; color: inherit; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { border: 0; background: none; font-weight: 800; font-size: 19px; padding: 0; cursor: pointer; }
.brand span { color: var(--brand); }
.trial { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
main { max-width: 680px; margin: 0 auto; padding: 16px 16px 64px; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 4px; font-weight: 800; }
h2 { font-size: 21px; margin: 0 0 8px; font-weight: 800; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 800; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow); margin: 14px 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border: 0; border-radius: 14px; padding: 10px 20px; font-weight: 800; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--brand) 60%, #000);
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.btn.secondary { background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost { background: none; color: var(--muted); box-shadow: none; min-height: 40px; padding: 6px 10px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px; cursor: pointer;
  font-weight: 700;
}
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
input[type="text"], input[type="password"] {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card);
}
.progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--leaf); border-radius: 99px; }
.today { background: var(--sun-soft); border-color: color-mix(in srgb, var(--sun) 50%, var(--line)); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.steps { display: flex; gap: 6px; margin: 6px 0 12px; }
.steps i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--brand); }
.picture {
  border-radius: 16px; padding: 18px; background: linear-gradient(135deg, var(--sky-soft), var(--leaf-soft));
  border: 2px dashed color-mix(in srgb, var(--sky) 40%, var(--line));
}
.picture .emoji { font-size: 44px; line-height: 1; }
.picture .scene { font-size: 18px; font-weight: 700; margin: 10px 0 6px; }
.question { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 4px 0 10px; }
.passage { background: var(--sky-soft); border-radius: 14px; padding: 14px; white-space: pre-line; }
.tips { background: var(--leaf-soft); border-radius: 14px; padding: 12px 14px; }
.tips ul { margin: 6px 0 0; padding-left: 20px; }
.pattern { display: flex; flex-direction: column; gap: 6px; counter-reset: p; padding: 0; margin: 8px 0; list-style: none; }
.pattern li { background: var(--brand-soft); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.option { text-align: left; width: 100%; cursor: pointer; border: 2px solid var(--line); }
.option:hover { border-color: var(--brand); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 2px 9px;
  background: var(--sun-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--sun) 50%, var(--line)); }
.rec { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; }
.timer.over { color: var(--leaf); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #e5484d; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
audio { width: 100%; margin-top: 8px; }
.check label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--leaf); flex: none; }
.example { background: var(--sun-soft); border-radius: 14px; padding: 14px; }
.weeks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.weeks button { cursor: pointer; text-align: center; border-radius: 10px; padding: 6px 0; font-size: 13px; font-weight: 800;
  background: var(--card); border: 1px solid var(--line); }
.weeks button.done { background: var(--leaf-soft); border-color: var(--leaf); }
.weeks button.now { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
details.tester { margin-top: 24px; color: var(--muted); }
details.tester summary { cursor: pointer; font-weight: 700; }
select { font: inherit; padding: 8px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.celebrate { text-align: center; padding: 30px 10px; }
.celebrate .big { font-size: 64px; }
@media (max-width: 420px) { h1 { font-size: 24px; } .question { font-size: 20px; } .weeks { grid-template-columns: repeat(6, 1fr); } }
