/* Fullscreen Clock — core styles
   Layout, themes, stage, controls, content. No build step. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

:root {
  --bg: #08090c;
  --bg-2: #0d0f14;
  --fg: #f4f6fa;
  --muted: #98a1ae;
  --line: rgba(255, 255, 255, .09);
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .09);
  --accent: #5eead4;
  --accent-fg: #04231f;
  --warn: #fbbf24;
  --glow: none;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-digits: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
}

html[data-theme="paper"] {
  color-scheme: light;
  --bg: #f5f4f0;
  --bg-2: #eceae4;
  --fg: #14171c;
  --muted: #5b6470;
  --line: rgba(0, 0, 0, .11);
  --surface: rgba(0, 0, 0, .04);
  --surface-strong: rgba(0, 0, 0, .08);
  --accent: #0f766e;
  --accent-fg: #f0fffd;
}

html[data-theme="amber"] {
  --bg: #0a0700;
  --bg-2: #120c00;
  --fg: #ffb627;
  --muted: #8d6a2b;
  --line: rgba(255, 182, 39, .2);
  --surface: rgba(255, 182, 39, .07);
  --surface-strong: rgba(255, 182, 39, .13);
  --accent: #ffb627;
  --accent-fg: #1a1200;
  --glow: 0 0 28px rgba(255, 182, 39, .35);
}

/* ---------- Morandi set: muted, low-saturation, soft ---------- */

html[data-theme="rose"] {
  color-scheme: light;
  --bg: #f8f1ef;
  --bg-2: #f1e4e1;
  --fg: #6d4b50;
  --muted: #9c7d81;
  --line: rgba(109, 75, 80, .18);
  --surface: rgba(154, 106, 110, .07);
  --surface-strong: rgba(154, 106, 110, .14);
  --accent: #b8818a;
  --accent-fg: #fff8f7;
  --glow: none;
}

html[data-theme="mauve"] {
  --bg: #17141b;
  --bg-2: #1f1b25;
  --fg: #d9cfe3;
  --muted: #91879e;
  --line: rgba(217, 207, 227, .16);
  --surface: rgba(217, 207, 227, .06);
  --surface-strong: rgba(217, 207, 227, .12);
  --accent: #b7a5cd;
  --accent-fg: #241f2b;
  --glow: 0 0 30px rgba(183, 165, 205, .18);
}

html[data-theme="sage"] {
  color-scheme: light;
  --bg: #f3f5ef;
  --bg-2: #e7ebe0;
  --fg: #4e5947;
  --muted: #7d8775;
  --line: rgba(78, 89, 71, .18);
  --surface: rgba(126, 141, 112, .08);
  --surface-strong: rgba(126, 141, 112, .15);
  --accent: #8b9c80;
  --accent-fg: #fbfcf9;
  --glow: none;
}

html[data-theme="latte"] {
  --bg: #1a1613;
  --bg-2: #231d18;
  --fg: #e8d7c3;
  --muted: #9d8877;
  --line: rgba(232, 215, 195, .16);
  --surface: rgba(232, 215, 195, .06);
  --surface-strong: rgba(232, 215, 195, .12);
  --accent: #c6a586;
  --accent-fg: #2a211a;
  --glow: 0 0 30px rgba(198, 165, 134, .18);
}

html[data-theme="mint"] {
  --bg: #04120f;
  --bg-2: #061b16;
  --fg: #c8ffe9;
  --muted: #6d9c8c;
  --line: rgba(200, 255, 233, .14);
  --surface: rgba(200, 255, 233, .06);
  --surface-strong: rgba(200, 255, 233, .12);
  --accent: #6ee7b7;
  --accent-fg: #052e22;
  --glow: 0 0 30px rgba(110, 231, 183, .22);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, var(--bg-2), transparent 70%);
  z-index: 0;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; }

.shell { position: relative; z-index: 1; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: bottom center;
  animation: tick 60s steps(60) infinite;
}
@keyframes tick { to { transform: rotate(360deg); } }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--fg); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--fg); background: var(--surface-strong); }

/* ---------- stage ---------- */

.stage[data-mode="none"] { display: none; }

