/* =============================================================================
   public/tv/tv.css
   EKRAN TV (PARTY QUIZ HUD & GAME SHOW)
   Kompletny arkusz stylów studia telewizyjnego 16:9 (1920×1080)
   Tożsamość wizualna: Arcade 3D Studio & Neon Game Show (Buzzin)
   ============================================================================= */

/* ── 1. IMPORT CZCIONEK TELETURNIEJU ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Space+Mono:wght@700&display=swap');

/* ── 2. DESIGN TOKENS & ZMIENNE MOTYWU STUDIA ARCADE 3D ─────────────────────── */
:root,
body.theme-arcade-3d,
body.tv-body {
  /* Nowoczesna, czysta, czytelna typografia teleturniejowa (3–5 metrów) */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* ── Paleta Barw Jackbox Party ─────────────────────────────────────────────── */
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #4834d4;

  --accent: #ffca28;               /* Główny kolor brandu - Słoneczny Żółty */
  --accent-bright: #ffe082;
  --accent-dark: #f57f17;

  --success: #2ed573;
  --success-light: #7bed9f;
  --error: #ff4757;
  --error-light: #ff6b81;
  --warning: #ffa502;
  --neutral: #747d8c;

  /* Tła Studia Telewizyjnego Jackbox Party */
  --bg-dark: #120d26;
  --bg-stage: #191236;
  --bg-card: #201742;
  --bg-card-light: #2c2057;
  --bg-surface: #261b4d;

  /* Tekst */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.90);
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dark: #181824;
  --text-gold: #ffca28;
  --text-lime: #2ed573;

  /* Krawędzie i Twarde Cienie Pop-Art */
  --ink-color: #181824;
  --ink-shadow: #0e091b;
  --border-ink: 3px solid var(--ink-color);
  --border-ink-thick: 4px solid var(--ink-color);
  --border-gold: 3px solid var(--accent);
  --border-blue: 3px solid var(--primary);
  --border-card: 3px solid var(--ink-color);

  --shadow-3d-sm: 3px 3px 0 var(--ink-color);
  --shadow-3d: 5px 5px 0 var(--ink-shadow);
  --shadow-3d-lg: 8px 8px 0 var(--ink-shadow);
  --shadow-card: 5px 5px 0 var(--ink-shadow);
  --shadow-btn: 0 5px 0 var(--ink-color), 0 8px 16px rgba(0, 0, 0, 0.35);

  /* Blaski Neonowe - Wyczyszczone do zera */
  --glow-lime: none;
  --glow-cyan: none;
  --glow-coral: none;
  --glow-gold: none;
  --glow-blue: none;

  /* Gradienty Studia i Elementów Gry */
  --gradient-bg: linear-gradient(180deg, #1f1638 0%, #120d26 100%);
  --gradient-card: linear-gradient(180deg, #251b4c 0%, #1a123a 100%);
  --gradient-gold: linear-gradient(180deg, #ffca28 0%, #ffa502 100%);
  --gradient-lime: linear-gradient(180deg, #2ed573 0%, #10ac84 100%);
  --gradient-success: linear-gradient(180deg, #2ed573 0%, #10ac84 100%);
  --gradient-error: linear-gradient(180deg, #ff4757 0%, #ee5253 100%);

  /* Zaokrąglenia i Przejścia */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.15s ease;
  --transition-fast: 0.08s ease;
  --transition-slow: 0.3s ease;

  /* Odpowiedzi Quizu A / B / C / D */
  --opt-a: #ff4757;  /* Koral / Czerwień */
  --opt-b: #1e90ff;  /* Błękit Oceaniczny */
  --opt-c: #ffa502;  /* Słoneczny Żółty / Pomarańcz */
  --opt-d: #2ed573;  /* Świeża Zieleń */

  --opt-a-shadow: #181824;
  --opt-b-shadow: #181824;
  --opt-c-shadow: #181824;
  --opt-d-shadow: #181824;
}

/* ── 3. ATMOSFERA STUDIA TELEWIZYJNEGO JACKBOX PARTY & BAZOWE STYLE ───────── */
body.tv-body,
body.theme-arcade-3d {
  background-color: #120d26 !important;
  background-image: 
    radial-gradient(circle at 50% 20%, #1f1638 0%, #120d26 70%),
    linear-gradient(180deg, #1f1638 0%, #120d26 100%) !important;
  color: #ffffff;
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typografia nagłówków teleturnieju 3D */
body.tv-body h1,
body.tv-body h2,
body.tv-body h3,
body.tv-body .logo-title,
body.tv-body .game-title,
body.tv-body .screen-title {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Przyciski w stylu Jackbox Party */
body.tv-body .btn,
body.tv-body button {
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: 16px;
  border: 3px solid #181824;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.tv-body .btn-gold,
body.tv-body .btn-lime,
body.tv-body .btn-primary {
  background: linear-gradient(180deg, #ffca28 0%, #ffa502 100%);
  color: #181824;
  border: 3px solid #181824;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 6px 0 #181824,
    0 10px 18px rgba(0, 0, 0, 0.35);
}

body.tv-body .btn-gold:hover,
body.tv-body .btn-lime:hover,
body.tv-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 8px 0 #181824,
    0 14px 22px rgba(0, 0, 0, 0.4);
}

body.tv-body .btn-gold:active,
body.tv-body .btn-lime:active,
body.tv-body .btn-primary:active {
  transform: translateY(4px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 #181824;
}

body.tv-body .btn-outline,
body.tv-body .btn-secondary {
  background: #2c2057;
  color: #ffffff;
  border: 3px solid #181824;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    0 5px 0 #181824,
    0 8px 16px rgba(0, 0, 0, 0.3);
}

body.tv-body .btn-outline:active,
body.tv-body .btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #181824;
}

/* ── 4. GLOBALNY LAYOUT & KADR TV ─────────────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: clamp(13px, 1.02vw, 18px); /* Płynne skalowanie dla TV 16:9 (720p..1080p..4K) */
  -webkit-font-smoothing: antialiased;
}

/* Pasek Przycisków Kontrolnych w bezpiecznej strefie prawego górnego rogu TV */
.tv-top-actions-bar {
  position: fixed;
  top: clamp(0.75rem, 1.8vh, 1.4rem);
  right: clamp(1rem, 3vw, 2.5rem);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
}

.tv-host-account-widget {
  display: inline-flex;
  align-items: center;
}

.tv-host-login-prompt {
  display: inline-flex;
  align-items: center;
}

.tv-host-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  color: #ffd700;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tv-fullscreen-btn,
.tv-reset-btn,
.tv-theme-btn {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  background: rgba(13, 27, 94, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--accent);
  border-radius: var(--radius-sm);
  width: clamp(36px, 4.2vh, 46px);
  height: clamp(36px, 4.2vh, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 1.8vh, 1.3rem);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  opacity: 0.85;
}

.tv-fullscreen-btn:hover,
.tv-reset-btn:hover,
.tv-theme-btn:hover,
.tv-settings-btn:hover {
  opacity: 1;
  background: rgba(40, 53, 147, 0.95);
  border-color: var(--accent);
  box-shadow: var(--glow-gold);
  transform: scale(1.08);
}

/* Modal potwierdzenia Nowej Gry na TV */
.tv-reset-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(4, 9, 36, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
  contain: paint;
}

.tv-reset-modal-box {
  max-width: 520px;
  width: 90%;
  background: #24143a;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 8px 8px 0 #0e091b;
}

.tv-reset-modal-icon {
  font-size: clamp(2.4rem, 4vh, 3.5rem);
  margin-bottom: 0.75rem;
}

.tv-reset-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vh, 1.8rem);
  color: #ffd23f;
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 #181824;
}

.tv-reset-modal-desc {
  font-size: clamp(0.95rem, 1.3vh, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.tv-reset-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Modal Ustawień Teleturnieju (Audio, Lektor, Nagłośnienie) */
.tv-settings-modal-box {
  max-width: 640px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.6rem 1.8rem;
  background: #20133c;
  border: 3.5px solid #181824;
  border-radius: 22px;
  box-shadow: 8px 8px 0 #0e091b;
  box-sizing: border-box;
  transform: translateZ(0);
  isolation: isolate;
  contain: layout;
}

.tv-settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #181824;
  flex-shrink: 0;
}

.tv-settings-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tv-settings-modal-icon {
  font-size: 1.6rem;
}

.tv-settings-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vh, 1.6rem);
  font-weight: 800;
  color: #ffd23f;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 #181824;
}

.tv-settings-close-btn {
  background: #ff4757;
  border: 2px solid #181824;
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #181824;
  transition: all 0.12s ease;
}

.tv-settings-close-btn:hover {
  background: #ff6b81;
  transform: translateY(-1px);
}

.tv-settings-close-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181824;
}

.tv-settings-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(88vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
  contain: content;
}

.tv-settings-modal-body::-webkit-scrollbar {
  width: 6px;
}

.tv-settings-modal-body::-webkit-scrollbar-track {
  background: #110924;
  border-radius: 4px;
}

.tv-settings-modal-body::-webkit-scrollbar-thumb {
  background: #ffd23f;
  border-radius: 4px;
}

.tv-settings-modal-body::-webkit-scrollbar-thumb:hover {
  background: #ffe066;
}

.tv-settings-section {
  background: #170d2c;
  border: 2.5px solid #181824;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 3px 3px 0 #0e091b;
}

.tv-settings-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffd23f;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.tv-settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tv-settings-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tv-settings-field-name {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.tv-settings-field-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tv-settings-field-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.tv-settings-row-btn {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.3rem;
}

.tv-settings-row-btn .tv-settings-field-header {
  flex-direction: column;
  align-items: flex-start;
}

/* Range slider styling */
.tv-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}

.tv-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.tv-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.tv-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  cursor: pointer;
}

/* Toggle Switch */
.tv-toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.tv-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tv-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tv-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.tv-toggle-switch input:checked + .tv-toggle-slider {
  background-color: #2ed573;
  border-color: #181824;
  box-shadow: none;
}

.tv-toggle-switch input:checked + .tv-toggle-slider:before {
  transform: translateX(24px);
}

.tv-mute-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 800;
  border-radius: 999px;
  border: 2px solid #181824;
  box-shadow: 0 3px 0 #181824;
  transition: all 0.12s ease;
}

.tv-mute-btn.is-muted {
  background: #ff4757;
  border-color: #181824;
  color: #ffffff;
}

.tv-settings-grid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.tv-modal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 999px;
  border: 2.5px solid #181824;
  box-shadow: 0 3px 0 #181824;
  transition: all 0.12s ease;
  cursor: pointer;
}

.tv-modal-action-btn:hover {
  transform: translateY(-1px);
}

.tv-modal-action-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181824;
}

.btn-danger-outline {
  background: #ff4757;
  border: 2.5px solid #181824;
  color: #ffffff;
}

.btn-danger-outline:hover {
  background: #ff6b81;
}

.tv-theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.tv-theme-choice-btn {
  background: #251642;
  border: 2px solid #181824;
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #181824;
  transition: all 0.12s ease;
  color: #ffffff;
}

.tv-theme-choice-btn:hover {
  background: #34205c;
  transform: translateY(-1px);
}

.tv-theme-choice-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181824;
}

.tv-theme-choice-btn.active {
  background: #ffd23f;
  border: 2.5px solid #181824;
  box-shadow: 0 3px 0 #181824;
  color: #181824;
  font-weight: 800;
}

.tv-theme-choice-btn.active .tv-theme-title {
  color: #181824;
  font-weight: 800;
}

.theme-choice-icon {
  font-size: 1.4rem;
}

.theme-choice-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.theme-choice-desc {
  font-size: 0.72rem;
  color: #94a3b8;
}

.tv-theme-choice-btn.active .theme-choice-desc {
  color: #fef08a;
}

.tv-settings-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── Ekrany ──────────────────────────────────────────────────────────────── */
/* ── Ekrany – Żelazny kadr 1920x1080 (Zero scroll, 100% stage canvas) ─────── */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: none;
  flex-direction: column;
  box-sizing: border-box !important;
  animation: fadeIn 0.4s ease;
  z-index: 10;
}

.screen.active {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

/* Bezwzględne ukrywanie nieaktywnych ekranów na TV - zapobiega przenikaniu widoków i blokowaniu kliknięć */
.screen:not(.active),
#screen-answer-reveal:not(.active),
#screen-question:not(.active),
#screen-round-results:not(.active),
#screen-competition-end:not(.active),
#screen-competition-intro:not(.active),
#screen-game-welcome:not(.active),
#screen-category-voting:not(.active),
#screen-vabanque-betting:not(.active),
#screen-final-results:not(.active),
#screen-mode-select:not(.active),
#screen-lobby:not(.active) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -9999 !important;
}

/* Dedykowany kadr dla Ekranu Lobby (Zero scroll, 100% stage canvas) */
#screen-lobby.active,
#screen-lobby {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

/* ── Overscan / Safe-area panel (Styl Jackbox Party) ───────────────────── */
.overscan-panel {
  position: fixed;
  bottom: clamp(1rem, 3vh, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  z-index: 10000;
  background: #24143a;
  border: 3.5px solid #181824;
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  min-width: 290px;
  box-shadow: 6px 6px 0 #0e091b;
  animation: fadeIn 0.3s ease;
}
.overscan-panel-title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.3vh, 1.05rem);
  font-weight: 800;
  color: #ffd23f;
  text-shadow: 0 1.5px 0 #181824;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.overscan-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.overscan-slider-row label {
  font-size: clamp(0.82rem, 1.25vh, 1rem);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}
.overscan-slider-row strong {
  color: #ffd23f;
  min-width: 2ch;
  display: inline-block;
}
#overscan-slider {
  flex: 1;
  accent-color: #ffd23f;
  height: 8px;
  cursor: pointer;
}
.overscan-btns {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.overscan-btns button {
  flex: 1;
  padding: 7px 12px;
  background: #ffd23f;
  border: 2px solid #181824;
  color: #181824;
  border-radius: 999px;
  font-size: clamp(0.75rem, 1.1vh, 0.9rem);
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 0 #181824;
  transition: all 0.1s ease;
}
.overscan-btns button:hover {
  background: #ffe066;
  transform: translateY(-1px);
}
.overscan-btns button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181824;
}
.overscan-btns button:last-child {
  flex: 0 0 auto;
  background: #ff4757;
  border-color: #181824;
  color: #ffffff;
}
.overscan-btns button:last-child:hover {
  background: #ff6b81;
}
.overscan-hint {
  font-size: clamp(0.68rem, 1vh, 0.82rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.overscan-hint code {
  background: #181824;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  color: #ffd23f;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Safe-area debug overlay */
.safearea-debug-overlay {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  inset: 0;
  border: 3px dashed rgba(255, 80, 80, 0.8);
  box-shadow: inset 0 0 0 3px rgba(255, 215, 0, 0.5);
}
.safearea-debug-overlay::before {
  content: '📐 SAFE AREA';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,80,80,0.85);
  color: #fff;
  font-size: clamp(0.7rem, 1.05vh, 0.85rem);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}



/* ── Wspólne nagłówki ────────────────────────────────────────────────────── */
.screen-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: var(--glow-gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.screen-sub {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  gap: 1.5rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN LOBBY – TELEWIZYJNE STUDIO TELEGRAMU 1080p (GAME STAGE)
   ════════════════════════════════════════════════════════════════════════════ */

.lobby-stage-container {
  width: 1920px;
  height: 1080px;
  min-width: 1920px;
  max-width: 1920px;
  min-height: 1080px;
  max-height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  background: #0b0717;
}

/* 1. GÓRNY BROADCAST HUD STUDIA (110px) - JACKBOX PARTY */
.lobby-broadcast-topbar {
  height: 110px;
  min-height: 110px;
  max-height: 110px;
  width: 1920px;
  box-sizing: border-box;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #1f1638 0%, #160f2e 100%);
  border-bottom: 3px solid #181824;
  box-shadow: 0 4px 0 #0e091b;
  position: relative;
  z-index: 30;
}

.lobby-brand-zone {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lobby-brand-zone .logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lobby-brand-zone .game-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #ffca28;
  -webkit-text-fill-color: #ffca28;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 2px 2px 0 #181824, 4px 4px 0 #0e091b;
  margin: 0;
}

.lobby-brand-zone .logo-star {
  font-size: 26px;
  color: #ffca28;
  text-shadow: 2px 2px 0 #181824;
}

.lobby-show-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  background: #ff4757;
  border: 2.5px solid #181824;
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #0e091b;
}

.lobby-status-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-radius: 999px;
  background: #201742;
  border: 2.5px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  transition: all 0.2s ease;
}

.lobby-status-pill .status-indicator-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid #181824;
}

.lobby-status-pill .status-indicator-text {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lobby-status-pill.status-waiting {
  border-color: #181824;
  box-shadow: 3px 3px 0 #0e091b;
}
.lobby-status-pill.status-waiting .status-indicator-dot {
  background: #ffca28;
  box-shadow: none;
}
.lobby-status-pill.status-waiting .status-indicator-text {
  color: #ffca28;
}

.lobby-status-pill.status-single {
  border-color: #181824;
  box-shadow: 3px 3px 0 #0e091b;
}
.lobby-status-pill.status-single .status-indicator-dot {
  background: #00d2d3;
  box-shadow: none;
}
.lobby-status-pill.status-single .status-indicator-text {
  color: #00d2d3;
}

.lobby-status-pill.status-ready {
  border-color: #181824;
  box-shadow: 3px 3px 0 #0e091b;
}
.lobby-status-pill.status-ready .status-indicator-dot {
  background: #2ed573;
  box-shadow: none;
}
.lobby-status-pill.status-ready .status-indicator-text {
  color: #2ed573;
}

.lobby-stats-zone {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lobby-host-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #251b4c;
  border: 2.5px solid #181824;
  padding: 6px 14px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ffca28;
  box-shadow: 3px 3px 0 #0e091b;
}

.lobby-host-pill .host-pill-name {
  color: #ffffff;
  font-weight: 800;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.players-counter-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: linear-gradient(180deg, #ffca28 0%, #ffa502 100%);
  border: 3px solid #181824;
  border-radius: 14px;
  padding: 6px 18px;
  box-shadow: 3px 3px 0 #0e091b;
}

.counter-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #181824;
  text-transform: uppercase;
}

.counter-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.players-counter-box .players-count-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: #181824;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.counter-max {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: rgba(24, 24, 36, 0.7);
}

/* 2. GŁÓWNA ARENA STUDIA (840px) */
.lobby-stage-arena {
  height: 840px;
  min-height: 840px;
  max-height: 840px;
  width: 1920px;
  box-sizing: border-box;
  padding: 10px 40px 10px 40px;
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* LEWY KIOSK DOŁĄCZANIA (460px) */
.lobby-join-terminal {
  width: 460px;
  min-width: 460px;
  max-width: 460px;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #251b4c 0%, #171035 100%);
  border: 3.5px solid #181824;
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 8px 8px 0 #0e091b;
  overflow: hidden;
  position: relative;
}

.join-terminal-header {
  text-align: center;
  margin-bottom: 4px;
}

.join-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  background: #ffca28;
  color: #181824;
  border: 2.5px solid #181824;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 3px 3px 0 #0e091b;
}

.join-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 6px 0 0 0;
  text-shadow: 2px 2px 0 #181824, 4px 4px 0 #0e091b;
}

.room-code-card {
  background: linear-gradient(180deg, #ffca28 0%, #ffa502 100%);
  border: 3.5px solid #181824;
  border-radius: 18px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: 5px 5px 0 #0e091b;
  margin: 4px 0;
}

.room-code-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #181824;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  display: block;
}

.room-code-letters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.room-code-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 60px;
  background: #ffffff;
  border: 3px solid #181824;
  border-radius: 14px;
  color: #181824;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #0e091b;
  text-shadow: none;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0;
}

.qr-frame {
  background: #ffffff;
  padding: 10px;
  border-radius: 20px;
  border: 4px solid #181824;
  box-shadow: 6px 6px 0 #0e091b;
}

.qr-wrapper {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
}

.qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.qr-loader {
  position: absolute;
  font-size: 40px;
  animation: pulse 1s infinite;
}

.join-url-pill {
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

.url-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 3px;
  display: block;
}

.join-url {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #181824;
  background: #2ed573;
  border: 2.5px solid #181824;
  padding: 4px 14px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 3px 3px 0 #0e091b;
  word-break: break-all;
  max-width: 100%;
}

.join-steps-hint {
  display: flex;
  justify-content: space-between;
  background: #1e153d;
  border: 2.5px solid #181824;
  border-radius: 14px;
  padding: 8px 10px;
  margin-top: 4px;
  box-shadow: 3px 3px 0 #0e091b;
}

.join-step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffca28;
  color: #181824;
  border: 1.5px solid #181824;
  font-size: 10px;
  font-weight: 900;
}

/* PRAWA SCENA TELETURNIEJU (1380px) */
.lobby-stage-main {
  width: 1380px;
  min-width: 1380px;
  max-width: 1380px;
  height: 820px;
  min-height: 820px;
  max-height: 820px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1b133b 0%, #130c29 100%);
  background-image: 
    radial-gradient(circle, rgba(255, 202, 40, 0.08) 2px, transparent 2.5px),
    radial-gradient(ellipse at 50% 100%, rgba(255, 202, 40, 0.08) 0%, transparent 65%);
  background-size: 28px 28px, 100% 100%;
  border: 3.5px solid #181824;
  border-radius: 24px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 8px 8px 0 #0e091b;
}

#screen-lobby .players-grid {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#screen-lobby .empty-stage-podiums-row {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding-bottom: 24px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* PODESTY GRACZY (STAGE PODIUMS) */
.empty-podium-slot.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.podium-spotlight-beam {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 440px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 202, 40, 0.12) 0%, transparent 75%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 1;
}

.podium-role-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  z-index: 5;
  background: #1e90ff;
  color: #ffffff;
  border: 2px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

.podium-role-badge.host-badge {
  background: #ff4757;
  color: #ffffff;
  border: 2px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  animation: pulse 2s infinite;
}

.lobby-stage-char-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  width: 100%;
}

.lobby-char-name-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background: #251b4c;
  border: 2.5px solid #181824;
  border-radius: 12px;
  padding: 4px 14px;
  box-shadow: 4px 4px 0 #0e091b;
  margin-bottom: 8px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-host .lobby-char-name-badge {
  background: #ffca28;
  color: #181824;
  border-color: #181824;
  box-shadow: 4px 4px 0 #0e091b;
}

.lobby-char-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lobby-char-figure img.lobby-char-svg {
  width: auto;
  height: 100%;
  max-height: 100%;
  filter: drop-shadow(4px 6px 0 #0e091b);
  animation: char3DBreathe 3s ease-in-out infinite;
}

.lobby-char-shadow {
  width: 70%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
  margin-top: -6px;
  margin-bottom: 6px;
}

.empty-podium-base.occupied-base {
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(180deg, #2b1f59 0%, #191238 100%);
  border: 3px solid #181824;
  border-radius: 14px;
  text-align: center;
  box-shadow: 4px 4px 0 #0e091b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 6;
  box-sizing: border-box;
}

.podium-host .empty-podium-base.occupied-base {
  background: linear-gradient(180deg, #ffca28 0%, #ffa502 100%);
  border: 3px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
}

.podium-base-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ed573;
  border: 1.5px solid #181824;
  box-shadow: none;
}

.podium-host .podium-base-light {
  background: #ff4757;
  border: 1.5px solid #181824;
  box-shadow: none;
}

.podium-base-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.podium-host .podium-base-text {
  color: #181824;
}

/* SKALOWANIE PODESTÓW W ZALEŻNOŚCI OD LICZBY GRACZY (1..10) */
[data-player-count="1"] .empty-podium-slot {
  width: 280px;
  height: 520px;
}
[data-player-count="1"] .lobby-char-figure {
  height: 260px;
}

[data-player-count="2"] .empty-podium-slot,
[data-player-count="3"] .empty-podium-slot,
[data-player-count="4"] .empty-podium-slot {
  width: 230px;
  height: 480px;
  gap: 20px;
}
[data-player-count="2"] .lobby-char-figure,
[data-player-count="3"] .lobby-char-figure,
[data-player-count="4"] .lobby-char-figure {
  height: 220px;
}

[data-player-count="5"] .empty-podium-slot,
[data-player-count="6"] .empty-podium-slot {
  width: 180px;
  height: 430px;
  gap: 16px;
}
[data-player-count="5"] .lobby-char-figure,
[data-player-count="6"] .lobby-char-figure {
  height: 180px;
}

[data-player-count="7"] .empty-podium-slot,
[data-player-count="8"] .empty-podium-slot {
  width: 142px;
  height: 390px;
  gap: 12px;
}
[data-player-count="7"] .lobby-char-figure,
[data-player-count="8"] .lobby-char-figure {
  height: 145px;
}
[data-player-count="7"] .lobby-char-name-badge,
[data-player-count="8"] .lobby-char-name-badge {
  font-size: 15px;
  padding: 3px 10px;
}
[data-player-count="7"] .podium-base-text,
[data-player-count="8"] .podium-base-text {
  font-size: 13px;
}

[data-player-count="9"] .empty-podium-slot,
[data-player-count="10"] .empty-podium-slot {
  width: 116px;
  height: 360px;
  gap: 8px;
}
[data-player-count="9"] .lobby-char-figure,
[data-player-count="10"] .lobby-char-figure {
  height: 125px;
}
[data-player-count="9"] .lobby-char-name-badge,
[data-player-count="10"] .lobby-char-name-badge {
  font-size: 13px;
  padding: 2px 8px;
}
[data-player-count="9"] .podium-base-text,
[data-player-count="10"] .podium-base-text {
  font-size: 11px;
}
[data-player-count="9"] .podium-role-badge,
[data-player-count="10"] .podium-role-badge {
  font-size: 11px;
  padding: 2px 8px;
}

/* STAN 0 GRACZY (TELEBIM POWITALNY) */
.stage-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  max-width: 800px;
  padding: 40px;
  background: #201742;
  border: 3.5px dashed #ffca28;
  border-radius: 28px;
  box-shadow: 8px 8px 0 #0e091b;
  animation: floatSlow 4s ease-in-out infinite;
}

.stage-empty-icon-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffca28;
  border: 3.5px solid #181824;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 4px 4px 0 #0e091b;
}

