/* ==========================================================================
   Focus — styles
   --------------------------------------------------------------------------
   How this file is organised:
   1. Design tokens  – every color, font, size and timing lives in a CSS
                       variable ("custom property"), so the look of the whole
                       app can change by changing a few values.
   2. Base           – sensible defaults for the page.
   3. Layout         – header, main column.
   4. Components     – mode switch, task input, timer, buttons, dots.
   ========================================================================== */


/* 1. DESIGN TOKENS -------------------------------------------------------- */

/* Normally the browser can't animate a CSS variable: it just swaps the value.
   Registering it with @property tells the browser "this is a color", so it can
   blend smoothly from coral to mint when the mode changes. */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ff7a59; }
@property --accent-ink { syntax: "<color>"; inherits: true; initial-value: #1a0f0b; }
@property --glow-1 { syntax: "<color>"; inherits: true; initial-value: #ff5a36; }
@property --glow-2 { syntax: "<color>"; inherits: true; initial-value: #a8344c; }

:root {
  transition:
    --accent var(--dur-slow) ease,
    --accent-ink var(--dur-slow) ease,
    --glow-1 var(--dur-slow) ease,
    --glow-2 var(--dur-slow) ease;

  /* Fonts: a geometric sans for the UI, a monospaced font for the digits.
     Each list ends with system fonts, used until the web fonts arrive. */
  --font-ui: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Spacing scale. Using a fixed scale keeps gaps consistent everywhere. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  /* Shapes */
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 300ms;
  --dur-slow: 900ms;

  /* Theme: dark (the default). color-scheme tells the browser to draw
     scrollbars and form controls in dark style too. */
  color-scheme: dark;
  --text: #f5f1ee;
  --text-muted: #a9a29e;
  --surface: rgb(255 255 255 / 0.05);
  --surface-strong: rgb(255 255 255 / 0.1);
  --border: rgb(255 255 255 / 0.1);
  --panel: rgb(30 27 31 / 0.86);  /* translucent "glass" behind dialogs */
  --scrim: rgb(0 0 0 / 0.55);     /* dims the page behind an open dialog */
  --shadow: 0 24px 60px -12px rgb(0 0 0 / 0.6);

  /* Mode: Focus — deep warm ember on charcoal. */
  --bg: #141113;
  --accent: #ff7a59;
  --accent-ink: #1a0f0b;   /* text drawn on top of the accent color */
  --glow-1: #ff5a36;
  --glow-2: #a8344c;
}

/* Mode: Short break — fresh teal / mint. */
:root[data-mode="short"] {
  --bg: #0f1615;
  --accent: #3dd6b5;
  --accent-ink: #062019;
  --glow-1: #1fb89a;
  --glow-2: #2a7fa8;
}

/* Mode: Long break — calm indigo / lavender. */
:root[data-mode="long"] {
  --bg: #121220;
  --accent: #a99bff;
  --accent-ink: #15112e;
  --glow-1: #6f5cf0;
  --glow-2: #b07ae6;
}


/* Light theme. Same variable names, lighter values. Accents are darker than
   in the dark theme so white text on them still passes WCAG AA contrast (4.5:1). */
:root[data-theme="light"] {
  color-scheme: light;
  --text: #1e1b1a;
  --text-muted: #5e5753;
  --surface: rgb(0 0 0 / 0.04);
  --surface-strong: rgb(0 0 0 / 0.08);
  --border: rgb(0 0 0 / 0.1);
  --panel: rgb(255 255 255 / 0.86);
  --scrim: rgb(30 20 15 / 0.3);
  --shadow: 0 24px 60px -16px rgb(60 40 30 / 0.3);

  --bg: #fbf6f2;
  --accent: #c8442a;
  --accent-ink: #ffffff;
  --glow-1: #ff8a66;
  --glow-2: #ffb38f;
}

:root[data-theme="light"][data-mode="short"] {
  --bg: #f1f8f6;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --glow-1: #34d1b0;
  --glow-2: #6cc3e8;
}

:root[data-theme="light"][data-mode="long"] {
  --bg: #f4f3fc;
  --accent: #5b4bd6;
  --accent-ink: #ffffff;
  --glow-1: #9d8cff;
  --glow-2: #d39af0;
}


/* 2. BASE ------------------------------------------------------------------ */

/* border-box makes width include padding and border, which is far easier to reason about. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* dvh = the real visible height on phones (ignores the URL bar) */
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  /* Two soft pools of colour in opposite corners, painted as part of the page
     background. (Separate, drifting full-screen layers looked nice but cost
     seconds of main-thread time on devices without fast graphics: measured with
     Lighthouse, Performance went from 61 to 94 after this change.)
     The colours still glide when the mode changes, thanks to @property. */
  background:
    radial-gradient(70vmax 70vmax at 0% 0%, color-mix(in srgb, var(--glow-1) 28%, transparent), transparent),
    radial-gradient(70vmax 70vmax at 100% 100%, color-mix(in srgb, var(--glow-2) 22%, transparent), transparent),
    var(--bg);
  background-attachment: fixed;
  transition: background-color var(--dur-slow) ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

/* One consistent, clearly visible keyboard focus ring for every control.
   :focus-visible only shows it for keyboard users, not on mouse clicks. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hides content visually but keeps it readable for screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  text-align: center;
  color: var(--text-muted);
}


/* 3. LAYOUT ---------------------------------------------------------------- */

.topbar {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.topbar-actions {
  display: flex;
  gap: var(--space-1);
}

/* The main column: everything centered, with generous breathing room. */
.app {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-2) var(--space-4) var(--space-7);
}


/* 4. COMPONENTS ------------------------------------------------------------ */

/* Mode switch: a pill-shaped segmented control. */
.modes {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.mode-btn {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  transition: color var(--dur-med), background-color var(--dur-med);
}

.mode-btn:hover {
  color: var(--text);
}

.mode-btn[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
}

/* Task input: quiet and borderless until you use it. */
.task {
  width: 100%;
  max-width: 26rem;
}

.task input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: 1rem;
  text-align: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: border-color var(--dur-med);
}

.task input::placeholder {
  color: var(--text-muted);
}

.task input:hover,
.task input:focus {
  border-bottom-color: var(--accent);
}

/* The timer is the hero: a big square that the progress ring will wrap. */
.timer {
  position: relative;
  /* As big as possible, but never wider than the phone or taller than half a short screen. */
  width: min(78vw, 26rem); /* fallback for browsers without svh units */
  width: min(78vw, 26rem, 52svh);
  min-width: 13rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  container-type: inline-size; /* lets the digits size themselves to this box (cqi units) */
  /* Soft glow behind the ring, painted as this box's own background (cheap to draw). */
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
}

/* The ring. Rotated -90° so progress starts at 12 o'clock. */
.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 3;
}

.ring-track {
  stroke: var(--surface-strong);
}

.ring-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 339.29; /* = 2 × π × 54, the full circle */
  stroke-dashoffset: 339.29; /* start empty */
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 60%, transparent));
  /* JS updates 4×/second; this short linear transition fills the gaps so it glides. */
  transition: stroke-dashoffset 300ms linear, opacity var(--dur-med) ease;
}

