:root {
  color-scheme: dark;
  background: #000;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

body::before {
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.34) 0 0.7px, transparent 0.8px),
    radial-gradient(circle, rgba(255,255,255,0.16) 0 0.55px, transparent 0.65px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 3px;
  mix-blend-mode: screen;
}

body::after {
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.34) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 5px);
}

.stage {
  min-height: 100vh;
  width: 100vw;
  position: relative;
  padding: 2rem;
}

.logo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(82vw, 54rem);
  max-height: 58vh;
  object-fit: contain;
  display: block;
}

.countdown {
  position: fixed;
  left: 50%;
  top: calc(50% + min(31vh, 18rem));
  transform: translateX(-50%);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  z-index: 6;
}

.link {
  position: fixed;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 3rem);
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.03em;
  z-index: 6;
}


.stats {
  position: fixed;
  left: 50%;
  top: calc(50% + min(40vh, 23rem));
  transform: translateX(-50%);
  display: flex;
  gap: clamp(1rem, 4vw, 2.4rem);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
  z-index: 6;
  white-space: nowrap;
}

.stats b {
  color: #fff;
  font-weight: 400;
}

.toasts {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(1rem, 3vw, 2rem);
  display: grid;
  gap: 0.55rem;
  width: min(18rem, calc(100vw - 2rem));
  z-index: 6;
}

.toast {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1;
  backdrop-filter: blur(5px);
}

.toast b {
  color: #fff;
  font-weight: 400;
}

.toast.buy b {
  color: #9cffb2;
}

.toast.sell b {
  color: #ff9c9c;
}

@media (max-width: 680px) {
  .stats {
    top: calc(50% + min(37vh, 18rem));
  }

  .toasts {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
