:root {
  --desk: #DADFE6;
  --canvas: #EEF0F4;
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --ink: #16191E;
  --ink-2: #5B616C;
  --ink-3: #8A909B;
  --line: #DDE1E7;
  --on-ink: #FFFFFF;
  --g-red: #D4343A;
  --g-orange: #C2580A;
  --g-blue: #2F5FE0;
  --g-green: #17845A;
  --g-violet: #7444E0;
  --g-grey: #5F6775;
  --miss: #B4232A;
  --gc: var(--g-blue);
  --font: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --r-tile: 18px;
  --r-panel: 26px;
  --r-btn: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #050607;
    --canvas: #0E1013;
    --surface: #1A1D22;
    --surface-2: #23272D;
    --ink: #F2F4F7;
    --ink-2: #A9AFB9;
    --ink-3: #79808B;
    --line: #2C3138;
    --on-ink: #0E1013;
    --miss: #F06A6F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #050607; --canvas: #0E1013; --surface: #1A1D22; --surface-2: #23272D;
  --ink: #F2F4F7; --ink-2: #A9AFB9; --ink-3: #79808B; --line: #2C3138; --on-ink: #0E1013; --miss: #F06A6F;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--desk);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 24px;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--g-blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- presenter guide (desktop only) ---------- */
.guide { width: 260px; align-self: center; }
.guide-logo { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 12px; }
.guide-intro { color: var(--ink-2); margin: 0 0 20px; font-size: 15px; }
.guide-nav { display: grid; gap: 2px; }
.guide-nav button {
  text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 10px;
  font-size: 15px; color: var(--ink);
}
.guide-nav button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.guide-nav button.on { background: var(--ink); color: var(--on-ink); }
.guide-note { color: var(--ink-3); font-size: 13px; margin-top: 20px; }

/* ---------- phone ---------- */
.phone {
  position: relative;
  width: 390px; height: 844px;
  background: var(--canvas);
  border-radius: 54px;
  border: 11px solid #08090B;
  box-shadow: 0 0 0 1px #2a2d33, 0 30px 80px -20px rgba(10, 14, 22, .45);
  overflow: hidden;
  flex: none;
}
@media (max-width: 760px) {
  body { padding: 0; display: block; }
  .guide { display: none; }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 30;
  background: var(--sbbg, var(--canvas)); transition: background .15s;
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 30px 0 34px; font-weight: 600; font-size: 15px; pointer-events: none;
  color: var(--sb, var(--ink));
}
.sb-icons { display: flex; gap: 5px; align-items: center; }
.sb-icons i { display: block; width: 17px; height: 10px; border-radius: 3px; background: currentColor; opacity: .85; }
.sb-icons i:first-child { width: 14px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.sb-icons i:nth-child(2) { width: 14px; border-radius: 10px 10px 2px 2px; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }
@media (max-width: 760px) { .statusbar { display: none; } }

#app { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; overflow: hidden; background: var(--canvas); }
.scroll {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding-top: 54px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  .scroll { padding-top: env(safe-area-inset-top, 12px); }
  .ghead { margin-top: calc(-1 * env(safe-area-inset-top, 12px)) !important; padding-top: env(safe-area-inset-top, 12px) !important; }
}
.screen.enter { animation: push .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes push { from { transform: translateX(28px); opacity: 0; } }

/* ---------- shared ---------- */
.pad { padding: 0 20px; }
.topnav { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; min-height: 48px; }
.topnav h1 { font-size: 17px; font-weight: 700; margin: 0; flex: 1; text-align: center; padding-right: 40px; }
.iconbtn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; color: inherit; flex: none;
}
.iconbtn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.h-xl { font-size: 34px; line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.h-l { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.h-s { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 28px 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: var(--r-btn);
  border: 0; font-weight: 700; font-size: 17px;
  background: var(--ink); color: var(--on-ink);
  transition: transform .08s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft { background: var(--surface-2); color: var(--ink); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 38px; font-size: 15px; padding: 0 14px; border-radius: 12px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.av {
  display: inline-grid; place-items: center; flex: none;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 700; font-size: calc(var(--s) * .44);
  box-shadow: 0 0 0 2px var(--ring, var(--surface));
}
.avs { display: flex; }
.avs .av + .av { margin-left: -7px; }

.list { background: var(--surface); border-radius: 20px; overflow: hidden; }
.row { display: flex; gap: 12px; align-items: center; padding: 13px 16px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; border-top: 1px solid var(--line); }
.row.plain + .row.plain::before { left: 16px; }
.row .grow { flex: 1; min-width: 0; }
.row p { margin: 0; }
button.row { width: 100%; text-align: left; background: none; border: 0; }

.bar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--gc) 16%, var(--surface-2)); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gc); border-radius: inherit; }

.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; padding: 10px 6px; border-radius: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > span { font-weight: 600; font-size: 15px; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 17px;
}
.input:focus { outline: none; border-color: var(--ink); }
.days { display: flex; gap: 6px; }
.days button {
  flex: 1; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 14px;
}
.days button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 14px; font-size: 15px; font-weight: 500;
}
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.choice {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px;
  margin-bottom: 10px;
}
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice b { display: block; font-size: 17px; }
.choice span { color: var(--ink-2); font-size: 14px; }
.preview {
  background: var(--surface); border-radius: 18px; padding: 16px; border-left: 5px solid var(--gc);
}
.preview strong { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; display: block; }

/* ---------- toast ---------- */
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 150px; z-index: 60;
  background: var(--ink); color: var(--on-ink); border-radius: 16px; padding: 14px 16px;
  font-weight: 600; font-size: 15px; opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- onboarding ---------- */
.ob { display: flex; flex-direction: column; min-height: 100%; padding: 8px 20px 34px; }
.ob-top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.ob-progress { flex: 1; display: flex; gap: 4px; }
.ob-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.ob-progress i.on { background: var(--ink); }
.ob-skip { background: none; border: 0; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px; }
.ob-body { flex: 1; padding-top: 28px; }
.ob-body > p.lead { color: var(--ink-2); font-size: 17px; margin: 12px 0 28px; }
.ob-actions { display: grid; gap: 10px; padding-top: 20px; }
.welcome { justify-content: space-between; }
.wordmark { font-size: 64px; font-weight: 900; letter-spacing: -0.05em; line-height: .9; margin: 0; }
.wordmark-rail { display: flex; gap: 8px; margin: 26px 0 22px; }
.wordmark-rail i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.wordmark-rail i.todo { background: none; box-shadow: inset 0 0 0 3px var(--line); }

/* ---------- home ---------- */
.home { padding-bottom: 120px; }
.home-head { padding: 8px 20px 16px; }
.home-head .tiny { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.today {
  margin: 0 16px; background: var(--surface); border-radius: var(--r-panel); padding: 18px;
}
.today-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.today-big { font-size: 52px; font-weight: 900; line-height: .9; letter-spacing: -0.04em; }
.today-big small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-top: 8px; }
.today-top > div:first-child { flex: 1; }
.today-stats { white-space: nowrap; text-align: right; font-size: 14px; color: var(--ink-2); display: grid; gap: 2px; }
.today-stats b { color: var(--ink); font-size: 17px; }
.today-next { margin-top: 14px; border-top: 1px solid var(--line); }
.today-next button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 12px 0 0; text-align: left; font-size: 15px; }
.today-next .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.today-next .when { margin-left: auto; color: var(--ink-2); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 10px; padding: 26px 20px 0; }
.tile { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 7px; position: relative; }
.tile-ico {
  width: 64px; height: 64px; border-radius: var(--r-tile); background: var(--c); color: #fff;
  display: grid; place-items: center; position: relative;
}
.tile-ico svg.i { width: 30px; height: 30px; stroke-width: 1.9; }
.tile.add .tile-ico { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line); }
.tile-name { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; max-width: 78px; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--canvas);
}
.dock {
  position: absolute; left: 12px; right: 12px; bottom: 22px; z-index: 20;
  display: flex; justify-content: space-around; padding: 10px 6px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px);
  border-radius: 30px; box-shadow: 0 6px 24px -10px rgba(0,0,0,.25);
}
.dock button { border: 0; background: none; display: grid; justify-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 4px 10px; border-radius: 14px; }
.dock button svg.i { width: 26px; height: 26px; color: var(--ink); }

