/* La fiesta en la tele (/tv, 10-10-2026): pantalla horizontal grande, también portátil. */
.tv { --ink: #070A12; --surface-high: #242C40; --mint: #7BE495; min-height: 100vh; padding: 20px clamp(16px, 3vw, 44px) 28px;
  display: flex; flex-direction: column; gap: 18px; font-family: Lato, system-ui, sans-serif; }
.tv h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(30px, 4vw, 56px); line-height: 1.05; margin: 0 0 14px; }
.tv .label { text-transform: uppercase; letter-spacing: 1.4px; font-weight: 900; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.tv .gold { color: var(--gold); }
.tv .small { font-size: 14px; }
.tv-top { display: flex; align-items: center; gap: 14px; }
.tv-top .brand { margin: 0; font-size: clamp(20px, 2vw, 28px); }
.tv-top .pill { margin: 0; padding: 4px 14px; border-radius: 999px; background: var(--surface-high); border: 2.5px solid var(--ink); font-weight: 900; }
.ghost { margin-left: auto; background: none; border: 2px solid var(--line); color: var(--muted); border-radius: 12px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.tv-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 380px); gap: clamp(16px, 3vw, 40px); align-items: start; flex: 1; }
.col-main, .col-side { min-width: 0; display: flex; flex-direction: column; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; flex: 1; justify-content: center; }
.dartin { height: auto; }
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Sala. */
.join-box { display: flex; align-items: center; gap: 24px; background: var(--surface); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink); padding: 20px; }
.qr { width: clamp(150px, 16vw, 230px); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 10px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(44px, 6vw, 96px); letter-spacing: 0.1em; color: var(--gold); line-height: 1; margin: 4px 0; }
.join-box > div:last-child { min-width: 0; }
.hello { display: flex; align-items: flex-end; gap: 6px; margin-top: 18px; }
.hello .dartin { width: clamp(100px, 10vw, 140px); flex: none; }
.bubble { background: var(--text); color: var(--bg); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 14px 18px; font-weight: 800; font-size: clamp(16px, 1.6vw, 22px); margin-bottom: 30px; }
.bubble p { margin: 0; }
.people { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.people li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 14px; font-weight: 800; font-size: clamp(16px, 1.5vw, 20px); }
.people li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people li .score { font-family: 'Bricolage Grotesque', sans-serif; font-variant-numeric: tabular-nums; }
.people li .ok { color: var(--mint); font-weight: 900; }
.people li .wait { color: var(--muted); }
.people li .plus { color: var(--gold); font-weight: 900; margin-right: 10px; }
.ranked { counter-reset: r; }
.ranked li::before { counter-increment: r; content: counter(r); width: 26px; font-family: 'Bricolage Grotesque', sans-serif; color: var(--gold); }
.big-button { min-height: 64px; border-radius: 20px; border: 3px solid var(--ink); background: var(--coral); color: #fff; box-shadow: 0 7px 0 var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(20px, 2vw, 26px); cursor: pointer; padding: 0 22px; }
.big-button:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.big-button[disabled] { background: var(--surface-high); color: var(--muted); cursor: default; }

/* Pregunta y destape: las caras, grandes. */
.double { align-self: flex-start; margin: 0 0 8px; padding: 4px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 900; }
.faces { display: flex; gap: clamp(10px, 1.6vw, 22px); align-items: flex-start; flex-wrap: wrap; }
.face { position: relative; width: clamp(120px, 14vw, 220px); }
.faces.one .face { width: clamp(220px, 28vw, 380px); }
.faces.two .face { width: clamp(180px, 22vw, 320px); }
.face img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); display: block; background: var(--surface); }
.face .tag { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--ink); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; }
.face .age { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); padding: 2px 16px; border-radius: 16px; background: var(--text); color: var(--ink);
  border: 3px solid var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(26px, 3vw, 40px); white-space: nowrap; }
.face.right img { border-color: var(--mint); box-shadow: 0 7px 0 var(--mint); }
.face.right .age { background: var(--mint); }
.big-age { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(80px, 12vw, 170px); line-height: 1; color: var(--gold); margin: 0; }
.timer { width: clamp(110px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; align-self: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(44px, 5vw, 68px); margin-bottom: 16px;
  background: conic-gradient(var(--gold) var(--left, 100%), var(--surface-high) 0); border: 4px solid var(--ink); }
.timer span { width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.mini-join { margin-top: auto; font-size: 18px; }
.mini-join b { color: var(--gold); font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; letter-spacing: 3px; }

/* Final. */
#done .dartin { width: auto; height: clamp(90px, 24vh, 173px); }
.winner { font-size: clamp(48px, 7vw, 96px) !important; color: var(--gold); }
.podium-list { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.podium-list li { background: var(--surface); border-radius: 14px; padding: 10px 16px; font-weight: 800; font-size: 18px; }
.app-line { margin: 16px 0 0; font-weight: 800; }
.tv .stores { justify-content: center; grid-template-columns: repeat(auto-fit, 220px); width: min(100%, 460px); }
.error { color: var(--coral); font-weight: 800; text-align: center; }

@media (max-width: 640px) {
  .tv-grid { grid-template-columns: 1fr; }
  .join-box { flex-direction: column; text-align: center; }
}
