/* Page chrome for the demo. The clock component itself lives in endurance-clock.css. */

:root {
  color-scheme: dark;
  --space: #04060c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--space);
  color: #cfd6e4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: clip;
}

.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* Fit the ring plus readout inside the viewport: cap by width and by height. */
.stage .endurance-clock {
  width: min(92vw, 760px, 74vh, 74dvh);
}
