/* Party Night — shared theme (TV + phone). Fonts are bundled locally (SIL OFL). */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url(/shared/fonts/fredoka-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(/shared/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(/shared/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(/shared/fonts/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(/shared/fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(/shared/fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(/shared/fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root {
  --bg: #15112e;
  --bg-2: #1d1640;
  --panel: #2a2258;
  --panel-2: #362c6e;
  --line: rgba(255, 255, 255, 0.12);
  --text: #fff7ea;
  --muted: #b2abdb;
  --accent: #ff4f8b;
  --accent-2: #ffd23f;
  --accent-3: #3ec1ff;
  --good: #3ee08f;
  --bad: #ff5a5f;
  --font-display: 'Fredoka', 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* Avatar helper (api.avatar) */
.pn-avatar { display: inline-flex; flex-direction: column; align-items: center; gap: 0.18em; }
.pn-avatar-face {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 0.06em solid rgba(255, 255, 255, 0.85); box-shadow: 0 0.08em 0 rgba(0, 0, 0, 0.35);
  line-height: 1;
}
.pn-avatar-name {
  font-family: var(--font-display); font-weight: 600; max-width: 7em; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; line-height: 1.1;
}
.pn-avatar.off .pn-avatar-face { filter: grayscale(0.9); opacity: 0.5; }
