/* Palette matches sig-menu so the boards and the frame around them read as one. */
:root {
  --ink: #f4ece0;
  --ink-dim: #a99e8d;
  --bg: #14110e;
  --bg-panel: #1c1815;
  --gold: #d4a349;
  --red: #b3392f;
  --rule: #3a332b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: var(--bg); overflow: hidden; cursor: none; }

#stage {
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column;
  transform-origin: top left;
  color: var(--ink); font-family: var(--sans);
}
[data-mode="portrait"] #stage { width: 1080px; height: 1920px; }
[data-mode="tv"] #stage { width: 1920px; height: 1080px; }

/* ------------------------------------------------------------ slides */
#slides { position: relative; flex: 1; overflow: hidden; background: var(--bg); }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; z-index: 1; }

.media {
  display: flex; align-items: center; justify-content: center;
  background: #000 center / cover no-repeat;
}
.media::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.media img, .media video { position: relative; }
.media img, .media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 120px 56px 44px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  font-family: var(--serif); font-size: 64px; color: var(--ink);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
[data-mode="tv"] .caption { font-size: 52px; padding: 100px 64px 36px; }

/* ------------------------------------------------------------ banner */
.banner {
  flex: none; display: flex; align-items: center; justify-content: center;
  min-height: 130px; padding: 20px 48px;
  font-family: var(--serif); font-size: 54px; font-weight: bold; text-align: center; line-height: 1.15;
}
.banner[hidden] { display: none; }
.banner.info   { background: var(--gold); color: #1a1208; }
.banner.alert  { background: var(--red); color: #fff; }
.banner.closed { background: var(--red); color: #fff; }

/* ------------------------------------------------------------ bottom bar */
#bar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 150px; padding: 0 56px;
  background: var(--bg-panel); border-top: 2px solid var(--rule);
}
#time { font-size: 72px; font-weight: 300; letter-spacing: 1px; }
#date { font-size: 30px; color: var(--ink-dim); margin-top: 2px; }
#weather { display: flex; align-items: center; gap: 22px; }
#weather[hidden] { display: none; }
#weather svg { width: 84px; height: 84px; fill: var(--gold); stroke: var(--gold); }
#weather .temp { font-size: 64px; font-weight: 300; text-align: right; }
#weather .hilo { font-size: 28px; color: var(--ink-dim); white-space: pre; }

/* The TV is a window display: keep the frame slim and let the food fill it. */
[data-mode="tv"] #bar { height: 110px; padding: 0 48px; }
[data-mode="tv"] #time { font-size: 56px; }
[data-mode="tv"] #date { font-size: 24px; }
[data-mode="tv"] #weather svg { width: 64px; height: 64px; }
[data-mode="tv"] #weather .temp { font-size: 52px; }
[data-mode="tv"] #weather .hilo { font-size: 22px; }
[data-mode="tv"] .banner { min-height: 100px; font-size: 46px; }
