/*
 * Sizing is in vmin/vw so the layout survives Phase 0 recon telling us the
 * panel is portrait rather than landscape. Nothing here assumes an aspect
 * ratio. Revisit the type scale once real viewing distance is measured.
 */

:root {
  --bg: #0b1020;
  --fg: #ffffff;
  --muted: #8b96b3;
  --accent: #ffc233;
  --bar-h: 9vmin;
  --fade-ms: 600ms;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

/* The kiosk has no pointer. Kill the cursor and any selection affordance. */
body { cursor: none; user-select: none; }

#stage {
  position: absolute;
  inset: 0 0 var(--bar-h) 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vmin;
  padding: 6vmin;
  text-align: center;

  opacity: 0;
  transition: opacity var(--fade-ms) ease-in-out;
}

.slide.is-visible { opacity: 1; }

.slide-title {
  font-size: clamp(2rem, 9vmin, 12rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.slide-body {
  font-size: clamp(1.25rem, 5vmin, 7rem);
  font-weight: 400;
  line-height: 1.25;
  color: #dbe2f2;
  text-wrap: balance;
}

/* The fallback shown when the playlist is empty or has never loaded.
   A sign that is up but has nothing scheduled should look intentional,
   not broken. */
.slide--fallback .slide-title { color: var(--accent); }

.slide--image {
  padding: 0;
}

.slide--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#statusbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vmin;
  background: rgba(0, 0, 0, 0.35);
  font-size: clamp(0.9rem, 3vmin, 3rem);
}

#clock {
  display: flex;
  align-items: baseline;
  gap: 2.5vmin;
}

#time { font-weight: 700; font-variant-numeric: tabular-nums; }
#date { color: var(--muted); }

#offline {
  color: var(--accent);
  font-size: 0.8em;
}
#offline[hidden] { display: none; }
