:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #9faabd;
  --canvas: #0b1220;
  --surface: #111b2d;
  --surface-2: #17233a;
  --line: rgba(220, 230, 245, .12);
  --accent: #f1b86a;
  --accent-strong: #ffd49a;
  --green: #78d3a8;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 320px; }
button { font: inherit; }
.shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: max(26px, env(safe-area-inset-top)) 0 32px; }
.topbar, .section-head, .sync-strip, .timer-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar { margin-bottom: 28px; }
.section-label { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(24px, 7vw, 38px); line-height: 1.02; letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.025em; }
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(120, 211, 168, .11); }
.hero { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 38px; }
.hero-copy h2 { font-size: 31px; margin-bottom: 8px; }
.hero-copy p:last-child { color: var(--muted); margin-bottom: 24px; }
.timer { font-variant-numeric: tabular-nums; font-size: clamp(56px, 17vw, 104px); line-height: .95; letter-spacing: -.065em; color: var(--accent-strong); }
.timer-meta { color: var(--muted); font-size: 12px; margin: 12px 0 8px; }
.progress-track { height: 7px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; width: 100%; height: 100%; background: var(--accent); border-radius: inherit; transform: scaleX(0); transform-origin: left center; transition: transform .35s ease; }
.section-block { margin-bottom: 22px; }
.section-head { align-items: end; margin-bottom: 14px; }
.count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.quest-list { display: grid; gap: 9px; }
.quest { display: grid; grid-template-columns: 5px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 15px 14px 15px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: left; color: inherit; }
.quest.is-active { background: var(--surface-2); border-color: rgba(241,184,106,.45); }
.quest.is-complete { opacity: .62; }
.quest-mark { width: 5px; height: 34px; border-radius: 999px; background: var(--muted); }
.quest.is-required .quest-mark { background: var(--accent); }
.quest.is-active .quest-mark { background: var(--green); }
.quest-name { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.quest-meta { margin: 0; color: var(--muted); font-size: 12px; }
.quest-action { border: 0; background: transparent; color: var(--accent-strong); font-size: 12px; font-weight: 800; padding: 8px 0 8px 8px; }
.quest-action:focus-visible, .quiet-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sync-strip { align-items: center; padding: 14px; background: rgba(120, 211, 168, .07); border: 1px solid rgba(120, 211, 168, .18); border-radius: 14px; }
.sync-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green); }
.sync-icon svg { width: 20px; }
.sync-strip > div:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.sync-strip strong { font-size: 13px; }
.sync-strip span { color: var(--muted); font-size: 12px; }
.quiet-button { border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 999px; padding: 8px 11px; font-size: 12px; }
.footer-note { margin: 26px 2px 0; color: #718099; font-size: 12px; line-height: 1.45; }
@media (min-width: 620px) { .hero { padding: 32px; } .quest { padding-right: 18px; } }