/* ---------- group ---------- */
.ghead { background: var(--gc); color: #fff; padding: 0 0 22px; margin-top: -54px; padding-top: 54px; }
.ghead .topnav { color: #fff; }
.ghead .topnav h1 { visibility: hidden; }
.ghead-body { padding: 4px 20px 0; display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; }
.ghead-ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.ghead-ico svg.i { width: 28px; height: 28px; }
.ghead h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; margin: 14px 0 4px; line-height: 1.05; }
.ghead p { margin: 0; opacity: .88; font-size: 15px; }
.ghead .avs { margin-top: 14px; }
.ghead .av { --ring: rgba(255,255,255,.95); }
.gbody { padding: 0 16px 200px; }
.feed-item .tiny { margin-top: 2px; }
.feed-item .kind { font-weight: 700; }
.biz { display: inline-block; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--g-blue) 14%, transparent); color: var(--g-blue); padding: 2px 8px; border-radius: 6px; }
.stand-pos { width: 22px; font-weight: 800; font-size: 17px; text-align: center; flex: none; }
.row.me { background: color-mix(in srgb, var(--gc) 9%, var(--surface)); }
.reward { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; gap: 14px; }
.reward-mark { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--gc) 14%, var(--surface)); color: var(--gc); }
.partner { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.total-card { background: var(--surface); border-radius: 20px; padding: 18px; }
.total-card strong { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }

/* goals panel */
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--surface); border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px -18px rgba(0,0,0,.35);
  height: 82%; transform: translateY(calc(100% - 168px));
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.panel.open { transform: none; }
.panel-handle { border: 0; background: none; width: 100%; padding: 10px 20px 6px; text-align: left; }
.panel-handle::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 10px; }
.panel-handle span { font-size: 20px; font-weight: 800; }
.panel-handle small { color: var(--ink-2); font-size: 14px; margin-left: 6px; }
.panel-scroll { overflow-y: auto; padding: 0 16px 40px; flex: 1; }
.goal { display: grid; gap: 8px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.goal:last-child { border-bottom: 0; }
.goal-top { display: flex; gap: 10px; align-items: center; }
.goal-top .grow { flex: 1; min-width: 0; }
.goal-title { font-weight: 700; font-size: 16px; border: 0; background: none; padding: 0; text-align: left; }
.goal-meta { font-size: 13.5px; color: var(--ink-2); }
.done-pill { font-size: 14px; font-weight: 700; color: var(--gc); padding: 0 6px; }
.panel-sub { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 18px 4px 0; }

/* couple */
.together { background: var(--surface); border-radius: 22px; padding: 18px; }
.together-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.together-row:first-of-type { border-top: 0; }
.together-row b { font-size: 17px; }
.together-row .cnt { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; text-align: right; }
.pips { display: flex; gap: 5px; grid-column: 1 / -1; }
.pips i { width: 18px; height: 18px; border-radius: 50%; background: var(--gc); }
.pips i.prev { background: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gc) 40%, var(--line)); }

