/* 100 Ciudadanos dijeron — tablero tipo programa de TV. */
.cien-hero .orb-1 {
  background: #ff8a00;
  opacity: 0.25;
}
.rules {
  padding-left: 1.2em;
}
.rules li {
  margin-bottom: 0.7em;
  color: #d6d0e4;
}

/* ---------- TV ---------- */
html.is-tv-wide .tv-app {
  min-height: 0;
}
.tv-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.tv-team {
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--team) 50%, transparent);
  border-radius: var(--r-lg);
  padding: 16px 20px;
}
.tv-team h3 {
  color: var(--team);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  display: flex;
  justify-content: space-between;
}
.tv-team ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tv-team li {
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: var(--pill);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
}
.tv-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.score {
  border-radius: var(--r-lg);
  padding: clamp(10px, 1.4vw, 18px) clamp(14px, 2vw, 26px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--team) 30%, transparent), rgba(255, 255, 255, 0.03));
  border: 2px solid color-mix(in srgb, var(--team) 55%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.4s, transform 0.4s var(--ease);
}
.score span {
  font: 700 clamp(1rem, 2vw, 1.7rem) var(--font-display);
}
.score b {
  font: 800 clamp(1.8rem, 4.4vw, 3.8rem) / 1 var(--font-display);
  color: var(--team);
}
.score.has-control {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--team) 40%, transparent), 0 0 50px color-mix(in srgb, var(--team) 40%, transparent);
  transform: scale(1.02);
}
.round {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 150px;
}
.round span {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}
.round small {
  color: var(--muted);
  font-size: 0.75rem;
}
.mult {
  font: 800 clamp(1.6rem, 3vw, 2.6rem) / 1.1 var(--font-display);
}
.mult.m2 {
  color: var(--amber);
}
.mult.m3 {
  color: var(--pink);
  text-shadow: 0 0 20px rgba(255, 77, 141, 0.6);
}
.question {
  text-align: center;
  flex: 0 1 auto;
  max-height: 22%;
  overflow: hidden;
  font: 800 clamp(1.15rem, 2.6cqi, 2.4rem) / 1.15 var(--font-display);
  padding: clamp(8px, 1.2cqi, 16px) 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.16), rgba(255, 184, 0, 0.04));
  border: 2px solid rgba(255, 184, 0, 0.4);
  color: #fff3d1;
  overflow-wrap: anywhere;
}
.q-cat {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 10px;
  padding: 5px 14px;
  border-radius: var(--pill);
  background: rgba(255, 184, 0, 0.18);
  border: 1px solid rgba(255, 184, 0, 0.5);
  color: var(--amber-2);
  font: 700 0.78rem/1.2 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.q-cat span {
  opacity: 0.72;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.question .q-cat {
  font-size: clamp(0.72rem, 1.25vw, 1rem);
}
.board {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 16px);
  perspective: 1200px;
}
@media (max-width: 900px) {
  .board {
    min-height: 0;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }
  .tv-head {
    grid-template-columns: 1fr;
  }
  .tv-lineups {
    grid-template-columns: 1fr;
  }
}
.slot {
  border-radius: clamp(12px, 1.6vw, 22px);
  background: linear-gradient(180deg, #1f2a78, #121a52);
  border: 2px solid rgba(110, 140, 255, 0.45);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 2vw, 28px);
  min-height: 0;
  position: relative;
}
.slot-n {
  width: clamp(36px, 4.5vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #4d6bff, #1b2a9a);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font: 800 clamp(1.1rem, 2.4vw, 2rem) var(--font-display);
}
.slot.open {
  justify-content: space-between;
  background: linear-gradient(180deg, #3550e0, #1d2f9c);
  animation: flip 0.7s var(--ease) both;
}
.slot.open.team-a {
  border-color: var(--amber);
}
.slot.open.team-b {
  border-color: var(--cyan);
}
.slot.late {
  background: linear-gradient(180deg, #3a3a52, #24243a);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 0.85;
}
@keyframes flip {
  from {
    transform: rotateX(-90deg);
  }
  to {
    transform: none;
  }
}
.slot {
  min-width: 0;
  overflow: hidden;
}
.slot-t {
  font: 800 clamp(0.9rem, 2cqi, 1.8rem) / 1.1 var(--font-display);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.slot-t small {
  font: 600 clamp(0.65rem, 1vw, 0.9rem) var(--font);
  text-transform: none;
  color: color-mix(in srgb, var(--team, #fff) 80%, #fff);
  opacity: 0.9;
}
.slot-p {
  font: 800 clamp(1.2rem, 2.8vw, 2.6rem) var(--font-display);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 14px;
  border-radius: 12px;
  min-width: 2.4em;
  text-align: center;
}
.tv-foot {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tv-head,
.tv-foot {
  flex: 0 0 auto;
  min-width: 0;
}
.tv-lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 0 0 auto;
  max-height: 4.2em;
  overflow: hidden;
}
.lineup {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lineup li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid color-mix(in srgb, var(--team, #888) 45%, transparent);
  font-size: 0.85rem;
}
.lineup li b {
  opacity: 0.55;
  font-size: 0.75rem;
}
.lineup li.now {
  border-color: var(--team, var(--amber));
  background: color-mix(in srgb, var(--team, var(--amber)) 28%, transparent);
  font-weight: 800;
}
.lineup li.next {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--team, #fff) 70%, transparent);
}
.lineup li em {
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber);
}
.lineup li.next em {
  color: var(--cyan);
}
.next-hint {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.next-hint b {
  color: var(--text);
}
.bank {
  padding: 10px 22px;
  border-radius: var(--pill);
  background: rgba(255, 184, 0, 0.12);
  border: 2px solid rgba(255, 184, 0, 0.4);
  font: 700 clamp(1rem, 1.8vw, 1.4rem) var(--font-display);
  white-space: normal;
}
.bank b {
  font-size: 1.4em;
  color: var(--amber);
}
.status {
  flex: 1;
  font: 600 clamp(1rem, 2vw, 1.7rem) / 1.3 var(--font-display);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.status .ta {
  color: var(--amber);
}
.status .tb {
  color: var(--cyan);
}
.blink {
  color: var(--pink);
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.tv-warn {
  font-size: clamp(1rem, 2vw, 1.6rem);
}
.strikes {
  display: inline-flex;
  gap: 6px;
  justify-content: center;
}
.strike {
  width: 1.6em;
  height: 1.6em;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.2);
}
.strike.on {
  background: rgba(255, 50, 50, 0.25);
  border-color: var(--red);
  color: var(--red);
  text-shadow: 0 0 10px var(--red);
}
.contrib {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 20px;
}
.contrib h3 {
  font-size: 1rem;
  color: var(--muted);
}
.contrib ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contrib li {
  display: flex;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid color-mix(in srgb, var(--team, #888) 60%, transparent);
}
.contrib li b {
  color: var(--team, var(--text));
}
.final {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.final h1 .team-tag {
  font-size: 0.8em;
  padding: 6px 22px;
}
.final-score {
  font: 800 clamp(2rem, 6vw, 5rem) var(--font-display);
}
.splash.xs {
  color: var(--red);
  font-size: clamp(6rem, 22vw, 18rem);
  text-shadow: 0 0 60px rgba(255, 40, 40, 0.8);
  letter-spacing: 0.1em;
}
.splash.small {
  font-size: clamp(2rem, 6vw, 5rem);
  background: rgba(11, 10, 18, 0.85);
  padding: 20px 40px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
}
.splash.warn {
  color: var(--amber);
}
.splash.ok {
  color: var(--green);
}

/* ---------- Celulares ---------- */
.mc-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.mc-scores > div:not(.mid) {
  border-radius: var(--r);
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}
.mc-scores span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.mc-scores b {
  font: 800 1.6rem var(--font-display);
  color: var(--team);
}
.mc-scores .ctrl {
  border-color: var(--team);
}
.mc-scores .mid {
  font-size: 0.8rem;
  color: var(--muted);
}
.mc-scores .mid b {
  color: var(--amber);
  font-size: 1.2rem;
}
.mc-q {
  font: 700 1.1rem/1.3 var(--font-display);
  text-align: center;
  margin-bottom: 12px;
}
.mc-answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.mc-ans {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: var(--r);
  border: 2px solid rgba(110, 140, 255, 0.5);
  background: linear-gradient(180deg, #24308a, #18205e);
  color: #fff;
  font: 700 1rem var(--font);
  text-align: left;
  cursor: pointer;
}
.mc-ans:not([disabled]):active {
  transform: scale(0.98);
}
.mc-ans .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  flex: none;
}
.mc-ans .t {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mc-ans .t small {
  font-weight: 500;
  color: var(--muted);
}
.mc-ans b {
  font-size: 1.2rem;
}
.mc-ans.shown {
  background: rgba(46, 229, 157, 0.12);
  border-color: rgba(46, 229, 157, 0.5);
  opacity: 0.75;
}
.mc-ans[disabled]:not(.shown) {
  opacity: 0.7;
  cursor: default;
}
.team-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.team-pick {
  border-radius: var(--r-lg);
  border: 2px solid color-mix(in srgb, var(--team) 40%, transparent);
  background: color-mix(in srgb, var(--team) 10%, transparent);
  color: var(--text);
  padding: 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font: 700 1.1rem var(--font-display);
  cursor: pointer;
}
.team-pick small {
  font: 500 0.8rem var(--font);
  color: var(--muted);
}
.team-pick.on {
  background: var(--team);
  color: #0b0a12;
  box-shadow: 0 0 30px color-mix(in srgb, var(--team) 50%, transparent);
}
.team-pick.on small {
  color: #0b0a12;
}
.mini-scores {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.mini-scores > span:not(:nth-child(2)) {
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--border);
}
.mini-scores b {
  color: var(--team);
}
.mini-scores .mine {
  border-color: var(--team) !important;
  color: var(--text);
}
.buzzer {
  display: block;
  width: min(56vmin, 220px);
  aspect-ratio: 1;
  margin: 10px auto;
  border-radius: 50%;
  border: 0;
  font: 900 2.6rem var(--font-display);
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #6b6b80, #3a3a4a 60%, #222230);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.buzzer.live {
  background: radial-gradient(circle at 35% 30%, #ff8bb1, var(--pink) 55%, #a3124a);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.3), 0 0 60px rgba(255, 77, 141, 0.7);
  animation: pulse 0.9s ease-in-out infinite;
}
.buzzer:active {
  transform: scale(0.95);
}
.buzzer.locked,
.buzzer:disabled.locked {
  animation: none;
  filter: grayscale(0.35) brightness(0.7);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.3);
}
.buzz-wrap {
  display: flex;
  justify-content: center;
}
.buzz-lock {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 6, 14, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.buzz-lock.on {
  opacity: 1;
  pointer-events: auto;
}
.buzz-lock-card {
  width: min(86vw, 320px);
  text-align: center;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface, #1c1826) 88%, #fff 12%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.buzz-lock-card p {
  margin: 0;
  font: 700 1rem var(--font-display);
  color: var(--text);
}
.buzz-lock-card b {
  display: block;
  margin: 8px 0 4px;
  font: 800 4.2rem / 1 var(--font-display);
  color: var(--amber);
}
.buzz-lock-card small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
@media (max-width: 900px) and (orientation: portrait) {
  body.tv .tv-lobby {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* Tablet acostada: herramientas del maestro a un lado */
.mc-desk {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) and (orientation: landscape) {
  body.handset.cien .g-wrap,
  body.phone.cien .g-wrap,
  html.is-phone body.handset.cien .g-wrap {
    width: calc(100% - 16px);
    max-width: 1280px;
  }
  .mc-desk {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    grid-template-areas:
      "score score"
      "status tools"
      "answers tools"
      "extra extra";
    gap: 12px;
    align-items: start;
    min-height: 0;
  }
  .mc-desk .mc-score { grid-area: score; }
  .mc-desk-status { grid-area: status; }
  .mc-desk-answers { grid-area: answers; }
  .mc-desk-tools {
    grid-area: tools;
    position: sticky;
    top: 10px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .mc-desk-extra { grid-area: extra; }
  .mc-desk-tools .big-btn,
  .mc-desk-tools .btn {
    width: 100%;
  }
  .mc-desk-tools .live-dock {
    flex-direction: column;
  }
  .mc-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mc-desk-answers .btn-danger {
    grid-column: 1 / -1;
  }
  .sala-host {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    gap: 12px;
    align-items: start;
    min-height: calc(100dvh - 88px);
  }
  .sala-host .sala-hero { grid-column: 1; }
  .sala-host #teams { grid-column: 1; }
  .sala-host .sala-dock {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 10px;
  }
  .sala-host .sala-settings {
    grid-column: 2;
    grid-row: 2;
  }
}