.stage {
  position: relative;
  min-height: min(74svh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 0;
  isolation: isolate;
  transition: background-color .4s ease;
}

.stage-inner {
  width: 100%;
  flex: 1 1 auto;
  padding: 0 clamp(12px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stage-controls {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px clamp(12px, 4vw, 40px) 22px;
  max-width: 980px;
  margin: 0 auto;
  transition: opacity .2s ease;
}

.stage-tag {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* ---------- digits ---------- */

.clock-face { width: 100%; }

.clock-time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .02em;
  font-family: var(--font-digits);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.055em;
  text-shadow: var(--glow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.clock-time .sep { opacity: .55; animation: blink 1.6s ease-in-out infinite; }
.clock-time.no-blink .sep { animation: none; }
@keyframes blink { 0%, 100% { opacity: .55; } 50% { opacity: .32; } }

.clock-time .ampm {
  font-size: .26em;
  font-weight: 500;
  letter-spacing: .04em;
  margin-left: .18em;
  opacity: .7;
}

.clock-time .sec-part { font-size: .44em; opacity: .55; font-weight: 500; letter-spacing: -.02em; margin-left: .08em; }

.clock-date {
  margin-top: clamp(10px, 2vh, 22px);
  font-size: clamp(13px, 2.1vmin, 20px);
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- flip clock ---------- */

.flip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.4vw, 16px);
}

.flip-group { display: flex; gap: clamp(4px, .8vw, 10px); }

.flip-card {
  position: relative;
  width: clamp(46px, 17vw, 264px);
  aspect-ratio: 0.8;
  border-radius: clamp(8px, 1.2vw, 18px);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-digits);
  font-weight: 600;
  font-size: clamp(30px, 11.6vw, 156px);
  line-height: 1;
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8);
}
.flip-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.flip-card .digit { display: block; }
.flip-card.flip { animation: flipDown .42s cubic-bezier(.2, .7, .3, 1); }
@keyframes flipDown {
  0% { transform: rotateX(-88deg); opacity: .35; filter: blur(1px); }
  100% { transform: rotateX(0); opacity: 1; filter: none; }
}

.flip-colon {
  font-family: var(--font-digits);
  font-size: clamp(22px, 5vw, 62px);
  opacity: .45;
  animation: blink 2s steps(1) infinite;
}

.flip-sec {
  display: flex;
  gap: 4px;
  margin-top: clamp(10px, 2vh, 20px);
  justify-content: center;
}
.flip-sec .mini {
  min-width: 2.4ch;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-digits);
  font-size: clamp(13px, 1.8vmin, 18px);
  color: var(--muted);
}

/* ---------- timer stage ---------- */

.timer-digits {
  font-family: var(--font-digits);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  text-shadow: var(--glow);
  white-space: nowrap;
}
.timer-digits .unit {
  font-size: .28em;
  letter-spacing: .02em;
  margin-left: .1em;
  opacity: .45;
  font-weight: 400;
}
.timer-hours { opacity: .55; }

.timer-label {
  margin-top: clamp(8px, 1.4vh, 16px);
  font-size: clamp(11px, 1.6vmin, 15px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.timer-sub {
  margin-top: 6px;
  font-size: clamp(13px, 1.8vmin, 17px);
  color: var(--muted);
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: color-mix(in srgb, var(--accent) 88%, transparent);
} 

/* countdown is the only page that owns the stage bottom bar */
.stage[data-mode="countdown"] .progress-track,
.stage[data-mode="classroom"] .progress-track,
.stage[data-mode="interval"] .progress-track { display: block; }

/* classroom disc */

.disc-wrap {
  position: relative;
  width: min(72vmin, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface) 0);
  transition: background .12s linear;
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
}
.disc-center {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
}
.disc-center .timer-digits { font-size: clamp(40px, 11vmin, 104px); }

/* ---------- controls ---------- */

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-strong); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-fg);
  font-weight: 600;
  padding: 11px 20px;
}
.btn-primary:hover { filter: brightness(1.06); background: var(--accent); }

.btn-icon { padding: 10px; width: 40px; justify-content: center; }

.btn svg { width: 15px; height: 15px; flex: none; }

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--accent-fg); background: var(--accent); border-color: transparent; font-weight: 600; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.control-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

.time-input {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--surface);
  font-family: var(--font-digits);
  font-size: 14px;
  color: var(--fg);
}
.time-input input:first-child { width: 2.8ch; }
.time-input { gap: 4px; }
.time-input input {
  width: 2.2ch;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  padding: 4px 0;
  outline: none;
  -moz-appearance: textfield;
}
.time-input input::-webkit-outer-spin-button,
.time-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.time-input input:focus { color: var(--accent); }
.time-input .tag {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .55;
  margin: 0 2px 0 4px;
}
.time-input .colon { opacity: .4; }

.select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 9px 30px 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- fullscreen ---------- */

