/* Night Forest */
:root {
  --bg: #10291d;
  --ink: #eef5ee;
  --card: #1a3726;
  --card2: #1d3d2c;
  --nav: #0b1f15;
  --line: #2c5340;
  --mint: #8fe3ae;
  --apricot: #ffc27a;
  --apricot-ink: #2a1a08;
  --muted: #9cc3a8;
  --soft: #b9d3c1;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --blue-bg: #29466b; --blue-fg: #cfe1ff;
  --green-bg: #245a3d; --green-fg: #c9f2d7;
  --plum-bg: #4f2d55; --plum-fg: #f2d4f6;
  --orange-bg: #5c3a17; --orange-fg: #ffd9b0;
  --brown-bg: #4a3728; --brown-fg: #e6d3c2;
  --gold-bg: #5a4a0e; --gold-fg: #ffe58a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; }

.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; padding: calc(20px + env(safe-area-inset-top)) 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--soft); font-size: 14px; }
.small { font-size: 13px; }

.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card2); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 14px; color: var(--apricot); white-space: nowrap; }
.card { background: var(--card); border-radius: 24px; padding: 14px 16px; }
.countdown { background: var(--apricot); color: var(--apricot-ink); border-radius: 24px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.countdown .big { font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1; }
.label-caps { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.task { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 14px; }
.task.hot { background: var(--ink); color: var(--bg); }
.task.done { opacity: .7; }
.task .title { font-weight: 800; font-size: 16px; }
.task.done .title { text-decoration: line-through; }
.task .sub { font-size: 13px; color: var(--soft); }
.task.hot .sub { color: #42604d; }
.check { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 2.5px solid var(--mint); background: transparent; display: grid; place-items: center; }
.task.hot .check { border-color: var(--bg); }
.check.on { background: var(--mint); border-color: var(--mint); }

.btn { height: 56px; border: 0; border-radius: 999px; background: var(--mint); color: var(--bg); font-weight: 800; font-size: 17px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.dark { background: var(--card2); color: var(--ink); }
.btn.small { height: 44px; font-size: 14px; padding: 0 14px; border-radius: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.chip { flex: none; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.c-blue { background: var(--blue-bg); color: var(--blue-fg); }
.c-green { background: var(--green-bg); color: var(--green-fg); }
.c-plum { background: var(--plum-bg); color: var(--plum-fg); }
.c-orange { background: var(--orange-bg); color: var(--orange-fg); }
.c-brown { background: var(--brown-bg); color: var(--brown-fg); }
.c-gold { background: var(--gold-bg); color: var(--gold-fg); }

.field { width: 100%; height: 56px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0 16px; font-size: 18px; font-weight: 700; }
.field::placeholder { color: var(--muted); }
.error { color: var(--apricot); font-weight: 700; }

.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pinpad button { height: 72px; border-radius: 22px; border: 0; background: var(--card); color: var(--ink); font-family: var(--display); font-size: 26px; font-weight: 700; }
.dots { display: flex; justify-content: center; gap: 16px; margin: 8px 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--mint); }
.dot.on { background: var(--mint); }

nav.tabs { position: sticky; bottom: 0; display: flex; justify-content: space-around; background: var(--nav); padding: 10px 4px calc(12px + env(safe-area-inset-bottom)); }
nav.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--muted); min-width: 52px; padding: 4px 0; }
nav.tabs a[aria-current="page"] { color: var(--mint); font-weight: 800; }

.sheet-back { position: fixed; inset: 0; background: rgba(5, 16, 10, .6); display: flex; flex-direction: column; justify-content: flex-end; z-index: 10; }
.sheet { background: var(--ink); color: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; max-width: 520px; width: 100%; margin: 0 auto; }
.sheet h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.sheet .field { background: #fff; color: var(--bg); border-color: #b9d3c1; }
.choice { display: grid; gap: 6px; }
.choice button { height: 46px; border-radius: 14px; font-weight: 800; font-size: 14px; border: 2px solid #b9d3c1; background: #fff; color: var(--bg); }
.choice button[aria-pressed="true"] { border: 0; background: var(--bg); color: var(--mint); }
.toast { background: var(--apricot); color: var(--apricot-ink); border-radius: 18px; padding: 12px 14px; font-weight: 800; }
.focus { flex: 1; display: flex; flex-direction: column; gap: 14px; background: var(--card); border-radius: 28px; padding: 24px 20px; }
.focus .what { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.15; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .check, .task { transition: background-color .15s, opacity .15s; }
}