.stage-empty-icon {
  font-size: 44px;
}

.stage-empty-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: #ffca28;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 #181824;
  margin-bottom: 12px;
}

.stage-empty-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  max-width: 600px;
  margin-bottom: 20px;
}

.stage-empty-hint-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  background: #ff4757;
  border: 2px solid #181824;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #0e091b;
}

/* 3. DOLNY BROADCAST DOCK / STATUS HOSTA (130px) */
.lobby-broadcast-bottombar {
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  width: 1920px;
  box-sizing: border-box;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(0deg, #120d26 0%, #1a123a 100%);
  border-top: 3.5px solid #181824;
  position: relative;
  z-index: 20;
}

.host-control-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #201742;
  border: 3px solid #181824;
  border-radius: 18px;
  padding: 10px 24px;
  box-shadow: 5px 5px 0 #0e091b;
  max-width: 950px;
}

.host-icon-glow {
  font-size: 36px;
  filter: drop-shadow(2px 2px 0 #181824);
  animation: pulse 2s infinite;
}

.host-status-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.host-status-main {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffca28;
  letter-spacing: 0.5px;
}

.host-status-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.lobby-control-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #201742;
  border: 3px solid #181824;
  border-radius: 18px;
  padding: 10px 24px;
  box-shadow: 5px 5px 0 #0e091b;
  margin: 0;
}

.mode-panel-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.mode-buttons {
  display: flex;
  gap: 8px;
}

.mode-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 12px;
  background: #150e2d;
  color: #ffffff;
  border: 2.5px solid #181824;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 3px 3px 0 #0e091b;
}

.mode-btn:hover,
.mode-btn.active {
  background: #ffca28;
  color: #181824;
  border-color: #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

.mode-btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 #0e091b;
}

.lobby-start-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lobby-start-box .btn-start {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  padding: 10px 28px;
  border-radius: 16px;
  background: #2ed573;
  color: #181824;
  border: 3px solid #181824;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: pulse 1.8s infinite;
  margin: 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.lobby-start-box .btn-start:hover {
  background: #26af5f;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #181824, 0 10px 18px rgba(0, 0, 0, 0.4);
}

.lobby-start-box .btn-start:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #181824;
}

.lobby-start-box .waiting-msg {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* ── Karta Szybkiego Logowania Organizatora Telefonem (Tylko TV) ── */
.tv-host-login-card {
  display: flex;
  flex-direction: column;
  background: #201742;
  border: 3px solid #ffca28;
  border-radius: 18px;
  padding: clamp(0.35rem, 0.7vh, 0.65rem) clamp(0.6rem, 1.2vw, 1rem);
  margin-bottom: clamp(0.35rem, 0.6vh, 0.6rem);
  box-shadow: 6px 6px 0 #0e091b;
  animation: tvCardSlideIn 0.3s ease-out;
  flex-shrink: 0;
}

@keyframes tvCardSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tv-host-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2px, 0.4vh, 5px);
  padding-bottom: clamp(2px, 0.4vh, 4px);
  border-bottom: 2px solid #181824;
}

.tv-host-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tv-host-card-crown {
  font-size: clamp(1.1rem, 1.8vh, 1.4rem);
}

.tv-host-card-close-btn {
  background: #ff4757;
  border: 2px solid #181824;
  color: #ffffff;
  border-radius: 50%;
  width: clamp(22px, 2.5vh, 26px);
  height: clamp(22px, 2.5vh, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.2s;
  box-shadow: 2px 2px 0 #0e091b;
  flex-shrink: 0;
}

.tv-host-card-close-btn:hover {
  background: #e03140;
  border-color: #181824;
  color: #ffffff;
  transform: scale(1.1);
}

.tv-host-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tv-host-card-title {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.3vh, 1rem);
  font-weight: 800;
  color: #ffca28;
  letter-spacing: 0.8px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #181824;
}

.tv-host-card-sub {
  font-size: clamp(0.68rem, 1vh, 0.78rem);
  color: #ffffff;
  margin: 0;
}

.tv-host-badge-tag {
  background: #ffca28;
  color: #181824;
  border: 1.5px solid #181824;
  font-size: clamp(0.6rem, 0.95vh, 0.7rem);
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tv-host-card-content {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

.tv-host-qr-box {
  position: relative;
  width: clamp(52px, 6.8vh, 72px);
  height: clamp(52px, 6.8vh, 72px);
  background: #ffffff;
  border: 2.5px solid #181824;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 3px 3px 0 #0e091b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-host-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tv-host-qr-loader {
  position: absolute;
  font-size: 1.2rem;
  animation: spin 1s infinite linear;
}

.tv-host-card-steps {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(3px, 0.5vh, 6px) 12px;
  flex: 1;
}

.tv-host-step-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(0.7rem, 1.1vh, 0.82rem);
  color: #ffffff;
}

.tv-host-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(16px, 1.8vh, 19px);
  height: clamp(16px, 1.8vh, 19px);
  border-radius: 50%;
  background: #ffca28;
  color: #181824;
  border: 1.5px solid #181824;
  font-weight: 900;
  font-size: clamp(0.62rem, 0.95vh, 0.72rem);
  flex-shrink: 0;
}

.tv-host-step-txt {
  line-height: 1.2;
}

.tv-host-step-txt strong {
  color: #ffca28;
}

.tv-host-card-footer {
  margin-top: 2px;
  width: 100%;
}

.tv-host-direct-login-btn {
  font-size: clamp(0.65rem, 0.95vh, 0.74rem);
  color: #ffca28;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.tv-host-direct-login-btn:hover {
  color: #ffffff;
}

.players-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(4px, 0.6vh, 8px);
  padding-bottom: clamp(3px, 0.5vh, 6px);
  border-bottom: var(--border-gold);
}

.players-title {
  font-size: clamp(1.1rem, 1.8vh, 1.5rem);
  font-weight: 900;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.players-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 3.6vh, 38px);
  height: clamp(30px, 3.6vh, 38px);
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--primary-dark);
  font-size: clamp(0.95rem, 1.3vh, 1.2rem);
  font-weight: 900;
  box-shadow: var(--glow-gold);
}

.players-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vh, 8px);
  overflow: visible;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.4rem;
}

.players-grid::-webkit-scrollbar {
  width: 6px;
}

.players-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.players-grid::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 3px;
}

/* Globalne reguły skalowania awatarów graficznych na ekranie TV */
.avatar-render-img,
img.avatar-render-img {
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  display: inline-block;
}

.staged-player-avatar img,
.staged-player-avatar .avatar-render-img,
.bwr-avatar img,
.bwr-avatar .avatar-render-img,
.kalam-tv-drawer-avatar img,
.kalam-tv-drawer-avatar .avatar-render-img,
.kartofel-holder-avatar img,
.kartofel-holder-avatar .avatar-render-img,
.solo-board-avatar img,
.solo-board-avatar .avatar-render-img,
.vb-player-avatar,
.vb-banner-avatar,
.vb-res-avatar {
  width: 1em !important;
  height: 1em !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  vertical-align: middle;
}

.score-avatar,
.comp-prog-avatar {
  width: clamp(3.2rem, 5.2vh, 4.4rem);
  height: clamp(3.2rem, 5.2vh, 4.4rem);
  min-width: clamp(3.2rem, 5.2vh, 4.4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.4rem, 4vh, 3.2rem);
  line-height: 1;
  flex-shrink: 0;
}

.score-avatar img,
.score-avatar .avatar-render-img,
.comp-prog-avatar img,
.comp-prog-avatar .avatar-render-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block;
}

/* Karta gracza w lobby */
.player-card {
  position: relative;
  background: var(--gradient-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  animation: popIn 0.4s ease;
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 150px;
  overflow: hidden;
}

.btn-kick {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff4757;
  border: 2px solid #181824;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1.4vh, 14px);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  padding: 0;
  line-height: 1;
  box-shadow: 2px 2px 0 #0e091b;
}

.player-card:hover .btn-kick,
.btn-kick:hover {
  background: #e03140;
  border-color: #181824;
  color: #ffffff;
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 3px 3px 0 #0e091b;
}

.player-avatar {
  font-size: clamp(2.2rem, 3.8vh, 3.2rem);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 6.5vh, 70px);
  height: clamp(52px, 6.5vh, 70px);
  margin: 0 auto;
}

.player-avatar .avatar-render-img,
.player-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: clamp(52px, 6.5vh, 70px) !important;
  max-height: clamp(52px, 6.5vh, 70px) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 2.5px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

.player-name-lobby {
  font-size: clamp(0.8rem, 1.3vh, 1.05rem);
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.2;
}

.empty-stage-podiums-row,
.stage-podiums-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 1.8vw, 24px);
  width: 100%;
}

.empty-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0.75;
  transition: all 0.3s ease;
}

.empty-podium-slot.occupied {
  opacity: 1;
}

.empty-podium-spotlight {
  width: clamp(65px, 8.5vw, 105px);
  height: clamp(80px, 11vh, 130px);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 202, 40, 0.12) 0%, transparent 75%);
  position: absolute;
  top: -10px;
  pointer-events: none;
}

.empty-podium-hologram {
  font-size: clamp(2.2rem, 3.8vh, 3.2rem);
  margin-bottom: 6px;
}

.empty-podium-base {
  background: #201742;
  border: 2.5px solid #ffca28;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 900;
  color: #ffca28;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 #0e091b;
}

.empty-stage-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #201742;
  border: 2.5px solid #181824;
  border-radius: 999px;
  padding: clamp(5px, 0.8vh, 8px) clamp(14px, 1.8vw, 22px);
  font-weight: 800;
  font-size: clamp(0.72rem, 0.95vw, 0.88rem);
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  box-shadow: 4px 4px 0 #0e091b;
}

.player-placeholder {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN WYBORU KONKURENCJI
   ════════════════════════════════════════════════════════════════════════════ */

#screen-mode-select {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.comp-select-studio-layout {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 48px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 20%, rgba(255, 202, 40, 0.08) 0%, transparent 65%);
}

.comp-select-header {
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.comp-select-mode-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 900;
  background: #ffca28;
  color: #181824;
  border: 2.5px solid #181824;
  border-radius: 999px;
  padding: 5px 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 3px 3px 0 #0e091b;
  margin-bottom: 4px;
}

.comp-select-title {
  font-size: 46px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffca28;
  text-shadow: 3px 3px 0 #181824, 6px 6px 0 #0e091b;
  margin: 2px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.comp-select-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Siatka 11 Konkurencji 3D Arcade Kiosków z nawigacją karuzeli Buzzin */
.competitions-carousel-wrapper {
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.btn-comp-carousel-nav {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffca28;
  border: 3.5px solid #181824;
  color: #181824;
  font-size: 38px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 #0e091b;
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-comp-carousel-nav:hover {
  transform: scale(1.08);
  background: #ffa502;
}

.btn-comp-carousel-nav:active {
  transform: translateY(3px) scale(1.02);
  box-shadow: 1px 1px 0 #0e091b;
}

.competitions-grid {
  height: 530px;
  flex: 1;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 14px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.competitions-grid::-webkit-scrollbar {
  display: none;
}

.competition-card {
  width: 290px;
  min-width: 290px;
  height: 480px;
  background: linear-gradient(155deg, #251b4c 0%, #171035 100%);
  border: 3.5px solid #181824;
  border-radius: 28px;
  box-shadow: 6px 6px 0 #0e091b;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: center;
  box-sizing: border-box;
}

.competition-card:hover,
.competition-card.selected {
  border-color: #ffca28;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 8px 8px 0 #0e091b;
}

.comp-card-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 999px;
  background: #2ed573;
  color: #181824;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
}

.comp-icon-3d {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #201742;
  border: 3px solid #181824;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  box-shadow: 3px 3px 0 #0e091b;
}

.comp-icon {
  font-size: 48px;
  filter: drop-shadow(2px 2px 0 #0e091b);
  display: block;
}

.comp-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #ffca28;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-shadow: 2px 2px 0 #181824;
}

.comp-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  flex: 1;
}

.comp-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #140d2b;
  border-radius: 999px;
  border: 2px solid #181824;
}

.comp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ed573;
  border: 1.5px solid #181824;
  box-shadow: none;
}

.comp-status-text {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

/* Dolna Strefa: Kod QR dołączenia + Karta podglądu + Pasek graczy */
.comp-select-bottom-dock {
  height: 260px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #201742;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 18px 32px;
  box-shadow: 8px 8px 0 #0e091b;
  box-sizing: border-box;
  flex-shrink: 0;
}

.mode-select-qr-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #181033;
  padding: 12px 20px;
  border-radius: 20px;
  border: 2.5px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
  flex-shrink: 0;
}

.mode-select-qr-thumb-wrap {
  width: 110px;
  height: 110px;
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid #181824;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mode-select-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mode-select-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-select-qr-label {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #ffca28;
  letter-spacing: 2px;
}

.mode-select-qr-code {
  font-size: 38px;
  font-family: var(--font-mono);
  font-weight: 900;
  color: #ffca28;
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 #181824;
}

.mode-select-center-dock {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.comp-preview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comp-preview-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #ffca28;
  letter-spacing: 1.5px;
}

.comp-preview-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comp-preview-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.comp-preview-info {
  flex: 1;
  min-width: 0;
}

.comp-preview-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2px;
  text-shadow: 2px 2px 0 #181824;
}

.comp-preview-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.comp-preview-tags {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.preview-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  background: #1e90ff;
  border: 2px solid #181824;
  color: #ffffff;
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: 2px 2px 0 #0e091b;
}

.mode-select-players-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mode-select-players-bar::-webkit-scrollbar {
  display: none;
}

.mode-select-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
  flex-shrink: 0;
}

.btn-secondary-3d {
  font-family: var(--font-display);
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 800;
  background: #ff4757;
  color: #ffffff;
  border: 3px solid #181824;
  border-radius: 18px;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-gold-3d {
  font-family: var(--font-display);
  padding: 16px 28px;
  font-size: 20px;
  font-weight: 900;
  background: #2ed573;
  color: #181824;
  border: 3px solid #181824;
  border-radius: 18px;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-secondary-3d:hover,
.btn-gold-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #181824, 0 10px 18px rgba(0, 0, 0, 0.4);
}

.btn-secondary-3d:active,
.btn-gold-3d:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #181824;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN GŁOSOWANIA NA KATEGORIE
   ════════════════════════════════════════════════════════════════════════════ */

#screen-category-voting {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.voting-layout {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #251b4d 0%, #130d2a 75%);
}

.voting-header {
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.voting-header .screen-title {
  font-size: 44px;
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
  margin: 0 0 4px 0;
  letter-spacing: 2px;
}

.voting-header .screen-sub {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  margin: 0;
}

.voting-timer-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.voting-timer-wrap .timer-ring {
  filter: drop-shadow(2px 2px 0 #181824);
}

.voting-timer-wrap .timer-ring-progress {
  stroke: #ffd23f;
}

.voting-timer-wrap .timer-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
}

.category-stage-scene {
  width: 100%;
  height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
  height: 600px;
  box-sizing: border-box;
}

/* Karta kategorii – Tabliczka Jackbox Party */
.category-card {
  background: linear-gradient(165deg, #271c50 0%, #161032 100%);
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.15s ease-out, border-color 0.15s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
}

.category-card.has-votes {
  border-color: #ffd23f;
  box-shadow: 7px 7px 0 #0e091b;
}

.category-card.roulette-active {
  transform: scale(1.05) translate3d(0, -6px, 0);
  border-color: #ffd23f;
  box-shadow: 8px 8px 0 #0e091b;
  z-index: 5;
  transition: transform 0.06s ease-out, border-color 0.06s ease-out;
}

.category-card.dimmed-category {
  opacity: 0.3;
  transform: scale(0.95);
  filter: grayscale(40%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.category-card.winner {
  transform: scale(1.08) translate3d(0, -8px, 0);
  border-color: #2ed573;
  box-shadow: 10px 10px 0 #0e091b;
  z-index: 10;
  animation: winnerCardBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes winnerCardBounce {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  40% { transform: scale(1.12) translate3d(0, -14px, 0); }
  70% { transform: scale(1.05) translate3d(0, -6px, 0); }
  100% { transform: scale(1.08) translate3d(0, -8px, 0); }
}

.draw-winner-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 18px;
  background: #ffd23f;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 20px;
  border: 2.5px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.voting-draw-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.draw-dice-spin {
  font-size: 48px;
  animation: spinDice 0.6s linear infinite;
  display: inline-block;
}

@keyframes spinDice {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.draw-winner-check {
  font-size: 50px;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.category-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  border: 3px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  color: #ffffff;
}

.cat-a .category-letter { background: #ff4757; color: #ffffff; }
.cat-b .category-letter { background: #1e90ff; color: #ffffff; }
.cat-c .category-letter { background: #ffd23f; color: #181824; }
.cat-d .category-letter { background: #2ed573; color: #181824; }

.category-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  text-align: center;
}

.vote-count {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
  margin-bottom: 0.3rem;
  transition: transform 0.2s ease;
}

.vote-count.bump {
  animation: popIn 0.3s ease;
}

.vote-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

/* Pasek postępu głosowania */
.vote-bar-wrap {
  background: #160f2e;
  border-radius: 100px;
  height: 14px;
  width: 100%;
  overflow: hidden;
  border: 2px solid #181824;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.vote-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #ffd23f, #2ed573);
  transition: width 0.5s ease;
  width: 0%;
}

/* ════════════════════════════════════════════════════════════════════════════
   WIDOK GŁOSOWANIA NA KATEGORIE: TORY Z WYBORAMI GRACZY & PASEK OCZEKUJĄCYCH
   ════════════════════════════════════════════════════════════════════════════ */

/* Tacka z awatarami graczy wewnątrz wybranej karty kategorii */
.category-card .stage-lane-voters {
  width: 100%;
  min-height: 80px;
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(14, 9, 27, 0.45);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  margin-top: auto;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.category-card.has-votes .stage-lane-voters {
  border-style: solid;
  border-color: rgba(255, 210, 63, 0.45);
  background: rgba(14, 9, 27, 0.65);
}

/* Plakietka gracza po oddaniu głosu na daną kategorię */
.stage-voter-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #24143a;
  border: 2.5px solid #00e5ff;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  box-shadow: 0 4px 0 #0e091b, 0 0 12px rgba(0, 229, 255, 0.35);
  animation: voterHopToLane 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-sizing: border-box;
}

@keyframes voterHopToLane {
  0% {
    transform: scale(0.6) translateY(18px);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.stage-voter-item .stage-voter-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  background: #181824;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-voter-item .stage-voter-avatar-wrap img,
.stage-voter-item .stage-voter-avatar-wrap .avatar-render-img {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover !important;
}

.stage-voter-item .stage-voter-name-tag {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-voter-name-tag.tag-voted-cat-a {
  color: #ff6b8b;
}
.stage-voter-name-tag.tag-voted-cat-b {
  color: #38bdf8;
}
.stage-voter-name-tag.tag-voted-cat-c {
  color: #ffd23f;
}
.stage-voter-name-tag.tag-voted-cat-d {
  color: #4ade80;
}

/* Pasek żetonów graczy oczekujących na dole sceny (Jedyny pasek graczy w głosowaniu!) */
.voting-bottom-tokens-bar {
  width: 100%;
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(180deg, #251a4e 0%, #161032 100%);
  border-radius: 24px;
  border: 3.5px solid #181824;
  padding: 10px 32px;
  box-sizing: border-box;
  box-shadow: 0 6px 0 #0e091b, 0 12px 28px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  z-index: 10;
}

.voting-waiting-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: #ffd23f;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 2px 2px 0 #181824;
  white-space: nowrap;
  flex-shrink: 0;
}

.voting-waiting-title.all-voted {
  color: #2ed573;
  font-size: 21px;
}

.voting-waiting-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.player-token-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-token-chip.has-voted {
  display: none !important;
}

.token-portrait-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3.5px solid #ff2a85;
  box-shadow: 0 4px 0 #0e091b, 0 0 16px rgba(255, 42, 133, 0.45);
  overflow: hidden;
  position: relative;
  background: #24143a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-portrait-wrap img,
.token-portrait-wrap .avatar-render-img {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover !important;
}

.token-thinking-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: bounceShort 1.5s infinite;
}

@keyframes bounceShort {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.token-name-pill {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: #181824;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 0 #0e091b;
}

.solo-waiting-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
}

.solo-waiting-icon {
  font-size: 30px;
}

.solo-chooser-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounceIn 0.5s ease;
}

.solo-chooser-badge {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #181824;
  background: #ffca28;
  border: 2.5px solid #181824;
  border-radius: 999px;
  padding: 4px 18px;
  box-shadow: 0 4px 0 #0e091b;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.solo-chooser-avatar img,
.solo-chooser-avatar .avatar-render-img {
  width: 110px;
  height: 110px;
  border: 4px solid #181824;
  border-radius: 22px;
  box-shadow: 0 6px 0 #181824, 0 10px 24px rgba(0, 0, 0, 0.45);
  background: #24143a;
  object-fit: cover;
}

/* ════════════════════════════════════════════════════════════════════════════
   PLANSZA WYBRANEJ KATEGORII PRZEZ GRACZA (Runda 2+ w Quizie Wiedzy - bez losowania)
   ════════════════════════════════════════════════════════════════════════════ */
.solo-chosen-board {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 1rem auto 0 auto;
}

.solo-board-card {
  width: 100%;
  background: linear-gradient(150deg, #271c50 0%, #161032 100%);
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 2.2rem 3rem;
  box-shadow: 8px 8px 0 #0e091b;
  animation: soloBoardPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes soloBoardPopIn {
  0% {
    transform: scale(0.8) translate3d(0, 30px, 0);
    opacity: 0;
  }
  60% {
    transform: scale(1.03) translate3d(0, -6px, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
  }
}

.solo-board-badge-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.solo-board-stage-tag {
  background: #ffd23f;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.8rem, 1.3vh, 1.05rem);
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 20px;
  border: 2.5px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  text-transform: uppercase;
}

.solo-board-mode-tag {
  background: #2ed573;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.78rem, 1.2vh, 1rem);
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2.5px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  text-transform: uppercase;
}

.solo-board-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 1.5rem;
}

.solo-board-avatar {
  font-size: clamp(2.8rem, 4.5vh, 4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #2f235e;
  border: 3px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

.solo-board-header-info {
  text-align: left;
}

.solo-board-player-name {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
  line-height: 1.1;
}

.solo-board-player-sub {
  font-size: clamp(0.9rem, 1.5vh, 1.25rem);
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 4px;
}

.solo-board-category-box {
  background: #1a1238;
  border: 3px solid #181824;
  border-radius: 22px;
  padding: 1.8rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 5px 5px 0 #0e091b;
}

.solo-board-category-label {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.2vh, 1rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffd23f;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.solo-board-category-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 4px 4px 0 #181824;
  line-height: 1.15;
}

.solo-board-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  font-family: var(--font-display);
  color: #2ed573;
  text-shadow: 2px 2px 0 #181824;
}

.solo-board-footer-icon {
  font-size: clamp(1.2rem, 2vh, 1.6rem);
  animation: pulse 1s infinite alternate;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN POWITANIA GRACZY I PROWADZĄCEGO (GAME WELCOME)
   ════════════════════════════════════════════════════════════════════════════ */

#screen-game-welcome {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.welcome-wrap {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 20%, #251b4d 0%, #130d2a 75%);
  overflow: hidden;
}

.welcome-header {
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.welcome-badge {
  background: #ffd23f;
  color: #181824;
  padding: 5px 24px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 3px 3px 0 #0e091b;
  margin-bottom: 4px;
  border: 2.5px solid #181824;
}

.welcome-title {
  font-size: 46px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 4px 4px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.1;
}

/* Arena Główna: Gospodarz Filip (lewa) + Zawodnicy (prawa) */
.welcome-studio-arena {
  width: 100%;
  height: 800px;
  display: flex;
  gap: 36px;
  align-items: stretch;
  box-sizing: border-box;
  flex-shrink: 0;
}

.welcome-host-card {
  width: 660px;
  height: 100%;
  background: #201744;
  border: 4px solid #181824;
  border-radius: 28px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 8px 8px 0 #0e091b;
  box-sizing: border-box;
  flex-shrink: 0;
}

.welcome-host-avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffd23f;
  border: 4px solid #181824;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 4px 4px 0 #0e091b;
  margin-bottom: 14px;
}

.welcome-host-avatar {
  font-size: 64px;
  filter: drop-shadow(2px 2px 0 #181824);
}

.welcome-host-pulse-ring {
  display: none;
}

.welcome-host-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.welcome-host-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.welcome-host-name {
  font-size: 38px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
  letter-spacing: 2px;
}

.welcome-host-role {
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 1px 1px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.welcome-quote-bubble {
  background: #ffffff;
  border: 3.5px solid #181824;
  border-radius: 22px;
  padding: 22px 26px;
  margin-top: 18px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 6px 6px 0 #0e091b;
  position: relative;
}

.welcome-quote-bubble::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 14px solid #181824;
}

.welcome-quote-bubble::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid #ffffff;
}

.welcome-quote-text {
  font-size: 21px;
  font-style: normal;
  color: #181824;
  line-height: 1.45;
  font-weight: 800;
  font-family: var(--font-body);
}

.welcome-players-section {
  flex: 1;
  height: 100%;
  background: radial-gradient(ellipse at 50% 85%, #2a1b5c 0%, #1a1238 60%, #130d2a 100%);
  border: 4px solid #181824;
  border-radius: 28px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 8px 8px 0 #0e091b;
  box-sizing: border-box;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.welcome-players-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-display);
  color: #38bdf8;
  text-shadow: 2px 2px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 2px;
  flex-shrink: 0;
  z-index: 5;
}

.welcome-players-icon {
  font-size: 26px;
}

.welcome-players-title {
  font-size: 22px;
}

/* Scena stanowisk teleturniejowych – pełny styl jak w Lobby */
.welcome-players-grid {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 2.2vw, 32px);
  flex-wrap: wrap;
  padding: 12px 10px 24px 10px;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.welcome-stage-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  flex: 0 1 auto;
  max-width: 210px;
  animation: welcomePodiumRise 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes welcomePodiumRise {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-podium-spotlight {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(110px, 14vw, 150px);
  height: 120%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 55%, transparent 85%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 1;
}

.welcome-role-badge {
  font-family: 'Outfit', var(--font-display), sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  z-index: 5;
  background: #1e90ff;
  color: #ffffff;
  border: 2px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

.welcome-role-badge.host-badge,
.welcome-stage-podium.podium-host .welcome-role-badge {
  background: #ff4757;
  color: #ffffff;
  animation: pulse 2s infinite;
}

.welcome-stage-char-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}

.welcome-char-name-badge {
  font-family: 'Outfit', var(--font-display), sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background: #251b4c;
  border: 2.5px solid #181824;
  border-radius: 12px;
  padding: 4px 14px;
  box-shadow: 4px 4px 0 #0e091b;
  margin-bottom: 8px;
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-stage-podium.podium-host .welcome-char-name-badge {
  background: #ffca28;
  color: #181824;
}

.welcome-char-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.welcome-char-figure img.welcome-char-img,
.welcome-char-figure img.avatar-render-img {
  width: clamp(100px, 13vw, 140px);
  height: clamp(100px, 13vw, 140px);
  border: 4px solid #181824;
  border-radius: 24px;
  box-shadow: 0 6px 0 #181824, 0 10px 24px rgba(0, 0, 0, 0.45);
  background: #24143a;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.welcome-char-shadow {
  width: clamp(80px, 10vw, 110px);
  height: 14px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  margin-top: 6px;
  filter: blur(2px);
}

.welcome-podium-base {
  margin-top: 6px;
  background: #251b4c;
  border: 3px solid #181824;
  border-radius: 14px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 5px 0 #0e091b;
  z-index: 5;
}

.welcome-podium-base.host-base,
.welcome-stage-podium.podium-host .welcome-podium-base {
  background: #ffca28;
}

.welcome-podium-base.host-base .welcome-podium-text,
.welcome-stage-podium.podium-host .welcome-podium-text {
  color: #181824;
}

.welcome-podium-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
}

.welcome-stage-podium.podium-host .welcome-podium-light {
  background: #ff4757;
  box-shadow: 0 0 10px #ff4757;
}

.welcome-podium-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Kompatybilność wsteczna */
.welcome-player-card {
  display: none !important;
}

.welcome-no-players {
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.welcome-timer-section {
  width: 100%;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.welcome-timer-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-timer-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
}

.welcome-countdown-num {
  font-size: 40px;
  font-weight: 900;
  color: #ffd23f;
  font-family: var(--font-display);
  text-shadow: 3px 3px 0 #181824;
}

.welcome-timer-bar-wrap {
  width: 900px;
  height: 14px;
  background: #160f2e;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

.welcome-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffd23f, #2ed573);
  border-radius: 999px;
  width: 100%;
}


#screen-game-welcome.active .welcome-badge {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#screen-game-welcome.active .welcome-title {
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

#screen-game-welcome.active .welcome-host-card {
  animation: slideInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

#screen-game-welcome.active .welcome-players-section {
  animation: fadeIn 0.5s ease 0.4s both;
}

#screen-game-welcome.active .welcome-timer-section {
  animation: fadeIn 0.5s ease 0.5s both;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN INTRO KONKURENCJI
   ════════════════════════════════════════════════════════════════════════════ */

#screen-competition-intro {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.intro-wrap {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 25%, #251b4d 0%, #130d2a 75%);
  overflow: hidden;
}

.intro-badge {
  background: #ffd23f;
  color: #181824;
  padding: 6px 26px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 3px 3px 0 #0e091b;
  border: 2.5px solid #181824;
  margin-bottom: 2px;
}

.intro-title {
  font-size: 56px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 4px 4px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 4px 0;
  line-height: 1.1;
}

.intro-desc {
  font-size: 24px;
  color: #ffd23f;
  font-family: var(--font-display);
  text-shadow: 2px 2px 0 #181824;
  font-weight: 800;
  line-height: 1.4;
  max-width: 1200px;
  margin: 0;
}

/* ── Sekwencja wejścia elementów Intro Konkurencji na TV ─────────────────── */
#screen-competition-intro.active .intro-badge {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#screen-competition-intro.active .intro-title {
  animation: slideInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

#screen-competition-intro.active .intro-desc {
  animation: fadeIn 0.45s ease 0.35s both;
}

#screen-competition-intro.active .intro-card-goal {
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

#screen-competition-intro.active .intro-card-controls {
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

#screen-competition-intro.active .intro-category {
  animation: fadeIn 0.45s ease 0.75s both;
}

#screen-competition-intro.active .intro-timer-section {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s both;
}

.intro-instruction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  width: 100%;
  height: 480px;
  box-sizing: border-box;
  margin: 8px 0;
  flex-shrink: 0;
}

.intro-card {
  background: #201744;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 36px 40px;
  text-align: left;
  box-shadow: 8px 8px 0 #0e091b;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.intro-card-goal {
  border-top: 8px solid #ffd23f;
}

.intro-card-controls {
  border-top: 8px solid #38bdf8;
}

.intro-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.intro-card-icon {
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
}

.intro-card-title {
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.intro-card-controls .intro-card-title {
  color: #38bdf8;
}

.intro-card-text {
  font-size: 24px;
  color: #ffffff;
  line-height: 1.6;
  font-weight: 700;
  font-family: var(--font-body);
}

.intro-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1f163e;
  border: 3px solid #181824;
  border-radius: 999px;
  padding: 10px 32px;
  box-shadow: 4px 4px 0 #0e091b;
  flex-shrink: 0;
}

.intro-category-label {
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.intro-category-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
}

.intro-timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 140px;
  flex-shrink: 0;
}

.intro-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3.5px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
  background: #ffd23f;
}

.intro-countdown span {
  font-size: 44px;
  font-weight: 900;
  font-family: var(--font-display);
  color: #181824;
  text-shadow: none;
}

.intro-timer-bar-wrap {
  width: 900px;
  height: 14px;
  background: #160f2e;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

.intro-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffd23f, #2ed573);
  border-radius: 999px;
  transform-origin: left;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN PYTANIA
   ════════════════════════════════════════════════════════════════════════════ */

#screen-question {
  justify-content: flex-start;
  padding-top: clamp(0.85rem, 1.8vh, 1.5rem);
  padding-bottom: clamp(0.85rem, 1.8vh, 1.5rem);
  padding-left: clamp(1.5rem, 3.2vw, 3rem);
  padding-right: clamp(1.5rem, 3.2vw, 3rem);
}

.question-layout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.2vh, 1rem);
  width: 100%;
  max-width: clamp(1200px, 88vw, 1500px);
  height: 100%;
  max-height: 100%;
}

/* Górny pasek */
.question-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.4rem, 1vh, 0.75rem) clamp(1rem, 2vw, 1.5rem);
  background: #201744;
  border-radius: var(--radius-xl);
  border: 3px solid #181824;
  box-shadow: 5px 5px 0 #0e091b;
}

.round-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.round-label {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1vh, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #cbd5e1;
  font-weight: 800;
}

.round-num {
  font-size: clamp(1.5rem, 3vh, 2rem);
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
  line-height: 1;
}

.round-sub {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.2vh, 0.85rem);
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

/* Timer kółkowy pytania */
.question-timer-wrap {
  position: relative;
  width: clamp(80px, 11vh, 115px);
  height: clamp(80px, 11vh, 115px);
}

.timer-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 2.2vh, 1.5rem);
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffffff;
}

.timer-number-lg {
  font-size: clamp(1.5rem, 2.8vh, 2rem);
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
}

.timer-ring {
  width: 100% !important;
  height: 100% !important;
  display: block;
  transform: rotate(-90deg);
  transform-origin: center center;
  filter: drop-shadow(2px 2px 0 #181824);
}

.timer-ring-progress {
  transition: stroke-dashoffset 0.15s linear, stroke 0.4s ease;
  stroke: #ffd23f;
}

.timer-ring-progress.warning {
  stroke: #ffa502;
}

.timer-ring-progress.urgent {
  stroke: #ff4757;
  animation: timerRingPulse 0.5s infinite;
}

@keyframes timerRingPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.02); }
}

