/* REPS gone WILD — fullscreen fleet scan wall */
:root {
  --red: #d6001c;
  --ink: #0d0e10;
  --panel: #16181c;
  --text: #e8e6e1;
  --dim: #8a919b;
  --ok: #2e9e5b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: #000; overflow: hidden; }
body {
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}
.hidden { display: none !important; }

/* wordmark */
.wordmark { font-family: "Arial Black", sans-serif; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; user-select: none; }
.wm-red { color: var(--red); font-size: 2.6rem; }
.wm-gone { color: var(--text); font-size: 1.9rem; font-weight: 600; margin: 0 0.12em; text-transform: lowercase; }
.wm-reg { color: var(--red); font-size: 0.8rem; vertical-align: super; }

/* ---------------- start gate ---------------- */
.start-gate {
  position: fixed; inset: 0; background: var(--ink); z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.start-sub { color: var(--dim); letter-spacing: 0.35em; font-size: 0.8rem; font-weight: 700; margin: 6px 0 30px; }
.btn-scan {
  background: var(--red); border: 0; color: #fff; font-weight: 800;
  letter-spacing: 0.22em; cursor: pointer; border-radius: 3px; padding: 12px 26px;
}
.btn-scan:hover { background: #b40018; }
.btn-scan-lg { font-size: 1.05rem; padding: 16px 40px; }

/* ---------------- fullscreen viewer ---------------- */
.viewer {
  position: fixed; inset: 0; background: #000; z-index: 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* feed fills the whole page — cover so there are no black bars */
.feed-fill {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* cards (switching / offline) cover the page cleanly */
.viewer-card {
  position: absolute; inset: 0; background: var(--panel); z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.card-kicker { color: var(--dim); letter-spacing: 0.35em; font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.card-name { font-weight: 900; font-size: clamp(3rem, 9vw, 7rem); color: var(--text); text-align: center; padding: 0 20px; }
.card-badge {
  margin-top: 22px; color: var(--red); border: 2px solid var(--red);
  font-weight: 800; letter-spacing: 0.3em; font-size: 1rem; padding: 8px 22px; border-radius: 3px;
}
.card-sub { color: var(--dim); font-size: 1rem; letter-spacing: 0.2em; margin-top: 16px; }
.viewer-switching .card-name { color: var(--red); }

/* persistent truck label + HUD */
.feed-hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 30px; background: linear-gradient(rgba(0,0,0,.75), transparent);
  pointer-events: none;
}
.feed-label {
  font-weight: 900; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0.02em;
  border-left: 8px solid var(--red); padding-left: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.feed-right { display: flex; align-items: center; gap: 20px; pointer-events: auto; }
#viewer-clock { color: var(--text); font-variant-numeric: tabular-nums; font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.feed-live { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); }
.feed-live.on { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2s infinite; }
.btn-logout { color: var(--dim); text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; }
.btn-logout:hover { color: var(--text); }
.feed-brand {
  position: absolute; bottom: 22px; left: 30px; z-index: 10; opacity: 0.75;
  pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.feed-brand .wm-red { font-size: 1.3rem; }
.feed-brand .wm-gone { font-size: 0.95rem; }

/* rotation progress */
.scan-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: rgba(255,255,255,.12); z-index: 10; }
#scan-bar { height: 100%; width: 0; background: var(--red); }

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