/**
 * Vista base 820×400 (monitor-820.php). Requiere body.board-venue-820 + html.board-viewport-820.
 * Con board-viewport-scalable el JS escala el lienzo al tamaño de pantalla o resolución manual.
 */

html.board-viewport-820,
html.board-viewport-820 body {
  width: 820px;
  height: 400px;
  max-width: 820px;
  max-height: 400px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--bg, #000000);
  color: var(--text, #f3f4f6);
}

html.board-viewport-820.board-viewport-scalable {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
}

html.board-viewport-820.board-viewport-scalable body.board-venue-820 {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  display: block;
  transform: none;
}

html.board-viewport-820.board-viewport-scalable .monitor-scale-root {
  --ssb-design-vh: 4px;
  --monitor-club-rank-head-h: clamp(5.5rem, calc(var(--ssb-design-vh) * 26), 7.25rem);
  --monitor-club-rank-logo-size: min(5.5rem, calc(var(--ssb-design-vh) * 22), 131px);
  width: 820px;
  height: 400px;
  max-width: 820px;
  max-height: 400px;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

html.board-viewport-820.board-viewport-scalable .monitor-scale-root .monitor-kahoot__question,
html.board-viewport-820.board-viewport-scalable .monitor-scale-root .monitor-kahoot__question.is-explanation {
  font-size: clamp(1.45rem, calc(var(--ssb-design-vh) * 5.8), 2.05rem);
}

html.board-viewport-820.board-viewport-scalable .monitor-scale-root .monitor-kahoot__brand-title {
  font-size: clamp(2rem, calc(var(--ssb-design-vh) * 8), 2.75rem);
}

html.board-viewport-820.board-viewport-scalable .monitor-scale-root .monitor-kahoot__text {
  font-size: clamp(1.15rem, calc(var(--ssb-design-vh) * 3.8), 1.45rem);
}

html.board-viewport-820.board-viewport-scalable .monitor-scale-root > .board-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

html.board-viewport-820 {
  font-size: 14px;
}

body.board-venue-820 {
  /* Tema oscuro por defecto (coincide con monitor legacy) */
  --bg: #000000;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --monitor-header-bg: #000000;
  --monitor-header-text: #ffffff;
  --monitor-surface: #000000;
  --monitor-esponsor-logo-bg: #000000;
  --monitor-esponsor-column-bg: #000000;
  /* Encuentros (#board): variables --meet-* en monitor-820-partidos.css (no las toca el tema) */
  --meet-row-text: #f3f4f6;
  --meet-row-muted: #9ca3af;
  --meet-row-surface: #141414;
  --meet-row-border: #2a2a2e;
  --meet-row-height: 4.75rem;
  --meet-row-height-dobles: 5.5rem;
  --meet-row-logo-size: 3.4rem;
  --meet-row-name-font-size: 1.5rem;
  --meet-row-score-font-size: 1.52rem;
  /* Ancho fijo columna logos/vídeo (igual con y sin vídeo; no lo cambia el JS) */
  --board-820-logos-col-w: 260px; /* 200px + 30 % */
  --rank-card-logo-size: var(--meet-row-logo-size);
  --rank-tanteo-size: 2.65rem;
  --rank-tanteo-solo-size: 2.92rem;
  --rank-name-font-size: 1.12rem;
  --rank-heading-font-size: 0.92rem;
  --rank-pos-ch: 4.25ch;
  --rank-pos-w: 4.5ch;
  --rank-pos-box-size: var(--meet-row-logo-size);
  --rank-pos-box-radius: 6px;
  --rank-card-pad-y: 0.1rem;
  --rank-card-pad-x: 0.24rem;
  --rank-card-inner-gap: 0.24rem;
  --rank-scroll-gap: 0.18rem;
  --rank-scroll-padding: 0.12rem 0.18rem;
  --board-wrap-gap-row: 0.1rem;
  --board-wrap-gap-col: 0.26rem;
  --board-wrap-pad-block-start: 0;
  --board-820-header-band-h: 5.25rem;
  --fesba-red: #e30613;
  --fesba-yellow: #ffcd00;
  --fesba-blue: #006db6;
  --site-header-stack-h: var(--board-820-header-band-h);
  --board-820-logos-band-min-h: var(--board-820-header-band-h);
  --board-820-video-logos-band-min-h: var(--board-820-header-band-h);
  --board-820-band-logo-max-w: 98%;
  --board-820-band-logo-max-h: 96%;
  --board-esponsor-strip-logo-max: 98%;
  --monitor-club-rank-bg-base: #eef2f7;
  --monitor-club-rank-shell-bg: linear-gradient(
    168deg,
    #e8eef5 0%,
    #eef2f7 48%,
    #e5ecf4 100%
  );
  --monitor-club-rank-shell-border: rgba(59, 130, 246, 0.2);
  --monitor-club-rank-heading-border: rgba(59, 130, 246, 0.28);
  --monitor-club-rank-head-h: clamp(5.5rem, 26vh, 7.25rem);
  --monitor-club-rank-logo-size: min(5.5rem, 22vh, 16vw);
  --monitor-club-rank-card-bg: #ffffff;
  --rg-lateral-pull: 0px;
  --board-column-width: 100%;
  --board-max-width: calc(
    820px - 196px - var(--board-820-logos-col-w) - 0.44rem - var(--board-wrap-gap-col)
  );
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 400px;
  max-height: 400px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

body.board-venue-820 .banner-error {
  margin: 0.2rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  max-width: none;
}

body.board-venue-820 #mobile-rank-toolbar,
body.board-venue-820 .mobile-rank-backdrop {
  display: none !important;
}

body.board-venue-820.monitor-tema-oscuro,
body.board-venue-820[data-monitor-esponsor-fondo='negro'] {
  --monitor-club-rank-bg-base: #0f172a;
  --monitor-club-rank-shell-bg: linear-gradient(
    168deg,
    #111827 0%,
    #0f172a 50%,
    #131c2e 100%
  );
  --monitor-club-rank-shell-border: rgba(96, 165, 250, 0.26);
  --monitor-club-rank-heading-border: rgba(96, 165, 250, 0.34);
  --monitor-club-rank-card-bg: #1e293b;
}

body.board-venue-820 .site-header__mobile-logos {
  display: none !important;
}

body.board-venue-820 .board-wrap > .site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0.2rem 0;
  margin: 0;
  width: 100%;
  max-width: none;
  min-height: var(--site-header-stack-h, 5.25rem);
  height: var(--site-header-stack-h, 5.25rem);
  overflow: hidden;
  box-sizing: border-box;
  background: var(--monitor-header-bg, var(--bg));
  color: var(--monitor-header-text, var(--text));
  box-shadow: inset 0 -3px 0 0
    linear-gradient(90deg, var(--fesba-red) 0%, var(--fesba-yellow) 48%, var(--fesba-blue) 100%);
}

body.board-venue-820 .board-wrap > .site-header::before,
body.board-venue-820 .board-wrap > .site-header::after {
  display: none;
}

body.board-venue-820 .board-wrap > .site-header .title,
body.board-venue-820 .board-wrap > .site-header .title-btn,
body.board-venue-820 .board-wrap > .site-header .title__line {
  color: var(--monitor-header-text, var(--text));
}

body.board-venue-820 .site-header__820-plata,
body.board-venue-820 .site-header__820-enc-title,
body.board-venue-820 .site-header__820-enc-sub {
  color: var(--monitor-header-text, var(--text));
}

body.board-venue-820 .board-wrap > .site-header .title-btn:hover {
  background: color-mix(in srgb, var(--monitor-header-text, #fff) 8%, transparent);
}

body.board-venue-820 .board-wrap > .site-header > * {
  position: relative;
  z-index: 1;
}

body.board-venue-820 .board-wrap > .site-header .site-header__center--820 {
  flex: 1 1 auto;
  height: 100%;
  align-self: stretch;
}

body.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .title.title--lines-2 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
}

body.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .title.title--lines-2:not(:has(.title-btn)),
body.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .title.title--lines-2 .title-btn.title-btn--lines-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

body.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .title.title--lines-2 .title-btn.title-btn--lines-2 {
  margin: 0;
  padding: 0.06rem 0.12rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .title.title--lines-2 .title__line {
  display: block;
  text-align: center;
  white-space: nowrap;
  line-height: 1.05;
}

body.board-venue-820 .site-header__center--820 {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: stretch;
  gap: 0.35rem 0.5rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100%;
  height: 100%;
  padding: 0 0.28rem;
  box-sizing: border-box;
}

body.board-venue-820 .site-header__820-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.06rem;
}

body.board-venue-820 .site-header__820-col--vista {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: start;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: max-content;
  min-width: max-content;
  max-width: max-content;
  padding-right: 0.2rem;
}

body.board-venue-820 .site-header__820-col--vista > .site-header__820-vista {
  grid-row: 1;
  grid-column: 1;
}

body.board-venue-820 .site-header__820-vista-sizer {
  margin: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

body.board-venue-820 #monitor-vista-titulo {
  align-self: center;
}

body.board-venue-820 .site-header__820-col--torneo {
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

body.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .subtitle.subtitle--plata.site-header__820-plata,
body.board-venue-820 .site-header__820-vista.site-header__820-plata,
body.board-venue-820 .site-header__820-plata {
  margin: 0 !important;
  padding: 0;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
  white-space: nowrap;
}

body.board-venue-820 .site-header__820-enc-title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.board-venue-820 .site-header__820-torneo-title,
body.board-venue-820 .site-header__820-torneo-title.site-header__820-enc-title {
  font-size: 1.62rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.board-venue-820 .site-header__820-torneo-sub {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.board-venue-820 .site-header__820-enc-sub {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

body.board-venue-820 .site-header__820-enc-sub[hidden] {
  display: none !important;
}

body.board-venue-820.board-venue-desk-video-logos-in-header .site-header__center.site-header__center--820 {
  flex: 1 1 0;
  min-width: 0;
}

body.board-venue-820 .board-wrap {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0 0.22rem 0.14rem;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 641px) {
  /*
   * Cabecera fila 1; encuentros y panel publicidad (logos/vídeo) fila 2, misma altura.
   */
  body.board-venue-820.board-ranking-hidden.board-desktop-layout--rg .board-wrap {
    grid-template-columns: minmax(0, 1.85fr) var(--board-820-logos-col-w, 260px);
    grid-template-areas: none;
  }

  body.board-venue-820.board-ranking-hidden .board-wrap .board-rg-left-stack {
    display: none !important;
  }

  /* Sin ranking: 2 columnas — reasignar (antes seguían en col. 2/3 de la rejilla de 3) */
  body.board-venue-820.board-ranking-hidden .board-wrap > .site-header {
    grid-area: auto;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    z-index: 1;
  }

  body.board-venue-820.board-ranking-hidden .site-header__center--820 {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  body.board-venue-820.board-ranking-hidden .board-wrap .board-center-column {
    grid-area: auto;
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    width: 100%;
  }

  body.board-venue-820.board-ranking-hidden .board-wrap #board-desktop-logos {
    grid-area: auto;
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    z-index: 2;
  }

  /* Panel derecho desactivado: vistas a ancho completo */
  body.board-venue-820.monitor-panel-derecho-off.board-ranking-hidden.board-desktop-layout--rg .board-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  body.board-venue-820.monitor-panel-derecho-off.board-ranking-hidden .board-wrap > .site-header {
    grid-column: 1;
  }

  body.board-venue-820.monitor-panel-derecho-off.board-ranking-hidden .board-wrap .board-center-column {
    grid-column: 1;
  }

  body.board-venue-820.monitor-panel-derecho-off .board-wrap #board-desktop-logos {
    display: none !important;
  }

  body.board-venue-820.monitor-panel-derecho-off {
    --board-max-width: calc(
      820px - 0.44rem - var(--board-wrap-gap-col)
    );
  }

  body.board-venue-820.board-desktop-layout--rg .board-wrap {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr) var(--board-820-logos-col-w, 260px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: none;
    column-gap: var(--board-wrap-gap-col);
    row-gap: 0;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;
    height: 100%;
  }

  body.board-venue-820 .board-wrap .board-rg-marcadores-band {
    display: contents;
  }

  body.board-venue-820 .board-wrap > .site-header {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: stretch;
    margin: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack {
    grid-column: 1;
    grid-row: 1 / -1;
    margin: 0 !important;
    padding: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
  }

  body.board-venue-820 .board-wrap .board-center-column {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  body.board-venue-820 .board-wrap #board,
  body.board-venue-820 .board-wrap .board-slot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos {
    grid-column: 3;
    grid-row: 2;
    width: var(--board-820-logos-col-w, 260px);
    max-width: var(--board-820-logos-col-w, 260px);
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general.rank-general-shell {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack .rank-general__heading {
    padding: 0.14rem 0.3rem 0.1rem;
    font-size: var(--rank-heading-font-size);
    min-height: 0;
    margin: 0;
    border-bottom-width: 1px;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general-inner.rank-general__inner {
    padding: 0.1rem 0.16rem;
    padding-top: 0.1rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-pair {
    gap: 0.1rem;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card-row {
    padding: 0.04rem 0.06rem;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card {
    padding: 0.04rem 0.14rem 0.04rem 0;
    gap: var(--rank-card-inner-gap);
  }

  /* Logos ranking = mismos tamaño y estilo que .cell-logo en encuentros */
  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card__logo,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--meet-row-logo-size);
    height: var(--meet-row-logo-size);
    min-width: var(--meet-row-logo-size);
    min-height: var(--meet-row-logo-size);
    max-width: var(--meet-row-logo-size);
    max-height: var(--meet-row-logo-size);
    padding: 0;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card__logo-img,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card__logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card__logo--empty,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card__logo--empty {
    opacity: 0.5;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card-row .rank-card__pos-wrap {
    font-size: 0.98rem;
    flex: 0 0 var(--rank-pos-box-size);
    width: var(--rank-pos-box-size);
    min-width: var(--rank-pos-box-size);
    max-width: var(--rank-pos-box-size);
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: center;
    justify-content: center;
    margin-right: 0;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card__pos,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card__pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--rank-pos-box-size);
    height: var(--rank-pos-box-size);
    min-width: var(--rank-pos-box-size);
    min-height: var(--rank-pos-box-size);
    max-width: var(--rank-pos-box-size);
    max-height: var(--rank-pos-box-size);
    padding: 0.06rem;
    background: #fff;
    border-radius: var(--rank-pos-box-radius);
    color: var(--accent);
    line-height: 1;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card__pos--shared,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card__pos--shared {
    font-size: 0.82em;
    letter-spacing: -0.02em;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card__name {
    font-size: var(--rank-name-font-size);
    line-height: 1.12;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card__scores {
    gap: 0.22rem;
  }

  /* Centro: fila 2; encuentros compactos con scroll */
  body.board-venue-820 .board-wrap .board-center-column {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    gap: 0;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body.board-venue-820 .board-wrap .board-head,
  body.board-venue-820 .board-wrap .round-switch {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.board-venue-820 .board-wrap .board-slot {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body.board-venue-820 .board-wrap #board {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: none;
  }

  /* Encuentros: altura mínima por fila (paneles de resultado apilados) */
  body.board-venue-820.board-venue #board.board.board--partidos .row {
    height: auto !important;
    min-height: var(--meet-row-height) !important;
    max-height: none !important;
    padding: 0.14rem 0.28rem !important;
    gap: 0.28rem 0.32rem !important;
    align-items: center;
    overflow: visible !important;
  }

  body.board-venue-820.board-venue #board.board.board--partidos .row.row--dobles {
    min-height: var(--meet-row-height-dobles) !important;
  }

  body.board-venue-820.board-venue #board.board .cell-name,
  body.board-venue-820.board-venue .board-wrap #board .cell-name {
    font-size: var(--meet-row-name-font-size) !important;
    line-height: 1.22 !important;
  }

  body.board-venue-820.board-venue #board.board .cell-logo,
  body.board-venue-820.board-venue .board-wrap #board .cell-logo {
    width: var(--meet-row-logo-size) !important;
    height: var(--meet-row-logo-size) !important;
    min-width: var(--meet-row-logo-size) !important;
    min-height: var(--meet-row-logo-size) !important;
    max-width: var(--meet-row-logo-size) !important;
    max-height: var(--meet-row-logo-size) !important;
    flex: 0 0 var(--meet-row-logo-size) !important;
    border-radius: 6px;
  }

  body.board-venue-820.board-venue #board.board .cell-logo img,
  body.board-venue-820 .board-wrap #board .cell-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body.board-venue-820.board-venue #board.board .score,
  body.board-venue-820 .board-wrap #board .score {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--meet-row-logo-size) !important;
    height: var(--meet-row-logo-size) !important;
    min-width: var(--meet-row-logo-size) !important;
    min-height: var(--meet-row-logo-size) !important;
    max-width: var(--meet-row-logo-size) !important;
    max-height: var(--meet-row-logo-size) !important;
    padding: 0 !important;
    font-size: var(--meet-row-score-font-size) !important;
    border-radius: 6px;
    line-height: 1;
  }

  body.board-venue-820.board-venue #board.board .score-pair,
  body.board-venue-820 .board-wrap #board .score-pair {
    gap: 0.28rem !important;
    padding: 0.08rem 0.12rem !important;
    align-items: center;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-card-row,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card-row {
    padding: 0.06rem 0.1rem;
  }

  /* Ranking clubs: columna derecha a altura completa (cabecera + encuentros) */
  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank {
    display: block !important;
    position: relative !important;
    grid-column: 3 !important;
    grid-row: 1 / -1 !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    background: var(--monitor-club-rank-shell-bg) !important;
    border-radius: 0;
    box-sizing: border-box;
    z-index: 3;
  }

  body.board-venue-820.board-ranking-hidden .board-wrap #board-desktop-logos.board-desktop-logos--show-rank {
    grid-column: 2 !important;
    grid-row: 1 / -1 !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__rank-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank .board-desktop-logos__rank-overlay {
    display: flex !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank .board-desktop-logos__strip,
  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank .board-desktop-logos__video-wrap,
  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank .board-desktop-logos__video-brand,
  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank .board-desktop-logos__curtain,
  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank .board-desktop-logos__strip-trio {
    display: none !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .rank-general-shell--logos-col {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    padding: 0;
    gap: 0;
    background: var(--monitor-club-rank-shell-bg);
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .rank-general-shell--logos-col .rank-general__heading {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.42rem 0.28rem 0.36rem;
    font-size: clamp(1.05rem, 3.4vh, 1.55rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--text);
    border-bottom: 1px solid var(--monitor-club-rank-heading-border);
    background: rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
  }

  body.board-venue-820.monitor-tema-oscuro
    .board-wrap
    #board-desktop-logos
    .rank-general-shell--logos-col
    .rank-general__heading,
  body.board-venue-820[data-monitor-esponsor-fondo='negro']
    .board-wrap
    #board-desktop-logos
    .rank-general-shell--logos-col
    .rank-general__heading {
    background: rgba(15, 23, 42, 0.22);
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner.rank-general__inner {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.14rem 0.16rem 0.18rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* Mismos fondos 1.º/2.º y penúltimo/último que #rank-general-inner */
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card-row--rank-top {
    background: linear-gradient(
      145deg,
      rgba(34, 197, 94, 0.16) 0%,
      rgba(22, 101, 52, 0.12) 100%
    );
    border-color: rgba(52, 211, 153, 0.45);
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card-row--rank-bottom {
    background: linear-gradient(
      145deg,
      rgba(248, 113, 113, 0.14) 0%,
      rgba(185, 28, 28, 0.12) 100%
    );
    border-color: rgba(248, 113, 113, 0.42);
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-pair {
    gap: 0.1rem;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card-row {
    padding: 0.04rem 0.06rem;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card {
    padding: 0.04rem 0.12rem 0.04rem 0;
    gap: var(--rank-card-inner-gap);
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card-row .rank-card__pos-wrap {
    font-size: 0.98rem;
    flex: 0 0 var(--rank-pos-box-size);
    width: var(--rank-pos-box-size);
    min-width: var(--rank-pos-box-size);
    max-width: var(--rank-pos-box-size);
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: center;
    justify-content: center;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card__name {
    font-size: var(--rank-name-font-size);
    line-height: 1.12;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-card__scores {
    gap: 0.22rem;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-tanteo,
  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-tanteo--solo,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-tanteo,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-tanteo--solo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: var(--rank-tanteo-size);
    min-height: var(--rank-tanteo-size);
    padding: 0.12rem 0.18rem;
    font-size: 1.22rem;
    line-height: 1;
    border-radius: 6px;
  }

  body.board-venue-820 .board-wrap .board-rg-left-stack #rank-general .rank-tanteo--solo,
  body.board-venue-820 .board-wrap #board-desktop-logos #rank-logos-col-inner .rank-tanteo--solo {
    min-width: var(--rank-tanteo-solo-size);
    font-size: 1.34rem;
    padding: 0.12rem 0.24rem;
  }

  /* Columna logos / vídeo: filas 1–2, altura completa */
  body.board-venue-820 .board-wrap #board-desktop-logos {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: none;
    gap: 0.12rem;
    overflow: hidden;
    justify-content: stretch;
    background: var(--monitor-esponsor-column-bg, #ffffff);
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--board-esponsor-strip-rows, 3), minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    align-content: stretch;
    gap: clamp(0.12rem, 0.55vw, 0.24rem);
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0.12rem 0.14rem;
    overflow: hidden;
  }

  /* 6 logos (2×3): ocupan el 100% de ancho y alto de cada celda */
  body.board-venue-820
    .board-wrap
    #board-desktop-logos:not(.board-desktop-logos--playing-video):not(.board-desktop-logos--show-rank)
    .board-desktop-logos__strip
    > .desktop-header-logo {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0.1rem 0.12rem !important;
    object-fit: contain;
    object-position: center center;
    background: var(--monitor-esponsor-logo-bg, transparent) !important;
    box-shadow: none !important;
    filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__brand-row {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    width: 100%;
    height: min(100%, 2.6rem);
    max-height: 2.6rem;
    column-gap: 0.05rem;
    row-gap: 0.04rem;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__brand-row > .desktop-header-logo {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    object-fit: contain;
    background: var(--monitor-esponsor-logo-bg, #ffffff) !important;
    box-shadow: none !important;
    border-radius: 0.2rem !important;
  }

  /* Patrocinadores desde img/esponsors/: rejilla 2 columnas */
  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__brand-row--esponsors {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(var(--board-esponsor-strip-rows, 3), minmax(0, 1fr)) !important;
    flex-wrap: unset !important;
    justify-content: unset;
    align-items: center;
    align-content: center;
    justify-items: center;
    width: 100%;
    height: auto;
    max-height: min(3rem, 48%);
    min-height: 0;
    column-gap: 0.06rem;
    row-gap: 0.05rem;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__brand-row--esponsors > .desktop-header-logo {
    flex: unset !important;
    grid-column: auto !important;
    grid-row: auto !important;
    max-width: min(94%, calc(48% + 0.5rem)) !important;
    max-height: min(1.25rem, 88%) !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--playing-video .board-desktop-logos__brand-row > .desktop-header-logo {
    max-width: 100% !important;
    max-height: 100% !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos:not(.board-desktop-logos--playing-video) .board-desktop-logos__video-wrap {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__video {
    max-height: 100%;
    border-radius: 4px;
  }

  /* Vídeo 820: logos arriba (máximo tamaño), vídeo abajo; sin logos en cabecera */
  body.board-venue-820 .site-header__desk-video-logos {
    display: none !important;
  }

  body.board-venue-820.board-venue-desk-video-logos-in-header.board-desktop-layout--rg .board-wrap > .site-header {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__strip-trio {
    display: none;
  }

  /*
   * Modo vídeo: columna publicidad a altura completa; franja logos = fila cabecera;
   * vídeo debajo, alineado con el panel de encuentros.
   */
  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--playing-video {
    --board-820-video-logos-band-h: var(--site-header-stack-h, 5.25rem);
    --board-820-video-offset-top: var(--board-820-video-logos-band-h);
    --board-820-video-band-h: calc(100% - var(--board-820-video-logos-band-h));
    display: block !important;
    position: relative !important;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
    grid-area: auto !important;
    grid-column: 3 !important;
    grid-row: 1 / -1 !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    background: var(--bg);
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Fondo de la franja de logos (misma altura que la cabecera) */
  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--playing-video:not(.board-desktop-logos--show-rank)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--board-820-video-logos-band-h, var(--site-header-stack-h, 5.25rem));
    min-height: var(--board-820-video-logos-band-h, var(--site-header-stack-h, 5.25rem));
    max-height: var(--board-820-video-logos-band-h, var(--site-header-stack-h, 5.25rem));
    background: var(--monitor-esponsor-column-bg, var(--bg));
    z-index: 0;
    pointer-events: none;
  }

  body.board-venue-820.board-ranking-hidden
    .board-wrap
    #board-desktop-logos.board-desktop-logos--playing-video {
    grid-column: 2 !important;
    grid-row: 1 / -1 !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--playing-video .board-desktop-logos__strip {
    display: none !important;
  }

  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--playing-video:not(.board-desktop-logos--show-rank)
    .board-desktop-logos__strip-trio {
    display: grid !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--board-820-video-logos-band-h, var(--site-header-stack-h, 5.25rem));
    min-height: var(--board-820-video-logos-band-h, var(--site-header-stack-h, 5.25rem));
    max-height: var(--board-820-video-logos-band-h, var(--site-header-stack-h, 5.25rem));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 0.06rem;
    padding: 0.08rem 0.1rem;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
    z-index: 2;
    overflow: hidden;
  }

  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--playing-video
    .board-desktop-logos__strip-trio
    > .desktop-header-logo {
    display: block !important;
    box-sizing: border-box !important;
    width: auto !important;
    height: auto !important;
    max-width: var(--board-820-band-logo-max-w, 98%) !important;
    max-height: var(--board-820-band-logo-max-h, 96%) !important;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 0 !important;
    object-fit: contain;
    object-position: center center;
    background: var(--monitor-esponsor-logo-bg, transparent) !important;
    box-shadow: none !important;
    filter: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--playing-video:not(.board-desktop-logos--show-rank)
    .board-desktop-logos__video-brand,
  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--playing-video:not(.board-desktop-logos--show-rank)
    .board-desktop-logos__rank-overlay {
    display: none !important;
  }

  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--show-rank.board-desktop-logos--playing-video
    .board-desktop-logos__rank-overlay {
    display: flex !important;
  }

  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--show-rank.board-desktop-logos--playing-video
    .board-desktop-logos__strip-trio,
  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--show-rank.board-desktop-logos--playing-video
    .board-desktop-logos__video-wrap,
  body.board-venue-820
    .board-wrap
    #board-desktop-logos.board-desktop-logos--show-rank.board-desktop-logos--playing-video
    .board-desktop-logos__video-brand {
    display: none !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--playing-video .board-desktop-logos__video-brand {
    display: none !important;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--playing-video .board-desktop-logos__video-wrap {
    position: absolute;
    top: var(--board-820-video-offset-top, var(--site-header-stack-h, 5.25rem));
    left: 0;
    right: 0;
    width: 100%;
    height: var(--board-820-video-band-h, calc(100% - var(--site-header-stack-h, 5.25rem)));
    max-height: var(--board-820-video-band-h, calc(100% - var(--site-header-stack-h, 5.25rem)));
    margin: 0;
    flex: none;
    order: unset;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
  }

  body.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--playing-video .board-desktop-logos__video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    object-position: center center;
    background: var(--bg);
    border-radius: 0;
    box-sizing: border-box;
  }
}

body.board-venue-820 .modal-box {
  max-height: calc(400px - 1.5rem);
  overflow-y: auto;
}

body.board-venue-820 .modal-box--config {
  max-width: min(780px, 96vw);
}

/* Spotlight 820: cortinilla lateral + 4 bloques a pantalla completa */
body.board-venue-820 .visitor-spotlight-row-wrap--curtain {
  overflow: hidden;
  background: #0f172a;
}

body.board-venue-820 .visitor-spotlight-stage--820 {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #fff);
  box-sizing: border-box;
}

body.board-venue-820 .visitor-spotlight-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 48%, #1e293b 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
}

body.board-venue-820 .visitor-spotlight-curtain--l {
  left: 0;
  transform: translateX(0);
  border-right: 2px solid rgba(255, 255, 255, 0.08);
}

body.board-venue-820 .visitor-spotlight-curtain--r {
  right: 0;
  transform: translateX(0);
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

body.board-venue-820 .visitor-spotlight-row-wrap--curtain-open .visitor-spotlight-curtain--l {
  transform: translateX(-100%);
}

body.board-venue-820 .visitor-spotlight-row-wrap--curtain-open .visitor-spotlight-curtain--r {
  transform: translateX(100%);
}

/* 4 bloques: club1 | panel1+panel2 | club2 */
body.board-venue-820 .visitor-spotlight-stage--820 > .row.row--spotlight-curtain {
  --spotlight-820-block: min(30vh, 28vw, 9.25rem);
  --spotlight-820-name-logo-gap: clamp(0.48rem, 1.75vh, 0.78rem);
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0 clamp(0.35rem, 1.2vw, 0.65rem);
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: var(--spotlight-820-name-logo-gap);
  align-content: center;
  justify-content: center;
  align-items: end;
  flex-wrap: nowrap;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  perspective: 1400px;
}

body.board-venue-820 .visitor-spotlight-stage--820 > .row.row--spotlight-curtain > * {
  order: unset;
}

body.board-venue-820 .visitor-spotlight-stage--820 .score-pair {
  display: contents;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-name--left {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: end;
  width: 100%;
  max-width: 100%;
  margin: 0;
  transform: none;
  transform-style: flat;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-logo--left {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  margin: 0;
  transform: none;
  transform-style: flat;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-name--right {
  grid-column: 4;
  grid-row: 1;
  justify-self: center;
  align-self: end;
  width: 100%;
  max-width: 100%;
  margin: 0;
  transform: none;
  transform-style: flat;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-logo--right {
  grid-column: 4;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  margin: 0;
  transform: none;
  transform-style: flat;
}

/* Fila 2: logos y paneles misma altura y eje vertical */
body.board-venue-820 .visitor-spotlight-stage--820 .score--1 {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  margin: 0;
  border-radius: 8px 0 0 8px;
}

body.board-venue-820 .visitor-spotlight-stage--820 .score--2 {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  margin: 0;
  border-radius: 0 8px 8px 0;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-logo {
  width: var(--spotlight-820-block) !important;
  height: var(--spotlight-820-block) !important;
  min-width: var(--spotlight-820-block) !important;
  min-height: var(--spotlight-820-block) !important;
  max-width: var(--spotlight-820-block) !important;
  max-height: var(--spotlight-820-block) !important;
  flex: 0 0 var(--spotlight-820-block) !important;
  border-radius: 8px;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-name {
  flex: 0 1 auto !important;
  display: block !important;
  font-size: min(7.5vw, 12vh, 2.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  text-align: center;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  white-space: normal !important;
}

body.board-venue-820 .visitor-spotlight-stage--820 .cell-name .cell-name__text {
  display: block;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
}

body.board-venue-820 .visitor-spotlight-stage--820 .score {
  width: var(--spotlight-820-block) !important;
  height: var(--spotlight-820-block) !important;
  min-width: var(--spotlight-820-block) !important;
  min-height: var(--spotlight-820-block) !important;
  max-width: var(--spotlight-820-block) !important;
  max-height: var(--spotlight-820-block) !important;
  padding: 0 !important;
  font-size: min(12vw, 24vh, 4rem) !important;
  font-weight: 800 !important;
  border-radius: 0;
  line-height: 1;
}

body.board-venue-820 .visitor-spotlight-row-wrap--curtain .score.score--panel-flip,
body.board-venue-820 .visitor-spotlight-row-wrap--curtain .score.score--panel-flip--rev {
  transform-style: preserve-3d;
}

/* Spotlight resultados nuevos: 3 columnas (J1 | sets | J2), tema fijo oscuro */
body.board-venue-820 .monitor-result-spotlight {
  --rs-bg: #141414;
  --rs-text: #f3f4f6;
  --rs-text-muted: #9ca3af;
  --rs-score-bg: #1f2937;
  --rs-score-win-bg: #2563eb;
  --rs-score-win-text: #ffffff;
  position: fixed;
  inset: 0;
  z-index: 100000;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  color: var(--rs-text);
}

body.board-venue-820 .monitor-result-spotlight:not([hidden]) {
  pointer-events: auto;
}

body.board-venue-820.monitor-result-spotlight-active .board-wrap .board-center-column {
  visibility: hidden;
}

body.board-venue-820 .monitor-result-spotlight__wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.board-venue-820 .monitor-result-spotlight__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rs-bg) !important;
  color: var(--rs-text) !important;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-result-spotlight__layout {
  --spotlight-player-logo: min(24vh, 20vw, 8.25rem);
  --spotlight-score-block: calc(var(--spotlight-player-logo) * 0.84);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  padding: clamp(0.35rem, 1.2vh, 0.65rem) clamp(0.5rem, 2vw, 1rem);
  box-sizing: border-box;
  align-items: center;
  justify-items: center;
  column-gap: clamp(0.5rem, 2vw, 1.25rem);
  perspective: 1400px;
}

body.board-venue-820 .monitor-result-spotlight__player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.2vh, 0.6rem);
  width: 100%;
  max-width: min(36vw, 14.5rem);
  min-height: 0;
  text-align: center;
}

body.board-venue-820 .monitor-result-spotlight__player--1 {
  grid-column: 1;
  justify-self: center;
}

body.board-venue-820 .monitor-result-spotlight__player--2 {
  grid-column: 3;
  justify-self: center;
}

body.board-venue-820 .monitor-result-spotlight__player .cell-name {
  order: 1;
}

body.board-venue-820 .monitor-result-spotlight__player .cell-logo {
  order: 2;
}

body.board-venue-820 .monitor-result-spotlight__player .cell-name,
body.board-venue-820 .monitor-result-spotlight__player .cell-name__text,
body.board-venue-820 .monitor-result-spotlight__player .cell-name__line {
  flex: 0 1 auto !important;
  display: block !important;
  font-size: min(5vw, 10vh, 2rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--rs-text) !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

body.board-venue-820 .monitor-result-spotlight__player .cell-name--winner,
body.board-venue-820 .monitor-result-spotlight__player .cell-name__line--winner {
  color: #93c5fd !important;
}

body.board-venue-820 .monitor-result-spotlight__player .cell-logo {
  width: var(--spotlight-player-logo) !important;
  height: var(--spotlight-player-logo) !important;
  min-width: var(--spotlight-player-logo) !important;
  min-height: var(--spotlight-player-logo) !important;
  max-width: var(--spotlight-player-logo) !important;
  max-height: var(--spotlight-player-logo) !important;
  flex: 0 0 var(--spotlight-player-logo) !important;
  border-radius: 8px;
  background: #1a1a1a;
}

body.board-venue-820 .monitor-result-spotlight__player .cell-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.board-venue-820 .monitor-result-spotlight__sets {
  grid-column: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 1rem);
  flex-shrink: 0;
  padding: clamp(0.15rem, 0.5vh, 0.35rem) 0;
  max-width: min(52vw, 28rem);
}

body.board-venue-820 .monitor-result-spotlight__set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.28rem, 0.9vh, 0.5rem);
}

body.board-venue-820 .monitor-result-spotlight__set .score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--spotlight-score-block) !important;
  height: var(--spotlight-score-block) !important;
  min-width: var(--spotlight-score-block) !important;
  min-height: var(--spotlight-score-block) !important;
  max-width: var(--spotlight-score-block) !important;
  max-height: var(--spotlight-score-block) !important;
  padding: 0 !important;
  font-size: min(9vw, 20vh, 4.15rem) !important;
  font-weight: 800 !important;
  line-height: 1;
  border-radius: 10px;
  background: var(--rs-score-bg) !important;
  color: var(--rs-text) !important;
  box-sizing: border-box;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.board-venue-820 .monitor-result-spotlight__set .score--pending-reveal,
body.board-venue-820 .monitor-result-spotlight__set .score--pending-reveal.score--win {
  background: var(--rs-score-bg) !important;
  color: var(--rs-text) !important;
}

body.board-venue-820 .monitor-result-spotlight__set .score--win:not(.score--pending-reveal) {
  background: var(--rs-score-win-bg) !important;
  color: var(--rs-score-win-text) !important;
}

body.board-venue-820 .monitor-result-spotlight__set .score--empty {
  opacity: 0.35;
  font-size: min(9vw, 16vh, 3.25rem) !important;
  color: var(--rs-text-muted) !important;
}

/* Muchas vueltas rápidas en el spotlight (~12 vueltas en 2s); JS RESULT_SPOTLIGHT_FLIP_MS debe coincidir */
@keyframes scorePanelSpotlightFlipY {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(4320deg);
  }
}

@keyframes scorePanelSpotlightFlipYRev {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-4320deg);
  }
}

body.board-venue-820 .monitor-result-spotlight .score.score--panel-flip {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  animation: scorePanelSpotlightFlipY 2s linear forwards !important;
}

body.board-venue-820 .monitor-result-spotlight .score.score--panel-flip--rev {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  animation: scorePanelSpotlightFlipYRev 2s linear forwards !important;
}

body.board-venue-820 .monitor-result-spotlight__player--winner-bump .cell-logo,
body.board-venue-820 .monitor-result-spotlight__player--winner-bump .cell-name,
body.board-venue-820 .monitor-result-spotlight__set .score.score--panel-bump {
  animation: scorePanelBump 1s ease-out forwards;
}

body.board-venue-820.monitor-tema-claro .monitor-result-spotlight,
body.board-venue-820.monitor-tema-oscuro .monitor-result-spotlight,
body.board-venue-820[data-monitor-esponsor-fondo='blanco'] .monitor-result-spotlight,
body.board-venue-820[data-monitor-esponsor-fondo='negro'] .monitor-result-spotlight {
  --rs-bg: #141414;
  --rs-text: #f3f4f6;
  --rs-score-bg: #1f2937;
  --rs-score-win-bg: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
  body.board-venue-820 .monitor-result-spotlight .score.score--panel-flip,
  body.board-venue-820 .monitor-result-spotlight .score.score--panel-flip--rev {
    animation: none !important;
  }
}

/* Tema del monitor (monitor_esponsor_fondo: blanco = claro, negro = oscuro) */
body.board-venue-820[data-monitor-esponsor-fondo='blanco'],
body.board-venue-820.monitor-esponsor-fondo-blanco,
body.board-venue-820.monitor-tema-claro {
  --bg: #ffffff;
  --monitor-header-bg: #ffffff;
  --monitor-header-text: #111827;
  --monitor-board-area-bg: #ffffff;
  --monitor-esponsor-logo-bg: transparent;
  --monitor-esponsor-column-bg: #ffffff;
}

body.board-venue-820[data-monitor-esponsor-fondo='negro'],
body.board-venue-820.monitor-esponsor-fondo-negro,
body.board-venue-820.monitor-tema-oscuro {
  --bg: #000000;
  --monitor-header-bg: #000000;
  --monitor-header-text: #ffffff;
  --monitor-board-area-bg: #000000;
  --monitor-esponsor-logo-bg: #000000;
  --monitor-esponsor-column-bg: #000000;
}

body.board-venue-820 .board-wrap {
  background: var(--bg);
}

body.board-venue-820 .board-wrap .board-center-column,
body.board-venue-820 .board-wrap #board.board--partidos {
  background: var(--monitor-board-area-bg, var(--bg));
}

/* Encuentros: colores fijos, no heredan el tema claro/oscuro de la cabecera */
body.board-venue-820 .board.board--partidos .row {
  background: var(--meet-row-surface, #141414) !important;
  border-color: var(--meet-row-border, #2a2a2e) !important;
  color: var(--meet-row-text, #f3f4f6) !important;
}

body.board-venue-820 .board.board--partidos .row .cell-name,
body.board-venue-820 .board.board--partidos .row .cell-name__text,
body.board-venue-820 .board.board--partidos .row .cell-name__line {
  color: var(--meet-row-text, #f3f4f6) !important;
}

body.board-venue-820 .board.board--partidos .hint {
  color: var(--meet-row-muted, #9ca3af);
}


/* Prioridad sobre app.css (columna #000 por defecto en board-venue) */
body.board-venue.board-venue-820 .board-wrap #board-desktop-logos:not(.board-desktop-logos--show-rank) {
  background: var(--monitor-esponsor-column-bg, var(--bg)) !important;
}

body.board-venue.board-venue-820 .board-wrap #board-desktop-logos.board-desktop-logos--show-rank {
  background: var(--monitor-club-rank-shell-bg) !important;
}

/* Sin sombra ni caja de fondo en logos patrocinadores (evita “borde” sobre blanco) */
body.board-venue-820 .board-wrap #board-desktop-logos .desktop-header-logo--esponsor,
body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__strip > .desktop-header-logo,
body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__strip-trio > .desktop-header-logo,
body.board-venue-820 .board-wrap #board-desktop-logos .board-desktop-logos__brand-row > .desktop-header-logo {
  filter: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

body.board-venue-820.monitor-tema-claro .board-wrap #board-desktop-logos .board-desktop-logos__strip > .desktop-header-logo,
body.board-venue-820.monitor-tema-claro .board-wrap #board-desktop-logos .board-desktop-logos__strip-trio > .desktop-header-logo,
body.board-venue-820[data-monitor-esponsor-fondo='blanco'] .board-wrap #board-desktop-logos .board-desktop-logos__strip > .desktop-header-logo,
body.board-venue-820[data-monitor-esponsor-fondo='blanco'] .board-wrap #board-desktop-logos .board-desktop-logos__strip-trio > .desktop-header-logo {
  background: transparent !important;
  padding: 0 !important;
}

body.board-venue-820.monitor-tema-oscuro .board-wrap #board-desktop-logos .board-desktop-logos__strip > .desktop-header-logo,
body.board-venue-820.monitor-tema-oscuro .board-wrap #board-desktop-logos .board-desktop-logos__strip-trio > .desktop-header-logo,
body.board-venue-820[data-monitor-esponsor-fondo='negro'] .board-wrap #board-desktop-logos .board-desktop-logos__strip > .desktop-header-logo,
body.board-venue-820[data-monitor-esponsor-fondo='negro'] .board-wrap #board-desktop-logos .board-desktop-logos__strip-trio > .desktop-header-logo {
  background: var(--monitor-esponsor-logo-bg, #000000) !important;
  padding: 0.06rem !important;
}

body.board-venue.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header {
  background: var(--monitor-header-bg, var(--bg)) !important;
  color: var(--monitor-header-text, var(--text)) !important;
}

body.board-venue.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .title,
body.board-venue.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .title-btn,
body.board-venue.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .subtitle,
body.board-venue.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .site-header__820-plata,
body.board-venue.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .site-header__820-enc-title,
body.board-venue.board-venue-820.board-desktop-layout--rg .board-wrap > .site-header .site-header__820-enc-sub {
  color: var(--monitor-header-text, var(--text)) !important;
}

/* Vídeo cuyo nombre empieza por "Horizontal": pantalla completa sobre todo */
body.board-venue-820 .monitor-horizontal-video {
  position: fixed;
  inset: 0;
  z-index: 100010;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  pointer-events: none;
}

body.board-venue-820 .monitor-horizontal-video:not([hidden]) {
  display: flex;
  pointer-events: auto;
}

body.board-venue-820 .monitor-horizontal-video__el {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000000;
}

/* ——— Rànquing clubs: pantalla completa, tarjetas verticales en fila horizontal ——— */
body.board-venue-820 .monitor-club-ranking {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--monitor-club-rank-bg-base);
  background-image: var(--monitor-club-rank-shell-bg);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}

body.board-venue-820.monitor-club-ranking-active .board-wrap {
  visibility: hidden;
}

body.board-venue-820 .monitor-club-ranking:not([hidden]) {
  display: flex;
}

body.board-venue-820.monitor-club-ranking-active .monitor-club-ranking {
  pointer-events: auto;
}

body.board-venue-820 .monitor-club-ranking__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--monitor-club-rank-bg-base);
  background-image: var(--monitor-club-rank-shell-bg);
}

body.board-venue-820 .monitor-club-ranking__head {
  flex: 0 0 var(--monitor-club-rank-head-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.28rem, 1vw, 0.55rem);
  margin: 0;
  padding: 0.42rem clamp(0.28rem, 1vw, 0.55rem) 0.38rem;
  min-height: var(--monitor-club-rank-head-h);
  border-bottom: 1px solid var(--monitor-club-rank-heading-border);
  background: var(--monitor-club-rank-bg-base);
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-ranking__sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(0.1rem, 0.45vw, 0.28rem);
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 0.1rem 0.14rem;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-ranking__sponsors--l {
  justify-self: stretch;
}

body.board-venue-820 .monitor-club-ranking__sponsors--r {
  justify-self: stretch;
}

body.board-venue-820 .monitor-club-ranking__sponsors > .desktop-header-logo {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(94%, calc(var(--monitor-club-rank-head-h) - 0.5rem)) !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0.06rem 0.08rem !important;
  object-fit: contain;
  object-position: center center;
  background: var(--monitor-esponsor-logo-bg, transparent) !important;
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
  border-radius: 0 !important;
}

body.board-venue-820 .monitor-club-ranking__title {
  margin: 0;
  padding: 0 0.25rem;
  font-size: clamp(1.85rem, 8.5vh, 2.95rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
  background: transparent;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-ranking__track {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  gap: clamp(0.18rem, 0.55vw, 0.42rem);
  padding: clamp(0.22rem, 0.85vh, 0.4rem) clamp(0.22rem, 0.9vw, 0.55rem)
    clamp(0.24rem, 0.9vh, 0.42rem);
  box-sizing: border-box;
  overflow: hidden;
}

body.board-venue-820 .monitor-club-ranking__track.monitor-club-ranking__track--animating {
  overflow: visible;
}

body.board-venue-820 .monitor-club-rank__card--sliding {
  position: relative;
  z-index: 3;
  will-change: transform;
}

body.board-venue-820 .monitor-club-rank__card {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows:
    auto
    var(--monitor-club-rank-logo-size)
    var(--monitor-club-rank-name-row-h, 2.35em)
    var(--monitor-club-rank-pct-row-h, 0px)
    minmax(0, 1fr)
    auto;
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: clamp(0.18rem, 0.65vh, 0.32rem) clamp(0.12rem, 0.4vw, 0.26rem)
    clamp(0.16rem, 0.55vh, 0.28rem);
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  max-height: none;
  align-self: stretch;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: var(--monitor-club-rank-card-bg);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

body.board-venue-820.monitor-tema-oscuro .monitor-club-rank__card,
body.board-venue-820[data-monitor-esponsor-fondo='negro'] .monitor-club-rank__card {
  border-color: rgba(96, 165, 250, 0.32);
}

body.board-venue-820 .monitor-club-rank__card--top {
  background: linear-gradient(
    180deg,
    #ecfdf5 0%,
    var(--monitor-club-rank-card-bg) 42%
  );
  border-color: rgba(52, 211, 153, 0.55);
}

body.board-venue-820 .monitor-club-rank__card--bottom {
  background: linear-gradient(
    180deg,
    #fef2f2 0%,
    var(--monitor-club-rank-card-bg) 42%
  );
  border-color: rgba(248, 113, 113, 0.5);
}

body.board-venue-820.monitor-tema-oscuro .monitor-club-rank__card--top,
body.board-venue-820[data-monitor-esponsor-fondo='negro'] .monitor-club-rank__card--top {
  background: linear-gradient(
    180deg,
    #14532d 0%,
    var(--monitor-club-rank-card-bg) 44%
  );
}

body.board-venue-820.monitor-tema-oscuro .monitor-club-rank__card--bottom,
body.board-venue-820[data-monitor-esponsor-fondo='negro'] .monitor-club-rank__card--bottom {
  background: linear-gradient(
    180deg,
    #7f1d1d 0%,
    var(--monitor-club-rank-card-bg) 44%
  );
}

body.board-venue-820 .monitor-club-rank__pos {
  grid-row: 1;
  flex: 0 0 auto;
  font-size: clamp(1.25rem, 8vw, 2.75rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--accent, #2563eb);
  text-align: center;
}

body.board-venue-820 .monitor-club-rank__pos--shared {
  font-size: clamp(1.1rem, 7.5vw, 2.65rem);
  letter-spacing: -0.03em;
}

/* Mismo criterio que .cell-logo / .rank-card__logo: cuadrado fijo e igual en todas las tarjetas */
body.board-venue-820 .monitor-club-rank__logo-wrap {
  grid-row: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--monitor-club-rank-logo-size);
  height: var(--monitor-club-rank-logo-size);
  min-width: 0;
  min-height: 0;
  max-width: var(--monitor-club-rank-logo-size);
  max-height: var(--monitor-club-rank-logo-size);
  margin: clamp(0.1rem, 0.4vh, 0.2rem) 0 0;
  padding: 0;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-rank__logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.board-venue-820 .monitor-club-rank__name {
  grid-row: 3;
  align-self: start;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  max-height: var(--monitor-club-rank-name-row-h, 2.35em);
  margin: 0.1rem 0 0;
  padding: 0 0.08rem;
  font-size: clamp(0.62rem, 2.55vw, 1.18rem);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
  hyphens: auto;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-rank__pct {
  grid-row: 4;
  align-self: center;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 0.16rem);
  max-width: calc(100% - 0.16rem);
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0.1em 0.28em;
  font-size: var(--monitor-club-rank-pct-font-size, clamp(0.9rem, 3.8vw, 1.45rem));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-align: center;
  color: #ffffff !important;
  background: #2563eb;
  border-radius: 5px;
  box-sizing: border-box;
  overflow: visible;
  white-space: nowrap;
}

body.board-venue-820 .monitor-club-rank__stats-foot {
  grid-row: 6;
  align-self: end;
  flex: 0 0 auto;
  margin-top: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.14rem, 0.6vw, 0.32rem);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: clamp(0.16rem, 0.6vh, 0.28rem) clamp(0.12rem, 0.4vw, 0.22rem);
  overflow: hidden;
  box-sizing: border-box;
  background: #1e293b;
  border-radius: 6px;
  color: #ffffff;
}

body.board-venue-820 .monitor-club-rank__stack {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.05rem, 0.28vh, 0.12rem);
  min-width: 0;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-rank__stack-n {
  display: block;
  font-size: var(--monitor-club-rank-stat-font-size, clamp(0.95rem, 4.2vw, 1.65rem));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-rank__stack-bar {
  display: block;
  flex: 0 0 auto;
  width: min(1.6em, 72%);
  min-width: 1rem;
  height: clamp(2px, 0.32vh, 3px);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
}

body.board-venue-820 .monitor-club-rank__min-hint {
  grid-row: 4;
  align-self: center;
  flex: 0 0 auto;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: var(--monitor-club-rank-hint-font-size, clamp(0.5rem, 1.6vw, 0.62rem));
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: var(--meet-row-muted, #9ca3af);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ——— Kahoot: pregunta a pantalla completa (820×400) ——— */
body.board-venue-820 .monitor-kahoot {
  --kahoot-think-ms: 10s;
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 4px 12px 8px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, #6d28d9 0%, transparent 58%),
    linear-gradient(180deg, #3b0764 0%, #1e1b4b 55%, #0f172a 100%);
  color: #ffffff;
  overflow: hidden;
  pointer-events: none;
}

body.board-venue-820 .monitor-kahoot__resolve {
  position: absolute;
  right: 14px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 3;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1b4b;
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
}

body.board-venue-820 .monitor-kahoot__resolve:active {
  transform: scale(0.97);
}

body.board-venue-820 .monitor-kahoot__resolve[hidden] {
  display: none !important;
}

body.board-venue-820 .monitor-kahoot:not([hidden]) {
  display: flex;
  pointer-events: auto;
}

body.board-venue-820.monitor-kahoot-active .board-wrap {
  visibility: hidden;
}

body.board-venue-820 .monitor-kahoot__timer {
  flex: 0 0 7px;
  width: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

body.board-venue-820 .monitor-kahoot__timer-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  background: linear-gradient(90deg, #facc15, #f97316 55%, #ef4444);
  will-change: transform;
}

body.board-venue-820 .monitor-kahoot.is-revealed .monitor-kahoot__timer-bar {
  transform: scaleX(0);
}

body.board-venue-820 .monitor-kahoot__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  box-sizing: border-box;
  line-height: 0;
}

body.board-venue-820 .monitor-kahoot__brand-logo {
  flex: 0 0 auto;
  width: auto;
  height: 190px;
  max-width: 380px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

body.board-venue-820 .monitor-kahoot__brand-title {
  flex: 0 1 auto;
  margin: 0;
  min-width: 0;
  font-size: clamp(2rem, 8vh, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.board-venue-820 .monitor-kahoot__stinger {
  flex: 1 1 auto;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  margin: 0;
  padding: 8px 16px;
  box-sizing: border-box;
}

body.board-venue-820 .monitor-kahoot.is-stinger .monitor-kahoot__stinger {
  display: flex;
}

body.board-venue-820 .monitor-kahoot.is-stinger .monitor-kahoot__brand,
body.board-venue-820 .monitor-kahoot.is-stinger .monitor-kahoot__top,
body.board-venue-820 .monitor-kahoot.is-stinger .monitor-kahoot__grid,
body.board-venue-820 .monitor-kahoot.is-stinger .monitor-kahoot__timer {
  display: none !important;
}

body.board-venue-820 .monitor-kahoot__stinger-num {
  margin: 0;
  text-align: center;
  font-size: clamp(0.85rem, 2.8vh, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

body.board-venue-820 .monitor-kahoot__stinger-panels {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  width: auto;
  max-width: 100%;
}

body.board-venue-820 .monitor-kahoot__stinger-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 148px;
  max-width: 200px;
  padding: 12px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.38);
  box-sizing: border-box;
  animation: monitor-kahoot-stinger-in 0.45s ease-out both;
}

body.board-venue-820 .monitor-kahoot__stinger-panel--cat {
  animation-delay: 0.08s;
}

body.board-venue-820 .monitor-kahoot__stinger-title {
  font-size: clamp(0.7rem, 2.2vh, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.1;
}

body.board-venue-820 .monitor-kahoot__stinger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
}

body.board-venue-820 .monitor-kahoot__stinger-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.board-venue-820 .monitor-kahoot__stinger-label {
  font-size: clamp(1.05rem, 3.8vh, 1.45rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-wrap: balance;
}

body.board-venue-820 .monitor-kahoot__diff-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

body.board-venue-820 .monitor-kahoot__diff-bar {
  width: 7px;
  border-radius: 3px 3px 1px 1px;
  background: rgba(255, 255, 255, 0.28);
}

body.board-venue-820 .monitor-kahoot__diff-bar:nth-child(1) {
  height: 28%;
}

body.board-venue-820 .monitor-kahoot__diff-bar:nth-child(2) {
  height: 58%;
}

body.board-venue-820 .monitor-kahoot__diff-bar:nth-child(3) {
  height: 92%;
}

body.board-venue-820 .monitor-kahoot__stinger-panel--diff[data-diff="easy"] .monitor-kahoot__diff-bar:nth-child(1),
body.board-venue-820 .monitor-kahoot__chip--diff[data-diff="easy"] .monitor-kahoot__diff-bar:nth-child(1) {
  background: #4ade80;
}

body.board-venue-820 .monitor-kahoot__stinger-panel--diff[data-diff="medium"] .monitor-kahoot__diff-bar:nth-child(1),
body.board-venue-820 .monitor-kahoot__stinger-panel--diff[data-diff="medium"] .monitor-kahoot__diff-bar:nth-child(2),
body.board-venue-820 .monitor-kahoot__chip--diff[data-diff="medium"] .monitor-kahoot__diff-bar:nth-child(1),
body.board-venue-820 .monitor-kahoot__chip--diff[data-diff="medium"] .monitor-kahoot__diff-bar:nth-child(2) {
  background: #fbbf24;
}

body.board-venue-820 .monitor-kahoot__stinger-panel--diff[data-diff="hard"] .monitor-kahoot__diff-bar,
body.board-venue-820 .monitor-kahoot__chip--diff[data-diff="hard"] .monitor-kahoot__diff-bar {
  background: #f87171;
}

body.board-venue-820 .monitor-kahoot__stinger-panel--diff[data-diff="easy"] {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.42);
}

body.board-venue-820 .monitor-kahoot__stinger-panel--diff[data-diff="medium"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.42);
}

body.board-venue-820 .monitor-kahoot__stinger-panel--diff[data-diff="hard"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.45);
}

body.board-venue-820 .monitor-kahoot__stinger-panel--cat {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(76, 29, 149, 0.4);
}

@keyframes monitor-kahoot-stinger-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.board-venue-820 .monitor-kahoot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 4px;
}

body.board-venue-820 .monitor-kahoot__meta[hidden] {
  display: none !important;
}

body.board-venue-820 .monitor-kahoot__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.45);
  font-size: clamp(0.72rem, 2.4vh, 0.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

body.board-venue-820 .monitor-kahoot__chip--diff[data-diff="easy"] {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.5);
}

body.board-venue-820 .monitor-kahoot__chip--diff[data-diff="medium"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.5);
}

body.board-venue-820 .monitor-kahoot__chip--diff[data-diff="hard"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.55);
}

body.board-venue-820 .monitor-kahoot__chip-bars {
  width: 16px;
  height: 14px;
  gap: 2px;
}

body.board-venue-820 .monitor-kahoot__chip-bars .monitor-kahoot__diff-bar {
  width: 3px;
}

body.board-venue-820 .monitor-kahoot__chip-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #ffffff;
}

body.board-venue-820 .monitor-kahoot__chip-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.board-venue-820 .monitor-kahoot__top {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  margin: 6px 8px 16px;
  overflow: hidden;
}

body.board-venue-820 .monitor-kahoot__question {
  flex: 0 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  min-height: 0;
  max-height: none;
  font-size: clamp(1.45rem, 5.8vh, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.005em;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

body.board-venue-820 .monitor-kahoot__question.is-explanation {
  font-style: italic;
}

body.board-venue-820 .monitor-kahoot__grid {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
}

body.board-venue-820 .monitor-kahoot__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

body.board-venue-820 .monitor-kahoot__opt--0 {
  background: #e21b3c;
}

body.board-venue-820 .monitor-kahoot__opt--1 {
  background: #1368ce;
}

body.board-venue-820 .monitor-kahoot__opt--2 {
  background: #d89e00;
}

body.board-venue-820 .monitor-kahoot__opt--3 {
  background: #26890c;
}

body.board-venue-820 .monitor-kahoot__shape {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background: #ffffff;
}

body.board-venue-820 .monitor-kahoot__shape--tri {
  clip-path: polygon(50% 8%, 100% 92%, 0 92%);
}

body.board-venue-820 .monitor-kahoot__shape--dia {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

body.board-venue-820 .monitor-kahoot__shape--cir {
  border-radius: 50%;
}

body.board-venue-820 .monitor-kahoot__shape--squ {
  border-radius: 3px;
}

body.board-venue-820 .monitor-kahoot__letter {
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.92;
}

body.board-venue-820 .monitor-kahoot__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.15rem, 3.8vh, 1.45rem);
  font-weight: 700;
  line-height: 1.12;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

body.board-venue-820 .monitor-kahoot.is-revealed .monitor-kahoot__opt.is-wrong {
  opacity: 0.32;
  filter: grayscale(0.45);
}

body.board-venue-820 .monitor-kahoot.is-revealed .monitor-kahoot__opt.is-correct {
  transform: scale(1.02);
  box-shadow:
    inset 0 0 0 3px #ffffff,
    0 0 0 3px #4ade80,
    0 0 22px rgba(74, 222, 128, 0.75);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body.board-venue-820 .monitor-kahoot__timer-bar,
  body.board-venue-820 .monitor-kahoot__opt,
  body.board-venue-820 .monitor-kahoot__stinger-panel {
    animation: none;
    transition: none;
  }
}

/* ——— Monitor móvil: solo Kahoot ——— */
html.monitor-mobile-mode,
html.monitor-mobile-mode body.board-venue-820 {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  overflow: hidden;
}

body.monitor-mobile-mode .monitor-scale-root {
  display: none !important;
}

body.monitor-mobile-mode .monitor-mobile-shell {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 100010;
  padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, #4c1d95 0%, transparent 55%),
    linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  overflow: auto;
}

body.monitor-mobile-mode .monitor-mobile-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

body.monitor-mobile-mode .monitor-mobile-panel__torneo {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 5.2vw, 1.65rem);
  font-weight: 700;
  opacity: 0.95;
  line-height: 1.2;
}

body.monitor-mobile-mode .monitor-mobile-panel__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
}

body.monitor-mobile-mode .monitor-mobile-panel__lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.35;
  opacity: 0.9;
}

body.monitor-mobile-mode .monitor-mobile-wait__label {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  opacity: 0.85;
}

body.monitor-mobile-mode .monitor-mobile-wait__countdown {
  margin: 0;
  font-size: clamp(3rem, 16vw, 4.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.04em;
}

body.monitor-mobile-mode .monitor-mobile-wait__hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

body.monitor-mobile-mode .monitor-mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
}

body.monitor-mobile-mode .monitor-mobile-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.monitor-mobile-mode .monitor-mobile-nav__btn:active {
  background: rgba(255, 255, 255, 0.18);
}

body.monitor-mobile-mode .monitor-kahoot {
  position: fixed;
  inset: 0;
  z-index: 100030;
  display: none;
  flex-direction: column;
  margin: 0;
  padding: max(10px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden;
}

body.monitor-mobile-mode .monitor-kahoot__resolve {
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  font-size: 1rem;
  padding: 0.65rem 1.25rem;
}

body.monitor-mobile-mode .monitor-kahoot:not([hidden]) {
  display: flex;
}

body.monitor-mobile-mode .monitor-kahoot.is-stinger .monitor-kahoot__brand,
body.monitor-mobile-mode .monitor-kahoot.is-stinger .monitor-kahoot__top,
body.monitor-mobile-mode .monitor-kahoot.is-stinger .monitor-kahoot__grid,
body.monitor-mobile-mode .monitor-kahoot.is-stinger .monitor-kahoot__timer {
  display: none !important;
}

body.monitor-mobile-mode .monitor-kahoot__stinger {
  flex: 1 1 auto;
  gap: 18px;
  padding: 16px 20px;
}

body.monitor-mobile-mode .monitor-kahoot__stinger-num {
  font-size: clamp(0.9rem, 3.4vw, 1.1rem);
}

body.monitor-mobile-mode .monitor-kahoot__stinger-panels {
  flex-direction: column;
  gap: 14px;
  width: min(100%, 280px);
}

body.monitor-mobile-mode .monitor-kahoot__stinger-panel {
  min-width: 0;
  max-width: none;
  width: 100%;
  min-height: 0;
  padding: 16px 18px 18px;
  gap: 8px;
  border-radius: 16px;
}

body.monitor-mobile-mode .monitor-kahoot__stinger-title {
  font-size: clamp(0.75rem, 3vw, 0.88rem);
}

body.monitor-mobile-mode .monitor-kahoot__stinger-icon {
  width: 40px;
  height: 40px;
}

body.monitor-mobile-mode .monitor-kahoot__stinger-label {
  font-size: clamp(1.25rem, 5.5vw, 1.65rem);
}

body.monitor-mobile-mode .monitor-kahoot__meta {
  gap: 8px;
  margin: 0 0 8px;
}

body.monitor-mobile-mode .monitor-kahoot__chip {
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  padding: 5px 12px 5px 10px;
}

body.monitor-mobile-mode .monitor-kahoot__chip-icon {
  width: 16px;
  height: 16px;
}

body.monitor-mobile-mode .monitor-kahoot__chip-bars {
  width: 18px;
  height: 15px;
}

@media (orientation: landscape) and (max-height: 500px) {
  body.monitor-mobile-mode .monitor-kahoot__stinger {
    gap: 10px;
    padding: 8px 16px;
  }

  body.monitor-mobile-mode .monitor-kahoot__stinger-panels {
    flex-direction: row;
    width: auto;
    gap: 12px;
  }

  body.monitor-mobile-mode .monitor-kahoot__stinger-panel {
    min-width: 140px;
    max-width: 200px;
    width: auto;
    padding: 10px 14px 12px;
  }

  body.monitor-mobile-mode .monitor-kahoot__stinger-icon {
    width: 32px;
    height: 32px;
  }

  body.monitor-mobile-mode .monitor-kahoot__stinger-label {
    font-size: clamp(1rem, 4.5vh, 1.35rem);
  }
}

body.monitor-mobile-mode .monitor-kahoot__brand {
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
}

body.monitor-mobile-mode .monitor-kahoot__brand-logo {
  height: 200px;
  max-width: 400px;
}

body.monitor-mobile-mode .monitor-kahoot__brand-title {
  font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  font-weight: 800;
}

body.monitor-mobile-mode .monitor-kahoot__top {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 36vh;
  margin: 6px 4px 18px;
  padding: 0;
  gap: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
}

body.monitor-mobile-mode .monitor-kahoot__question {
  font-size: clamp(1.4rem, 6.2vw, 2.15rem);
  line-height: 1.28;
  padding: 12px 14px;
  text-align: center;
  align-items: flex-start;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
}

body.monitor-mobile-mode .monitor-kahoot__grid {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 52vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.monitor-mobile-mode .monitor-kahoot__opt {
  min-height: 0;
  padding: 10px 12px;
}

body.monitor-mobile-mode .monitor-kahoot:not(.is-stinger):not(.is-revealed) .monitor-kahoot__opt {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.monitor-mobile-mode .monitor-kahoot:not(.is-stinger):not(.is-revealed) .monitor-kahoot__opt:active {
  transform: scale(0.98);
  filter: brightness(1.12);
}

body.monitor-mobile-mode .monitor-kahoot__opt.is-picked {
  box-shadow:
    inset 0 0 0 3px #ffffff,
    0 0 0 2px rgba(255, 255, 255, 0.45);
  z-index: 1;
}

body.monitor-mobile-mode .monitor-kahoot.is-revealed .monitor-kahoot__opt.is-picked.is-wrong {
  opacity: 0.78;
  filter: saturate(0.85);
}

body.monitor-mobile-mode .monitor-kahoot.is-revealed .monitor-kahoot__opt.is-picked.is-correct {
  opacity: 1;
}

body.monitor-mobile-mode .monitor-kahoot__text {
  font-size: clamp(1rem, 4.2vw, 1.25rem);
}

body.monitor-mobile-mode .monitor-mobile-panel[hidden] {
  display: none !important;
}

body.monitor-mobile-mode .monitor-mobile-panel--kahoot {
  justify-content: flex-start;
  padding-top: 0.5rem;
  max-width: none;
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 26rem;
  margin: 1rem auto 0;
  padding: 0 4px 0.75rem;
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell {
  aspect-ratio: 1;
  min-height: 2rem;
  border: none;
  border-radius: 8px;
  font-size: clamp(0.78rem, 3.4vw, 0.95rem);
  font-weight: 700;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-unseen {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-seen {
  opacity: 1;
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  background: rgba(76, 29, 149, 0.55);
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-seen[data-diff="easy"] {
  background: rgba(22, 163, 74, 0.78);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35);
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-seen[data-diff="medium"] {
  background: rgba(217, 119, 6, 0.82);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.4);
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-seen[data-diff="hard"] {
  background: rgba(185, 28, 28, 0.82);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4);
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-seen:active {
  transform: scale(0.96);
  filter: brightness(1.12);
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  height: 58%;
  color: #ffffff;
  pointer-events: none;
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-live {
  background: rgba(234, 179, 8, 0.85);
  color: #1e1b4b;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.9);
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell.is-live .monitor-mobile-kahoot-index__icon {
  color: #1e1b4b;
}

body.monitor-mobile-mode .monitor-mobile-kahoot-index__cell:disabled {
  pointer-events: none;
}

body.monitor-mobile-mode .monitor-mobile-share {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  top: auto;
  z-index: 100040;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.monitor-mobile-mode .monitor-mobile-share[hidden] {
  display: none !important;
}

body.monitor-mobile-mode .monitor-mobile-share:active {
  background: rgba(30, 41, 59, 0.95);
}

body.monitor-mobile-mode .monitor-mobile-share__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.monitor-mobile-mode .monitor-mobile-share-toast {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  bottom: auto;
  z-index: 100041;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

body.monitor-mobile-mode .monitor-mobile-share-toast[hidden] {
  display: none !important;
}
