/* Secured Assets TV: base layout. The whole show is drawn on a 1920x1080 stage that is
   scaled to fit whatever screen it is on (see fit() in tv.js). */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('/fonts/inter-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Marker'; font-weight: 400; font-display: swap; src: url('/fonts/permanent-marker-latin-400-normal.woff2') format('woff2'); }

:root {
  --brand: #0a3f99;        /* Allstate-style blue */
  --brand-dark: #082b6b;
  --brand-deep: #061d49;
  --ink: #101828;
  --marker: #4b2a96;       /* purple dry-erase marker, like the office whiteboard */
  --good: #15803d;
  --alert: #c62828;
  --chrome-h: 64px;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #02060f;
  font-family: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
body.idle { cursor: none; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  background: var(--brand-deep);
  overflow: hidden;
}

#slides { position: absolute; left: 0; top: 0; width: 1920px; height: calc(1080px - var(--chrome-h)); }

.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  overflow: hidden;
}
.slide.show { opacity: 1; }

/* ---- bottom bar: logo, status, clock, progress ---- */
#chrome {
  position: absolute; left: 0; bottom: 0; width: 1920px; height: var(--chrome-h);
  background: var(--brand-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
  z-index: 5;
}
#logo { height: 48px; border-radius: 6px; display: block; }
#clock { font-size: 30px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
#status { position: absolute; left: 50%; transform: translateX(-50%); font-size: 24px; font-weight: 600; color: #ffd166; }
#progress { position: absolute; left: 0; top: -6px; width: 100%; height: 6px; background: rgba(255, 255, 255, 0.15); }
#progress.hidden { display: none; }
#progress i { display: block; height: 100%; width: 0; background: #5aa2ff; }

/* ---- full-screen message (missing key, first connect) ---- */
#overlay {
  position: absolute; inset: 0; z-index: 20;
  background: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
#overlay[hidden] { display: none; }
#overlay-box { max-width: 1300px; padding: 60px; }
#overlay-box h1 { font-size: 84px; font-weight: 800; margin-bottom: 28px; }
#overlay-box p { font-size: 40px; line-height: 1.4; opacity: 0.85; }
#overlay-box img { height: 160px; border-radius: 12px; margin-bottom: 40px; }
