:root {
  color-scheme: dark;
  --background: #050505;
  --foreground: #f7f7f2;
  --muted: #a3a39b;
  --panel: #10100f;
  --border: #2b2b27;
  --accent: #f7f7f2;
}

* {
  box-sizing: border-box;
}

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

body {
  align-items: center;
  background: var(--background);
  color: var(--foreground);
  display: flex;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.clock-shell {
  align-items: center;
  display: grid;
  justify-items: center;
  width: min(100%, 980px);
}

.clock {
  align-items: center;
  display: grid;
  gap: clamp(8px, 2vw, 18px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.number-image {
  aspect-ratio: 1 / 1;
  display: block;
  max-height: min(54vh, 420px);
  object-fit: contain;
  width: 100%;
}

@media (max-width: 640px) {
  .clock {
    gap: 6px;
  }
}
