@font-face {
  font-family: "RuneScape UF";
  src: url("/static/fonts/runescape_uf.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --text: #f1ece4;
  --accent: #d0021b;
  --gold: #f5c518;
  --cam: #3fc8d4;
  --rainbow: linear-gradient(90deg, #ff2d2d, #ff9a1f, #ffe11f, #33e04a, #2f7bff, #8a3dff, #ff3df2);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: "RuneScape UF", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
/* Close-up clown loop; the gradient keeps text legible over a busy face. */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.15);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse at center, rgba(11, 12, 14, 0) 0%, rgba(11, 12, 14, 0.55) 100%),
    linear-gradient(rgba(11, 12, 14, 0.1), rgba(11, 12, 14, 0.5));
}

/* Live-cam viewfinder overlay, after the stream's cam outlines. */
.cam-frame {
  position: fixed;
  inset: clamp(0.75rem, 3vw, 2rem);
  z-index: 4;
  pointer-events: none;
}
.corner {
  position: absolute;
  width: clamp(2.5rem, 8vw, 5rem);
  height: clamp(2.5rem, 8vw, 5rem);
  border: 0 solid var(--cam);
  opacity: 0.8;
}
.corner.tl { top: 0; left: 0; border-top-width: 6px; border-left-width: 6px; }
.corner.tr { top: 0; right: 0; border-top-width: 6px; border-right-width: 6px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 6px; border-left-width: 6px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 6px; border-right-width: 6px; }
.reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60vmin, 520px);
  height: min(60vmin, 520px);
  transform: translate(-50%, -50%);
  border: 3px solid var(--cam);
  border-radius: 50%;
  opacity: 0.18;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(clamp(0.75rem, 3vw, 2rem) + 1.25rem) calc(clamp(0.75rem, 3vw, 2rem) + 1.5rem);
}
.site-nav-brand {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.site-nav-brand:hover {
  color: var(--gold);
}
.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.rec-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff2020;
  box-shadow: 0 0 8px #ff2020;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  padding: 6.5rem 2rem 3rem;
}
header {
  text-align: center;
  min-width: 0;
  max-width: 100%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
}
/* Crimson title with a rainbow copy offset behind it, like the title card. */
h1 {
  position: relative;
  margin: 0;
  font-size: clamp(3rem, 15vw, 8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: break-word;
}
h1::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate(0.06em, -0.05em);
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p.subtitle {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 9vw, 4.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0.05em 0.05em 0 var(--accent);
  overflow-wrap: break-word;
}
a.watch {
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  letter-spacing: 0.04em;
  color: #ff2a2a;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000, 0 2px 10px rgba(0, 0, 0, 0.8);
}
a.watch:hover {
  color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
}
