:root {
  color-scheme: dark;
  --ink: #08070d;
  --text: #fff6e8;
  --muted: #d7d7e4;
  --pink: #ff4ab8;
  --coral: #ff7b3d;
  --cyan: #36e4ff;
  --yellow: #ffd84d;
  --green: #a8ff5d;
  --magenta: #ef3493;
  --glass: rgba(12, 13, 27, 0.74);
  font-family:
    "Arial Black", Impact, Haettenschweiler, "Segoe UI", system-ui, sans-serif;
}

@font-face {
  font-family: "Pricedown";
  src: url("assets/fonts/pricedown.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
}

.countdown-page {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
}

.mosaic-bg,
.mosaic-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mosaic-bg {
  z-index: -3;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.mosaic-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 45%, rgba(5, 4, 12, 0.42) 0%, rgba(5, 4, 12, 0.7) 42%, rgba(5, 4, 12, 0.18) 74%),
    linear-gradient(90deg, rgba(255, 74, 184, 0.24), transparent 22%, transparent 78%, rgba(54, 228, 255, 0.22)),
    linear-gradient(180deg, rgba(5, 4, 12, 0.2), rgba(5, 4, 12, 0.82));
}

.countdown-panel {
  width: min(1180px, 100%);
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(20px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: var(--glass);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 216, 77, 0.18);
  backdrop-filter: blur(12px);
}

h1 {
  position: relative;
  max-width: 100%;
  margin: 0;
  z-index: 0;
  color: #ffffff;
  font-family: "Pricedown", "Pricedown Bl", Impact, Haettenschweiler, sans-serif;
  font-size: 8.8rem;
  line-height: 0.8;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: clamp(4px, 0.7vw, 12px) #000000;
  paint-order: stroke fill;
  text-shadow:
    0 18px 42px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(239, 52, 147, 0.26);
}

h1::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #ffffff;
  -webkit-text-stroke: clamp(8px, 1.05vw, 18px) var(--magenta);
  paint-order: stroke fill;
}

.countdown {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown__unit {
  min-height: clamp(100px, 15vw, 154px);
  padding: 16px 10px 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: #0c0d1b;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 216, 77, 0.11);
}

.countdown__unit span {
  color: #ffffff;
  font-size: 5.1rem;
  line-height: 0.88;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(54, 228, 255, 0.58);
}

.countdown__unit small {
  margin-top: 12px;
  color: var(--yellow);
  font: 900 0.78rem/1.2 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .countdown-page {
    padding: 14px;
  }

  .countdown-panel {
    gap: 14px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 4.8rem;
  }

  .countdown__unit span {
    font-size: 3.7rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 3.35rem;
  }

  .countdown__unit {
    min-height: 94px;
  }

  .countdown__unit span {
    font-size: 2.65rem;
  }
}
