:root {
  --bg: #000000;
  --gold: #ffd54a;
  --gold-glow: rgba(255, 196, 0, 0.75);
  --gold-soft: rgba(255, 196, 0, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 1rem;
}

/* Gold neon square with a transparent interior */
.neon-box {
  width: min(90vw, 620px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 3.5rem);
  background: var(--gold-soft);
  border: 3px solid var(--gold);
  border-radius: 6px;
  box-shadow:
    0 0 6px var(--gold),
    0 0 18px var(--gold-glow),
    0 0 42px var(--gold-glow),
    inset 0 0 12px var(--gold-glow),
    inset 0 0 36px rgba(255, 196, 0, 0.25);
  animation: flicker 6s infinite;
}

.message {
  font-weight: 900;
  font-size: clamp(1.25rem, 4.2vw, 2.1rem);
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.headline {
  display: block;
  font-size: 1.6em;
  margin-bottom: 0.5em;
}

/* Subtle neon flicker */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neon-box {
    animation: none;
  }
}

/* Instance identity panel, used to prove load balancing and failover */
.instance-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
}

.instance-info[hidden] {
  display: none;
}

.instance-info .label {
  color: var(--muted);
  margin-right: 0.5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.instance-info span:last-child {
  color: var(--gold);
  font-weight: 600;
}