/* Licznik odpowiedzi */
.answers-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.answers-count {
  font-size: clamp(1.5rem, 3vh, 2rem);
  font-family: var(--font-display);
  font-weight: 900;
  color: #2ed573;
  text-shadow: 2px 2px 0 #181824;
  line-height: 1;
}

.answers-label {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1vh, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #cbd5e1;
  font-weight: 800;
}

/* Treść pytania (Telebim studyjny) */
.question-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 26px;
  border: 4px solid #181824;
  padding: clamp(1rem, 2.2vh, 2rem) clamp(1.5rem, 3vw, 3rem);
  box-shadow: 8px 8px 0 #0e091b;
  min-height: 0;
}

.question-audio-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: #ffd23f;
  border: 2.5px solid #181824;
  border-radius: 999px;
  font-size: clamp(0.75rem, 1.2vh, 0.95rem);
  font-family: var(--font-display);
  font-weight: 900;
  color: #181824;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 #0e091b;
  animation: audioIndicatorPulse 1.5s infinite ease-in-out;
}

@keyframes audioIndicatorPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.question-text {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2.8vh, 2.2rem);
  font-weight: 900;
  color: #181824;
  text-align: center;
  line-height: 1.35;
  text-shadow: none;
}

/* Opcje A/B/C/D */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.2vh, 1rem);
}

.option-card {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  padding: clamp(0.6rem, 1.2vh, 1rem) clamp(1rem, 1.5vw, 1.5rem);
  border-radius: 20px;
  border: 3.5px solid #181824;
  box-shadow: 5px 5px 0 #0e091b;
  transition: var(--transition);
  animation: slideInUp 0.3s ease;
  min-height: clamp(55px, 8vh, 70px);
}

#option-a { background: #ff4757; color: #ffffff; }
#option-b { background: #1e90ff; color: #ffffff; }
#option-c { background: #ffa502; color: #181824; }
#option-d { background: #2ed573; color: #181824; }

.option-card.correct {
  background: #2ed573 !important;
  color: #181824 !important;
  border-color: #181824 !important;
  box-shadow: 7px 7px 0 #0e091b !important;
  transform: scale(1.03);
}

.option-card.correct-pop {
  animation: correctCardPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
  background: #2ed573 !important;
  color: #181824 !important;
  border-color: #181824 !important;
  box-shadow: 8px 8px 0 #0e091b !important;
  z-index: 5;
}

.option-card.suspense-pulse {
  animation: suspenseCardPulse 1.1s ease-in-out infinite alternate !important;
  border-color: #ffd23f !important;
}

.option-card.incorrect {
  opacity: 0.35;
  filter: grayscale(80%);
  transform: scale(0.97);
  transition: all 0.5s ease;
}

/* Plakietka statystyk głosowania w Większość Rządzi na karcie opcji */
.option-majority-stat {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vh, 22px);
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  animation: correctCardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.3px;
}

.option-majority-stat.winner {
  background: #181824;
  color: #ffd23f;
  border-color: #ffd23f;
  box-shadow: 0 0 16px rgba(255, 210, 63, 0.6), 2px 2px 0 #000;
}

.option-majority-stat.consensus {
  background: linear-gradient(135deg, #ffd23f, #f59e0b);
  color: #181824;
  border-color: #ffffff;
  box-shadow: 0 0 22px rgba(255, 210, 63, 0.9), 2px 2px 0 #000;
}

.option-majority-stat.tie {
  background: #181824;
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6), 2px 2px 0 #000;
}

.option-majority-stat.minority {
  background: rgba(24, 24, 36, 0.88);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.7);
}

/* Plakietka poprawnej odpowiedzi w Quiz Wiedzy na karcie opcji */
.option-quiz-correct-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vh, 22px);
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 999px;
  background: #181824;
  color: #2ed573;
  border: 2.5px solid #2ed573;
  box-shadow: 0 0 16px rgba(46, 213, 115, 0.65), 2px 2px 0 #000;
  white-space: nowrap;
  flex-shrink: 0;
  animation: correctCardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
}

/* Baner napięcia / oczekiwania na odpowiedź */
.question-suspense-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(168, 85, 247, 0.25));
  border: 2px solid rgba(250, 204, 21, 0.65);
  border-radius: var(--radius-xl);
  padding: clamp(0.5rem, 1.1vh, 0.85rem) clamp(1rem, 2vw, 2rem);
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.35), var(--shadow-card);
  animation: suspenseGlow 1.2s ease-in-out infinite alternate, slideInUp 0.35s ease;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.question-suspense-banner.revealed {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border: 3.5px solid #34d399 !important;
  padding: clamp(0.75rem, 1.4vh, 1.2rem) clamp(1.8rem, 2.5vw, 3.2rem) !important;
  box-shadow: 0 8px 0 #181824, 0 0 40px rgba(16, 185, 129, 0.75) !important;
  animation: winnerCardBounce 0.6s ease;
}

.question-suspense-banner.revealed .suspense-icon {
  font-size: clamp(1.8rem, 3.2vh, 2.4rem) !important;
  animation: badgePop 0.4s ease;
}

.question-suspense-banner.revealed .suspense-text {
  font-size: clamp(1.35rem, 2.4vh, 1.85rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 0 #181824, 0 2px 8px rgba(0, 0, 0, 0.7) !important;
  letter-spacing: 0.8px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OKAZAŁA KARTA UJAWNIENIA LICZBY/ODPOWIEDZI W CENTRUM ARENY (ZGADNIJ LICZBĘ)
   ═══════════════════════════════════════════════════════════════════════════ */
.question-number-reveal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f143d 0%, #291754 50%, #1a1033 100%);
  border: 4px solid #ffd23f;
  border-radius: 28px;
  box-shadow: 0 10px 0 #181824, 0 0 55px rgba(255, 210, 63, 0.45);
  padding: clamp(20px, 3.2vh, 40px) clamp(36px, 4.5vw, 72px);
  margin: auto;
  max-width: 900px;
  width: 90%;
  box-sizing: border-box;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}

.question-number-reveal-card.pop-anim {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qnrc-badge {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vh, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #ffd23f;
  color: #181824;
  border-radius: 999px;
  padding: 6px 26px;
  border: 2.5px solid #181824;
  box-shadow: 0 4px 0 #181824;
}

.qnrc-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 20px);
  margin-top: 10px;
}

.qnrc-value {
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 11vh, 8.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 4px 4px 0 #181824, 0 0 45px rgba(46, 213, 115, 0.7);
  letter-spacing: 2px;
}

.qnrc-unit {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vh, 4rem);
  font-weight: 900;
  color: #2ed573;
  text-shadow: 3px 3px 0 #181824;
  letter-spacing: 1px;
}

.qnrc-explanation {
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(1.1rem, 1.7vh, 1.4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-top: 14px;
  max-width: 780px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.question-suspense-banner.all-answered-grace {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.25));
  border-color: rgba(52, 211, 153, 0.85);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), var(--shadow-card);
  animation: allAnsweredPulse 1.2s ease-in-out infinite alternate, slideInUp 0.35s ease;
}

.question-suspense-banner.all-answered-grace .suspense-icon {
  animation: badgePop 0.5s ease;
}

@keyframes allAnsweredPulse {
  0% {
    transform: scale(0.99);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.6);
  }
}

.question-suspense-banner .suspense-icon {
  font-size: clamp(1.3rem, 2.4vh, 1.8rem);
  animation: suspenseIconSpin 2s infinite ease-in-out;
}

.question-suspense-banner.revealed .suspense-icon {
  animation: badgePop 0.4s ease;
}

.question-suspense-banner .suspense-text {
  font-size: clamp(1rem, 2.1vh, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes suspenseGlow {
  0% {
    transform: scale(0.99);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.25);
    border-color: rgba(250, 204, 21, 0.4);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.6);
    border-color: rgba(250, 204, 21, 0.9);
  }
}

@keyframes suspenseIconSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.2); }
}

@keyframes suspenseCardPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
  }
}

@keyframes correctCardPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08) translateY(-6px); }
  100% { transform: scale(1.04) translateY(-3px); }
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  font-size: clamp(1.2rem, 2vh, 1.8rem);
  font-weight: 900;
  flex-shrink: 0;
}

.option-text {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Wskaźniki odpowiedzi graczy */
.answer-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  min-height: 2rem;
}

.answer-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-light);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.95rem, 1.5vh, 1.3rem);
  transition: var(--transition);
  animation: popIn 0.3s ease;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.answer-dot.answered {
  border-color: var(--success);
  background: rgba(0,200,83,0.2);
  box-shadow: 0 0 10px rgba(0,200,83,0.6);
}

.answer-dot img,
.answer-dot .avatar-render-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  display: block;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN UJAWNIENIA ODPOWIEDZI
   ════════════════════════════════════════════════════════════════════════════ */

#screen-answer-reveal {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.reveal-layout {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 15%, rgba(0, 229, 255, 0.12) 0%, transparent 65%);
  overflow: hidden;
}

.reveal-layout .screen-title {
  font-size: 38px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  margin: 0 0 6px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.correct-answer-card {
  background: #2ed573;
  border-radius: 999px;
  padding: 8px 36px;
  text-align: center;
  box-shadow: 0 6px 0 #181824, 0 12px 24px rgba(0, 0, 0, 0.4);
  animation: popIn 0.5s ease;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 3.5px solid #181824;
  box-sizing: border-box;
  flex-shrink: 0;
}

.correct-answer-card.false-answer {
  background: #ff4757;
  border: 3.5px solid #181824;
  box-shadow: 0 6px 0 #181824, 0 12px 24px rgba(0, 0, 0, 0.4);
}

.correct-icon {
  background: #181824;
  color: #2ed573;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.correct-answer-card.false-answer .correct-icon {
  color: #ff4757;
}

.correct-label {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #181824;
  font-weight: 900;
  margin: 0;
}

.correct-answer-text {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  margin: 0;
}

.reveal-content-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  height: 820px;
  margin: 0 auto;
  min-height: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.reveal-image-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: 580px;
  height: 580px;
  align-self: center;
  background: #251b4c;
  border: 4px solid #181824;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 6px 6px 0 #0e091b;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.reveal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid #181824;
}

.reveal-votes-card {
  width: 780px;
  height: 100%;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
}

.reveal-votes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
  border-bottom: 2px solid #181824;
  padding-bottom: 8px;
}

.reveal-familiada-card {
  width: 860px;
  height: 100%;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
}

.reveal-vabanque-card {
  width: 780px;
  height: 100%;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
}

/* Staged Suspense Reveal - Wyniki graczy */
.staged-reveal-container {
  flex: 1;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 24px 32px;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
}

.staged-reveal-title {
  font-size: 24px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 10px 0;
  flex-shrink: 0;
}

.staged-players-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
}

.staged-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(0.45rem, 0.9vh, 0.75rem) clamp(0.75rem, 1.2vw, 1.25rem);
  background: #191136;
  border-radius: 16px;
  border: 3px solid #181824;
  box-shadow: 0 4px 0 #181824;
  transform-origin: center;
  animation: slideInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.staged-player-card.wrong {
  border-color: #ff4757;
  background: #3a1c26;
}

.staged-player-card.correct {
  border-color: #2ed573;
  background: #163a26;
}

.staged-player-card.fastest-winner {
  border-color: #181824;
  background: #ffd23f;
  box-shadow: 0 6px 0 #181824;
  transform: scale(1.02);
  animation: popWinner 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.staged-player-card.fastest-winner .staged-player-name {
  color: #181824;
  text-shadow: none;
}

.staged-player-card.fastest-winner .staged-player-points {
  color: #181824;
  text-shadow: none;
}

.staged-player-card.fastest-winner .fastest-badge {
  background: #181824 !important;
  color: #ffd23f !important;
  border: 2.5px solid #181824 !important;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25) !important;
}

.staged-player-card.fastest-winner .staged-player-status,
.staged-player-card.fastest-winner .staged-player-status.correct {
  color: #181824 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.staged-player-card.fastest-winner .staged-pill-typ {
  background: #181824 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.staged-player-card.fastest-winner .staged-pill-typ strong {
  color: #ffd23f !important;
}

.staged-player-card.fastest-winner .staged-pill-diff {
  background: rgba(24, 24, 36, 0.15) !important;
  color: #181824 !important;
  border-color: rgba(24, 24, 36, 0.3) !important;
}

.staged-player-card.fastest-winner .staged-pill-diff strong {
  color: #000000 !important;
}

.staged-player-card.minority {
  border-color: #a55eea;
  background: #2b1747;
}

.staged-player-card.tie {
  border-color: #1e90ff;
  background: #112d4d;
}

.staged-player-avatar {
  font-size: clamp(1.6rem, 2.6vh, 2.3rem);
  margin-right: 0.85rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
  flex-shrink: 0;
}

.staged-player-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

.staged-name-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.staged-player-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vh, 1.35rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 90px;
  flex: 0 0 auto;
  max-width: 240px;
}

.fastest-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: #ffd23f;
  color: #181824;
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1vh, 0.8rem);
  font-weight: 900;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  animation: pulse 1.5s infinite;
}

