/* ===== Control de la noche (teléfono) =====
   Una sola mano: navegación abajo, un "siguiente paso" claro arriba, todo lo demás a un toque. */

body.control{ overflow-y: auto; }
.app{ max-width: 640px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 14px 150px; }

/* Encabezado compacto */
.app-head{ display:flex; align-items:center; gap:10px; padding-bottom: 12px; margin-bottom: 12px; position:relative; }
.app-head::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background: repeating-linear-gradient(90deg, var(--naranja) 0 22px, transparent 22px 34px); opacity:.9; }
.app-head .logo{ height: 30px; width:auto; flex:0 0 auto; }
.head-text{ min-width:0; flex:1; }
.head-text h1{ font-family: var(--font-titulo); font-weight:400; font-size: 16px; margin:0 0 4px; line-height:1.05; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live-pill{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color: var(--muted); background: var(--bg-2); border:2px solid var(--bg-3); border-radius:999px; padding: 5px 11px; font-weight:600; max-width:100%; }
.live-pill b{ color: var(--fondo-crema); }
.live-pill .dot{ width:8px; height:8px; border-radius:50%; background: var(--rosa-intenso); box-shadow: 0 0 8px rgba(238,77,153,.8); flex:0 0 auto; }
.live-pill .ann{ color: var(--naranja); font-weight:700; }
.app-head .icon-only{ padding:0; width:var(--tap-min); flex:0 0 var(--tap-min); margin-right: 98px; }
@media (max-width:520px){ .app-head .icon-only{ margin-right:0; } .app-head{ padding-right: 0; } .conn-status{ top: 8px; right: 8px; padding: 6px 7px; } .conn-status .conn-label{ display:none; } }

/* Páginas */
.page{ display:none; flex-direction:column; gap: 12px; }
.page.active{ display:flex; animation: pageIn .28s var(--ease-bounce); }
@keyframes pageIn{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }
.section-title{ font-family: var(--font-titulo); font-size: 14px; letter-spacing:.5px; text-transform:uppercase; color: var(--rosa-intenso); margin: 8px 2px 0; display:flex; align-items:baseline; gap:8px; }
.section-title small{ font-family: var(--font-cuerpo); color: var(--muted); font-weight:700; font-size:12px; letter-spacing:0; text-transform:none; }
.btn.wide{ width:100%; }
.btn.big{ min-height: 60px; font-size: 18px; border-radius: 18px; }
.hint, .hint-note{ font-size:12px; color: var(--muted); margin:0; line-height:1.4; }
.hint-note{ text-align:center; padding: 8px 12px 0; }

/* ===== Tarjeta héroe: el siguiente paso ===== */
.hero{ background: var(--rosa-intenso); color:#fff; border-radius: 26px; padding: 18px 16px 16px; box-shadow: 0 6px 0 #a01059; position:relative; overflow:hidden; }
.hero::after{ content:""; position:absolute; right:-30px; top:-30px; width:130px; height:130px; border-radius:50%; background: rgba(255,255,255,.14); pointer-events:none; }
.hero-kicker{ display:inline-block; font-weight:800; font-size:11px; letter-spacing:1.5px; text-transform:uppercase; background: var(--naranja); color: var(--fondo-crema); border-radius:999px; padding: 4px 12px; margin-bottom:10px; }
.hero-title{ font-family: var(--font-titulo); font-weight:400; font-size: clamp(24px, 7vw, 34px); line-height:1.02; margin:0 0 6px; text-transform:uppercase; text-shadow: 0 3px 0 var(--tinta); }
.hero-goal{ font-weight:700; font-size:15px; line-height:1.25; margin: 0 0 6px; }
.hero-pts{ font-size:13px; font-weight:700; margin:0 0 12px; background: rgba(36,16,22,.22); border-radius:12px; padding: 6px 10px; display:inline-block; }
.hero .btn{ border-color: var(--tinta); }
.hero .btn.primary{ background: var(--fondo-crema); color: var(--tinta); box-shadow: 0 5px 0 var(--tinta); border-color: var(--tinta); }
.hero .btn.primary:active{ box-shadow: 0 1px 0 var(--tinta); }
.hero .btn.ghost{ background: rgba(36,16,22,.28); color:#fff; border-color: rgba(36,16,22,.55); box-shadow: 0 4px 0 rgba(36,16,22,.5); }
.hero .btn.accent{ background: var(--naranja); color: var(--fondo-crema); box-shadow: 0 5px 0 var(--tinta); }
.hero-actions{ display:flex; flex-direction:column; gap:10px; margin-top: 12px; }
.hero-row{ display:flex; gap:8px; flex-wrap:wrap; }
.hero-row .btn{ flex:1 1 0; min-width: 0; font-size:13px; padding-left:8px; padding-right:8px; }

/* Lista de arranque */
.steps{ list-style:none; margin: 6px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.steps li{ display:flex; align-items:center; gap:12px; background: rgba(36,16,22,.2); border-radius: 16px; padding: 10px 12px; font-weight:700; font-size:15px; }
.steps li small{ display:block; font-weight:600; font-size:12px; opacity:.85; }
.steps .ck{ flex:0 0 28px; height:28px; border-radius:50%; border: 3px solid rgba(255,255,255,.75); display:flex; align-items:center; justify-content:center; color: var(--rosa-intenso); }
.steps li.done .ck{ background:#fff; border-color:#fff; }
.steps li.done{ opacity:.8; }
.steps li.now{ background: rgba(255,255,255,.2); outline: 3px solid #fff; }
.steps .ck svg{ width:16px; height:16px; stroke-width:3.5; }
.steps li:not(.done) .ck svg{ display:none; }

/* Panel de video y guía dentro del héroe */
.seg{ display:flex; gap:8px; }
.seg .btn{ flex:1 1 0; min-width:0; padding-left:6px; padding-right:6px; font-size:13px; min-height:46px; }
.guide{ margin-top:12px; background: rgba(36,16,22,.25); border-radius:16px; padding: 4px 12px; }
.guide summary{ cursor:pointer; font-weight:800; font-size:14px; padding: 10px 0; display:flex; align-items:center; gap:8px; list-style:none; }
.guide summary::-webkit-details-marker{ display:none; }
.guide[open] summary{ border-bottom: 2px solid rgba(255,255,255,.25); margin-bottom:8px; }
.guide .body{ white-space:pre-wrap; font-size:13px; line-height:1.5; max-height: 52vh; overflow-y:auto; padding-bottom:10px; -webkit-user-select:text; user-select:text; }
.vid-label{ font-size:11px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; opacity:.85; margin: 12px 0 6px; }

/* Conteo del juego (aciertos / chalupas) y letras de STOP */
.panel{ margin-top: 12px; background: var(--fondo-crema); color: var(--tinta); border-radius: 20px; padding: 12px; box-shadow: 0 4px 0 var(--tinta); }
.panel h4{ margin:0 0 8px; font-family: var(--font-titulo); font-weight:400; font-size:15px; text-transform:uppercase; color: var(--magenta); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.panel h4 button{ background:none; color: var(--tinta-suave); font-size:12px; font-weight:700; text-decoration: underline; padding: 6px; }
.tally-row{ display:flex; align-items:center; gap:8px; padding: 6px 0; border-top: 2px solid rgba(36,16,22,.08); }
.tally-row:first-of-type{ border-top:0; }
.tally-row .nm{ flex:1; min-width:0; font-weight:800; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tally-row .ct{ font-family: var(--font-titulo); font-size:26px; min-width: 42px; text-align:center; color: var(--tinta); }
.tally-row .rk{ flex:0 0 22px; font-family: var(--font-titulo); color: var(--magenta); font-size:16px; text-align:center; }
.tally-row button{ width:50px; height:50px; border-radius:14px; font-weight:900; font-size:22px; border: 3px solid var(--tinta); box-shadow: 0 3px 0 var(--tinta); }
.tally-row button.minus{ background:#fff; color: var(--tinta); }
.tally-row button.plus{ background: var(--magenta); color:#fff; }
.tally-row button:active{ transform: translateY(3px); box-shadow:none; }
.rounds-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap:8px; }
.round{ position:relative; border: 3px solid var(--tinta); background:#fff; color: var(--tinta); border-radius:14px; min-height: 62px; font-family: var(--font-titulo); font-size: 24px; line-height:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; box-shadow: 0 3px 0 var(--tinta); }
.round small{ font-family: var(--font-cuerpo); font-weight:800; font-size:11px; color: var(--magenta); }
.round.ganada{ background: var(--magenta); color:#fff; } .round.ganada small{ color:#fff; }
.round.descartada{ background: rgba(36,16,22,.12); color: rgba(36,16,22,.45); text-decoration: line-through; } .round.descartada small{ color: var(--naranja); text-decoration:none; }
.round:active{ transform: translateY(3px); box-shadow:none; }
.rounds-legend{ font-size:12px; color: var(--tinta-suave); margin-top:8px; font-weight:600; }

/* Selección de equipo en el modal de letra */
.round-label{ font-size:12px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color: var(--muted); margin: 14px 0 8px; }
.team-picks{ display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.team-picks button{ background: var(--bg-0); color: var(--fondo-crema); border: 3px solid var(--bg-3); border-radius:14px; min-height:52px; padding: 6px 10px; font-weight:800; font-size:14px; }
.team-picks button.sel{ background: var(--rosa-intenso); border-color:#fff; color:#fff; }
.round-actions{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin: 14px 0 10px; }
#roundModal .btn.wide{ margin-bottom: 8px; }

/* Atajos y programa */
.quick-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.tile{ background: var(--bg-2); color: var(--fondo-crema); border: 3px solid var(--bg-3); border-radius: 18px; min-height: 64px; padding: 10px 12px; font-weight:800; font-size:14px; display:flex; align-items:center; gap:10px; text-align:left; box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .12s var(--ease-bounce), box-shadow .1s; }
.tile svg.icon{ width:22px; height:22px; color: var(--rosa-intenso); }
.tile:active{ transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.program{ display:flex; flex-direction:column; gap:8px; }
.prow{ background: var(--bg-2); border: 3px solid var(--bg-3); border-radius: 18px; overflow:hidden; }
.prow.current{ border-color: var(--rosa-intenso); box-shadow: 0 4px 0 #a01059; }
.prow.done{ opacity:.7; }
.prow-top{ width:100%; display:flex; align-items:center; gap:10px; background:none; color: var(--fondo-crema); padding: 10px 12px; text-align:left; min-height:58px; }
.prow .num{ flex:0 0 32px; height:32px; border-radius:50%; background: var(--bg-3); display:flex; align-items:center; justify-content:center; font-family: var(--font-titulo); font-size:15px; }
.prow.current .num{ background: var(--rosa-intenso); color:#fff; }
.prow.done .num{ background: var(--good); color:#0c2019; }
.prow .nm{ flex:1; min-width:0; font-weight:800; font-size:15px; line-height:1.15; }
.prow .nm small{ display:block; font-weight:600; font-size:12px; color: var(--muted); margin-top:2px; }
.prow .st{ font-size:10px; text-transform:uppercase; letter-spacing:1px; font-weight:800; padding:3px 8px; border-radius:12px; background: var(--bg-3); color: var(--muted); }
.prow.current .st{ background: var(--rosa-intenso); color:#fff; }
.prow.done .st{ background: var(--good); color:#0c2019; }
.prow-actions{ display:none; gap:8px; flex-wrap:wrap; padding: 0 12px 12px; }
.prow.open .prow-actions{ display:flex; }
.prow-actions .btn{ flex:1 1 40%; min-height:46px; font-size:13px; padding: 8px 10px; }
.prow-actions .guide-text{ flex-basis:100%; white-space:pre-wrap; font-size:13px; line-height:1.5; color: var(--fondo-crema); background: var(--bg-0); border-radius:12px; padding:12px; max-height:46vh; overflow:auto; -webkit-user-select:text; user-select:text; }

/* Puntos */
.add-team{ display:flex; gap:8px; align-items:flex-end; background: var(--bg-2); border: 3px solid var(--bg-3); border-radius: 20px; padding: 12px; }
.add-team .field{ flex:1 1 auto; }
.add-team .field.mesa{ flex:0 0 66px; }
.add-team .btn{ flex:0 0 auto; min-height: var(--tap-min); padding-left:14px; padding-right:14px; }
body.control .team-card{ padding: 0; animation:none; }
body.control .team-card::before{ display:none; }
body.control .team-card-top{ cursor:pointer; padding: 12px 14px; min-height: 64px; position:relative; }
body.control .team-card-top::after{ content:""; position:absolute; right:14px; bottom:8px; width:8px; height:8px; border-right:3px solid var(--muted); border-bottom:3px solid var(--muted); transform: rotate(45deg); transition: transform .2s; opacity:.7; }
body.control .team-card.open .team-card-top::after{ transform: rotate(-135deg); bottom:4px; }
body.control .team-name{ max-width: none; font-size: 17px; text-transform: uppercase; }
body.control .points{ font-size: 34px; }
body.control .score-col{ padding-right: 16px; }
.team-body{ display:none; padding: 0 14px 14px; }
.team-card.open .team-body{ display:block; }
body.control .team-card.open{ border-color: var(--rosa-intenso); box-shadow: 0 5px 0 #a01059; }
.team-body .score-grid{ margin-top:0; }
.team-tools{ display:flex; gap:8px; margin-top:10px; justify-content:flex-end; }
.score-row.minus{ margin-bottom:0; }

/* Pantalla */
.mode-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.mode{ background: var(--bg-2); color: var(--fondo-crema); border: 3px solid var(--bg-3); border-radius:18px; min-height:62px; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; gap:10px; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.mode.wide{ grid-column: 1 / -1; }
.mode svg.icon{ width:20px; height:20px; }
.mode.active{ background: var(--rosa-intenso); border-color:#fff; color:#fff; box-shadow: 0 4px 0 #a01059; }
.mode:active{ transform: translateY(3px); box-shadow:none; }
.card{ background: var(--bg-2); border: 3px solid var(--bg-3); border-radius: 20px; padding: 14px; display:flex; flex-direction:column; gap:12px; }
.card-title{ font-weight:800; font-size:14px; }
.active-announce{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; color: var(--muted); }
.active-announce .btn{ padding: 8px 12px; min-height:44px; }
.saved-announce-list{ display:flex; flex-direction:column; gap:6px; max-height: 44vh; overflow-y:auto; }
.saved-announce-item{ display:flex; align-items:center; justify-content:space-between; gap:8px; background: var(--bg-0); border:2px solid var(--bg-3); border-radius:12px; padding: 6px 6px 6px 12px; font-size:13px; font-weight:600; }
.saved-announce-item .btn{ padding: 6px 12px; min-height:42px; font-size:12px; flex:0 0 auto; }
.saved-announce-item .x{ background:none; color: var(--muted); padding:8px; }
.timer-big{ font-family: var(--font-titulo); font-size: 52px; text-align:center; line-height:1; }
.preset-row .chip{ flex:1 1 20%; }
.timer-custom{ align-items:flex-end; flex-wrap:nowrap; }
.timer-custom .btn{ flex:1 1 auto; }

/* Acordeones (Ajustes) */
.acc{ background: var(--bg-2); border: 3px solid var(--bg-3); border-radius: 20px; padding: 0 14px; }
.acc summary{ cursor:pointer; list-style:none; font-family: var(--font-titulo); font-size:15px; padding: 16px 0; display:flex; justify-content:space-between; align-items:center; }
.acc summary::-webkit-details-marker{ display:none; }
.acc summary::after{ content:""; width:9px; height:9px; border-right:3px solid var(--muted); border-bottom:3px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.acc[open] summary::after{ transform: rotate(-135deg); }
.acc-body{ display:flex; flex-direction:column; gap:12px; padding-bottom:16px; }
.acc.inner{ background: var(--bg-0); border-radius:14px; border-width:2px; }
.acc.inner summary{ font-family: var(--font-cuerpo); font-weight:800; font-size:14px; padding: 12px 0; }
.acc h3{ font-family: var(--font-titulo); font-weight:400; font-size:15px; margin:0; color: var(--rosa-intenso); }
.game-edit-list{ display:flex; flex-direction:column; gap:10px; }

/* Deshacer + navegación inferior */
.undo-bar{ position: fixed; left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); max-width: 616px; margin: 0 auto; z-index: 45; }
.bottom-nav{ position: fixed; left:0; right:0; bottom:0; z-index: 50; display:flex; justify-content:center; gap:6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(24,10,14,.94); backdrop-filter: blur(8px); border-top: 3px solid var(--bg-3); }
.bottom-nav button{ flex:1 1 0; max-width: 150px; background:none; color: var(--muted); border-radius:16px; min-height: 58px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:12px; font-weight:800; transition: background .15s, color .15s, transform .15s var(--ease-bounce); }
.bottom-nav button svg.icon{ width:22px; height:22px; }
.bottom-nav button.active{ background: var(--rosa-intenso); color:#fff; transform: translateY(-2px); }
.bottom-nav button:active{ transform: scale(.96); }

body.offline .app button, body.offline .app input, body.offline .app select, body.offline .app textarea{ pointer-events:none; opacity:.45; }
body.offline .bottom-nav button{ pointer-events:auto; opacity:1; }
.award-card .btn.wide{ width:100%; }
.award-card h3{ text-transform: uppercase; }

.round.live{ outline: 4px solid var(--naranja); outline-offset: 2px; }
.live-round{ display:flex; flex-direction:column; gap:8px; background: rgba(219,68,49,.14); border: 3px solid var(--naranja); border-radius:14px; padding: 10px; margin-bottom: 10px; }
.live-round b{ font-size:14px; }
.live-round div{ display:flex; gap:8px; }
.live-round .btn{ flex:1; min-height:46px; }
.live-round .btn.ghost{ background:#fff; color: var(--tinta); border-color: var(--tinta); }

.tally-row .wide-btn{ min-width:84px; height:50px; padding:0 14px; border-radius:14px; font-weight:900; font-size:14px; border:3px solid var(--tinta); box-shadow:0 3px 0 var(--tinta); }
.tally-row .wide-btn.plus{ background: var(--naranja); color:#fff; } .tally-row .wide-btn.minus{ background:#fff; color: var(--tinta); }
.preset-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.preset{ background:#fff; color: var(--tinta); border:3px solid var(--tinta); border-radius:14px; min-height:54px; padding:6px 10px; font-weight:800; font-size:13px; text-align:left; display:flex; justify-content:space-between; align-items:center; gap:6px; box-shadow:0 3px 0 var(--tinta); }
.preset small{ background: var(--naranja); color:#fff; border-radius:999px; padding:2px 9px; font-weight:900; font-size:13px; flex:0 0 auto; }
.preset:active{ transform: translateY(3px); box-shadow:none; }
.simon-custom{ display:flex; gap:8px; margin-top:10px; }
.simon-custom input{ flex:1; min-width:0; border:3px solid var(--tinta); border-radius:12px; padding:0 12px; min-height:50px; font-size:16px; }
.simon-custom select{ width:84px; border:3px solid var(--tinta); border-radius:12px; font-size:16px; font-weight:800; background:#fff; color: var(--tinta); }
.simon-custom .btn{ min-height:50px; padding:0 14px; }
.simon-live{ background: var(--magenta); color:#fff; border-radius:14px; padding:12px; text-align:center; font-family: var(--font-titulo); font-size:20px; text-transform:uppercase; }
.team-picks.light button{ background:#fff; color: var(--tinta); border-color: var(--tinta); }
.tpl-list{ display:flex; flex-direction:column; gap:10px; }
.tpl-row{ display:flex; align-items:center; gap:10px; background: var(--bg-0); border:2px solid var(--bg-3); border-radius:14px; padding:10px 12px; }
.tpl-row > div{ flex:1; min-width:0; } .tpl-row b{ display:block; font-size:15px; } .tpl-row small{ color: var(--muted); font-size:12px; line-height:1.35; display:block; margin-top:2px; }

.tiro-row, .item-team{ padding: 10px 0; border-top: 2px solid rgba(36,16,22,.1); } .tiro-row:first-of-type, .item-team:first-of-type{ border-top:0; }
.tiro-top{ display:flex; flex-direction:column; gap:2px; margin-bottom:8px; } .tiro-top b{ font-size:15px; text-transform:uppercase; } .tiro-top span{ font-size:12px; font-weight:700; color: var(--tinta-suave); }
.item-team .tiro-top{ flex-direction:row; justify-content:space-between; align-items:baseline; } .item-total{ font-family: var(--font-titulo); font-size:20px; color: var(--magenta); font-weight:400; }
.tiro-btns{ display:flex; gap:8px; } .tiro-btns .btn{ flex:1; min-height:48px; font-size:14px; padding:6px 10px; } .tiro-btns .icon-btn{ min-width:48px; color: var(--tinta); border:3px solid var(--tinta); border-radius:12px; background:#fff; }
.tiro-btns .btn.danger{ background:#fff; color: var(--naranja); border-color: var(--naranja); }
.item-inputs{ display:grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap:8px; }
.item-in{ display:flex; flex-direction:column; gap:3px; font-size:12px; font-weight:800; color: var(--tinta); } .item-in small{ color: var(--naranja); }
.item-in input{ border:3px solid var(--tinta); border-radius:12px; min-height:52px; font-size:22px; font-weight:800; text-align:center; width:100%; background:#fff; color: var(--tinta); }
.chip-pick{ display:flex; flex-wrap:wrap; gap:8px; }
.chip-pick button{ background: var(--bg-0); color: var(--fondo-crema); border:3px solid var(--bg-3); border-radius:12px; min-width:54px; min-height:48px; padding:0 12px; font-weight:800; font-size:15px; }
.chip-pick button.sel{ background: var(--rosa-intenso); border-color:#fff; color:#fff; }

.simon-btn{ margin-bottom: 2px; min-height: 58px; font-size:17px; }
.simon-live-card{ background: var(--fondo-crema); color: var(--tinta); border: 4px solid var(--naranja); border-radius: 22px; padding: 14px; box-shadow: 0 5px 0 var(--tinta); }
.sl-top{ display:flex; justify-content:space-between; align-items:center; font-weight:800; font-size:12px; letter-spacing:1px; text-transform:uppercase; color: var(--tinta-suave); } .sl-top b{ font-family: var(--font-titulo); font-weight:400; font-size:24px; color: var(--naranja); }
.sl-text{ font-family: var(--font-titulo); font-size: 22px; text-transform:uppercase; color: var(--magenta); margin-top:6px; line-height:1.1; }
.group-bar{ display:flex; gap:8px; } .group-bar .btn{ flex:1; }
.group-count{ display:flex; gap:8px; margin: 8px 0; } .group-count .btn{ flex:1; min-height:44px; }
#groupNames{ display:flex; flex-direction:column; gap:8px; } #groupNames input{ border:2px solid var(--bg-3); background: var(--bg-0); color: var(--fondo-crema); border-radius:10px; padding:0 12px; min-height:48px; font-size:16px; }
.gp-row{ display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--bg-3); } .gp-nm{ flex:1; font-weight:800; font-size:14px; min-width:0; } .gp-nm small{ display:block; color: var(--muted); font-weight:600; font-size:12px; }
.gp-row select{ flex:0 0 46%; min-height:46px; background: var(--bg-0); color: var(--fondo-crema); border:2px solid var(--bg-3); border-radius:10px; padding:0 8px; font-size:15px; }
.group-nudge{ background: rgba(36,16,22,.3); border: 3px solid #fff; border-radius:16px; padding:12px; font-size:14px; line-height:1.35; margin: 10px 0 0; display:flex; flex-direction:column; gap:10px; }
.group-nudge .btn{ min-height:48px; }
.answer-box{ background:#fff; border:3px solid var(--tinta); border-radius:12px; padding:8px 12px; margin-top:8px; font-size:14px; } .answer-box b{ color: var(--magenta); }
.q-list{ max-height: 42vh; overflow-y:auto; }
.q-row{ display:flex; align-items:center; gap:8px; padding:8px 0; border-top: 2px solid rgba(36,16,22,.08); } .q-row:first-child{ border-top:0; } .q-row.done{ opacity:.6; }
.q-txt{ flex:1; min-width:0; } .q-txt b{ display:block; font-size:13px; line-height:1.25; } .q-txt small{ color: var(--tinta-suave); font-size:12px; font-weight:700; }
.q-row .btn{ min-height:44px; padding:0 12px; font-size:13px; flex:0 0 auto; }
.qtag{ font-weight:900; font-size:12px; border-radius:999px; padding:2px 8px; } .qtag.ok{ background: var(--magenta); color:#fff; } .qtag.no{ background: rgba(36,16,22,.15); }
.members{ font-size:12px; color: var(--muted); margin-top:2px; font-weight:600; }
#triviaText{ flex:2; } #triviaAns{ flex:1; }
.simon-custom input[type=text]{ border:3px solid var(--tinta); border-radius:12px; padding:0 12px; min-height:50px; font-size:16px; min-width:0; }

.trivia-btns{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; } .trivia-btns .btn{ min-height:56px; }
.turn-picks button.sel{ background: var(--naranja); color:#fff; border-color: var(--tinta); }
.tb{ display:flex; flex-direction:column; gap:6px; } .tb-row{ display:grid; grid-template-columns: repeat(5, 1fr); gap:6px; }
.tb-tile{ background: var(--magenta); color:#fff; border:3px solid var(--tinta); border-radius:12px; min-height:58px; padding:4px 2px; display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:0 3px 0 var(--tinta); }
.tb-tile b{ font-family: var(--font-titulo); font-weight:400; font-size:22px; line-height:1; } .tb-tile small{ font-size:9px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; opacity:.9; margin-top:2px; }
.tb-tile.done{ background: rgba(36,16,22,.15); color: rgba(36,16,22,.45); box-shadow:none; }

/* ¿Coinciden? (noche en pareja) */
.preset-grid.one{ grid-template-columns: 1fr; }
.preset.used{ opacity:.45; text-decoration: line-through; }
.pareja-row .wide-btn{ min-width:78px; background:#fff; color: var(--tinta); }
.pareja-row .wide-btn.pj-ok.on{ background: var(--magenta); color:#fff; }
.pareja-row .wide-btn.pj-no.on{ background: var(--naranja); color:#fff; }
.pareja-row .wide-btn{ white-space:nowrap; }
.pareja-row .nm small{ font-size:12px; }

/* Tablero del game show en el control: igual al de la pantalla (categorías en columnas, puntos en filas) */
.pj-board{ display:grid; gap:6px; margin:4px 0 10px; }
.pj-cat{ background: var(--tinta); color:#fff; border-radius:10px; padding:6px 3px; min-height:40px; display:flex; align-items:center; justify-content:center; text-align:center; font-family: var(--font-titulo); font-size:11px; line-height:1.05; text-transform:uppercase; overflow-wrap:anywhere; }
.pj-cell{ background: var(--magenta); color:#fff; border:3px solid var(--tinta); border-radius:12px; min-height:60px; padding:4px 2px; display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:0 3px 0 var(--tinta); }
.pj-cell b{ font-family: var(--font-titulo); font-weight:400; font-size:26px; line-height:1; }
.pj-cell:active{ transform: translateY(3px); box-shadow:none; }
.pj-cell.used{ background: rgba(36,16,22,.12); color: rgba(36,16,22,.6); box-shadow:none; border-color: rgba(36,16,22,.3); }
.pj-cell.used b{ font-size:18px; } .pj-cell small{ font-size:8px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; }
.pj-cell.empty{ visibility:hidden; }
.pj-qcat{ font-weight:900; text-transform:uppercase; font-size:12px; margin:10px 0 4px; }
.pj-q{ display:flex; gap:8px; align-items:baseline; font-size:13px; padding:3px 0; } .pj-q b{ flex:0 0 30px; color: var(--magenta); }
.pj-q.used{ opacity:.45; text-decoration: line-through; }

/* App de las parejas en el control */
.pj-info{ display:block; font-family: var(--font-cuerpo); font-weight:700; font-size:11px; letter-spacing:0; text-transform:none; opacity:.7; line-height:1.2; margin-top:2px; overflow-wrap:anywhere; }
.pj-info.appeal{ opacity:1; color: var(--magenta); font-weight:900; }
.pareja-row.appeal{ outline:3px solid var(--magenta); outline-offset:2px; border-radius:12px; }
.pj-plist{ display:flex; flex-direction:column; gap:6px; margin:10px 0 6px; }
.pj-prow{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; font-weight:800; }
.pj-chips{ display:flex; flex-wrap:wrap; gap:4px; justify-content:flex-end; } .pj-chips em{ font-style:normal; font-weight:700; opacity:.5; font-size:12px; }
.pj-player{ min-height:36px; border:2px solid var(--tinta); border-radius:999px; background:#fff; color: var(--tinta); font-weight:800; font-size:12px; padding:4px 10px 4px 22px; position:relative; }
.pj-player::before{ content:''; position:absolute; left:8px; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:50%; background:#c9a3ad; }
.pj-player.on::before{ background: var(--good); }
.pareja-row .nm{ white-space:normal; } .pj-info{ white-space:normal; }

/* Atajo que coincide con lo que está en pantalla */
.quick-grid .tile.on{ outline:3px solid var(--rosa-intenso); outline-offset:2px; }

/* Premios del Club de Tacos */
.cl-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:2px solid rgba(36,16,22,.12); font-size:14px; }
.cl-row small{ display:block; font-weight:700; font-size:12px; opacity:.7; line-height:1.25; margin-top:2px; }
.cl-btns{ display:flex; gap:6px; flex:0 0 auto; } .cl-btns .btn{ min-height:40px; padding:6px 10px; font-size:13px; }
.cl-form{ display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.cl-form select, .cl-form input{ width:100%; min-height:48px; border:3px solid var(--tinta); border-radius:12px; padding:8px 12px; font: 700 15px var(--font-cuerpo); color: var(--tinta); background:#fff; }
.cl-err{ background: var(--naranja); color:#fff; border-radius:10px; padding:8px 10px; font-weight:800; font-size:13px; }
.cl-qr{ display:none; position:fixed; inset:0; z-index:60; background: rgba(36,16,22,.82); align-items:center; justify-content:center; padding:20px; }
.cl-qr.open{ display:flex; }
.cl-qr-card{ background: var(--fondo-crema); color: var(--tinta); border:4px solid var(--tinta); border-radius:22px; padding:18px; width:min(92vw, 380px); text-align:center; display:flex; flex-direction:column; gap:12px; }
.cl-qr-card b{ font-weight:900; font-size:19px; line-height:1.15; }
.cl-qr-card img{ width:100%; aspect-ratio:1; border-radius:12px; background:#fff; }
.cl-qr-card p{ margin:0; font-weight:700; font-size:14px; line-height:1.3; }
/* Apuesta de una mesa sin teléfono: campo en la misma fila */
.bet-in{ display:flex; gap:6px; flex:0 0 auto; } .bet-in input{ width:84px; min-height:44px; border:3px solid var(--tinta); border-radius:12px; padding:4px 8px; font: 800 15px var(--font-cuerpo); text-align:center; }
/* Puntos: teléfonos de cada equipo */
.team-card .phones{ font-size:12px; font-weight:800; color: var(--good); margin-top:2px; } .team-card .phones:empty{ display:none; } .team-card .phones.none{ color: var(--muted); }
/* Los paneles con botones y campos (votación, premios, teléfonos, preguntas) no son texto corrido como la guía:
   sin saltos de línea fantasma ni caja con desplazamiento propio. */
.guide.pj-vote .body, .guide.pj-club .body, .guide.pj-phones .body{ white-space:normal; max-height:none; overflow:visible; }
.guide.pj-list .body{ white-space:normal; }

/* Rapidez y bono de respuesta rápida en cada fila de la pregunta */
.pareja-row{ flex-wrap:wrap; }
.pj-extra{ flex-basis:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; padding-left:2px; }
.pj-time{ font-size:12px; font-weight:900; color: var(--tinta-suave); white-space:nowrap; } .pj-time.first{ color: var(--magenta); } .pj-time.none{ opacity:.5; font-weight:700; }
.pj-bonus{ display:flex; gap:6px; }
.tally-row .pj-bonus button{ width:auto; min-width:52px; height:40px; padding:0 10px; font-size:15px; border-radius:12px; background:#fff; color: var(--tinta); }
.tally-row .pj-bonus button.on{ background: var(--naranja); color:#fff; }

.guide.pj-grant .body{ white-space:normal; max-height:none; overflow:visible; }
