/* Think Negative Pavilion screens: shared styles.
   Everything is laid out on a fixed 1920x1080 stage that core.js scales to
   the TV. Written for old TV browsers too (Tizen/webOS ship old Chromium):
   flexbox with margins instead of `gap`, no `inset`, no `aspect-ratio`. */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Wordmark";
  src: url("/fonts/archivo-black-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: "Wordmark";
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
}

:root {
  --navy: #071640;
  --navy-2: #0c2257;
  --navy-3: #13306f;
  --sky: #6b9cc4;
  --ice: #eef6fc;
  --orange: #ed5f0e;
  --yellow: #e8d22f;
  --teal: #26716f;
  --green: #385750;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --hair: rgba(255, 255, 255, 0.16);
  /* Brand font (Noka) when uploaded in the admin; Outfit until then. */
  --font: "Brand", "Outfit", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

/* ------------------------------------------------------------- wordmark */

.wordmark {
  font-family: "Wordmark", "Arial Black", sans-serif;
  color: var(--sky);
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark span { display: block; }
.wordmark-img { display: block; height: 100%; width: auto; }

/* ------------------------------------------------------------- sky */

.sky {
  position: absolute;
  overflow: hidden;
  background: #0b4ea0;
  background: linear-gradient(180deg, #0a3f8c 0%, #1763b8 45%, #4f93d3 78%, #9cc6ea 100%);
}
.sky .cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.92) 0%, rgba(246, 250, 255, 0.7) 32%, rgba(236, 244, 252, 0.28) 55%, rgba(255, 255, 255, 0) 71%);
}
.sky.drift .clouds {
  position: absolute;
  left: -10%;
  top: 0;
  width: 120%;
  height: 100%;
  -webkit-animation: drift 140s linear infinite alternate;
  animation: drift 140s linear infinite alternate;
}
@-webkit-keyframes drift { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(8%); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(8%); } }

/* ------------------------------------------------------------- shared bits */

.chip {
  display: inline-block;
  padding: 8px 18px 9px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--sky);
  white-space: nowrap;
}

.live-badge {
  display: inline-block;
  padding: 8px 18px 9px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-badge:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: #fff;
  vertical-align: 2px;
  -webkit-animation: pulse 1.6s ease-in-out infinite;
  animation: pulse 1.6s ease-in-out infinite;
}
@-webkit-keyframes pulse { 50% { opacity: 0.25; } }
@keyframes pulse { 50% { opacity: 0.25; } }

.avatar {
  position: relative;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-3);
  color: var(--white);
  font-weight: 600;
  text-align: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .initials { position: absolute; left: 0; right: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); letter-spacing: 0.02em; }

.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box !important; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

.fade { -webkit-transition: opacity 0.6s ease; transition: opacity 0.6s ease; }
.fade.out { opacity: 0; }

/* Offline indicator: a small dot, never a message on an audience screen. */
#net {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  z-index: 50;
}
#net.offline { opacity: 0.9; }

/* First-run overlay: one press of OK on the TV remote (= click) enables
   sound and full screen. */
#start {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 100;
  background: rgba(7, 22, 64, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
}
#start h1 { font-size: 64px; font-weight: 600; margin: 0 0 18px; }
#start p { font-size: 30px; color: var(--muted); margin: 0 0 48px; }
#start button {
  font: inherit;
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 22px 64px;
  cursor: pointer;
}
#start button:focus { outline: 6px solid var(--orange); outline-offset: 6px; }
#start small { margin-top: 40px; font-size: 22px; color: var(--muted); }