.staged-player-status {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.25vh, 0.95rem);
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.staged-player-status.wrong { color: #ff6b81; }
.staged-player-status.correct { color: #2ed573; }
.staged-player-status.minority { color: #a55eea; }
.staged-player-status.tie { color: #70a1ff; }

.staged-player-points {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vh, 1.5rem);
  font-weight: 900;
  margin-left: 0.85rem;
  flex-shrink: 0;
}

.staged-player-points.wrong { color: #a4b0be; }
.staged-player-points.correct { color: #2ed573; text-shadow: 1.5px 1.5px 0 #181824; }
.staged-player-points.winner { color: #ffd23f; text-shadow: 1.5px 1.5px 0 #181824; }
.staged-player-points.minority { color: #a55eea; text-shadow: 1.5px 1.5px 0 #181824; }
.staged-player-points.tie { color: #1e90ff; text-shadow: 1.5px 1.5px 0 #181824; }

/* ── Pigułki i plakietki dla typów i celności w ujawnianiu graczy ───────── */
.staged-pill-typ,
.staged-pill-diff,
.staged-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vh, 1.45rem);
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.75);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.staged-pill-typ {
  border-color: #38bdf8;
  background: #0f172a;
}

.staged-pill-typ strong {
  font-size: 1.15em;
  color: #ffd23f;
  font-weight: 900;
}

.staged-pill-diff {
  border-color: #2ed573;
  background: #062b1a;
  color: #e2e8f0;
}

.staged-pill-diff strong {
  color: #4ade80;
  font-weight: 900;
}

.staged-pill-typ.wrong,
.staged-pill-diff.wrong,
.staged-pill-tag.wrong {
  background: #2b141d;
  border-color: #ef4444;
  color: #fee2e2;
}

.staged-pill-typ.wrong strong {
  color: #ffffff;
}

.staged-pill-diff.wrong strong {
  color: #fca5a5;
}

.staged-pill-tag.miss {
  background: #1e293b;
  border-color: #64748b;
  color: #cbd5e1;
}

.badge-gold-glow {
  background: linear-gradient(90deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5) !important;
}

.badge-best-glow {
  background: linear-gradient(90deg, #eab308, #ca8a04) !important;
  color: #181824 !important;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.5) !important;
}

.badge-acc-glow {
  background: linear-gradient(90deg, #0ea5e9, #0284c7) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.45) !important;
}

.next-round-wait-bar {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #251b4c;
  border-radius: 999px;
  border: 3.5px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
  box-sizing: border-box;
  flex-shrink: 0;
}

.next-round-wait-icon {
  font-size: 28px;
}

.next-round-wait-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
}

.next-round-wait-badge {
  font-size: 26px;
  font-weight: 900;
  color: #ffd23f;
  font-family: var(--font-display);
  text-shadow: 2px 2px 0 #181824;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN WYNIKI RUNDY
   ════════════════════════════════════════════════════════════════════════════ */

#screen-round-results,
#screen-competition-end {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.round-results-layout,
.comp-end-layout {
  width: 1920px;
  height: 1080px;
  max-width: 1920px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 24px 64px 20px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 15%, rgba(182, 232, 74, 0.12) 0%, transparent 65%);
  overflow: hidden;
  gap: 0;
}

/* Tabela zajmuje całą dostępną przestrzeń między headerem a stopką */
.scoreboard,
.comp-scoreboard-wrap {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── Nagłówki ekranów wyników ────────────────────────────────────────────── */
.round-results-header,
.comp-end-header {
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.round-results-header .screen-title {
  font-size: 46px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
  margin: 0 0 4px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.round-results-header .screen-sub {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #d0cce6;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin: 0;
}

/* ── Wiersze tabeli wyników rundy ─────────────────────────────────────────── */
.scoreboard-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 12px 24px;
  min-height: 80px;
  box-shadow: 0 6px 0 #181824, 0 12px 20px rgba(0, 0, 0, 0.4);
  animation: slideInUp 0.4s ease;
  transition: var(--transition);
  box-sizing: border-box;
}

.scoreboard-row:first-child,
.scoreboard-row.leader {
  background: #ffd23f;
  border-color: #181824;
  box-shadow: 0 8px 0 #181824, 0 14px 24px rgba(0, 0, 0, 0.45);
}

.scoreboard-row:first-child .score-rank,
.scoreboard-row.leader .score-rank,
.scoreboard-row:first-child .score-name,
.scoreboard-row.leader .score-name,
.scoreboard-row:first-child .score-points,
.scoreboard-row.leader .score-points {
  color: #181824;
  text-shadow: none;
}

.score-rank {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  min-width: 68px;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.score-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  font-size: 36px;
  border: 2.5px solid #181824;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 2px 2px 0 #0e091b;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Plakietka osiągnięcia w rundzie dopasowana do danej konkurencji ───────── */
.score-metric-badge,
.score-time {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vh, 26px);
  font-weight: 900;
  border-radius: 12px;
  padding: 5px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2.5px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  transition: transform 0.2s ease;
  font-variant-numeric: tabular-nums;
}

.score-metric-badge .smb-acc {
  font-weight: 900;
  letter-spacing: 0.5px;
}

.score-metric-badge .smb-typ {
  font-weight: 800;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 8px;
  padding: 3px 10px;
  color: #f8fafc;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.score-metric-badge .smb-typ strong {
  font-weight: 900;
  color: #ffd23f;
  letter-spacing: 0.6px;
}

.score-metric-badge.badge-cyan,
.score-time {
  color: #ffffff;
  background: #0284c7;
  border-color: #0369a1;
}

.score-metric-badge.badge-gold {
  color: #181824;
  background: #f59e0b;
  border-color: #d97706;
}
.score-metric-badge.badge-gold .smb-typ {
  background: rgba(0, 0, 0, 0.18);
  color: #181824;
}
.score-metric-badge.badge-gold .smb-typ strong {
  color: #000000;
}

.score-metric-badge.badge-green {
  color: #09261a;
  background: #10b981;
  border-color: #059669;
}

.score-metric-badge.badge-purple {
  color: #ffffff;
  background: #8b5cf6;
  border-color: #7c3aed;
}

.score-metric-badge.badge-orange {
  color: #ffffff;
  background: #f97316;
  border-color: #ea580c;
}

.score-metric-badge.badge-red,
.score-metric-badge.badge-fail {
  color: #ffffff;
  background: #dc2626;
  border-color: #991b1b;
}

.score-metric-badge.badge-fail .smb-typ {
  background: rgba(0, 0, 0, 0.3);
  color: #fee2e2;
}

.score-metric-badge.badge-fail .smb-typ strong {
  color: #ffffff;
}

.score-metric-badge.badge-muted {
  color: #f1f5f9;
  background: #334155;
  border-color: #1e293b;
}

.score-metric-badge.badge-miss,
.score-time--miss {
  color: #cbd5e1;
  background: #1e293b;
  border-color: #334155;
  border-style: solid;
  box-shadow: none;
}

/* ── Plakietki na żółtym wierszu lidera (.scoreboard-row.leader / :first-child) ── */
/* Ciemne tło, aby kolory NIE zlewały się z żółtym tłem wiersza! */
.scoreboard-row.leader .score-metric-badge,
.scoreboard-row:first-child .score-metric-badge {
  background: #181824 !important;
  color: #ffffff !important;
  border: 2.5px solid #000000 !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4) !important;
}

.scoreboard-row.leader .score-metric-badge.badge-cyan,
.scoreboard-row:first-child .score-metric-badge.badge-cyan {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

.scoreboard-row.leader .score-metric-badge.badge-gold,
.scoreboard-row:first-child .score-metric-badge.badge-gold {
  border-color: #facc15 !important;
  color: #facc15 !important;
}

.scoreboard-row.leader .score-metric-badge.badge-green,
.scoreboard-row:first-child .score-metric-badge.badge-green {
  border-color: #4ade80 !important;
  color: #4ade80 !important;
}

.scoreboard-row.leader .score-metric-badge.badge-fail,
.scoreboard-row:first-child .score-metric-badge.badge-fail {
  border-color: #f87171 !important;
  color: #f87171 !important;
}

.scoreboard-row.leader .score-metric-badge.badge-orange,
.scoreboard-row:first-child .score-metric-badge.badge-orange {
  border-color: #fb923c !important;
  color: #fb923c !important;
}

.scoreboard-row.leader .score-metric-badge.badge-purple,
.scoreboard-row:first-child .score-metric-badge.badge-purple {
  border-color: #c084fc !important;
  color: #c084fc !important;
}

.scoreboard-row.leader .score-metric-badge.badge-miss,
.scoreboard-row:first-child .score-metric-badge.badge-miss {
  border-color: #94a3b8 !important;
  color: #cbd5e1 !important;
}

.scoreboard-row.leader .score-metric-badge .smb-typ,
.scoreboard-row:first-child .score-metric-badge .smb-typ {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.scoreboard-row.leader .score-metric-badge .smb-typ strong,
.scoreboard-row:first-child .score-metric-badge .smb-typ strong {
  color: #ffd23f !important;
}

.score-points {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  min-width: 150px;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

/* Pigułki przyrostu punktów */
.score-gain-pill {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.score-gain-pill.up    { background: #2ed573; color: #181824; }
.score-gain-pill.loss  { background: #ff4757; color: #ffffff; }
.score-gain-pill.same  { background: #4b4b5e; color: #d0cce6; }
.score-gain-pill.gain-absorbing { animation: gainAbsorb 0.9s cubic-bezier(0.34,1.56,0.64,1) forwards; }

@keyframes gainAbsorb {
  0%   { transform: scale(1); opacity: 1; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0) translateY(-20px); opacity: 0; }
}

/* Podświetlenie awansu w tabeli */
.row-overtake-up {
  box-shadow: 0 0 0 3.5px #ffd23f, 0 8px 0 #181824 !important;
}

/* ── 9-12 graczy: kompaktowe wiersze ─────────────────────────────────────── */
.scoreboard.compact-players .scoreboard-row,
.scoreboard.compact-players .comp-prog-row {
  min-height: 60px;
  padding: 6px 16px;
  gap: 12px;
  border-radius: 16px;
}
.scoreboard.compact-players .score-rank,
.scoreboard.compact-players .comp-prog-rank    { font-size: 26px; min-width: 52px; }
.scoreboard.compact-players .score-avatar,
.scoreboard.compact-players .comp-prog-avatar  { width: 44px; height: 44px; min-width: 44px; font-size: 28px; }
.scoreboard.compact-players .score-name,
.scoreboard.compact-players .comp-prog-name    { font-size: 20px; }
.scoreboard.compact-players .score-metric-badge,
.scoreboard.compact-players .score-time        { font-size: 15px; padding: 2px 7px; }
.scoreboard.compact-players .score-points,
.scoreboard.compact-players .comp-prog-score   { font-size: 24px; min-width: 110px; }
.scoreboard.compact-players .score-gain-pill,
.scoreboard.compact-players .comp-prog-gain    { font-size: 14px; padding: 2px 9px; }
.scoreboard.compact-players .comp-prog-shift   { font-size: 13px; padding: 1px 4px; min-width: 2rem; }

/* ── 13+ graczy: bardzo gęste wiersze ────────────────────────────────────── */
.scoreboard.dense-players .scoreboard-row,
.scoreboard.dense-players .comp-prog-row {
  min-height: 48px;
  padding: 4px 12px;
  gap: 8px;
  border-radius: 12px;
  border-width: 2px;
}
.scoreboard.dense-players .score-rank,
.scoreboard.dense-players .comp-prog-rank    { font-size: 20px; min-width: 40px; }
.scoreboard.dense-players .score-avatar,
.scoreboard.dense-players .comp-prog-avatar  { width: 34px; height: 34px; min-width: 34px; font-size: 22px; }
.scoreboard.dense-players .score-name,
.scoreboard.dense-players .comp-prog-name    { font-size: 16px; }
.scoreboard.dense-players .score-metric-badge,
.scoreboard.dense-players .score-time        { font-size: 12px; padding: 1px 5px; }
.scoreboard.dense-players .score-points,
.scoreboard.dense-players .comp-prog-score   { font-size: 18px; min-width: 85px; }
.scoreboard.dense-players .score-gain-pill,
.scoreboard.dense-players .comp-prog-gain    { font-size: 12px; padding: 1px 6px; }
.scoreboard.dense-players .comp-prog-shift   { font-size: 11px; padding: 1px 3px; min-width: 1.6rem; }



.comp-next-bar {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 9, 38, 0.9);
  border-radius: 999px;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 25px rgba(182, 232, 74, 0.4);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   EKRAN 8 – WIELKI FINAŁ (1920x1080 GALA STAGE)
   ════════════════════════════════════════════════════════════════════════════ */

#screen-final-results {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.final-layout {
  width: 1920px;
  height: 1080px;
  max-width: 1920px !important;
  max-height: 1080px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 15%, rgba(255, 210, 63, 0.12) 0%, transparent 65%);
  overflow: hidden !important;
}

.final-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.final-title {
  font-size: 44px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 3.5px 3.5px 0 #181824;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
}

/* Układ 2-kolumnowy: LEWA (Podium + Tabela) | PRAWA (Gala Odznak) */
.final-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  height: 880px;
  max-width: 100% !important;
  box-sizing: border-box;
  flex-shrink: 0;
}

.final-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #251b4c;
  border: 2.5px solid #181824;
  border-radius: 14px;
  border-left: 6px solid #ffd23f;
  box-shadow: 3px 3px 0 #0e091b;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.final-col-icon {
  font-size: 24px;
  line-height: 1;
}

.final-col-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* LEWA KOLUMNA: Podium TOP 3 + Pełna tabela */
.final-left-column {
  display: flex;
  flex-direction: column;
  background: #1b1132;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
  height: 100%;
  justify-content: space-between;
}

.podium-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 480px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.podium-crown {
  font-size: 44px;
  animation: pulse 1.5s infinite;
  filter: drop-shadow(2.5px 2.5px 0 #181824);
}

.podium-avatar {
  font-size: 48px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 110px;
  margin-bottom: 6px;
}

.podium-avatar img,
.podium-avatar .avatar-render-img {
  height: 100px !important;
  width: auto !important;
  max-width: 110px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(3px 3px 0 #181824);
}

.podium-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  text-align: center;
  word-break: break-word;
}

.podium-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
}

.podium-block {
  width: 100%;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3.5px solid #181824;
  border-bottom: none;
  box-sizing: border-box;
}

.podium-rank {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: #181824;
  text-shadow: none;
}

.podium-block-1 {
  height: 190px;
  background: #ffd23f;
  box-shadow: 0 6px 0 #181824, inset 0 8px 0 rgba(255, 255, 255, 0.45);
  animation: slideInUp 0.8s 0.2s ease both;
}

.podium-block-2 {
  height: 140px;
  background: #e2e8f0;
  box-shadow: 0 6px 0 #181824, inset 0 8px 0 rgba(255, 255, 255, 0.45);
  animation: slideInUp 0.8s 0.4s ease both;
}

.podium-block-3 {
  height: 100px;
  background: #ffb703;
  box-shadow: 0 6px 0 #181824, inset 0 8px 0 rgba(255, 255, 255, 0.45);
  animation: slideInUp 0.8s 0.6s ease both;
}

.final-other-players,
.final-table-wrap {
  height: 310px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 18px;
  border: 3px solid #181824;
  background: #251b4c;
  box-shadow: 4px 4px 0 #0e091b;
  box-sizing: border-box;
}

.final-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
  font-family: var(--font-display);
}

.final-table th {
  background: #181032;
  color: #ffd23f;
  padding: 10px 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: 900;
  border-bottom: 2.5px solid #181824;
  text-shadow: 1px 1px 0 #181824;
}

.final-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 2px solid #181824;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  text-shadow: 1px 1px 0 #181824;
}

.final-table tr.row-gold td {
  background: rgba(255, 210, 63, 0.22);
  color: #ffd23f;
  font-weight: 900;
}
.final-table tr.row-silver td {
  background: rgba(226, 232, 240, 0.16);
  color: #e2e8f0;
  font-weight: 900;
}
.final-table tr.row-bronze td {
  background: rgba(255, 183, 3, 0.16);
  color: #ffb703;
  font-weight: 900;
}

/* PRAWA KOLUMNA: Gala Odznak i Tytułów */
.final-right-column {
  display: flex;
  flex-direction: column;
  background: #1b1132;
  border: 3.5px solid #181824;
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
  height: 100%;
  justify-content: space-between;
}

.active-badge-stage {
  height: 360px;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 24px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 5px 5px 0 #0e091b;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.active-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.abc-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.abc-icon {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(3px 3px 0 #181824);
  margin-bottom: 2px;
}

.abc-role-pill {
  display: inline-block;
  background: #ff5e7e;
  border: 2px solid #181824;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
}

.abc-category {
  display: inline-block;
  background: #ffd23f;
  border: 2.5px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 14px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
}

.abc-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  margin: 2px 0;
}

.abc-criteria-box {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 210, 63, 0.45);
  border-radius: 14px;
  padding: 10px 22px;
  max-width: 86%;
  margin: 4px auto 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.acb-header {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #ffd23f;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.acb-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 1px 1px 2px #000;
}

.abc-desc {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto 10px;
}

.abc-recipient-holder {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.badge-mystery-holder {
  background: #181032;
  border: 2.5px dashed #ffd23f;
  border-radius: 999px;
  padding: 8px 28px;
  color: #ffd23f;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  box-shadow: 3px 3px 0 #0e091b;
  animation: pulse 1.5s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.bmh-question {
  font-size: 20px;
  font-weight: 900;
  color: #ffd23f;
}

.bmh-hint {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.badge-winner-reveal {
  background: #ffd23f;
  border: 3px solid #181824;
  border-radius: 20px;
  padding: 10px 30px;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  box-shadow: 5px 5px 0 #0e091b;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.bwr-header {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #593e00;
  text-transform: uppercase;
}

.bwr-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
}

.bwr-avatar {
  font-size: 28px;
  line-height: 1;
}

.bwr-name {
  color: #181824;
  font-weight: 900;
}

.bwr-verdict {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 15px;
  font-weight: 800;
  color: #181824;
  margin-top: 2px;
}

.stage-complete-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: popIn 0.5s ease;
}

.stage-complete-icon {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(3px 3px 0 #181824);
}

.stage-complete-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
}

.stage-complete-sub {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #d0cce6;
  text-shadow: 1px 1px 0 #181824;
}

/* Odsłonięte odznaki na żywo */
.final-badges-revealed-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 440px;
  overflow-y: auto;
  box-sizing: border-box;
}

.revealed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.revealed-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
}

.revealed-counter {
  background: #ffd23f;
  border: 2.5px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
}

.final-badges-revealed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.revealed-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #251b4c;
  border: 3px solid #181824;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 3px 3px 0 #0e091b;
  animation: slideInUp 0.35s ease;
}

.rbi-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
  flex-shrink: 0;
}

.rbi-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.rbi-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
}

.rbi-player {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.rbi-desc {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #d0cce6;
}

/* Przycisk Nowa Gra */
.btn-new-game {
  background: #ffd23f !important;
  color: #181824 !important;
  border: 3.5px solid #181824 !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 0 #181824 !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  padding: 14px 42px !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-new-game:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #181824 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   TOAST / NOTIFIKACJE
   ════════════════════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card-light);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-size: clamp(0.9rem, 1.4vh, 1.2rem);
  font-weight: 600;
  color: var(--text-primary);
  animation: slideInUp 0.3s ease;
  box-shadow: var(--shadow-card);
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMACJE DODATKOWE
   ════════════════════════════════════════════════════════════════════════════ */

@keyframes scoreUp {
  0%   { transform: translateY(0); opacity: 1; }
  50%  { transform: translateY(-20px); opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.score-fly {
  position: fixed;
  font-size: clamp(1.3rem, 2.2vh, 1.8rem);
  font-weight: 900;
  color: var(--success);
  text-shadow: 0 0 10px rgba(0,200,83,0.8);
  pointer-events: none;
  animation: scoreUp 1s ease forwards;
  z-index: 9999;
}

/* Kołatanie przy countdown < 5 */
@keyframes timerPanic {
  0%, 100% { transform: scale(1); color: var(--error); }
  50%       { transform: scale(1.2); color: var(--accent); }
}

.timer-panic {
  animation: timerPanic 0.5s infinite;
}

/* Efekt neon na poprawnej odpowiedzi */
.neon-correct {
  box-shadow:
    0 0 5px #00c853,
    0 0 20px #00c853,
    0 0 40px #00c853,
    0 0 80px rgba(0,200,83,0.3);
}

/* ════════════════════════════════════════════════════════════════════════════
   TABLICA KALAMBURY NA TV
   ════════════════════════════════════════════════════════════════════════════ */

/* Układ dla Kalambury na TV - pełny ekran dla rysunku, brak zbędnych ramek i licznika odpowiedzi */
.question-layout.kalambury-mode {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  gap: clamp(0.4rem, 1vh, 0.8rem) !important;
}

.question-layout.kalambury-mode .question-body {
  display: none !important;
}

.question-layout.kalambury-mode .options-grid {
  display: none !important;
}

.question-layout.zgadnij-liczbe-mode .options-grid,
.question-layout.zgadnij-liczbe-mode #options-grid,
.question-layout.zgadnij-liczbe-mode .option-card {
  display: none !important;
}

.question-layout.kalambury-mode .question-suspense-banner {
  display: none !important;
}

.question-layout.kalambury-mode .answers-info {
  visibility: hidden !important;
}

/* Tablica Kalambury na TV */
.kalambury-tv-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 0.8vh, 0.75rem);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.kalam-tv-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #0e091b;
  padding: clamp(0.4rem, 0.8vh, 0.65rem) clamp(1rem, 2vw, 1.5rem);
  flex-shrink: 0;
}

.kalam-tv-drawer-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vh, 1.3rem);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
}

.kalam-tv-drawer-avatar {
  font-size: clamp(1.4rem, 2.5vh, 1.8rem);
}

.kalam-tv-shout-hint {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vh, 1.1rem);
  font-weight: 800;
  background: #ff4757;
  color: #ffffff;
  border: 2.5px solid #181824;
  border-radius: 12px;
  padding: 4px 14px;
  box-shadow: 2px 2px 0 #0e091b;
  text-shadow: 1px 1px 0 #181824;
  animation: pulse 2s infinite;
}

.kalam-canvas-wrapper {
  background: #8b5a2b;
  background-image: repeating-linear-gradient(90deg, #8b5a2b 0, #8b5a2b 28px, #784820 28px, #784820 56px);
  border: 5px solid #181824;
  border-radius: 20px;
  box-shadow: 0 10px 0 #0e091b, 0 16px 28px rgba(0, 0, 0, 0.4);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

#kalambury-tv-canvas {
  width: 100%;
  height: 100%;
  border: 3.5px solid #181824;
  border-radius: 12px;
  background: #080c24;
  display: block;
  object-fit: contain;
}

/* Plansza Gorący Kartofel na TV */
.kartofel-tv-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 1.4vh, 1.25rem);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.kartofel-center-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  background: #251b4c;
  border: 4px solid #181824;
  border-radius: 24px;
  padding: clamp(0.6rem, 1.2vh, 1.1rem) clamp(1rem, 2vw, 2rem);
  box-shadow: 0 8px 0 #0e091b, 0 16px 28px rgba(0, 0, 0, 0.4);
}

.kartofel-icon-wrap {
  position: relative;
  font-size: clamp(2.2rem, 4vh, 3.2rem);
  animation: bounce 1s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kartofel-fire {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: clamp(1.4rem, 2.5vh, 2rem);
  animation: pulse 0.8s infinite;
}

.kartofel-current-holder-box {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.2rem);
}

.kartofel-holder-avatar {
  font-size: clamp(2rem, 3.5vh, 2.8rem);
  filter: drop-shadow(2px 2px 0 #181824);
}

.kartofel-holder-info {
  display: flex;
  flex-direction: column;
}

.kartofel-holder-label {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vh, 1.05rem);
  font-weight: 800;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kartofel-holder-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vh, 2.4rem);
  font-weight: 900;
  color: #ff4757;
  text-shadow: 2.5px 2.5px 0 #181824;
}

.kartofel-players-wrapper,
.kartofel-words-wrapper {
  width: 100%;
  background: #1f1638;
  border: 3.5px solid #181824;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #0e091b;
  padding: clamp(0.5rem, 1vh, 0.85rem) clamp(0.75rem, 1.5vw, 1.25rem);
}

.kartofel-players-title,
.kartofel-words-header {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vh, 1.15rem);
  color: #ffd23f;
  font-weight: 900;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin-bottom: clamp(0.4rem, 0.8vh, 0.65rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kartofel-words-badge {
  background: #ffd23f;
  color: #181824;
  border: 2.5px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  font-family: var(--font-display);
  font-weight: 900;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-size: clamp(0.75rem, 1.2vh, 0.85rem);
}

.kartofel-players-chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 0.8vh, 0.65rem);
  justify-content: center;
}

.kartofel-player-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.35rem, 0.8vh, 0.55rem) clamp(0.7rem, 1.2vw, 1rem);
  background: #2b1f54;
  border: 3px solid #181824;
  border-radius: 16px;
  box-shadow: 0 4px 0 #181824;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vh, 1.1rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  transition: all 0.2s ease;
}

.kartofel-player-chip.active-holder {
  background: #ff4757;
  border-color: #ffd23f;
  box-shadow: 0 6px 0 #181824;
  transform: scale(1.06) rotate(-2deg);
}

.kartofel-player-chip.eliminated {
  background: #181824;
  opacity: 0.45;
  border-color: #3b3552;
  text-decoration: line-through;
  filter: grayscale(100%);
}

.kartofel-words-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: clamp(65px, 11vh, 110px);
  overflow-y: auto;
}

.kartofel-words-cloud::-webkit-scrollbar {
  width: 6px;
}
.kartofel-words-cloud::-webkit-scrollbar-track {
  background: #181824;
  border-radius: 6px;
}
.kartofel-words-cloud::-webkit-scrollbar-thumb {
  background: #ffd23f;
  border-radius: 6px;
}

.kartofel-word-tag {
  background: #ffffff;
  border: 2.5px solid #181824;
  color: #181824;
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  box-shadow: 2px 2px 0 #0e091b;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.3vh, 0.95rem);
  font-weight: 900;
}

/* ════════════════════════════════════════════════════════════════════════════
   PLANSZA PIKSELE (Konkurencja 9)
   ════════════════════════════════════════════════════════════════════════════ */
.pixel-tv-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vh, 1rem);
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

/* ─── DEDYKOWANY UKŁAD DLA PIKSELI (OPCJE A/B/C/D PO LEWEJ, PŁÓTNO PO PRAWEJ) ─── */
.question-layout.pixel-mode .tv-scene-zone {
  display: grid !important;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "q-header q-header"
    "q-options q-board";
  gap: 20px 32px;
  height: 860px !important;
  max-height: 860px !important;
  box-sizing: border-box;
  align-items: center;
}

.question-layout.pixel-mode .question-body {
  grid-area: q-header;
  min-height: 85px !important;
  max-height: 105px !important;
  padding: 16px 36px !important;
  width: 100% !important;
}

.question-layout.pixel-mode .stage-answers-arena {
  grid-area: q-options;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin-top: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.question-layout.pixel-mode .stage-answers-arena .options-grid,
.question-layout.pixel-mode .options-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  height: auto !important;
}

.question-layout.pixel-mode .stage-answers-arena .option-card,
.question-layout.pixel-mode .option-card {
  height: 105px !important;
  min-height: 105px !important;
  max-height: 105px !important;
  width: 100% !important;
  padding: 12px 24px !important;
}

.question-layout.pixel-mode .pixel-tv-board {
  grid-area: q-board;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 auto;
  gap: 16px;
}

.question-layout.pixel-mode .pixel-canvas-wrapper {
  width: 500px !important;
  height: 500px !important;
  max-width: 500px !important;
  max-height: 500px !important;
  aspect-ratio: 1 / 1;
}

.pixel-canvas-wrapper {
  position: relative;
  width: clamp(240px, 44vh, 460px);
  height: clamp(240px, 44vh, 460px);
  max-width: 85vw;
  max-height: 52vh;
  aspect-ratio: 1 / 1;
  background: #181824;
  border: 5px solid #181824;
  border-radius: 22px;
  box-shadow: 0 10px 0 #0e091b, 0 16px 28px rgba(0, 0, 0, 0.4);
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

#pixel-tv-canvas {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 3px solid #181824;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.pixel-hint-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #ffd23f;
  border: 3.5px solid #181824;
  border-radius: 16px;
  padding: 8px 22px;
  color: #181824;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vh, 1.3rem);
  font-weight: 900;
  box-shadow: 5px 5px 0 #0e091b;
}