/* When idle the ring is empty; hide it so the round line-cap doesn't leave a dot. */
:root[data-status="idle"] .ring-progress {
  opacity: 0;
}

/* Celebration: a ring of light expands and fades, and the numbers pop. */
.timer.is-celebrating::after {
  content: "";
  position: absolute;
  inset: 5%;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  animation: burst 1.2s var(--ease-out) forwards;
}

.timer.is-celebrating .time {
  animation: pop 0.7s var(--ease-out);
}

@keyframes burst {
  from { transform: scale(0.94); opacity: 0.9; }
  to { transform: scale(1.3); opacity: 0; }
}

@keyframes pop {
  40% { transform: scale(1.06); }
}

.readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* Numbers rise in softly after a mode change. */
.readout.is-entering {
  animation: rise 0.6s var(--ease-out);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}

.time {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(3.5rem, 16vw, 6.25rem); /* fallback for older browsers */
  font-size: 23cqi; /* 23% of the ring's width: always fits inside it, even "120:00" */
  line-height: 1;
  letter-spacing: -0.03em;
  /* Every digit gets the same width, so the numbers don't wiggle as they change. */
  font-variant-numeric: tabular-nums;
}

.status {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Buttons */
.controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 0;
  border-radius: var(--radius-pill);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    background-color var(--dur-med),
    color var(--dur-med);
}

.btn:hover {
  transform: translateY(-1px);
}

/* A tiny "press" makes the button feel physical. */
.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  min-width: 9.5rem;
  height: 3.5rem;
  padding: 0 var(--space-6);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 10px 28px -10px var(--accent);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -8px var(--accent);
}

.btn-icon {
  width: 3rem;
  height: 3rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-icon:hover {
  background: var(--surface-strong);
}

/* Quiet round icon buttons (header, dialog close). 44px = comfortable touch target. */
.btn-ghost {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

/* The mute button holds two icons; show the one that matches the state. */
#mute-btn[aria-pressed="true"] .icon-sound-on,
#mute-btn[aria-pressed="false"] .icon-sound-off {
  display: none;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Session dots + today's numbers */
.session-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.dots {
  display: flex;
  gap: var(--space-3);
}

.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--surface-strong);
  transition: background-color var(--dur-med), box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out);
}

.dot.is-done {
  background: var(--accent);
}

/* The session you're on now gets a thin ring around it. */
.dot.is-current {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent);
}

:root[data-status="running"] .dot.is-current {
  transform: scale(1.15);
}

