:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #0b111f;
}

* {
  box-sizing: border-box;
}

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

body {
  color: #f7f9ff;
  overflow: hidden;
}

.screen {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: max(36px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  place-items: start center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 12%, rgba(109, 192, 255, 0.34), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(255, 115, 127, 0.24), transparent 30%),
    linear-gradient(150deg, #111827 0%, #1b2a46 38%, #111727 67%, #070b13 100%);
}

.screen::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}

.screen::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 34%, rgba(0, 0, 0, 0.18));
}

.clock {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding-top: clamp(38px, 9svh, 92px);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.38);
}

.date,
.time {
  display: block;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
}

.date {
  font-size: clamp(21px, 4.7vw, 34px);
  line-height: 1.1;
}

.time {
  margin-top: 2px;
  font-size: clamp(82px, 22vw, 172px);
  line-height: 0.93;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .clock {
    padding-top: clamp(48px, 10svh, 110px);
  }
}