@keyframes hintPopIn {
  0% { opacity: 0; transform: scale(0.85) translateY(12px); }
  70% { transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.pixel-hint-box.hint-revealed-anim {
  animation: hintPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, pulse 2s infinite 0.5s;
}

.pixel-hint-icon {
  font-size: clamp(1.2rem, 2vh, 1.7rem);
  filter: drop-shadow(1.5px 1.5px 0 #181824);
}


/* ═══════════════════════════════════════════════════════════════════════════
   WYKRES ROZKŁADU GŁOSÓW (Większość Rządzi)
   ═══════════════════════════════════════════════════════════════════════════ */
.reveal-votes-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 540px;
  max-width: 560px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.25), 0 10px 30px rgba(0, 0, 0, 0.7);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  gap: 0.75rem;
}

.reveal-votes-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.reveal-votes-icon {
  font-size: clamp(1.2rem, 2vh, 1.8rem);
}

.reveal-votes-title {
  font-size: clamp(1rem, 1.6vh, 1.4rem);
  font-weight: 800;
  color: var(--accent);
}

.votes-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vote-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vote-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  font-size: clamp(0.78rem, 1.25vh, 1rem);
  box-sizing: border-box;
}

/* 1. LEWA STREFA: litera opcji + treść odpowiedzi */
.vote-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.vote-letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.1vh, 0.95rem);
  font-weight: 900;
  color: #fff;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  flex: 0 0 26px;
  flex-shrink: 0;
}
.vote-letter-badge.opt-a { background: #ff4757; }
.vote-letter-badge.opt-b { background: #1e90ff; }
.vote-letter-badge.opt-c { background: #ffd23f; color: #181824; }
.vote-letter-badge.opt-d { background: #2ed573; color: #181824; }

.vote-option-text,
.vote-bar-label {
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

/* 2. ŚRODKOWA STREFA: plakietka (👑 Większość / 🦄 Odrębne / ⚖️ Remis) */
.vote-bar-badge-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.vote-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1vh, 0.82rem);
  font-weight: 900;
  line-height: 1.1;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
}

.vote-tag-badge.vote-tag-winner {
  background: #2ed573;
  color: #181824;
}

.vote-tag-badge.vote-tag-tie {
  background: #1e90ff;
  color: #ffffff;
}

.vote-tag-badge.vote-tag-minority {
  background: #a55eea;
  color: #ffffff;
}

/* 3. PRAWA STREFA: liczba i procent głosów */
.vote-bar-stat {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 140px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.85rem, 1.3vh, 1.05rem);
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vote-bar-row.winner .vote-bar-stat {
  color: #2ed573;
}

.vote-bar-row.minority .vote-bar-stat {
  color: #a55eea;
}

.vote-bar-row.tie .vote-bar-stat {
  color: #1e90ff;
}

.vote-bar-track {
  width: 100%;
  height: 18px;
  background: #191136;
  border: 2.5px solid #181824;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.vote-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #a55eea;
}

.vote-bar-row.winner .vote-bar-fill {
  background: #2ed573;
  box-shadow: none;
}

.vote-bar-row.tie .vote-bar-fill {
  background: #1e90ff;
  box-shadow: none;
}

/* Członkowie obozu w wierszu paska głosowania (Większość Rządzi) */
.vote-bar-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.25rem;
  align-items: center;
}

.vote-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.1vh, 0.88rem);
  font-weight: 900;
  background: #251b4c;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  color: #fff;
  transition: transform 0.2s ease;
}

.vote-member-pill.winner {
  border-color: #181824;
  background: #2ed573;
  color: #181824;
}

.vote-member-pill.tie {
  border-color: #181824;
  background: #1e90ff;
  color: #ffffff;
}

.vote-member-pill.minority {
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(192, 132, 252, 0.15);
  color: #e9d5ff;
}

.vote-member-av {
  font-size: 1.05em;
  line-height: 1;
}

.vote-member-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-member-pts {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

/* Karta Obozu / Grupy dla Większość Rządzi */
.staged-camp-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(0.55rem, 1vh, 0.85rem) clamp(0.75rem, 1.3vw, 1.25rem);
  background: rgba(36, 22, 79, 0.88);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: slideInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.staged-camp-card.no-answer {
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.95));
}

.staged-camp-card.minority {
  border-color: rgba(192, 132, 252, 0.7);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.staged-camp-card.winner {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.28), rgba(20, 25, 60, 0.95));
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.55), inset 0 0 12px rgba(255, 215, 0, 0.2);
  animation: popWinner 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.staged-camp-card.winner.consensus {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.38), rgba(28, 20, 65, 0.95));
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.8), inset 0 0 18px rgba(255, 215, 0, 0.3);
  animation: popWinner 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.staged-camp-card.winner.tie {
  border-color: rgba(56, 189, 248, 0.8);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.staged-camp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.staged-camp-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.staged-camp-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: clamp(0.75rem, 1.1vh, 0.92rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.staged-camp-badge.no-answer {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.staged-camp-badge.minority {
  background: linear-gradient(90deg, #a855f7, #7e22ce);
  color: #fff;
  border: 1px solid rgba(192, 132, 252, 0.6);
}

.staged-camp-badge.winner {
  background: linear-gradient(90deg, #eab308, #ca8a04);
  color: #0f172a;
  border: 1px solid #ffd700;
}

.staged-camp-badge.consensus {
  background: linear-gradient(90deg, #ffd700, #f59e0b);
  color: #0f172a;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.85);
}

.staged-camp-badge.tie {
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.7);
}

/* Wyodrębniona, okazała plakietka z % i liczbą głosów w obozie */
.staged-camp-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 3px 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.staged-camp-metric.winner,
.staged-camp-metric.consensus {
  border-color: #ffd700;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.staged-camp-metric.tie {
  border-color: #38bdf8;
  background: rgba(0, 0, 0, 0.55);
}

.staged-camp-metric.minority {
  border-color: #c084fc;
  background: rgba(0, 0, 0, 0.55);
}

.camp-pct-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vh, 28px);
  font-weight: 900;
  letter-spacing: 0.5px;
}

.staged-camp-metric.winner .camp-pct-value,
.staged-camp-metric.consensus .camp-pct-value {
  color: #ffd23f;
  text-shadow: 0 0 12px rgba(255, 210, 63, 0.8);
}

.staged-camp-metric.tie .camp-pct-value {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.staged-camp-metric.minority .camp-pct-value {
  color: #c084fc;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.8);
}

.camp-pct-votes {
  font-size: clamp(14px, 1.5vh, 17px);
  font-weight: 700;
  color: #cbd5e1;
}

/* Litera i tekst wyboru obozu */
.staged-camp-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.camp-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16px, 1.8vh, 20px);
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 1px 7px;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.camp-opt-text {
  font-size: clamp(17px, 2vh, 23px);
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1.5px 1.5px 0 #000;
}

.staged-camp-title {
  font-size: clamp(0.82rem, 1.2vh, 1rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staged-camp-pts {
  font-weight: 900;
  font-size: clamp(0.85rem, 1.25vh, 1.1rem);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.staged-camp-pts.no-answer {
  color: #f87171;
}

.staged-camp-pts.minority {
  color: #d8b4fe;
}

.staged-camp-pts.winner {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.staged-camp-pts.tie {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.staged-camp-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.staged-camp-member {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  font-size: clamp(0.76rem, 1.1vh, 0.92rem);
  font-weight: 700;
  color: #fff;
}

.staged-camp-member.winner {
  border-color: rgba(255, 215, 0, 0.7);
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
}

.staged-camp-member.winner.tie {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.staged-camp-member.minority {
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(192, 132, 252, 0.15);
}

.staged-camp-member.no-answer {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.staged-camp-member-avatar {
  font-size: 1.1em;
  line-height: 1;
}

.staged-camp-member-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staged-camp-member-points {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

.staged-camp-member-points.winner {
  color: #4ade80;
}

.staged-camp-member-points.minority {
  color: #c084fc;
}

.staged-camp-member-points.zero {
  color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EKRAN 7B – PODSUMOWANIE KONKURENCJI (Większość Rządzi i inne)
   ═══════════════════════════════════════════════════════════════════════════ */
.comp-end-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1250px;
  max-height: 100%;
  margin: 0 auto;
  gap: clamp(0.75rem, 1.6vh, 1.4rem);
  padding: clamp(0.6rem, 1.3vh, 1.25rem);
  animation: fadeIn 0.4s ease;
}

.comp-end-header {
  text-align: center;
}

.comp-end-badge {
  display: inline-block;
  background: #ffd23f;
  border: 3px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.78rem, 1.3vh, 0.95rem);
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  box-shadow: 3px 3px 0 #0e091b;
}

.comp-end-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vh, 3.2rem);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 3.5px 3.5px 0 #181824;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.5px;
}

.comp-end-sub {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vh, 1.25rem);
  font-weight: 700;
  color: #d0cce6;
  text-shadow: 1.5px 1.5px 0 #181824;
}

/* ── Sekwencja wejścia elementów Podsumowania Konkurencji na TV ─────────── */
#screen-competition-end.active .comp-end-badge {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#screen-competition-end.active .comp-end-title {
  animation: slideInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

#screen-competition-end.active .comp-end-sub {
  animation: fadeIn 0.45s ease 0.35s both;
}

#screen-competition-end.active .comp-awards-grid {
  animation: fadeIn 0.5s ease 0.5s both;
}

#screen-competition-end.active .comp-scoreboard-wrap {
  animation: slideInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

#screen-competition-end.active .comp-next-bar {
  animation: slideInUp 0.45s ease 0.75s both;
}

.comp-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1.25rem);
  width: 100%;
}

.comp-award-card {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  padding: clamp(0.55rem, 1.1vh, 0.95rem) clamp(0.7rem, 1.2vw, 1.2rem);
  background: #251b4c;
  border-radius: var(--radius-xl);
  border: 3.5px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
  transition: transform 0.3s ease;
}

.comp-award-card:hover {
  transform: translateY(-3px);
}

.comp-award-card.award-majority,
.comp-award-card.award-green {
  border-color: #181824;
  background: #251b4c;
  border-left: 6px solid #4ade80;
  box-shadow: 4px 4px 0 #0e091b;
}

.comp-award-card.award-minority,
.comp-award-card.award-purple {
  border-color: #181824;
  background: #251b4c;
  border-left: 6px solid #c084fc;
  box-shadow: 4px 4px 0 #0e091b;
}

.comp-award-card.award-agreement,
.comp-award-card.award-cyan {
  border-color: #181824;
  background: #251b4c;
  border-left: 6px solid #38bdf8;
  box-shadow: 4px 4px 0 #0e091b;
}

.comp-award-card.award-gold {
  border-color: #181824;
  background: #251b4c;
  border-left: 6px solid #ffd23f;
  box-shadow: 4px 4px 0 #0e091b;
}

.comp-award-card.award-orange {
  border-color: #181824;
  background: #251b4c;
  border-left: 6px solid #f97316;
  box-shadow: 4px 4px 0 #0e091b;
}

.comp-award-icon {
  font-size: clamp(1.8rem, 3.2vh, 2.6rem);
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
}

.comp-award-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.comp-award-tag {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.1vh, 0.88rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-shadow: 1px 1px 0 #181824;
}

.comp-award-card.award-majority .comp-award-tag,
.comp-award-card.award-green .comp-award-tag { color: #4ade80; }

.comp-award-card.award-minority .comp-award-tag,
.comp-award-card.award-purple .comp-award-tag { color: #c084fc; }

.comp-award-card.award-agreement .comp-award-tag,
.comp-award-card.award-cyan .comp-award-tag { color: #38bdf8; }

.comp-award-card.award-gold .comp-award-tag { color: #ffd23f; }
.comp-award-card.award-orange .comp-award-tag { color: #f97316; }

.comp-award-winner {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vh, 1.35rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin: 0;
}

.comp-award-desc {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.25vh, 0.9rem);
  font-weight: 700;
  color: #d0cce6;
  margin: 0;
}

.comp-scoreboard-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.comp-scoreboard-title {
  font-size: clamp(0.95rem, 1.5vh, 1.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: clamp(0.4rem, 0.8vh, 0.65rem);
  text-align: left;
}

.comp-scoreboard-container {
  width: 100%;
  max-height: clamp(260px, 46vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 10px 4px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dark) rgba(255, 255, 255, 0.05);
}

.comp-scoreboard-container::-webkit-scrollbar {
  width: 6px;
}
.comp-scoreboard-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.comp-scoreboard-container::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}
.comp-scoreboard-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

#tv-comp-scoreboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 0.9vh, 0.75rem);
}

#tv-comp-scoreboard .scoreboard-row,
#tv-comp-scoreboard .comp-prog-row {
  box-sizing: border-box;
}

#tv-comp-scoreboard.grid-2col,
.scoreboard.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.45rem, 0.9vh, 0.7rem) clamp(0.75rem, 1.5vw, 1.25rem);
}

#tv-comp-scoreboard.grid-2col.odd-leader .scoreboard-row:first-child,
#tv-comp-scoreboard.grid-2col.odd-leader .comp-prog-row:first-child,
.scoreboard.grid-2col.odd-leader .scoreboard-row:first-child {
  grid-column: 1 / -1;
}

.comp-next-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vh, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  padding: clamp(0.45rem, 1vh, 0.75rem) clamp(1.2rem, 2.4vw, 2rem);
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #0e091b;
  margin-top: clamp(0.2rem, 0.6vh, 0.5rem);
}

.comp-next-bar strong,
#tv-comp-next-name {
  color: #ffd23f !important;
  font-weight: 900;
  text-shadow: 1.5px 1.5px 0 #181824;
}

#tv-comp-next-sec {
  color: #ff5757 !important;
  font-weight: 900;
  text-shadow: 1.5px 1.5px 0 #181824;
}

/* Animowane wiersze przetasowania tabeli turniejowej */
.comp-prog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.85rem, 1.6vh, 1.3rem) clamp(1.5rem, 2.4vw, 2.4rem);
  min-height: clamp(76px, 9.5vh, 98px);
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: clamp(18px, 2.2vh, 24px);
  box-shadow: 0 6px 0 #181824, 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  box-sizing: border-box;
}

.comp-prog-row.rank-1 {
  background: #ffd23f;
  border-color: #181824;
  box-shadow: 0 8px 0 #181824, 0 14px 24px rgba(0, 0, 0, 0.45);
}

.comp-prog-row.rank-2 {
  background: #e2e8f0;
  border-color: #181824;
  box-shadow: 0 6px 0 #181824, 0 10px 20px rgba(0, 0, 0, 0.35);
}

.comp-prog-row.rank-3 {
  background: #ffb703;
  border-color: #181824;
  box-shadow: 0 6px 0 #181824, 0 10px 20px rgba(0, 0, 0, 0.35);
}

.comp-prog-left {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.8rem);
  flex: 1;
  min-width: 0;
}

.comp-prog-rank {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vh, 2.9rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2.5px 2.5px 0 #181824;
  min-width: clamp(60px, 4.5vw, 85px);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}

.comp-prog-row.rank-1 .comp-prog-rank,
.comp-prog-row.rank-2 .comp-prog-rank,
.comp-prog-row.rank-3 .comp-prog-rank {
  color: #181824;
  text-shadow: none;
}

.comp-prog-avatar {
  border: 2.5px solid #181824;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 2.5px 2.5px 0 #0e091b;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comp-prog-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vh, 2.4rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comp-prog-row.rank-1 .comp-prog-name,
.comp-prog-row.rank-2 .comp-prog-name,
.comp-prog-row.rank-3 .comp-prog-name {
  color: #181824;
  text-shadow: none;
}

.comp-prog-right {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  flex-shrink: 0;
}

.comp-prog-gain {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.35rem, 0.7vh, 0.55rem) clamp(0.85rem, 1.4vw, 1.3rem);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vh, 1.45rem);
  background: #4ade80;
  border: 2.5px solid #181824;
  color: #181824;
  box-shadow: 2.5px 2.5px 0 #0e091b;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.comp-prog-gain.show {
  opacity: 1;
  transform: scale(1);
}

.comp-prog-gain.loss {
  background: #ff5757;
  border: 2.5px solid #181824;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
}

.comp-prog-gain.loss.show {
  opacity: 1;
  transform: scale(1);
}

.comp-prog-score {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vh, 2.6rem);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  min-width: clamp(120px, 8.5vw, 180px);
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

.comp-prog-row.rank-1 .comp-prog-score,
.comp-prog-row.rank-2 .comp-prog-score,
.comp-prog-row.rank-3 .comp-prog-score {
  color: #181824;
  text-shadow: none;
}

.comp-prog-shift {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.3vh, 1rem);
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  opacity: 0;
  transition: opacity 0.4s ease;
  min-width: 2.8rem;
  text-align: center;
}

.comp-prog-shift.show { opacity: 1; }
.comp-prog-shift.up { background: #4ade80; color: #181824; }
.comp-prog-shift.down { background: #ff5757; color: #ffffff; text-shadow: 1px 1px 0 #181824; }
.comp-prog-shift.same { background: #d0cce6; color: #181824; }



/* ═══════════════════════════════════════════════════════════════════════════
   OVERLAY PRZEJŚCIOWY – odliczanie, zapowiedzi, komunikaty
   ═══════════════════════════════════════════════════════════════════════════ */

.tv-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 30, 0.94);
  backdrop-filter: blur(8px);
  animation: overlayFadeIn 0.3s ease-out;
}

.tv-transition-overlay.fade-out {
  animation: overlayFadeOut 0.35s ease-in forwards;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes overlayFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.transition-content {
  text-align: center;
  animation: transitionBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes transitionBounceIn {
  0%   { opacity: 0; transform: scale(0.6) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.transition-icon {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0.5em;
  filter: drop-shadow(4px 4px 0 #181824);
  animation: transitionIconPulse 1.5s ease-in-out infinite;
}

@keyframes transitionIconPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.transition-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: #ffd23f;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 4px 4px 0 #181824;
  margin-bottom: 0.3em;
}

.transition-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  margin-bottom: 0.8em;
  min-height: 1.5em;
}

.transition-countdown {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9.5rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    6px 6px 0 #181824,
    -3px -3px 0 #181824,
    3px -3px 0 #181824,
    -3px 3px 0 #181824;
  animation: countdownPop 1s ease-in-out infinite;
  line-height: 1;
}

@keyframes countdownPop {
  0%   { transform: scale(1); opacity: 1; }
  15%  { transform: scale(1.3); opacity: 1; }
  50%  { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.transition-countdown.countdown-go {
  color: #2ed573;
  text-shadow:
    6px 6px 0 #181824,
    -3px -3px 0 #181824,
    3px -3px 0 #181824,
    -3px 3px 0 #181824;
  animation: countdownGo 0.6s ease-out;
}

@keyframes countdownGo {
  0%   { transform: scale(0.5); opacity: 0; }
  50%  { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VA BANQUE – TELEWIZYJNY STÓŁ LICYTACJI I STAWEK
   ═══════════════════════════════════════════════════════════════════════════ */

#screen-vabanque-betting {
  width: 1920px !important;
  height: 1080px !important;
  min-width: 1920px !important;
  min-height: 1080px !important;
  max-width: 1920px !important;
  max-height: 1080px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

.vb-betting-layout {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 15%, rgba(255, 210, 63, 0.15) 0%, transparent 65%);
  overflow: hidden;
}

.vb-header {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.vb-badge {
  display: inline-block;
  background: #ffd23f;
  border: 3px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 6px 24px;
  border-radius: 999px;
  margin-bottom: 6px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #0e091b;
}

.vb-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  margin: 0 0 6px 0;
}

.vb-category-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #251b4c;
  border: 4px solid #181824;
  padding: 12px 40px;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #0e091b;
  margin-bottom: 8px;
}

.vb-cat-icon {
  font-size: 40px;
  filter: drop-shadow(2px 2px 0 #181824);
}

.vb-category-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  letter-spacing: 1px;
}

.vb-sub {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #d0cce6;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin: 0 0 4px 0;
}

.vb-timer-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
}

.vb-timer-num {
  font-size: 48px;
  font-weight: 900;
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 3px 3px 0 #181824;
  animation: countdownPop 1s infinite;
}

.vb-stakes-grid {
  height: 800px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 22px;
  align-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.vb-player-card {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 16px 24px;
  box-shadow: 0 6px 0 #181824, 0 12px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.vb-player-card.has-bet {
  border-color: #181824;
  background: #ffd23f;
  box-shadow: 0 8px 0 #181824, 0 14px 24px rgba(0, 0, 0, 0.45);
}

.vb-player-card.has-bet .vb-player-name {
  color: #181824;
  text-shadow: none;
}

.vb-player-card.has-bet .vb-player-score {
  color: #4a3800;
}

.vb-player-card.is-pass {
  border-color: #2e2646;
  background: #181329;
  opacity: 0.55;
  box-shadow: 0 3px 0 #100c1e;
}

.vb-player-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vb-player-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #ffffff;
  overflow: hidden;
  border: 3px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
}

.vb-player-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
}

.vb-player-score {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #ffd23f;
}

.vb-status-badge {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  padding: 10px 22px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2.5px solid #181824;
}

.vb-status-badge.waiting {
  background: #392f58;
  color: #d0cce6;
  border: 2.5px solid #181824;
  box-shadow: 0 3px 0 #181824;
}

.vb-status-badge.bet {
  background: #2ed573;
  color: #181824;
  border: 2.5px solid #181824;
  box-shadow: 0 4px 0 #181824;
}

.vb-status-badge.pass {
  background: #4b4b5e;
  color: #ffffff;
  border: 2.5px solid #181824;
  box-shadow: 0 3px 0 #181824;
}

.vabanque-stakes-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 1rem;
  padding: 10px 20px;
  background: #251b4c;
  border-radius: 16px;
  border: 3.5px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
}

.vb-banner-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #191136;
  border: 2.5px solid #181824;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vh, 1.15rem);
  font-weight: 800;
  color: #ffffff;
  box-shadow: 2px 2px 0 #0e091b;
}

.vb-banner-item.active-bet {
  background: #ffd23f;
  border-color: #181824;
  color: #181824;
  box-shadow: 0 3px 0 #181824;
}

.vb-banner-item.passed {
  background: #181329;
  color: #8b88a0;
  border-color: #2b2342;
  box-shadow: none;
  opacity: 0.7;
}

.vb-5050-tag {
  display: inline-block;
  background: #ff4757;
  border: 2px solid #181824;
  border-radius: 8px;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.1vh, 0.85rem);
  font-weight: 900;
  color: #ffffff;
  box-shadow: 2px 2px 0 #181824;
  margin-left: 6px;
  animation: fadeIn 0.3s ease;
}

/* Rozliczenie zakładów w ujawnieniu */
.reveal-vabanque-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(48% - 12px);
  background: rgba(13, 19, 56, 0.95);
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: clamp(0.7rem, 1.3vh, 1.1rem) clamp(0.9rem, 1.3vw, 1.3rem);
  box-sizing: border-box;
  margin: 0;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
}

.reveal-vabanque-header {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  margin-bottom: clamp(0.4rem, 0.8vh, 0.75rem);
  padding-bottom: clamp(4px, 0.6vh, 7px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.reveal-vabanque-icon {
  font-size: clamp(1.2rem, 2vh, 1.7rem);
  flex-shrink: 0;
}

.reveal-vabanque-title {
  font-size: clamp(0.92rem, 1.45vh, 1.25rem);
  font-weight: 800;
  color: var(--accent);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vabanque-results-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.8vh, 10px);
  width: 100%;
}

.vb-res-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 1vw, 10px);
  flex-wrap: nowrap;
  padding: clamp(5px, 0.8vh, 9px) clamp(8px, 1.2vw, 14px);
  border-radius: 12px;
  font-size: clamp(0.85rem, 1.3vh, 1.05rem);
  font-weight: 700;
  box-sizing: border-box;
}

.vb-res-left {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  min-width: 0;
  flex: 1 1 auto;
}

.vb-res-av {
  font-size: clamp(1rem, 1.6vh, 1.25rem);
  line-height: 1;
  flex-shrink: 0;
}

.vb-res-av img,
.vb-res-avatar {
  width: clamp(20px, 2.6vh, 24px);
  height: clamp(20px, 2.6vh, 24px);
  border-radius: 50%;
  object-fit: cover;
}

.vb-res-name {
  font-size: clamp(0.85rem, 1.35vh, 1.1rem);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.vb-res-badge {
  font-size: clamp(0.68rem, 1.05vh, 0.84rem);
  padding: clamp(2px, 0.3vh, 4px) clamp(6px, 0.8vw, 10px);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 800;
}

.vb-res-delta {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: clamp(0.85rem, 1.35vh, 1.15rem);
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.vb-res-item.win {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.vb-res-item.loss {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}

.vb-res-item.pass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #aaa;
}

/* ═══════════════════════════════════════════════════════
   FAMILIADA – STYLIZACJA EKRANU TV (TABLICA ANKIETOWYCH)
   ═══════════════════════════════════════════════════════ */
.familiada-tv-board {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  background: #201744;
  border: 4.5px solid #181824;
  border-radius: 24px;
  padding: 1.2rem 1.6rem;
  box-shadow: 0 10px 0 #0e091b, 0 16px 28px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fam-tv-board-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vh, 1.5rem);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fam-tv-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fam-tv-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #150f2e;
  border: 3px solid #181824;
  border-radius: 14px;
  box-shadow: 0 4px 0 #181824;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vh, 1.45rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  letter-spacing: 1px;
}

.fam-tv-slot-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffd23f;
  border: 2.5px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.5vh, 1.25rem);
  box-shadow: 2px 2px 0 #0e091b;
}