body.is-fullscreen { overflow: hidden; }

body.is-fullscreen .site-head,
body.is-fullscreen .site-foot,
body.is-fullscreen .content,
body.is-fullscreen .ad-slot,
body.is-fullscreen .breadcrumbs { display: none !important; }

body.is-fullscreen .stage {
  min-height: 100svh;
  padding: 0;
  background: var(--bg);
}

body.is-fullscreen .stage-inner { padding: 0 clamp(10px, 4vw, 48px); }

body.is-fullscreen .stage-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vh, 34px);
  padding: 0 16px;
  z-index: 40;
  opacity: 1;
}

body.controls-hidden .stage-controls,
body.controls-hidden .stage-tag { opacity: 0; pointer-events: none; }

body.is-fullscreen .stage-controls::before {
  content: "";
  position: absolute;
  inset: -18px -40px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(0, 0, 0, .45), transparent 75%);
  z-index: -1;
  pointer-events: none;
}
html[data-theme="paper"] body.is-fullscreen .stage-controls::before {
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 255, 255, .6), transparent 75%);
}

body.is-fullscreen .progress-track { height: 4px; }

/* ---------- ad slot ---------- */

.ad-slot {
  max-width: 970px;
  margin: 28px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
}
.ad-slot .ad-box {
  min-height: 96px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--surface);
}
.ad-slot .ad-box span { opacity: .6; }

/* ---------- content ---------- */

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(18px, 5vw, 32px) 0;
}

.content h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.content .lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.content h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 44px 0 14px;
}

.content h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.content p { margin: 0 0 16px; color: color-mix(in srgb, var(--fg) 86%, transparent); }
.content li { margin-bottom: 8px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 18px; }

.content .kbd {
  font-family: var(--font-digits);
  font-size: .85em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  background: var(--surface);
}
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature h3 a { text-decoration: none; border-bottom: 1px solid transparent; }
.feature h3 a:hover { color: var(--accent); border-bottom-color: currentColor; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 8px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-digits);
  font-size: 12px;
  display: grid;
  place-items: center;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-digits);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.related {
  margin: 46px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.related a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--surface);
  transition: border-color .16s ease, transform .16s ease;
}
.related a:hover { border-color: var(--accent); transform: translateY(-1px); }
.related a strong { display: block; font-size: 15px; margin-bottom: 2px; }
.related a span { font-size: 13px; color: var(--muted); }

.breadcrumbs {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px clamp(18px, 5vw, 32px) 0;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span { opacity: .55; margin: 0 6px; }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 32px clamp(16px, 4vw, 40px) 44px;
  font-size: 13px;
  color: var(--muted);
}
.foot-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.foot-cols { display: flex; flex-wrap: wrap; gap: 44px; }
.foot-col h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .7;
}
.foot-col a { display: block; padding: 3px 0; text-decoration: none; }
.foot-note { max-width: 300px; line-height: 1.6; }
.foot-note p { margin: 0 0 8px; }

/* ---------- helper ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  color: var(--fg);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .site-head {
    flex-wrap: wrap;
    gap: 4px 0;
    padding: 12px 14px 4px;
  }
  .brand { order: 1; font-size: 14px; }
  .brand span:not(.brand-mark) { display: inline; }
  .brand-mark { width: 18px; height: 18px; }
  .site-nav .nav-optional { display: none; }
  .site-nav {
    order: 2;
    width: 100%;
    margin-left: 0;
    padding: 6px 0 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .stage { min-height: 60svh; padding-top: 4px; }
  .stage-controls { padding: 10px 12px 14px; gap: 6px; }
  .btn { font-size: 13px; padding: 9px 12px; }
  .chip { font-size: 12px; padding: 6px 10px; }
  .content { padding-top: 36px; }
  .foot-inner { flex-direction: column; gap: 24px; }
  .breadcrumbs { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .clock-time .sep { opacity: .5; }
}

/* ---------- timer stage additions ---------- */

.timer-face { width: 100%; display: grid; place-items: center; }
.timer-digits { font-size: clamp(48px, 13vmin, 210px); }

.disc-center .timer-digits { font-size: clamp(32px, 9.5vmin, 92px); }
.disc-center .timer-label { margin-top: 2px; }

body.time-up .stage { animation: timeUp .5s ease 3; }
@keyframes timeUp {
  0%, 100% { background-color: transparent; }
  40% { background-color: color-mix(in srgb, var(--accent) 16%, transparent); }
}

.timer-sub:empty { display: none; }
