@import url('themes.css');

body.public {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}
.bg-wrap {
  position: fixed; inset: 0; z-index: 0;
  background: #000;
}
.bg-wrap video, .bg-wrap img.poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(0.35) contrast(1.05) brightness(0.75);
}
.overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.82) 70%, rgba(0,0,0,0.92) 100%);
}
.stage {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.countdown {
  font-size: clamp(2rem, 8vw, 5.5rem);
  white-space: nowrap;
  user-select: none;
}
.hit {
  position: fixed; left: 1.1rem; bottom: 1rem; z-index: 2;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  opacity: 0.75;
}
.hq-link {
  position: fixed; right: 1.1rem; bottom: 0.9rem; z-index: 2;
  color: var(--accent-2);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  background: rgba(0,0,0,0.25);
}
.hq-link:hover { color: var(--text); }

body.public.scanline .scanlines,
body.hq.scanline::before {
  pointer-events: none;
}
.scanlines {
  position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}
body.ambient .countdown .num {
  text-shadow: 0 0 calc(var(--glow-strength, 50) * 0.3px) var(--accent);
}
html[data-oled="1"] body.public { --bg: #000; }