.fam-tv-slot-dots {
  flex: 1;
  text-align: center;
  color: rgba(255, 210, 63, 0.4);
  letter-spacing: 6px;
  font-weight: 900;
}

.fam-tv-slot-score {
  background: #ff4757;
  color: #ffffff;
  border: 2.5px solid #181824;
  border-radius: 10px;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-weight: 900;
  box-shadow: 2px 2px 0 #0e091b;
  text-shadow: 1px 1px 0 #181824;
}

/* Familiada Mode dla screen-answer-reveal: pełne, responsywne wypełnienie ekranu TV od nagłówka do dolnej krawędzi */
#screen-answer-reveal.familiada-mode {
  padding-top: clamp(1.2rem, 2.5vh, 2rem);
  padding-bottom: clamp(0.8rem, 1.8vh, 1.5rem);
  padding-left: clamp(1.5rem, 3.5vw, 3.5rem);
  padding-right: clamp(1.5rem, 3.5vw, 3.5rem);
  justify-content: flex-start;
  height: 100vh;
  box-sizing: border-box;
}

#screen-answer-reveal.familiada-mode #reveal-screen-title {
  flex: 0 0 auto;
  margin: 0;
  margin-bottom: clamp(0.15rem, 0.4vh, 0.35rem);
  font-size: clamp(1.8rem, 3.6vh, 2.8rem);
  line-height: 1.1;
  text-align: center;
}

#screen-answer-reveal.familiada-mode .reveal-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: clamp(980px, 92vw, 1500px);
  height: 100%;
  max-height: 100%;
  gap: clamp(0.25rem, 0.6vh, 0.5rem);
}

#screen-answer-reveal.familiada-mode .reveal-content-row {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#screen-answer-reveal.familiada-mode .reveal-familiada-card {
  width: 100%;
  max-width: 100%;
  height: 100%;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(0.6rem, 1.2vh, 1.2rem) clamp(1rem, 2vw, 2rem);
  box-sizing: border-box;
  margin: 0;
}

#screen-answer-reveal.familiada-mode .reveal-familiada-header {
  flex: 0 0 auto;
  margin-bottom: clamp(0.35rem, 0.7vh, 0.65rem);
  padding-bottom: clamp(4px, 0.6vh, 8px);
}

#screen-answer-reveal.familiada-mode .familiada-reveal-board {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(6px, 1.2vh, 14px);
}

#screen-answer-reveal.familiada-mode .fam-rev-row {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  padding: clamp(6px, 1.1vh, 14px) clamp(12px, 1.6vw, 22px);
}

#screen-answer-reveal.familiada-mode .next-round-wait-bar {
  flex: 0 0 auto;
  margin-top: 0;
  padding: clamp(0.3rem, 0.7vh, 0.55rem) clamp(1rem, 2vw, 2rem);
}

/* Tablica w ujawnieniu wyników (screen-answer-reveal) */
.reveal-familiada-card {
  width: 100%;
  max-width: clamp(960px, 86vw, 1260px);
  background: #251b4c;
  border: 4px solid #181824;
  border-radius: 24px;
  padding: clamp(0.5rem, 1vh, 0.85rem) clamp(1rem, 2vw, 1.8rem);
  box-sizing: border-box;
  margin: 0 auto;
  box-shadow: 6px 6px 0 #0e091b;
  transition: all 0.4s ease;
}

.reveal-familiada-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(0.35rem, 0.7vh, 0.65rem);
  padding-bottom: clamp(4px, 0.5vh, 7px);
  border-bottom: 2px solid #181824;
}

.fam-header-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
}

.reveal-familiada-icon {
  font-size: clamp(1.3rem, 2.2vh, 1.9rem);
  filter: drop-shadow(2px 2px 0 #181824);
}

.fam-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reveal-familiada-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vh, 1.4rem);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.reveal-familiada-sub {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.1vh, 0.92rem);
  font-weight: 700;
  color: #d0cce6;
  line-height: 1.2;
}

.fam-header-badge {
  background: #ffd23f;
  border: 2px solid #181824;
  color: #181824;
  padding: clamp(3px, 0.5vh, 5px) clamp(8px, 1.2vw, 13px);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.1vh, 0.88rem);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 2px 2px 0 #0e091b;
}

.familiada-reveal-board {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.9vh, 9px);
  perspective: 1200px;
}

/* Pojedynczy wiersz tablicy Familiady */
.fam-rev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(44px, 6.2vh, 54px);
  padding: clamp(4px, 0.6vh, 8px) clamp(10px, 1.4vw, 16px);
  border-radius: clamp(9px, 1.2vh, 13px);
  border: 3px solid #181824;
  background: #191136;
  box-sizing: border-box;
  box-shadow: 0 4px 0 #181824;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Stan zakryty (przed odsłonięciem) */
.fam-rev-row.covered {
  background: #181329;
  border-color: #2b2342;
  box-shadow: none;
  opacity: 0.78;
}

.fam-rev-row.covered .fam-rev-rank {
  background: #392f54;
  color: #d0cce6;
  border-color: #2b2342;
  box-shadow: none;
}

.fam-rev-row.covered .fam-rev-text {
  color: #70688a;
  letter-spacing: 2px;
  font-family: monospace;
}

.fam-rev-row.covered .fam-rev-players {
  color: #70688a;
  font-style: italic;
  font-size: clamp(0.75rem, 1.2vh, 0.95rem);
}

.fam-rev-row.covered .fam-rev-survey-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.fam-rev-row.covered .fam-rev-survey-num {
  color: #70688a;
}

.fam-rev-row.covered .fam-rev-survey-label {
  color: #70688a;
}

/* Puls przed odsłonięciem */
.fam-rev-row.revealing {
  border-color: #ffd23f;
  box-shadow: 0 6px 0 #181824;
  animation: flapPulse 0.4s infinite alternate;
}

@keyframes flapPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* Stan odsłonięty (efekt 3D flip) */
.fam-rev-row.revealed {
  animation: flapFlipIn 0.55s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
  background: #251b4c;
  border-color: #ffd23f;
  box-shadow: 0 4px 0 #181824;
  opacity: 1;
}

@keyframes flapFlipIn {
  0% {
    transform: rotateX(-90deg) scale(0.96);
    opacity: 0.2;
  }
  65% {
    transform: rotateX(8deg);
    opacity: 1;
  }
  100% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

/* Wiersz nr 1 (najwyżej punktowana odpowiedź z koroną i złotą ramką) */
.fam-rev-row.top-answer.revealed {
  background: #342759;
  border-color: #ffd23f;
  box-shadow: 0 6px 0 #181824;
}

.fam-rev-row.top-answer.revealed .fam-rev-rank {
  background: #ffd23f;
  color: #181824;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
}

.fam-rev-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  flex: 1 1 35%;
  min-width: 200px;
}

.fam-rev-rank {
  width: clamp(34px, 4.8vh, 46px);
  height: clamp(34px, 4.8vh, 46px);
  min-width: clamp(34px, 4.8vh, 46px);
  border-radius: 50%;
  background: #facc15;
  color: #0f172a;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.6vh, 1.35rem);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.fam-rev-text {
  font-size: clamp(1.05rem, 1.9vh, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.25;
}

/* Środkowo-prawa sekcja: "obok który gracz tak zaznaczył i ile dostał punktów" */
.fam-rev-center-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.2vw, 14px);
  flex: 1 1 65%;
}

.fam-rev-players {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

/* Plakietka gracza który trafił daną odpowiedź */
.fam-player-hit-pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.6vw, 7px);
  background: rgba(34, 197, 94, 0.2);
  border: 1.5px solid #22c55e;
  border-radius: 20px;
  padding: clamp(3px, 0.5vh, 6px) clamp(8px, 1.1vw, 13px);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  animation: popIn 0.35s ease forwards;
}

.fam-player-hit-av {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.9rem, 1.4vh, 1.15rem);
  line-height: 1;
}

.fam-player-hit-av img {
  width: clamp(20px, 3vh, 26px);
  height: clamp(20px, 3vh, 26px);
  border-radius: 50%;
  object-fit: cover;
}

.fam-player-hit-name {
  font-size: clamp(0.85rem, 1.35vh, 1.05rem);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

.fam-player-hit-score {
  background: #22c55e;
  color: #052e16;
  font-size: clamp(0.75rem, 1.2vh, 0.95rem);
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

/* Informacja gdy nikt nie trafił */
.fam-nobody-hit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px dashed rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  padding: clamp(3px, 0.5vh, 6px) clamp(9px, 1.2vw, 13px);
  border-radius: 14px;
  font-size: clamp(0.82rem, 1.3vh, 1rem);
  font-weight: 700;
  font-style: normal;
}

.fam-nobody-icon {
  color: #ef4444;
  font-weight: 900;
  font-style: normal;
  font-size: 1.1em;
}

/* Pudełko punktów ankietowych (głosów) po prawej stronie */
.fam-rev-survey-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(65px, 8vw, 92px);
  height: clamp(34px, 4.8vh, 48px);
  padding: clamp(2px, 0.4vh, 5px) clamp(6px, 0.9vw, 10px);
  background: rgba(250, 204, 21, 0.15);
  border: 1.5px solid rgba(250, 204, 21, 0.6);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.fam-rev-survey-num {
  font-size: clamp(1.15rem, 2vh, 1.6rem);
  font-weight: 900;
  color: #facc15;
  line-height: 1;
}

.fam-rev-survey-label {
  font-size: clamp(0.65rem, 1vh, 0.85rem);
  font-weight: 800;
  color: rgba(250, 204, 21, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Podsumowanie punktów za rundę na dole tablicy Familiada */
.fam-round-summary {
  margin-top: clamp(0.4rem, 0.8vh, 0.7rem);
  padding: clamp(6px, 1vh, 10px) clamp(10px, 1.5vw, 16px);
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.5s ease forwards;
}

.fam-summary-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.82rem, 1.25vh, 1.05rem);
  font-weight: 800;
  color: #facc15;
}

.fam-summary-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fam-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 3px 10px;
  font-size: clamp(0.75rem, 1.15vh, 0.95rem);
  font-weight: 700;
  color: #ffffff;
}

.fam-summary-pill.winner {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.15);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25);
}

.fam-summary-pts {
  color: #22c55e;
  font-weight: 900;
}

.fam-summary-pill.zero .fam-summary-pts {
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADAPTACJE PLATFORMOWE TV (PC HOST / SMART TV / WYKRYCIE SMARTFONA)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ukrywanie kursora przy bezczynności (Broadcast UI) */
body.cursor-hidden,
body.cursor-hidden * {
  cursor: none !important;
}

/* Dyskretny pasek skrótów klawiaturowych dla Prowadzącego na PC */
.tv-host-shortcut-bar {
  position: fixed;
  top: clamp(1rem, 3vh, 2.2rem);
  left: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 998;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(13, 27, 94, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-full, 999px);
  color: var(--text-secondary, #cbd5e1);
  font-size: clamp(0.72rem, 1.1vh, 0.85rem);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

/* Pokaż pasek skrótów tylko na komputerze PC / laptopie */
@media (min-width: 992px) {
  html.device-desktop .tv-host-shortcut-bar,
  body.device-desktop .tv-host-shortcut-bar {
    display: inline-flex;
  }
}

.host-shortcut-badge {
  color: var(--accent, #ffd700);
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.host-shortcut-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.host-shortcut-item kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Banner ostrzeżenia o otwarciu TV na smartfonie */
.tv-mobile-warning-banner {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10002;
  display: none;
  justify-content: center;
  animation: slideDownBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBanner {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tv-mobile-warning-box {
  background: #24143a;
  border: 3.5px solid #181824;
  border-radius: 20px;
  box-shadow: 6px 6px 0 #0e091b;
  padding: 18px 20px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #ffffff;
}

.tv-mobile-warning-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-mobile-warning-icon {
  font-size: 1.6rem;
}

.tv-mobile-warning-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffd23f;
  text-shadow: 0 2px 0 #181824;
}

.tv-mobile-warning-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.tv-mobile-warning-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.tv-mobile-warning-actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: 2.5px solid #181824;
  box-shadow: 0 4px 0 #181824;
  transition: all 0.1s ease;
}

.tv-mobile-warning-actions .btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #181824;
}

/* Baner odblokowania audio TV (Autoplay policy) */
.tv-audio-unlock-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10005;
  cursor: pointer;
  animation: tvAudioBannerBob 2s infinite ease-in-out;
}

@keyframes tvAudioBannerBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

.tv-audio-unlock-box {
  background: #ffd23f;
  border: 3px solid #181824;
  border-radius: 999px;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 5px 0 #181824, 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #181824;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
}

.tv-audio-unlock-icon {
  font-size: 1.3rem;
  color: #181824;
}

.tv-audio-unlock-msg {
  color: #181824;
  font-weight: 800;
}

.tv-audio-unlock-btn {
  background: #181824 !important;
  color: #ffd23f !important;
  border: 2px solid #181824 !important;
  padding: 5px 16px !important;
  font-size: 0.85rem !important;
  border-radius: 999px !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 0 #0e091b !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
}

.tv-audio-unlock-btn:hover {
  background: #251640 !important;
}

.tv-audio-unlock-btn:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #0e091b !important;
}


/* ═══════════════════════════════════════════════════════
   PAUZA KOLEJKOWA (TV PAUSE SYSTEM)
   ═══════════════════════════════════════════════════════ */
.tv-pause-scheduled-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffd23f;
  border: 2.5px solid #181824;
  color: #181824;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 0 #181824;
}
  animation: tvBadgePulse 2s infinite ease-in-out;
}

@keyframes tvBadgePulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 24px rgba(234, 179, 8, 0.6); }
}

.pause-badge-pulse {
  display: inline-block;
}

.tv-pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(15, 10, 30, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.4s ease-out;
}

.tv-pause-card {
  max-width: 640px;
  width: 90%;
  background: #201744;
  border: 4px solid #181824;
  border-radius: 28px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 10px 10px 0 #0e091b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.tv-pause-icon-anim {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(3px 3px 0 #181824);
  animation: floatBounce 2.5s infinite ease-in-out;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tv-pause-badge {
  background: #ffd23f;
  border: 2.5px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 18px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #0e091b;
  text-transform: uppercase;
}

.tv-pause-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 900;
  margin: 0;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 #181824;
}

.tv-pause-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
  font-weight: 700;
}

.tv-pause-status-box {
  background: #191136;
  border: 2.5px solid #181824;
  border-radius: 16px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-shadow: 4px 4px 0 #0e091b;
  box-sizing: border-box;
}

.tv-pause-by-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
}

.tv-pause-hint {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
}

.tv-pause-actions {
  margin-top: 8px;
  width: 100%;
}

.btn-tv-resume-main {
  width: 100%;
  padding: 18px 28px;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 1px;
  background: #2ed573 !important;
  color: #181824 !important;
  border: 3.5px solid #181824 !important;
  border-radius: 20px;
  box-shadow: 0 6px 0 #181824 !important;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-tv-resume-main:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #181824 !important;
}

.btn-gold-outline {
  background: #ffd23f !important;
  border: 3px solid #181824 !important;
  color: #181824 !important;
  box-shadow: 3px 3px 0 #0e091b !important;
}
.btn-gold-outline:hover {
  background: #ffe066 !important;
}

/* =============================================================================
   TV 1080p SAFE SCALING & HARDWARE ACCELERATION GUARANTEES
   ============================================================================= */

/* Zapewnienie, że gracze na scenie TV mieszczą się w całości bez ucinania i bez scrolla */
#screen-lobby .players-grid {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#screen-lobby .empty-stage-podiums-row {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

/* Wyłączenie zasobożernych filtrów i animacji na TV dla płynności 60fps i braku migania */
body.tv-body {
  background-attachment: scroll !important;
}

body.tv-body * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.tv-body .studio-haze-bokeh,
body.tv-body .studio-floating-plus,
body.tv-body .studio-grid-floor {
  display: none !important;
}

body.tv-body .studio-spotlight,
body.tv-body .spotlight-left,
body.tv-body .spotlight-right,
body.tv-body .spotlight-center {
  animation: none !important;
  will-change: auto !important;
}

body.tv-body .spotlight-left {
  transform: rotate(-18deg) !important;
  opacity: 0.55 !important;
}

body.tv-body .spotlight-right {
  transform: rotate(18deg) !important;
  opacity: 0.55 !important;
}

body.tv-body .spotlight-center {
  transform: none !important;
  opacity: 0.45 !important;
}

body.tv-body .studio-pillar {
  animation: none !important;
  opacity: 0.85 !important;
  transform: none !important;
}


body.tv-body .empty-podium-spotlight,
body.tv-body .active-spotlight {
  filter: none !important;
}

body.tv-body .lobby-char-figure {
  animation: none !important;
}

body.tv-body .lobby-char-figure img,
body.tv-body .lobby-char-figure .avatar-render-img,
body.tv-body .lobby-char-figure .lobby-char-svg {
  filter: none !important;
}

body.tv-body .btn-start,
body.tv-body .lobby-start-box .btn-start,
body.tv-body .logo-star,
body.tv-body .tv-host-card-crown,
body.tv-body .empty-stage-pulse,
body.tv-body .room-code-letters,
body.tv-body .empty-podium-hologram,
body.tv-body .game-title {
  animation: none !important;
}

body.tv-body .empty-podium-slot {
  transition: none !important;
}

body.tv-body .empty-podium-slot.occupied {
  animation: none !important;
  opacity: 1 !important;
}

body.tv-body .lobby-layout,
body.tv-body .players-grid,
body.tv-body .empty-stage-podiums-row {
  transform: none !important;
}

/* Eliminacja mignięć i glitchy kafelkowania na TV (zarówno góra jak i dół ekranu) */
body.tv-body .studio-ceiling-truss,
body.tv-body .studio-haze-bokeh,
body.tv-body .studio-floating-plus,
body.tv-body .studio-grid-floor,
body.tv-body .studio-neon-beam,
body.tv-body .studio-floor-spotlight-pools,
body.tv-body .floor-spot,
body.tv-body .studio-stage-circular-podium,
body.tv-body .studio-stage-apron,
body.tv-body .studio-ambient-glow {
  display: none !important;
}

body.tv-body .tv-studio-lights {
  transform: none !important;
  perspective: none !important;
  contain: paint !important;
}

body.tv-body .category-card {
  -webkit-box-reflect: none !important;
}

body.tv-body .studio-spotlight {
  height: 100vh !important;
  top: 0 !important;
}

/* ═════════════════════════════════════════════════════════════════════════════
   ARCHITEKTURA EKRANU TV (PARTY GAME HUD 1920×1080)
   100% Zgodna z TV_DESIGN_SYSTEM.md (Zero Scroll, Sztywny Budżet, Jednolita Tabela)
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── ZASADA I: STAŁY WIRTUALNY KADR 16:9 (1920×1080) ────────────────────────── */
html,
body.tv-body {
  margin: 0;
  padding: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #030108;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

#tv-app-root {
  width: 1920px;
  height: 1080px;
  min-width: 1920px;
  min-height: 1080px;
  max-width: 1920px;
  max-height: 1080px;
  transform-origin: center center;
  overflow: hidden;
  position: relative;
  background: #04020a;
  box-sizing: border-box;
  flex-shrink: 0;
}

#tv-app-root .screen {
  width: 1920px;
  height: 1080px;
  min-width: 1920px;
  min-height: 1080px;
  max-width: 1920px;
  max-height: 1080px;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent !important;
}

/* ═════════════════════════════════════════════════════════════════════════════
   AUTENTYCZNA SCENOGRAFIA STUDIA TELEWIZYJNEGO 3D (KAMERY, TRUSS, REFLEKTORY)
   ═════════════════════════════════════════════════════════════════════════════ */
#tv-app-root #tv-studio-lights {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1920px !important;
  height: 1080px !important;
  z-index: 1 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

#tv-app-root .studio-3d-bg-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1920px !important;
  height: 1080px !important;
  object-fit: cover !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#tv-app-root #tv-studio-lighting-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1920px !important;
  height: 1080px !important;
  z-index: 10 !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important;
}

#tv-app-root .portal-led-pulse-top {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 242, 254, 0.35) 0%, rgba(217, 70, 239, 0.2) 50%, transparent 80%);
  filter: blur(25px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 6;
  animation: portalTopPulse 3.5s ease-in-out infinite alternate;
}

#tv-app-root .portal-led-pulse-center {
  position: absolute;
  top: 500px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.35) 0%, rgba(168, 85, 247, 0.2) 45%, transparent 75%);
  filter: blur(30px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 6;
  animation: portalCenterPulse 3.5s ease-in-out infinite alternate 0.5s;
}

#tv-app-root .portal-led-pulse-floor {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 1350px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 210, 63, 0.28) 0%, rgba(0, 242, 254, 0.18) 40%, transparent 75%);
  filter: blur(35px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 6;
  animation: portalFloorPulse 4s ease-in-out infinite alternate 1s;
}

#tv-app-root .camera-tally-light-left {
  position: absolute;
  bottom: 235px;
  left: 215px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff0033;
  box-shadow: 0 0 10px #ff0033, 0 0 20px #ff0033;
  z-index: 8;
  pointer-events: none;
  animation: tallyBlink 2s ease-in-out infinite alternate;
}

#tv-app-root .camera-tally-light-right {
  position: absolute;
  bottom: 245px;
  right: 215px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff0033;
  box-shadow: 0 0 10px #ff0033, 0 0 20px #ff0033;
  z-index: 8;
  pointer-events: none;
  animation: tallyBlink 2s ease-in-out infinite alternate 0.5s;
}

@keyframes portalCenterPulse {
  0%   { opacity: 0.65; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes portalTopPulse {
  0%   { opacity: 0.65; transform: translateX(-50%) scale(0.96); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}
@keyframes portalFloorPulse {
  0%   { opacity: 0.7; transform: translateX(-50%) scale(0.97); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}
@keyframes tallyBlink {
  0%, 20% { opacity: 0.4; filter: drop-shadow(0 0 4px #ff0033); }
  80%, 100% { opacity: 1; filter: drop-shadow(0 0 14px #ff0033); }
}

/* Pełny kadr 1920x1080 dla układu pytań */
#screen-question {
  width: 1920px;
  height: 1080px;
  min-width: 1920px;
  min-height: 1080px;
  max-width: 1920px;
  max-height: 1080px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

#screen-question .question-layout:not(.pixel-mode),
#screen-question .question-layout {
  width: 1920px;
  min-width: 1920px;
  max-width: 1920px;
  height: 1080px;
  min-height: 1080px;
  max-height: 1080px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── ZASADA II: SZTYWNY BUDŻET PRZESTRZENI (LAYOUT BUDGET) ──────────────────── */

/* 1. NAGŁÓWEK / STAN GRY / TIMER (SZTYWNA WYSOKOŚĆ: 120px) */
.tv-hud-header,
#screen-question .question-topbar {
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  width: 1920px;
  padding: 12px 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  overflow: hidden;
  background: rgba(14, 9, 32, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(255, 210, 63, 0.4) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

/* 2. GŁÓWNA STREFA ŚRODKOWA (SZTYWNA WYSOKOŚĆ: 900px = 1080 - 120 - 60) */
.tv-hud-main-body,
#screen-question .question-layout-body {
  height: 900px;
  min-height: 900px;
  max-height: 900px;
  width: 1920px;
  padding: 20px 20px;
  box-sizing: border-box;
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* STREFA MINIGRY / PYTAŃ / SCENY (SZTYWNA SZEROKOŚĆ: 1380px, WYSOKOŚĆ: 860px) */
.tv-scene-zone,
#screen-question .tv-scene-zone {
  width: 1380px;
  min-width: 1380px;
  max-width: 1380px;
  height: 860px;
  min-height: 860px;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Karta z pytaniem (Telebim studyjny - czysta biała tablica Jackbox) */
#screen-question .question-body {
  background: #ffffff;
  border: 4px solid #181824;
  border-radius: 26px;
  padding: 28px 44px;
  min-height: 200px;
  max-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 8px 8px 0 #0e091b;
  margin: 0;
  width: 100%;
}

#screen-question .question-text {
  font-family: var(--font-display), 'Outfit', 'Fredoka', sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.35;
  color: #181824;
  text-shadow: none;
  margin: 0;
}

/* Arena odpowiedzi A/B/C/D */
#screen-question .stage-answers-arena {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  width: 100%;
  height: auto;
  max-height: none;
}

#screen-question #studio-center-buzzer-wrap {
  display: none;
}

#screen-question .stage-answers-arena .options-grid,
#screen-question .options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 104px 104px;
  gap: 18px 24px;
  height: auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

#screen-question .stage-answers-arena .option-card,
#screen-question .option-card {
  border: 3.5px solid #181824;
  border-radius: 22px;
  padding: 14px 28px;
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  box-shadow: 6px 6px 0 #0e091b;
  position: relative;
  overflow: hidden;
}

#screen-question #option-a { background: #ff4757; }
#screen-question #option-b { background: #1e90ff; }
#screen-question #option-c { background: #ffa502; }
#screen-question #option-d { background: #2ed573; }

#screen-question .stage-answers-arena .option-card .option-letter,
#screen-question .option-letter {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  border-radius: 14px;
  background: #ffffff;
  border: 3px solid #181824;
  box-shadow: 3px 3px 0 #181824;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #181824;
  flex-shrink: 0;
}

#screen-question .stage-answers-arena .option-card .option-text,
#screen-question .option-text {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
}

#screen-question #option-a .option-text,
#screen-question #option-b .option-text {
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
}

#screen-question #option-c .option-text,
#screen-question #option-d .option-text {
  color: #181824;
  text-shadow: none;
}

