:root {
  --surface: #0f1115;
  --surface-2: #1a1e25;
  --text: #ffffff;
  --muted: #b0b3b8;
  --accent: #5ee7c8;
  --accent-ink: #062b23;
  --glow: rgba(94, 231, 200, 0.4);
  --warn: #ffb347;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: #000000; /* transparent on the additive display */
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#app { width: 600px; height: 600px; padding: 8px; position: relative; }
.screen { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; position: absolute; inset: 8px; width: 584px; height: 584px; }
.screen.hidden { display: none; }

.header {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 20px; border-radius: 16px; background: var(--surface); flex-shrink: 0;
}
.header h1 { font-size: 28px; font-weight: 700; }
.header-meta { font-size: 16px; color: var(--muted); }

.time-display {
  flex: 1; display: grid; place-items: center;
  font-size: 120px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  border-radius: 16px; background: var(--surface);
}
.time-display.big { font-size: 150px; }
.time-display.warn { color: var(--warn); }
.time-display.flash { animation: flash 0.6s steps(2, start) infinite; }
@keyframes flash { to { color: var(--accent); } }

.rail { display: flex; gap: 12px; flex-shrink: 0; }
.pill, .nav-item {
  flex: 1; min-height: 88px; border-radius: 16px; border: 2px solid transparent;
  background: var(--surface); color: var(--text); font: inherit; font-size: 22px; font-weight: 600;
  cursor: pointer; opacity: 0.85;
  transition: border-color 200ms, box-shadow 200ms, opacity 200ms, transform 300ms cubic-bezier(0.6, 0, 0.4, 1);
}
.pill { min-height: 72px; font-size: 20px; }
.nav-bar { display: flex; gap: 12px; flex-shrink: 0; }
.nav-item.primary { background: var(--accent); color: var(--accent-ink); }
.focusable:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 20px var(--glow); opacity: 1; }
.nav-item.primary:focus { border-color: #ffffff; }

.progress { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; flex-shrink: 0; }
.progress-fill { height: 100%; width: 100%; background: var(--accent); transition: width 1s linear; }

.done { align-items: center; justify-content: center; }
.done-card {
  width: 100%; padding: 32px; border-radius: 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 20px; align-items: stretch; text-align: center;
}
.done-title { font-size: 48px; font-weight: 700; color: var(--accent); }
.done-sub { font-size: 22px; color: var(--muted); }
