/* The audience screen. Brand colours from brand/tokens/tokens.css; type is Assistant throughout. */
@font-face {
  font-family: "Assistant";
  src: url("../assets/fonts/Assistant.woff2") format("woff2");
  font-weight: 200 800;
  font-display: block;
}

:root {
  --ground: #0A4A7A;
  --main: #2371B4;
  --accent: #50B8EE;
  --paper: #F4F6F8;
  --flute: color-mix(in srgb, var(--ground) 92%, var(--paper));
  --soft: color-mix(in srgb, var(--paper) 72%, transparent);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Assistant", system-ui, sans-serif;
  color: var(--paper);
}

body.idle { cursor: none; }

/* A 16:9 stage, as large as the screen allows, letterboxed in black. */
#stage {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  background: #000;
  container-type: size;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
}
.layer.on { opacity: 1; }

/* Hold and placeholder cards: the films' corrugated deep-blue board. Sizes in cqw so they scale with the stage. */
.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ground);
}
.card[hidden] { display: none; }
.card > * { position: relative; margin: 0; }
.card-board {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(95% 85% at 50% 45%, transparent 55%, rgba(0, 0, 0, .38)),
    repeating-linear-gradient(90deg, var(--flute) 0 0.26cqw, var(--ground) 0.26cqw 1.25cqw);
}

.hold-logo { width: 11cqw; height: auto; filter: drop-shadow(0.4cqw 0.5cqw 0 rgba(0, 0, 0, .25)); }
.hold-name { margin-top: 2.2cqw; font-size: 7.4cqw; font-weight: 800; line-height: 1; }
.hold-line { margin-top: 1.2cqw; font-size: 2.6cqw; font-weight: 600; color: var(--soft); }

.ph-chapter { font-size: 2cqw; font-weight: 600; color: var(--accent); }
.ph-title { margin-top: 1cqw; font-size: 6.2cqw; font-weight: 800; line-height: 1.05; max-width: 80cqw; }
.ph-id { margin-top: 1.6cqw; font-size: 2.4cqw; font-weight: 700; color: var(--soft); direction: ltr; }
.ph-note {
  margin-top: 3cqw;
  padding: 0.5cqw 1.4cqw 0.7cqw;
  border-radius: 0.4cqw;
  background: var(--paper);
  color: var(--ground);
  font-size: 1.5cqw;
  font-weight: 700;
  box-shadow: 0.4cqw 0.6cqw 0 rgba(0, 0, 0, .28);
}

#blackout {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
#blackout.on { opacity: 1; }

/* Operator overlays. Never shown unless asked for with a key. */
#hud {
  position: absolute;
  inset-inline-start: 1.2cqw;
  bottom: 1.2cqw;
  padding: 0.5cqw 1cqw;
  border-radius: 0.5cqw;
  background: rgba(0, 0, 0, .7);
  font-size: 1.15cqw;
  font-weight: 600;
  line-height: 1.5;
}
#hud[hidden], .panel[hidden] { display: none; }

.panel {
  position: absolute;
  inset: 4cqw 18cqw;
  overflow: auto;
  padding: 2cqw 2.6cqw;
  border-radius: 1cqw;
  background: rgba(6, 30, 50, .94);
  font-size: 1.25cqw;
  line-height: 1.5;
}
.panel h2 { margin: 0 0 1cqw; font-size: 2cqw; }
.panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5cqw 2cqw; margin: 0; }
.panel dt { font-weight: 700; }
.panel dd { margin: 0; color: var(--soft); }
.panel table { width: 100%; border-collapse: collapse; }
.panel td, .panel th { padding: 0.35cqw 0.6cqw; border-bottom: 1px solid rgba(255, 255, 255, .12); text-align: start; }
.panel .ok { color: #8fe0a0; }
.panel .seg { color: var(--accent); }
.panel .miss { color: #ffb08a; }
.panel .note { color: var(--soft); margin-top: 1cqw; }