#screen-question #option-a .option-letter { background: #ffffff; color: #181824; }
#screen-question #option-b .option-letter { background: #ffffff; color: #181824; }
#screen-question #option-c .option-letter { background: #ffffff; color: #181824; }
#screen-question #option-d .option-letter { background: #ffffff; color: #181824; }

#screen-question .option-card.correct {
  background: #2ed573 !important;
  color: #181824 !important;
  border-color: #181824 !important;
  box-shadow: 0 0 35px rgba(46, 213, 115, 0.75), 8px 8px 0 #0e091b !important;
  transform: scale(1.03);
}

#screen-question .option-card.correct .option-text {
  color: #181824 !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

#screen-question .option-card.correct .option-letter {
  background: #181824 !important;
  color: #2ed573 !important;
  border: 2.5px solid #181824 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

#screen-question .option-card.incorrect {
  border-color: #181824 !important;
  opacity: 0.28 !important;
  filter: grayscale(85%) contrast(75%) !important;
  transform: scale(0.96) !important;
}

/* STREFA GRACZY (SZTYWNA SZEROKOŚĆ: 460px, WYSOKOŚĆ: 860px) */
.tv-players-sidebar,
#screen-question .tv-players-sidebar {
  width: 460px;
  min-width: 460px;
  max-width: 460px;
  height: 860px;
  min-height: 860px;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  background: rgba(20, 14, 44, 0.75) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden;
  margin: 0;
}

#screen-question .stage-podiums-container {
  width: 100%;
  height: calc(860px - 40px - 12px);
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.tv-players-sidebar-header {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2.5px solid #181824;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.tv-players-sidebar-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-players-sidebar-badge {
  background: #ffd23f;
  color: #181824;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
}

/* 3. PASEK DOLNY / INFORMACJE SYSTEMOWE (SZTYWNA WYSOKOŚĆ: 60px) */
.tv-hud-footer {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  width: 1920px;
  padding: 0 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  background: rgba(10, 6, 24, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid rgba(255, 255, 255, 0.12) !important;
  overflow: hidden;
}

/* ── ZASADA III: JEDNOLITA TABELA GRACZY (ZAWSZE 1 KOLUMNA, 2 DO 10 GRACZY) ──── */
#screen-question .stage-podiums-row,
#screen-question #stage-podiums-container .answer-indicators,
#screen-question #answer-indicators,
#tv-players-container {
  width: 100%;
  height: calc(860px - 40px - 12px); /* Dokładnie 808px netto dla kart */
  min-height: calc(860px - 40px - 12px);
  max-height: calc(860px - 40px - 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* ── STYLIZACJA KART GRACZY (.stage-player-podium i .tv-player-card) ─────────── */
#screen-question .stage-player-podium,
.stage-player-podium,
.tv-player-card {
  background: #281d52;
  border: 2.5px solid #181824;
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 3px 3px 0 #0e091b;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 70px;
  height: 70px;
  max-height: 70px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 14px;
  gap: 12px;
  margin: 0;
  flex: none;
  animation: none;
  justify-content: flex-start;
  text-align: left;
}

.stage-player-podium .answer-dot,
.stage-player-podium .podium-booth {
  display: none;
}

.stage-player-podium .podium-char-wrap {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: inherit;
  align-items: center;
  justify-content: inherit;
  gap: inherit;
  min-width: 0;
  overflow: hidden;
}

.stage-player-podium.answered,
.stage-player-podium.locked-in,
.tv-player-card.answered {
  border-color: #2ed573;
  background: #1c3530;
  box-shadow: 4px 4px 0 #0e091b;
}

.stage-player-podium.reaction-win,
.stage-player-podium.reaction-correct,
.tv-player-card.correct {
  border-color: #2ed573;
  background: #1c4528;
  box-shadow: 4px 4px 0 #0e091b;
}

.stage-player-podium.reaction-wrong,
.tv-player-card.incorrect {
  border-color: #ff4757;
  background: #401a24;
  box-shadow: 4px 4px 0 #0e091b;
}

.stage-player-podium.reaction-minority,
.tv-player-card.minority {
  border-color: #c084fc;
  background: #2b1442;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.55), 4px 4px 0 #0e091b;
}

.stage-speech-bubble.bubble-minority {
  background: linear-gradient(135deg, #a855f7, #7e22ce) !important;
  color: #ffffff !important;
  border-color: #c084fc !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6) !important;
}

#screen-question .podium-char-figure,
#screen-question .card-avatar-wrap,
.podium-char-figure,
.card-avatar-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3d2c74;
  border: 2.5px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  animation: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  font-size: 26px;
}

#screen-question .podium-char-figure img,
#screen-question .podium-char-figure .avatar-render-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: none;
  animation: none;
}

.card-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.stage-player-podium .podium-char-name-tag,
.tv-player-card .card-player-name {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-display), 'Outfit', 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 #181824;
  line-height: 1.2;
}

.stage-player-podium .podium-booth-score,
.tv-player-card .card-player-score {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #181824;
  font-size: 16px;
  line-height: 1.2;
}

.stage-player-podium .podium-thought-bubble,
.tv-player-card .card-status-badge {
  font-family: var(--font-display);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-left: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  background: #181133;
  border: 2px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
  font-size: 18px;
  color: #ffffff;
  position: static;
  transform: none;
}

/* 2. Ekran ujawnienia odpowiedzi (screen-answer-reveal) */
#screen-answer-reveal.active {
  padding-top: clamp(12px, 1.6vh, 20px) !important;
  padding-bottom: clamp(14px, 1.8vh, 24px) !important;
  padding-left: clamp(24px, 3vw, 48px) !important;
  padding-right: clamp(24px, 3vw, 48px) !important;
  box-sizing: border-box !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#screen-answer-reveal .reveal-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: clamp(1200px, 90vw, 1560px) !important;
  height: 100% !important;
  max-height: 100% !important;
  gap: clamp(8px, 1.1vh, 16px) !important;
  box-sizing: border-box !important;
}

#screen-answer-reveal .screen-title {
  flex: 0 0 auto !important;
  font-size: clamp(1.8rem, 3.2vh, 2.5rem) !important;
  margin: 0 !important;
  letter-spacing: 2px !important;
  color: #ffd23f !important;
  text-shadow: 2.5px 2.5px 0 #181824 !important;
}

body.theme-arcade-3d #screen-answer-reveal .correct-answer-card,
body.tv-body #screen-answer-reveal .correct-answer-card,
#screen-answer-reveal .correct-answer-card {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(14px, 1.8vw, 24px) !important;
  padding: clamp(8px, 1.2vh, 14px) clamp(28px, 3vw, 48px) !important;
  border-radius: 999px !important;
  width: auto !important;
  min-width: clamp(520px, 52vw, 840px) !important;
  max-width: 92% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  border: 3.5px solid #181824 !important;
  box-shadow: 0 6px 0 #181824, 0 12px 24px rgba(0, 0, 0, 0.4) !important;
}

body.theme-arcade-3d #screen-answer-reveal .correct-icon,
body.tv-body #screen-answer-reveal .correct-icon,
#screen-answer-reveal .correct-icon {
  width: clamp(44px, 5.2vh, 54px) !important;
  height: clamp(44px, 5.2vh, 54px) !important;
  font-size: clamp(1.5rem, 2.4vh, 2.0rem) !important;
  flex-shrink: 0 !important;
}

#screen-answer-reveal .correct-label {
  font-size: clamp(1rem, 1.5vh, 1.25rem) !important;
  letter-spacing: 2px !important;
  color: #181824 !important;
  font-weight: 900 !important;
  margin: 0 !important;
  display: inline-block !important;
  text-transform: uppercase !important;
}

#screen-answer-reveal .correct-answer-text {
  font-size: clamp(1.7rem, 2.9vh, 2.4rem) !important;
  color: #181824 !important;
  font-weight: 900 !important;
  margin: 0 !important;
  display: inline-block !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

#screen-answer-reveal .reveal-content-row {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: clamp(16px, 2vw, 32px) !important;
}

#screen-answer-reveal .staged-reveal-container {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  gap: 8px !important;
  background: #251b4c !important;
  border: 3.5px solid #181824 !important;
  border-radius: 28px !important;
  padding: clamp(12px, 1.6vh, 22px) clamp(18px, 2.2vw, 32px) !important;
  box-shadow: 6px 6px 0 #0e091b !important;
  box-sizing: border-box !important;
}

#screen-answer-reveal .staged-reveal-title {
  flex: 0 0 auto !important;
  font-size: clamp(1.15rem, 1.7vh, 1.45rem) !important;
  margin: 0 0 6px 0 !important;
  padding-left: 4px !important;
  letter-spacing: 1.5px !important;
  color: #ffd23f !important;
  text-shadow: 1.5px 1.5px 0 #181824 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

/* Lista w 1 kolumnie jedne pod drugim */
#screen-answer-reveal .staged-players-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 4px !important;
  overflow: hidden !important;
}

/* ── TIER 1: 1–4 graczy (count-few) – Luksusowe, duże pasy studyjne na cały ekran ── */
#screen-answer-reveal .staged-players-list.count-few,
#screen-answer-reveal .staged-players-list:not(.count-mid):not(.count-many) {
  gap: clamp(12px, 1.8vh, 22px) !important;
}

#screen-answer-reveal .staged-players-list.count-few .staged-player-card,
#screen-answer-reveal .staged-players-list:not(.count-mid):not(.count-many) .staged-player-card {
  flex: 0 0 auto !important;
  min-height: clamp(82px, 10.5vh, 108px) !important;
  padding: clamp(10px, 1.4vh, 18px) clamp(22px, 2.5vw, 38px) !important;
  border-radius: 20px !important;
  border-width: 3.5px !important;
  box-shadow: 0 6px 0 #181824, 0 10px 20px rgba(0, 0, 0, 0.35) !important;
}

#screen-answer-reveal .staged-players-list.count-few .staged-player-avatar,
#screen-answer-reveal .staged-players-list:not(.count-mid):not(.count-many) .staged-player-avatar {
  font-size: clamp(2.4rem, 4.2vh, 3.2rem) !important;
  margin-right: 22px !important;
}

#screen-answer-reveal .staged-players-list.count-few .staged-player-name,
#screen-answer-reveal .staged-players-list:not(.count-mid):not(.count-many) .staged-player-name {
  font-size: clamp(1.65rem, 2.6vh, 2.15rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  max-width: 520px !important;
}

#screen-answer-reveal .staged-players-list.count-few .staged-player-status,
#screen-answer-reveal .staged-players-list:not(.count-mid):not(.count-many) .staged-player-status {
  font-size: clamp(1.1rem, 1.7vh, 1.35rem) !important;
  font-weight: 800 !important;
  margin-top: 4px !important;
}

#screen-answer-reveal .staged-players-list.count-few .staged-player-points,
#screen-answer-reveal .staged-players-list:not(.count-mid):not(.count-many) .staged-player-points {
  font-size: clamp(2.3rem, 3.6vh, 3.1rem) !important;
  font-weight: 900 !important;
}

#screen-answer-reveal .staged-players-list.count-few .fastest-badge,
#screen-answer-reveal .staged-players-list:not(.count-mid):not(.count-many) .fastest-badge {
  font-size: clamp(0.92rem, 1.4vh, 1.18rem) !important;
  padding: 4px 14px !important;
  border-width: 2.5px !important;
}

/* ── TIER 2: 5–7 graczy (count-mid) – Zrównoważone, czytelne karty ── */
#screen-answer-reveal .staged-players-list.count-mid {
  gap: clamp(8px, 1.2vh, 14px) !important;
}

#screen-answer-reveal .staged-players-list.count-mid .staged-player-card {
  flex: 0 0 auto !important;
  min-height: clamp(62px, 7.8vh, 76px) !important;
  padding: clamp(8px, 1.1vh, 12px) clamp(18px, 2vw, 30px) !important;
  border-radius: 16px !important;
  border-width: 3px !important;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.3) !important;
}

#screen-answer-reveal .staged-players-list.count-mid .staged-player-avatar {
  font-size: clamp(1.9rem, 3.2vh, 2.5rem) !important;
  margin-right: 18px !important;
}

#screen-answer-reveal .staged-players-list.count-mid .staged-player-name {
  font-size: clamp(1.35rem, 2.1vh, 1.7rem) !important;
  font-weight: 900 !important;
  max-width: 460px !important;
}

#screen-answer-reveal .staged-players-list.count-mid .staged-player-status {
  font-size: clamp(0.92rem, 1.35vh, 1.12rem) !important;
  font-weight: 800 !important;
  margin-top: 2px !important;
}

#screen-answer-reveal .staged-players-list.count-mid .staged-player-points {
  font-size: clamp(1.8rem, 2.8vh, 2.3rem) !important;
  font-weight: 900 !important;
}

#screen-answer-reveal .staged-players-list.count-mid .fastest-badge {
  font-size: clamp(0.82rem, 1.2vh, 1.0rem) !important;
  padding: 3px 12px !important;
}

/* ── TIER 3: 8–10 graczy (count-many) – Wszystkie 8-10 w 1 kolumnie bez scrolla ── */
#screen-answer-reveal .staged-players-list.count-many {
  gap: clamp(5px, 0.7vh, 8px) !important;
}

#screen-answer-reveal .staged-players-list.count-many .staged-player-card {
  flex: 0 0 auto !important;
  min-height: clamp(48px, 5.8vh, 58px) !important;
  padding: clamp(5px, 0.7vh, 8px) clamp(14px, 1.6vw, 24px) !important;
  border-radius: 14px !important;
  border-width: 2.5px !important;
  box-shadow: 0 4px 0 #181824 !important;
}

#screen-answer-reveal .staged-players-list.count-many .staged-player-avatar {
  font-size: clamp(1.6rem, 2.5vh, 2.0rem) !important;
  margin-right: 14px !important;
}

#screen-answer-reveal .staged-players-list.count-many .staged-player-name {
  font-size: clamp(1.18rem, 1.75vh, 1.4rem) !important;
  font-weight: 900 !important;
  max-width: 400px !important;
}

#screen-answer-reveal .staged-players-list.count-many .staged-player-status {
  font-size: clamp(0.84rem, 1.2vh, 0.98rem) !important;
  font-weight: 800 !important;
  margin-top: 1px !important;
}

#screen-answer-reveal .staged-players-list.count-many .staged-player-points {
  font-size: clamp(1.45rem, 2.2vh, 1.85rem) !important;
  font-weight: 900 !important;
}

#screen-answer-reveal .staged-players-list.count-many .fastest-badge {
  font-size: clamp(0.75rem, 1.05vh, 0.88rem) !important;
  padding: 2px 10px !important;
}

/* ── Neonowe, wyraziste punkty i kolory rozstrzygnięć ── */
#screen-answer-reveal .staged-player-points {
  font-family: var(--font-display) !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: right !important;
}

#screen-answer-reveal .staged-player-card.correct .staged-player-points,
#screen-answer-reveal .staged-player-points.winner,
#screen-answer-reveal .staged-player-points.correct {
  color: #2ed573 !important;
  text-shadow: 0 0 16px rgba(46, 213, 115, 0.75), 2px 2px 0 #181824 !important;
}

#screen-answer-reveal .staged-player-card.fastest-winner .staged-player-points {
  color: #181824 !important;
  text-shadow: none !important;
}

#screen-answer-reveal .staged-player-card.wrong .staged-player-points,
#screen-answer-reveal .staged-player-points.wrong {
  color: #ff6b81 !important;
  text-shadow: 1.5px 1.5px 0 #181824 !important;
}

#screen-answer-reveal .staged-player-card.minority .staged-player-points {
  color: #c084fc !important;
  text-shadow: 0 0 14px rgba(192, 132, 252, 0.6), 2px 2px 0 #181824 !important;
}

#screen-answer-reveal .staged-player-card.tie .staged-player-points {
  color: #38bdf8 !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.6), 2px 2px 0 #181824 !important;
}

/* ── Większość Rządzi: okazałe karty obozów (staged-camp-card) w 1 kolumnie ── */
#screen-answer-reveal .staged-camp-card {
  flex: 0 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: clamp(10px, 1.4vh, 18px) clamp(16px, 1.8vw, 28px) !important;
  border-radius: 20px !important;
  margin-bottom: clamp(6px, 1vh, 12px) !important;
}

#screen-answer-reveal .staged-camp-badge {
  font-size: clamp(0.95rem, 1.4vh, 1.25rem) !important;
  padding: 6px 16px !important;
  font-weight: 900 !important;
}

#screen-answer-reveal .staged-camp-metric {
  padding: 4px 16px !important;
}

#screen-answer-reveal .camp-pct-value {
  font-size: clamp(1.4rem, 2.3vh, 1.9rem) !important;
  font-weight: 900 !important;
}

#screen-answer-reveal .camp-pct-votes {
  font-size: clamp(0.95rem, 1.4vh, 1.2rem) !important;
  font-weight: 800 !important;
}

#screen-answer-reveal .camp-letter {
  font-size: clamp(1.1rem, 1.6vh, 1.4rem) !important;
  padding: 2px 10px !important;
}

#screen-answer-reveal .camp-opt-text {
  font-size: clamp(1.15rem, 1.8vh, 1.55rem) !important;
  font-weight: 800 !important;
}

#screen-answer-reveal .staged-camp-pts {
  font-size: clamp(1.3rem, 2.2vh, 1.85rem) !important;
  font-weight: 900 !important;
}

#screen-answer-reveal .staged-camp-member {
  font-size: clamp(1rem, 1.5vh, 1.3rem) !important;
  padding: 6px 16px !important;
  font-weight: 800 !important;
}

#screen-answer-reveal .staged-camp-member-avatar {
  font-size: 1.35em !important;
}

#screen-answer-reveal .staged-camp-member-name {
  max-width: 240px !important;
  font-size: inherit !important;
}

#screen-answer-reveal .staged-camp-member-points {
  font-size: 1.2em !important;
  font-weight: 900 !important;
}

#screen-answer-reveal .next-round-wait-bar {
  flex: 0 0 auto !important;
  min-height: clamp(38px, 4.5vh, 48px) !important;
  padding: clamp(6px, 0.8vh, 10px) clamp(20px, 2.5vw, 32px) !important;
  font-size: clamp(1rem, 1.5vh, 1.25rem) !important;
  margin: 0 auto !important;
  font-weight: 800 !important;
}

/* 3. Ekrany wyników rundy i podsumowania konkurencji
   (Uwaga: TV używa CSS Transform 1920x1080 – layout jest bezwzględny, nie vh!)
   Nie nadpisujemy tu wymiaru screen – wystarczą ustawienia flex wewnątrz layoutu. */
#screen-round-results.active,
#screen-competition-end.active {
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.round-results-layout,
.comp-end-layout {
  margin: 0 auto !important;
  gap: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  padding: 22px 60px 16px !important;
}

#screen-round-results .screen-title {
  margin-bottom: clamp(0.2rem, 0.5vh, 0.5rem) !important;
  font-size: clamp(1.6rem, 2.8vh, 2.2rem) !important;
}

/* Dynamiczne gap w 2-kolumnowej siatce */
.scoreboard.grid-2col {
  gap: clamp(8px, 1.2vh, 16px) clamp(12px, 1.8vw, 24px) !important;
}

.scoreboard.grid-2col .scoreboard-row {
  min-height: clamp(64px, 8.5vh, 88px) !important;
  padding: clamp(8px, 1.1vh, 14px) clamp(14px, 1.8vw, 24px) !important;
}

/* 9-12 graczy: kompaktowe wiersze – responsywne override */
.scoreboard.compact-players .scoreboard-row {
  min-height: clamp(52px, 7vh, 68px) !important;
  padding: clamp(6px, 0.9vh, 10px) clamp(12px, 1.5vw, 18px) !important;
  gap: clamp(8px, 1.2vw, 14px) !important;
}
.scoreboard.compact-players .score-rank  { font-size: clamp(16px, 2.2vh, 24px) !important; min-width: clamp(38px, 4vw, 52px) !important; }
.scoreboard.compact-players .score-name  { font-size: clamp(14px, 1.8vh, 20px) !important; }
.scoreboard.compact-players .score-time  { font-size: clamp(12px, 1.5vh, 17px) !important; }
.scoreboard.compact-players .score-points { font-size: clamp(16px, 2.1vh, 24px) !important; min-width: clamp(80px, 9vw, 115px) !important; }
.scoreboard.compact-players .score-gain-pill { font-size: clamp(14px, 1.8vh, 18px) !important; padding: 3px 10px !important; }

/* 13+ graczy: gęste wiersze – responsywne override */
.scoreboard.dense-players .scoreboard-row {
  min-height: clamp(40px, 5.5vh, 56px) !important;
  padding: clamp(4px, 0.6vh, 7px) clamp(10px, 1.2vw, 14px) !important;
  gap: clamp(5px, 0.8vw, 9px) !important;
}
.scoreboard.dense-players .score-rank  { font-size: clamp(13px, 1.7vh, 20px) !important; min-width: clamp(30px, 3.2vw, 42px) !important; }
.scoreboard.dense-players .score-name  { font-size: clamp(11px, 1.4vh, 16px) !important; }
.scoreboard.dense-players .score-time  { font-size: clamp(10px, 1.2vh, 14px) !important; }
.scoreboard.dense-players .score-points { font-size: clamp(13px, 1.7vh, 18px) !important; min-width: clamp(62px, 7vw, 90px) !important; }
.scoreboard.dense-players .score-gain-pill { font-size: clamp(12px, 1.5vh, 15px) !important; padding: 2px 8px !important; }

.scoreboard .score-gain-pill,
#screen-round-results .score-gain-pill,
#tv-comp-scoreboard .score-gain-pill {
  font-size: clamp(16px, 2.2vh, 23px) !important;
  font-weight: 900 !important;
  padding: 4px 14px !important;
  border-radius: 999px !important;
  border-width: 2.5px !important;
  box-shadow: 0 0 14px rgba(46, 213, 115, 0.55), 2px 2px 0 #0e091b !important;
}

body.theme-arcade-3d .scoreboard.medium-players,
.scoreboard.medium-players {
  gap: clamp(8px, 1.2vh, 14px) !important;
}

body.theme-arcade-3d .scoreboard.medium-players .scoreboard-row,
body.theme-arcade-3d .scoreboard.medium-players .comp-prog-row,
.scoreboard.medium-players .scoreboard-row {
  min-height: clamp(62px, 8.2vh, 84px) !important;
  padding: clamp(0.4rem, 0.8vh, 0.75rem) clamp(1.2rem, 2vw, 2rem) !important;
  gap: clamp(0.8rem, 1.4vw, 1.6rem) !important;
  border-radius: clamp(14px, 1.8vh, 20px) !important;
}

body.theme-arcade-3d .scoreboard.medium-players .score-avatar,
.scoreboard.medium-players .score-avatar {
  width: clamp(2.6rem, 4.5vh, 3.4rem) !important;
  height: clamp(2.6rem, 4.5vh, 3.4rem) !important;
  min-width: clamp(2.6rem, 4.5vh, 3.4rem) !important;
  font-size: clamp(1.8rem, 3.2vh, 2.4rem) !important;
}

body.theme-arcade-3d .scoreboard.medium-players .score-rank,
.scoreboard.medium-players .score-rank {
  width: clamp(2.2rem, 3.6vh, 2.8rem) !important;
  height: clamp(2.2rem, 3.6vh, 2.8rem) !important;
  min-width: clamp(2.2rem, 3.6vh, 2.8rem) !important;
  font-size: clamp(1.2rem, 2vh, 1.6rem) !important;
}

body.theme-arcade-3d .scoreboard.medium-players .score-name,
.scoreboard.medium-players .score-name {
  font-size: clamp(1.2rem, 2.2vh, 1.7rem) !important;
}

body.theme-arcade-3d .scoreboard.medium-players .score-points,
.scoreboard.medium-players .score-points {
  font-size: clamp(1.4rem, 2.4vh, 1.9rem) !important;
}

/* ── Klasy pomocnicze sceny TV ───────────────────────────────────────────── */
.comp-nav-prev { left: 10px; }
.comp-nav-next { right: 10px; }

.category-floor-lanes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  opacity: 0.15;
}
.lane-divider {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #b6e84a, transparent);
}
.category-chooser-stage-char {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
}
.solo-board-footer-text {
  font-size: 22px;
  font-weight: 800;
  color: #4ade80;
}

