:root {
  --bg: #090a0c;
  --text: #f4f7fb;
  --muted: #8e98a8;
  --quiet: #596273;
  --line: #20242d;
  --accent: #d7ff64;
  --online: #4ade80;
  --offline: #fb7185;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

html {
  overflow: hidden;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  color: var(--text);
  overflow: hidden;
}

#stars,
#stars2,
#stars3 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#stars {
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 99%, transparent),
    radial-gradient(1px 1px at 22% 72%, #fff 99%, transparent),
    radial-gradient(1px 1px at 31% 36%, #fff 99%, transparent),
    radial-gradient(1px 1px at 47% 88%, #fff 99%, transparent),
    radial-gradient(1px 1px at 59% 24%, #fff 99%, transparent),
    radial-gradient(1px 1px at 68% 58%, #fff 99%, transparent),
    radial-gradient(1px 1px at 76% 12%, #fff 99%, transparent),
    radial-gradient(1px 1px at 86% 44%, #fff 99%, transparent),
    radial-gradient(1px 1px at 94% 79%, #fff 99%, transparent),
    radial-gradient(1px 1px at 6% 93%, #fff 99%, transparent);
  background-size: 420px 420px;
  animation: animStar 50s linear infinite;
  opacity: 0.75;
}

#stars2 {
  background-image:
    radial-gradient(1.5px 1.5px at 16% 22%, rgba(255, 255, 255, 0.92) 99%, transparent),
    radial-gradient(1.5px 1.5px at 28% 66%, rgba(255, 255, 255, 0.92) 99%, transparent),
    radial-gradient(1.5px 1.5px at 43% 14%, rgba(255, 255, 255, 0.92) 99%, transparent),
    radial-gradient(1.5px 1.5px at 54% 76%, rgba(255, 255, 255, 0.92) 99%, transparent),
    radial-gradient(1.5px 1.5px at 71% 39%, rgba(255, 255, 255, 0.92) 99%, transparent),
    radial-gradient(1.5px 1.5px at 91% 61%, rgba(255, 255, 255, 0.92) 99%, transparent);
  background-size: 620px 620px;
  animation: animStar 100s linear infinite;
  opacity: 0.55;
}

#stars3 {
  background-image:
    radial-gradient(2.5px 2.5px at 18% 38%, rgba(255, 255, 255, 0.82) 99%, transparent),
    radial-gradient(2.5px 2.5px at 39% 84%, rgba(255, 255, 255, 0.82) 99%, transparent),
    radial-gradient(2.5px 2.5px at 63% 18%, rgba(255, 255, 255, 0.82) 99%, transparent),
    radial-gradient(2.5px 2.5px at 82% 68%, rgba(255, 255, 255, 0.82) 99%, transparent);
  background-size: 820px 820px;
  animation: animStar 150s linear infinite;
  opacity: 0.42;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 0;
  text-align: center;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  line-height: 1.12;
  font-weight: 720;
  letter-spacing: 0;
}

.timer {
  width: 100%;
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  justify-items: center;
}

.duration {
  max-width: 100%;
  min-height: 1.2em;
  font-size: clamp(1.75rem, 4.8vw, 3.4rem);
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

.since {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.45;
}

.statusline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  color: var(--quiet);
  font-size: 0.88rem;
  line-height: 1.4;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--quiet);
  flex: 0 0 auto;
}

.dot-online {
  background: var(--online);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.45);
}

.dot-offline {
  background: var(--offline);
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.38);
}

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

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 860px);
    justify-content: center;
    padding: 28px 0;
    gap: 20px;
  }

  h1 {
    line-height: 1.14;
  }

  .duration {
    font-size: clamp(1.15rem, 6.4vw, 2.05rem);
  }
}

@media (max-width: 380px) {
  .duration {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  #stars,
  #stars2,
  #stars3 {
    animation: none;
  }
}

@keyframes animStar {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 -2000px;
  }
}