.today {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Dialogs: a translucent "glass" card. backdrop-filter blurs what's behind it. */
.dialog {
  width: min(100% - 2rem, 28rem);
  max-height: min(100dvh - 2rem, 46rem);
  padding: clamp(var(--space-4), 5vw, var(--space-5));
  overflow-y: auto;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.dialog::backdrop {
  background: var(--scrim);
}

.dialog[open] {
  animation: dialog-in 0.35s var(--ease-out);
}

.dialog[open]::backdrop {
  animation: fade-in 0.35s ease;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) var(--space-4) 0;
}

.dialog h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Stats: three small cards, then the bar chart */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
}

.stat-card {
  display: flex;
  flex-direction: column-reverse; /* big number on top, label below, but the label stays first for screen readers */
  justify-content: flex-end;      /* (reversed) = pack at the top, so numbers line up across cards */
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-3) clamp(var(--space-2), 3vw, var(--space-3));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stat-card dt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-card dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.3em;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-card dd,
.stat-card dd span {
  font-family: var(--font-mono);
}

#stat-today-min,
#stat-today-sessions,
#stat-week-min {
  font-size: clamp(1.125rem, 5vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.chart-value {
  height: 1.125rem; /* fixed, so empty days line up with the others */
  line-height: 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 2.25rem;
  height: 8.5rem;
  overflow: hidden;
  background: var(--surface);
  border-radius: 0.6rem;
}

.chart-bar {
  width: 100%;
  height: calc(var(--h) * 100%);
  background: color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 0.6rem;
  transform-origin: bottom;
  animation: grow 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i) * 50ms);
}

.is-today .chart-bar {
  background: var(--accent);
}

.chart-day {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.is-today .chart-day {
  font-weight: 600;
  color: var(--text);
}

@keyframes grow {
  from { transform: scaleY(0); }
}

.chart-empty {
  margin-top: var(--space-4);
  text-align: center;
}

/* Settings form */
.settings-group {
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
}

.settings-group legend {
  margin-bottom: var(--space-2);
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.number-field {
  display: grid;
  gap: var(--space-1);
  font-size: 0.875rem;
}

.dialog input[type="number"] {
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.row-control input[type="number"] {
  width: 4.5rem;
}

/* One setting per row: label on the left, control on the right. */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3rem;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.number-grid + .row,
legend + .row {
  border-top: 0;
}

.row-control {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.unit {
  min-width: 2.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dialog input[type="range"] {
  width: 8.5rem;
  accent-color: var(--accent);
}

/* On/off switch built from a normal checkbox. The knob is a background
   circle that slides by moving its background-position. */
.switch {
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.625rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-color: var(--surface-strong);
  background-image: radial-gradient(circle, var(--text) 0 0.55rem, transparent calc(0.55rem + 1px));
  background-size: 1.5rem 1.5rem;
  background-position: 1px center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-med), background-position var(--dur-med) var(--ease-out);
}

.switch:checked {
  background-color: var(--accent);
  background-image: radial-gradient(circle, var(--accent-ink) 0 0.55rem, transparent calc(0.55rem + 1px));
  background-position: calc(100% - 1px) center;
  border-color: transparent;
}

/* Theme picker: real radio inputs, hidden but still focusable, with styled labels. */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented span {
  display: block;
  padding: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--dur-med), background-color var(--dur-med);
}

.segmented input:checked + span {
  color: var(--accent-ink);
  background: var(--accent);
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hint {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-block {
  width: 100%;
}

/* Keyboard shortcut list */
.shortcuts {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.shortcuts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.shortcuts dt {
  display: flex;
  gap: var(--space-1);
}

.shortcuts dd {
  margin: 0;
  color: var(--text-muted);
  text-align: right;
}

kbd {
  display: inline-block;
  min-width: 1.9rem;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 0.4rem;
}


/* 5. ADAPTING TO THE USER -------------------------------------------------- */

/* Short screens (small laptops, phones in landscape): tighten the spacing. */
@media (max-height: 700px) {
  .app {
    gap: var(--space-4);
    padding-bottom: var(--space-5);
  }
}

/* Phones held sideways: put the ring on the left and the controls on the right,
   so everything fits without scrolling. */
@media (orientation: landscape) and (max-height: 500px) {
  .topbar {
    padding-block: var(--space-2);
  }

  .app {
    display: grid;
    grid-template-columns: auto minmax(0, 22rem);
    grid-template-areas:
      "timer modes"
      "timer task"
      "timer controls"
      "timer meta";
    align-content: center;
    justify-content: center;
    column-gap: var(--space-7);
    row-gap: var(--space-3);
    max-width: none;
    padding-bottom: var(--space-4);
  }

  .modes { grid-area: modes; justify-self: center; }
  .task { grid-area: task; }
  .controls { grid-area: controls; justify-self: center; }
  .session-meta { grid-area: meta; }

  .timer {
    grid-area: timer;
    width: min(62svh, 40vw);
    min-width: 0;
  }
}

/* Some people get dizzy or distracted by motion and ask their device to reduce it.
   We respect that: changes happen instantly and animations jump to their end.
   (Animations are shortened rather than removed, so ones that end hidden, like
   the celebration ring, still end hidden.) The timer works exactly the same. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
}