.reveal-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 12px 24px;
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: #ffd23f;
  font-family: var(--font-mono);
}
.stat-lbl {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.podium-1 { order: 2; z-index: 3; }
.podium-2 { order: 1; z-index: 2; }
.podium-3 { order: 3; z-index: 1; }

/* ── DLA 2 GRACZY: Zwycięzca (1) ZAWSZE PO LEWEJ, Drugie miejsce (2) PO PRAWEJ ── */
.podium-wrap.podium-two-players .podium-1 {
  order: 1 !important;
}
.podium-wrap.podium-two-players .podium-2 {
  order: 2 !important;
}
.podium-wrap.podium-two-players {
  justify-content: center !important;
  gap: clamp(28px, 4vw, 56px) !important;
}
.podium-wrap.podium-two-players .podium-slot {
  flex: 0 1 250px !important;
  max-width: 260px !important;
}

/* ── DLA 1 GRACZA: Zwycięzca centralnie na środku ── */
.podium-wrap.podium-single-player .podium-1 {
  order: 1 !important;
}
.podium-wrap.podium-single-player {
  justify-content: center !important;
}
.podium-wrap.podium-single-player .podium-slot {
  flex: 0 1 280px !important;
  max-width: 300px !important;
}

.final-badges-revealed-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.revealed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.revealed-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.revealed-counter {
  font-size: 16px;
  font-weight: 900;
  color: #ffd23f;
}
.final-badges-revealed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-new-game {
  background: var(--gradient-lime);
  color: #090514;
}

.host-pill-icon { font-size: 18px; }
.host-pill-label { font-size: 14px; font-weight: 800; }
.ip-switcher-box { display: flex; align-items: center; gap: 8px; }
.ip-switcher-label { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.ip-switcher-select { background: rgba(0,0,0,0.5); color: #fff; border-radius: 8px; padding: 4px 8px; }

/* ── Pozostałe klasy HUD i przycisków ───────────────────────────────────── */
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-md { padding: 12px 24px; font-size: 17px; }

.tv-hud-canvas { width: 100%; height: 100%; }
.audio-wave-anim { display: inline-flex; align-items: center; gap: 4px; }
.audio-label { font-size: 15px; font-weight: 700; color: #ffd23f; }
/* ── Centralny Buzzer Teleturniejowy Jackbox na Scenie TV ──────────────── */
.studio-center-buzzer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 16px auto;
}
.buzzer-electric-sparks {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 10;
}
.spark {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: #ffd23f;
  filter: drop-shadow(2px 2px 0 #181824);
  animation: sparkComicJitter 0.7s infinite alternate ease-in-out;
}
.spark-1 { top: -20px; left: 10%; animation-delay: 0s; transform: rotate(-15deg); }
.spark-2 { top: -16px; right: 10%; animation-delay: 0.18s; transform: rotate(18deg); }
.spark-3 { bottom: -12px; left: 14%; animation-delay: 0.36s; transform: rotate(-22deg); }
.spark-4 { bottom: -10px; right: 14%; animation-delay: 0.54s; transform: rotate(14deg); }

@keyframes sparkComicJitter {
  0% { transform: scale(0.85) rotate(-10deg); }
  50% { transform: scale(1.2) rotate(12deg); }
  100% { transform: scale(1) rotate(-5deg); }
}

.studio-3d-dome-buzzer {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dome-cap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ff4757;
  border: 4.5px solid #181824;
  box-shadow: 0 10px 0 #181824, inset 0 8px 0 rgba(255, 255, 255, 0.35), inset 0 -10px 0 #c0392b;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.studio-center-buzzer-wrap.buzzed .dome-cap,
.studio-3d-dome-buzzer:active .dome-cap {
  transform: translateY(8px);
  box-shadow: 0 2px 0 #181824, inset 0 4px 0 rgba(255, 255, 255, 0.2), inset 0 -4px 0 #c0392b;
}
.dome-ring {
  position: absolute;
  z-index: 1;
  inset: -8px;
  border-radius: 50%;
  background: #ffd23f;
  border: 3.5px solid #181824;
  box-shadow: 0 6px 0 #181824;
}
.dome-base {
  position: absolute;
  z-index: 0;
  bottom: -20px;
  left: 5%;
  width: 90%;
  height: 38px;
  background: #8b5a2b;
  background-image: repeating-linear-gradient(90deg, #8b5a2b 0, #8b5a2b 20px, #7a4e24 20px, #7a4e24 40px);
  border: 4px solid #181824;
  border-radius: 16px;
  box-shadow: 0 8px 0 #0e091b;
}
.option-colors { display: flex; gap: 8px; }
.pixel-hint-text { font-size: 18px; color: rgba(255, 255, 255, 0.85); font-weight: 700; }
.fam-tv-icon { font-size: 28px; }
.fam-tv-title { font-size: 22px; font-weight: 800; color: #ffffff; }
.tv-players-hud-grid { display: flex; flex-direction: column; gap: 10px; }
.tv-footer-code-wrap { display: flex; align-items: center; gap: 8px; }
.tv-footer-code-lbl { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.tv-footer-code-val { font-size: 24px; font-weight: 900; color: #ffd23f; font-family: var(--font-mono); }
.tv-footer-hint { font-size: 16px; color: rgba(255, 255, 255, 0.8); }
.tv-footer-system-info { display: flex; align-items: center; gap: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   STYLIZOWANA RAMKA AWATARÓW W MOTYWIE JACKBOX PARTY (TV)
   ═══════════════════════════════════════════════════════════════════════════ */
.avatar-frame,
img.avatar-render-img.avatar-frame {
  border: 3.5px solid #181824;
  border-radius: 18px;
  box-shadow: 0 4px 0 #181824;
  background: #24143a;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* W lobby na podestach */
.lobby-char-figure img.avatar-render-img,
.lobby-stage-char-wrap img.avatar-render-img {
  width: clamp(100px, 14vw, 150px);
  height: clamp(100px, 14vw, 150px);
  border: 4px solid #181824;
  border-radius: 24px;
  box-shadow: 0 6px 0 #181824, 0 10px 24px rgba(0, 0, 0, 0.45);
  background: #24143a;
  object-fit: cover;
}

/* Na podium końcowym */
.podium-char-figure img.avatar-render-img,
.podium-char-img {
  width: clamp(90px, 12vw, 140px);
  height: clamp(90px, 12vw, 140px);
  border: 4px solid #181824;
  border-radius: 22px;
  box-shadow: 0 6px 0 #181824, 0 8px 20px rgba(0, 0, 0, 0.4);
  background: #24143a;
  object-fit: cover;
}

/* Na belkach bocznych i kartach graczy w quizie */
.stage-player-podium .card-avatar-wrap img.avatar-render-img,
.stage-player-podium .avatar-render-img {
  width: clamp(38px, 4.5vh, 52px);
  height: clamp(38px, 4.5vh, 52px);
  border: 2.5px solid #181824;
  border-radius: 12px;
  box-shadow: 0 3px 0 #181824;
  background: #24143a;
  object-fit: cover;
}

/* Drobne żetony / kropki graczy */
.token img.avatar-render-img,
.chip img.avatar-render-img,
.answer-dot img.avatar-render-img {
  border: 2px solid #181824;
  border-radius: 8px;
  box-shadow: 0 2px 0 #181824;
}

/* ── NATYWNE NAKŁADKI MOBILNE (Poza wirtualnym kadrem, 1:1 z pikselami ekranu) ── */

/* 1. Nakładka obrotu ekranu na bok (Landscape Rotator) */
.tv-landscape-prompt-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999999 !important;
  background: rgba(18, 13, 38, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.tv-landscape-prompt-overlay.active {
  display: flex !important;
}

/* W orientacji poziomej nakładka jest BEZWZGLĘDNIE ukrywana przez silnik CSS */
@media (orientation: landscape), (min-aspect-ratio: 1/1) {
  .tv-landscape-prompt-overlay,
  .tv-landscape-prompt-overlay.active {
    display: none !important;
  }
}

.tv-landscape-prompt-box {
  background: #24143a;
  border: 4px solid #181824;
  border-radius: 28px;
  box-shadow: 8px 8px 0 #0e091b, 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.tv-landscape-phone-icon {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #341f54;
  border: 3.5px solid #181824;
  border-radius: 22px;
  box-shadow: 4px 4px 0 #181824;
}

.tv-landscape-phone-icon .phone-anim {
  font-size: 2.8rem;
  animation: phoneRotateAnim 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  transform-origin: center center;
}

@keyframes phoneRotateAnim {
  0%, 15% { transform: rotate(0deg); }
  45%, 75% { transform: rotate(90deg); }
  90%, 100% { transform: rotate(0deg); }
}

.tv-landscape-phone-icon .rotate-arrow {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1.4rem;
  background: #ffca28;
  border: 2px solid #181824;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #181824;
  animation: spinSlow 4s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tv-landscape-title {
  margin: 0;
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffca28;
  text-shadow: 0 2px 0 #181824;
  letter-spacing: 0.5px;
}

.tv-landscape-desc {
  margin: 0;
  font-size: 1.0rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.tv-landscape-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.25);
  border: 2px solid #6c5ce7;
  color: #a29bfe;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.tv-landscape-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.tv-landscape-actions .btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* 2. Baner / Selektor trybu stołowego na telefonie i tablecie */
.tv-mobile-warning-banner {
  position: fixed !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 28px) !important;
  max-width: 540px !important;
  z-index: 99999998 !important;
  display: none;
  justify-content: center;
  animation: slideDownMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownMobile {
  from { transform: translate(-50%, -40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.tv-mobile-warning-box {
  background: #24143a !important;
  border: 3.5px solid #181824 !important;
  border-radius: 22px !important;
  box-shadow: 6px 6px 0 #0e091b, 0 14px 28px rgba(0, 0, 0, 0.5) !important;
  padding: 20px 24px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

.tv-mobile-warning-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.tv-mobile-warning-icon {
  font-size: 2.2rem !important;
  background: #361f58 !important;
  border: 2px solid #181824 !important;
  border-radius: 14px !important;
  padding: 6px 10px !important;
  box-shadow: 2px 2px 0 #181824 !important;
}

.tv-mobile-warning-title {
  margin: 0 !important;
  font-family: var(--font-display), 'Outfit', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: #ffd23f !important;
  text-shadow: 0 2px 0 #181824 !important;
}

.tv-mobile-warning-subtitle {
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  display: block !important;
}

.tv-mobile-warning-desc {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  color: #e2e8f0 !important;
}

.tv-mobile-warning-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.tv-mobile-warning-actions .btn {
  flex: 1 !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  border: 2.5px solid #181824 !important;
  box-shadow: 0 4px 0 #181824 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none !important;
}

/* 3. Pływający baner odblokowania audio */
.tv-audio-unlock-banner {
  position: fixed !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99999997 !important;
  cursor: pointer !important;
}

.tv-audio-unlock-box {
  background: #2a164d !important;
  border: 3px solid #181824 !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: 4px 4px 0 #181824, 0 8px 20px rgba(0,0,0,0.4) !important;
}

.tv-audio-unlock-msg {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.tv-audio-unlock-btn {
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEDYKOWANY UKŁAD STOŁOWY DLA SMARTFONA I TABLETU (.tv-mobile-layout)
   Aktywuje się TYLKO na urządzeniach mobilnych/tabletach — TV pozostaje w 100% oryginalne!
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Ukrywanie zbędnych dekoracji 3D i niepotrzebnych kart na małym ekranie */
body.tv-mobile-layout .tv-studio-lights,
body.tv-mobile-layout .studio-ceiling-truss,
body.tv-mobile-layout .studio-light-pillars,
body.tv-mobile-layout .studio-neon-beam,
body.tv-mobile-layout .studio-stage-apron,
body.tv-mobile-layout .studio-ambient-glow {
  display: none !important;
}

/* Na smartfonie ukrywamy kartę logowania telefonem (użytkownik już ma telefon w ręku) */
body.tv-mobile-layout #tv-host-login-card {
  display: none !important;
}

/* Zapobiegaj nakładaniu się przycisku 'Zaloguj Organizatora' na licznik zawodników */
body.tv-mobile-layout .lobby-broadcast-topbar .lobby-stats-zone {
  margin-right: 180px !important;
}

body.tv-mobile-layout .tv-top-actions-bar {
  top: 14px !important;
  right: 20px !important;
}

/* Ekrany mobilne wypełniają 100% szerokości rozszerzonego canvasu (zero czarnych pasów) */
body.tv-mobile-layout #tv-app-root .screen,
body.tv-mobile-layout #screen-lobby.active,
body.tv-mobile-layout #screen-lobby {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 1080px !important;
  min-height: 1080px !important;
  max-height: 1080px !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 2. DEDYKOWANE PRZEPROJEKTOWANE LOBBY NA SMARTFON / TABLET (Tryb Stołowy / Tabletop) */
/* Pełne wykorzystanie przestrzeni panoramicznej: z lewej strony Pionowe Centrum Sterowania (Title, Info, Tryb, Wielki Start), z prawej Kiosk i Scena */
body.tv-mobile-layout #screen-lobby .lobby-stage-container {
  display: grid !important;
  grid-template-columns: 560px 1fr !important;
  grid-template-rows: auto 1fr !important;
  grid-template-areas: 
    "sidebar-top arena"
    "sidebar-bottom arena" !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 1080px !important;
  min-height: 1080px !important;
  max-height: 1080px !important;
  padding: 24px 28px !important;
  gap: 20px 24px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 70% 30%, #1e153b 0%, #120d26 70%), #120d26 !important;
}

/* LEWY PANEL - CZĘŚĆ GÓRNA: LOGO, STATUS, ZAWODNICY */
body.tv-mobile-layout #screen-lobby .lobby-broadcast-topbar {
  grid-area: sidebar-top !important;
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  padding: 20px 24px !important;
  background: rgba(26, 17, 54, 0.95) !important;
  border: 4px solid #181824 !important;
  border-radius: 28px !important;
  box-shadow: 8px 8px 0 #0e091b !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

body.tv-mobile-layout #screen-lobby .lobby-brand-zone {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

body.tv-mobile-layout #screen-lobby .game-title {
  font-size: 38px !important;
  font-weight: 900 !important;
  color: #ffca28 !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
}

body.tv-mobile-layout #screen-lobby .lobby-show-badge {
  font-size: 14px !important;
  font-weight: 900 !important;
  padding: 4px 12px !important;
  background: #e11d48 !important;
  border-radius: 999px !important;
}

body.tv-mobile-layout #screen-lobby .lobby-status-pill {
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  background: rgba(14, 9, 27, 0.65) !important;
  border: 2px solid rgba(255, 202, 40, 0.3) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.tv-mobile-layout #screen-lobby .status-indicator-text {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #f1f5f9 !important;
  white-space: normal !important;
  line-height: 1.3 !important;
}

body.tv-mobile-layout #screen-lobby .lobby-stats-zone {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
  gap: 12px !important;
}

body.tv-mobile-layout #screen-lobby .lobby-host-pill {
  flex: 1 !important;
  font-size: 16px !important;
  padding: 8px 14px !important;
  border-radius: 14px !important;
  background: rgba(255, 202, 40, 0.15) !important;
  border: 2px solid #ffca28 !important;
  color: #ffca28 !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.tv-mobile-layout #screen-lobby .players-counter-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background: #ffca28 !important;
  border: 3px solid #181824 !important;
  border-radius: 14px !important;
  box-shadow: 4px 4px 0 #0e091b !important;
}

body.tv-mobile-layout #screen-lobby .counter-label {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #181824 !important;
}

body.tv-mobile-layout #screen-lobby .players-count-badge {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #181824 !important;
}

body.tv-mobile-layout #screen-lobby .counter-max {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #181824 !important;
}

/* LEWY PANEL - CZĘŚĆ DOLNA: STEROWANIE, TRYB GRY I WIELKI PRZYCISK START */
body.tv-mobile-layout #screen-lobby .lobby-broadcast-bottombar {
  grid-area: sidebar-bottom !important;
  width: 100% !important;
  height: 100% !important;
  min-height: unset !important;
  max-height: unset !important;
  background: rgba(26, 17, 54, 0.95) !important;
  border: 4px solid #181824 !important;
  border-radius: 28px !important;
  padding: 22px 24px !important;
  box-shadow: 8px 8px 0 #0e091b !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  gap: 16px !important;
}

body.tv-mobile-layout #screen-lobby .host-control-banner {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  background: rgba(14, 9, 27, 0.6) !important;
  border: 2px solid rgba(255, 202, 40, 0.3) !important;
  border-radius: 16px !important;
}

body.tv-mobile-layout #screen-lobby .host-status-main {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #ffca28 !important;
  display: block !important;
}

body.tv-mobile-layout #screen-lobby .host-status-sub {
  font-size: 13px !important;
  color: #cbd5e1 !important;
  display: block !important;
  margin-top: 2px !important;
}

body.tv-mobile-layout #screen-lobby .lobby-control-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.tv-mobile-layout #screen-lobby .mode-panel-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

body.tv-mobile-layout #screen-lobby .mode-title {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #cbd5e1 !important;
}

body.tv-mobile-layout #screen-lobby .mode-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

body.tv-mobile-layout #screen-lobby .mode-btn {
  font-size: 18px !important;
  font-weight: 800 !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  text-align: left !important;
  width: 100% !important;
  border: 3px solid #181824 !important;
  background: #24143a !important;
  color: #ffffff !important;
}

body.tv-mobile-layout #screen-lobby .mode-btn.active {
  background: #ffca28 !important;
  color: #181824 !important;
  box-shadow: 4px 4px 0 #0e091b !important;
}

body.tv-mobile-layout #screen-lobby .lobby-start-box {
  width: 100% !important;
  margin-top: auto !important;
}

body.tv-mobile-layout #screen-lobby .btn-start[style*="display: none"],
body.tv-mobile-layout #screen-lobby .btn-start[style*="display:none"],
body.tv-mobile-layout #screen-lobby .waiting-msg[style*="display: none"],
body.tv-mobile-layout #screen-lobby .waiting-msg[style*="display:none"] {
  display: none !important;
}

body.tv-mobile-layout #screen-lobby .btn-start {
  width: 100% !important;
  height: 95px !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  padding: 16px 20px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffca28 0%, #ff9800 100%) !important;
  color: #181824 !important;
  border: 4px solid #181824 !important;
  box-shadow: 0 8px 0 #b38600, 6px 6px 0 #0e091b !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

body.tv-mobile-layout #screen-lobby .waiting-msg {
  width: 100% !important;
  height: 80px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(14, 9, 27, 0.7) !important;
  border: 2.5px dashed rgba(255, 202, 40, 0.4) !important;
  color: #ffca28 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* PRAWA STRONA: ARENA GŁÓWNA (KIOSK DOŁĄCZANIA + SCENA ZAWODNIKÓW) */
body.tv-mobile-layout #screen-lobby .lobby-stage-arena {
  grid-area: arena !important;
  display: grid !important;
  grid-template-columns: 480px 1fr !important;
  align-items: stretch !important;
  gap: 24px !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* KIOSK DOŁĄCZANIA (KOD + QR) */
body.tv-mobile-layout #screen-lobby .lobby-join-terminal {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 480px !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 24px 28px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-around !important;
  background: linear-gradient(180deg, #251b4c 0%, #171035 100%) !important;
  border: 4px solid #181824 !important;
  border-radius: 28px !important;
  box-shadow: 10px 10px 0 #0e091b !important;
  overflow: hidden !important;
}

body.tv-mobile-layout #screen-lobby .join-headline {
  font-size: 38px !important;
  font-weight: 900 !important;
  color: #ffca28 !important;
  margin: 4px 0 !important;
  text-align: center !important;
}

body.tv-mobile-layout #screen-lobby .room-code-card {
  background: #ffca28 !important;
  border: 4px solid #181824 !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
  text-align: center !important;
  box-shadow: 6px 6px 0 #0e091b !important;
  margin: 4px 0 !important;
}

body.tv-mobile-layout #screen-lobby .room-code-letters {
  font-size: 96px !important;
  letter-spacing: 16px !important;
  font-weight: 900 !important;
  color: #181824 !important;
  line-height: 1.05 !important;
}

body.tv-mobile-layout #screen-lobby .qr-frame {
  width: 320px !important;
  height: 320px !important;
  min-width: 320px !important;
  min-height: 320px !important;
  padding: 12px !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 4px solid #181824 !important;
  box-shadow: 8px 8px 0 #0e091b !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

body.tv-mobile-layout #screen-lobby .join-url-pill {
  background: rgba(18, 13, 38, 0.85) !important;
  border: 3px solid #6c5ce7 !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.tv-mobile-layout #screen-lobby .join-url {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #a29bfe !important;
  word-break: break-all !important;
}

body.tv-mobile-layout #screen-lobby .join-steps-hint {
  display: none !important;
}

/* SCENA ZAWODNIKÓW (PO PRAWEJ) */
body.tv-mobile-layout #screen-lobby .lobby-stage-main {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  background: rgba(22, 14, 46, 0.75) !important;
  border: 4px solid #181824 !important;
  border-radius: 28px !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

body.tv-mobile-layout #screen-lobby .players-grid {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.tv-mobile-layout #screen-lobby .empty-stage-podiums-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Stan oczekiwania (gdy nikt jeszcze nie dołączył) — idealnie wyśrodkowany bez ucinania */
body.tv-mobile-layout #screen-lobby .stage-empty-placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 30px 24px !important;
  background: rgba(36, 20, 58, 0.85) !important;
  border: 4px dashed #ffca28 !important;
  border-radius: 24px !important;
  box-shadow: 6px 6px 0 #0e091b !important;
  width: 100% !important;
  max-width: 860px !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

body.tv-mobile-layout #screen-lobby .stage-empty-icon-ring {
  width: 80px !important;
  height: 80px !important;
  background: #ffca28 !important;
  border: 3.5px solid #181824 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 14px !important;
}

body.tv-mobile-layout #screen-lobby .stage-empty-icon {
  font-size: 42px !important;
}

body.tv-mobile-layout #screen-lobby .stage-empty-title {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #ffca28 !important;
  margin-bottom: 10px !important;
  letter-spacing: 0.5px !important;
  line-height: 1.25 !important;
}

body.tv-mobile-layout #screen-lobby .stage-empty-subtitle {
  font-size: 22px !important;
  color: #e2e8f0 !important;
  line-height: 1.35 !important;
  margin-bottom: 16px !important;
}

body.tv-mobile-layout #screen-lobby .stage-empty-hint-pill {
  font-size: 18px !important;
  font-weight: 800 !important;
  background: #e11d48 !important;
  color: #ffffff !important;
  padding: 6px 20px !important;
  border-radius: 999px !important;
  border: 2px solid #181824 !important;
}

/* Karty graczy na smartfonie/tablecie w widoku stołowym */
body.tv-mobile-layout #screen-lobby .empty-podium-slot.occupied.player-card {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 330px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(42, 27, 78, 0.95) !important;
  border: 4px solid #181824 !important;
  border-radius: 24px !important;
  box-shadow: 6px 6px 0 #0e091b !important;
  padding: 12px 8px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

body.tv-mobile-layout #screen-lobby .podium-spotlight-beam {
  display: none !important;
}

body.tv-mobile-layout #screen-lobby .podium-role-badge {
  font-size: 13px !important;
  padding: 3px 10px !important;
  margin-bottom: 4px !important;
}

body.tv-mobile-layout #screen-lobby .lobby-stage-char-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  width: 100% !important;
}

body.tv-mobile-layout #screen-lobby .lobby-char-name-badge {
  font-size: 22px !important;
  font-weight: 900 !important;
  padding: 4px 12px !important;
  border-radius: 12px !important;
  border: 3px solid #181824 !important;
  margin-bottom: 6px !important;
  max-width: 175px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.tv-mobile-layout #screen-lobby .lobby-char-figure {
  width: 120px !important;
  height: 120px !important;
  font-size: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.tv-mobile-layout #screen-lobby .lobby-char-figure img.avatar-render-img {
  width: 105px !important;
  height: 105px !important;
  border-radius: 18px !important;
}

body.tv-mobile-layout #screen-lobby .empty-podium-base.occupied-base {
  width: 100% !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
  border: 2.5px solid #181824 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

body.tv-mobile-layout #screen-lobby .podium-base-light {
  display: none !important;
}

body.tv-mobile-layout #screen-lobby .podium-base-text {
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

/* 3. DEDYKOWANY EKRAN PYTAŃ NA SMARTFON / TABLET (Pełna szerokość, wyrazisty tekst) */
body.tv-mobile-layout #screen-question .studio-center-buzzer-wrap,
body.tv-mobile-layout #screen-question .buzzer-electric-sparks,
body.tv-mobile-layout #screen-question .tv-players-sidebar {
  display: none !important;
}

body.tv-mobile-layout #screen-question .question-topbar {
  height: 90px !important;
  padding: 0 40px !important;
}

body.tv-mobile-layout #screen-question .round-num {
  font-size: 48px !important;
}

body.tv-mobile-layout #screen-question .timer-number {
  font-size: 60px !important;
  font-weight: 900 !important;
}

body.tv-mobile-layout #screen-question .tv-hud-main-body {
  width: 100% !important;
  padding: 10px 40px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-around !important;
  height: calc(1080px - 140px) !important;
}

body.tv-mobile-layout #screen-question .tv-scene-zone {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

/* Wielkie, wyraziste pytanie */
body.tv-mobile-layout #screen-question .question-body {
  background: #ffca28 !important;
  border: 5px solid #181824 !important;
  border-radius: 24px !important;
  box-shadow: 8px 8px 0 #0e091b !important;
  padding: 24px 36px !important;
  min-height: 160px !important;
  text-align: center !important;
}

body.tv-mobile-layout #screen-question .question-text {
  font-size: 48px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  color: #181824 !important;
  margin: 0 !important;
}

/* Wyraziste kafelki A/B/C/D w układzie 2x2 */
body.tv-mobile-layout #screen-question .stage-answers-arena {
  width: 100% !important;
  margin-top: 14px !important;
}

body.tv-mobile-layout #screen-question .options-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  width: 100% !important;
}

body.tv-mobile-layout #screen-question .option-card {
  background: #24143a !important;
  border: 4.5px solid #181824 !important;
  border-radius: 20px !important;
  padding: 18px 24px !important;
  min-height: 110px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  box-shadow: 6px 6px 0 #0e091b !important;
}

body.tv-mobile-layout #screen-question .option-letter {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  font-size: 36px !important;
  font-weight: 900 !important;
  border-radius: 14px !important;
  border: 3.5px solid #181824 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.tv-mobile-layout #screen-question .option-text {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}







