:root {
  --accent: #449bff;       /* Super Regional blue */
  --bg: #06080b;
  --line: #11151c;         /* monitor-wall separators */
}

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

html, body {
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  font-family: 'Space Mono', ui-monospace, monospace;
}

/* ---- Background webcam wall ---- */
.grid {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--line);
  height: 100dvh;
  overflow: hidden;
}

.tile {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* iframes can't object-fit:cover, so fill the cell; any 16:9 letterbox blends
   into the black tile — reads as a monitoring wall. Square-ish cells (a 4x4 grid
   on a 16:9 screen) keep bars minimal. */
.tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;          /* pure background; clicks pass through */
  display: block;
}

.tile.standby {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07090d;
}
.tile.standby span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(120, 140, 165, 0.4);
}

.label {
  position: absolute;
  bottom: 7px;
  left: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 230, 245, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.ldot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* ---- Foreground logo ---- */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  pointer-events: none;
  /* darken toward center so the white logo always reads over busy feeds */
  background: radial-gradient(ellipse 75% 60% at center,
    rgba(2, 4, 7, 0.86) 0%,
    rgba(2, 4, 7, 0.55) 45%,
    rgba(2, 4, 7, 0.18) 100%);
}

.logo {
  width: min(60vw, 640px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.9));
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(220, 230, 245, 0.7);
}

.status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---- Responsive column counts (tiles flow to fill the screen) ---- */
@media (min-width: 1700px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 800px)  { .grid { grid-template-columns: repeat(3, 1fr); } .label { font-size: 9px; } }
@media (max-width: 500px)  { .grid { grid-template-columns: repeat(2, 1fr); } .logo { width: 78vw; } }

@media (prefers-reduced-motion: reduce) {
  .ldot, .status .dot { animation: none; }
}