/* ---------- goal path ---------- */
.ptop { padding: 0 20px 6px; }
.ptop .goal-group { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--gc); }
.ptop .goal-group i { width: 10px; height: 10px; border-radius: 3px; background: var(--gc); }
.pstats { display: flex; gap: 22px; margin: 14px 0 4px; }
.pstats div { display: grid; }
.pstats b { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.pstats span { font-size: 13px; color: var(--ink-2); }
.coach { margin: 14px 16px 6px; background: var(--surface); border-radius: 18px; padding: 14px 16px; font-size: 15px; display: flex; gap: 12px; }
.coach svg.i { color: var(--gc); flex: none; margin-top: 1px; }
.coach p { margin: 0; }
.lock { margin: 8px 16px 0; font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.lock svg.i { width: 18px; height: 18px; }

.path { padding: 10px 16px 220px; }
.more { display: block; margin: 8px auto 4px; border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.week-h { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 4px 8px 4px; }
.week-h b { font-size: 15px; }
.week-h span { font-size: 13px; color: var(--ink-3); }
.week-h.now b { color: var(--gc); }
.step { display: grid; grid-template-columns: 46px 52px 1fr; align-items: center; min-height: 58px; position: relative; }
.step::before {
  content: ""; position: absolute; left: calc(46px + 24.5px); top: 0; bottom: 0; width: 3px;
  background: var(--line);
}
.step.filled::before { background: var(--gc); }
.step.first::before { top: 50%; }
.step.last::before { bottom: 50%; }
.step-date { font-size: 13px; color: var(--ink-3); line-height: 1.15; }
.step-date b { display: block; color: var(--ink-2); font-size: 15px; }
.node {
  position: relative; z-index: 1; justify-self: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--canvas); box-shadow: inset 0 0 0 3px var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink-3);
}
.node svg.i { width: 18px; height: 18px; stroke-width: 3; }
.node.ms { width: 48px; height: 48px; border-radius: 15px; font-size: 16px; }
.st-done .node { background: var(--gc); box-shadow: none; color: #fff; }
.st-pending .node { background: color-mix(in srgb, var(--gc) 22%, var(--canvas)); box-shadow: inset 0 0 0 3px var(--gc); color: var(--gc); }
.st-missed .node { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--miss) 55%, var(--line)); color: var(--miss); }
.st-sick .node { background: var(--surface-2); box-shadow: inset 0 0 0 3px var(--line); color: var(--ink-2); }
.st-current .node { box-shadow: inset 0 0 0 3px var(--gc), 0 0 0 6px color-mix(in srgb, var(--gc) 18%, transparent); color: var(--gc); background: var(--surface); }
.st-current .node::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 2px solid var(--gc); animation: beckon 2.4s ease-out infinite;
}
@keyframes beckon { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.step-label { padding-left: 10px; font-size: 15px; }
.step-label b { display: block; font-weight: 600; }
.step-label span { font-size: 13px; color: var(--ink-3); }
.st-current .step-label b { font-weight: 800; }
.st-missed .step-label span { color: var(--miss); }
.step.just .node { animation: fill .7s cubic-bezier(.2, 1.4, .3, 1); }
.step.just .node::before {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 3px solid var(--gc);
  animation: ring .9s ease-out forwards;
}
@keyframes fill { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }

.actionbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); padding: 14px 16px 30px; border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 30px -16px rgba(0,0,0,.3);
}
.actionbar-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; padding: 0 2px; }
.actionbar-info b { font-size: 17px; }
.actionbar-info span { font-size: 14px; color: var(--ink-2); }
.actionbar-btns { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.actionbar-btns .btn { white-space: nowrap; }
.actionbar-btns.one { grid-template-columns: 1fr; }
.btn.did { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; min-height: 58px; }
.burst {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; background: var(--gc); color: #fff;
  padding: 22px 20px 34px; border-radius: 26px 26px 0 0;
  display: flex; justify-content: space-between; align-items: center;
  animation: burst 2.2s cubic-bezier(.2, .8, .2, 1) forwards; pointer-events: none;
}
.burst b { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; display: block; }
.burst span { opacity: .9; font-size: 15px; }
.burst .pts { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
@keyframes burst { 0% { transform: translateY(100%); } 14% { transform: none; } 80% { transform: none; opacity: 1; } 100% { transform: translateY(30%); opacity: 0; } }

/* ---------- sheets ---------- */
.scrim { position: absolute; inset: 0; z-index: 50; background: rgba(8, 10, 14, .42); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--surface);
  border-radius: 28px 28px 0 0; padding: 10px 20px 34px; animation: rise .28s cubic-bezier(.2, .8, .2, 1);
  max-height: 88%; overflow-y: auto;
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 16px; }
.sheet h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.sheet .sub { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }
.counter { text-align: right; font-size: 13px; color: var(--ink-3); margin-top: -12px; margin-bottom: 14px; }
.wait { background: var(--surface-2); border-radius: 16px; padding: 16px; font-size: 16px; margin-bottom: 16px; }

/* ---------- misc screens ---------- */
.tip { background: var(--surface); border-radius: 20px; padding: 16px; margin-bottom: 10px; }
.tip p { margin: 6px 0 0; }
.tip .tiny b { color: var(--ink); }
.empty { text-align: left; padding: 30px 20px; }
.empty .rail { display: flex; gap: 10px; margin-bottom: 26px; }
.empty .rail i { width: 54px; height: 54px; border-radius: 16px; background: var(--c); opacity: .9; }
.pts-card { background: var(--surface); border-radius: 22px; padding: 18px; display: grid; gap: 14px; }
.pts-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pts-split strong { display: block; font-size: 34px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.danger { color: var(--miss); }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
select.input { appearance: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .st-current .node::after { display: none; }
}
