/* =====================================================================
   Fase 11: clase en vivo (pantalla del maestro para proyectar y la del alumno)
   ===================================================================== */
.lv { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.lv-top { display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lv-top .brand { color: var(--ink); }
.lv-top .brand-mark i { background: var(--ink); box-shadow: none; }
.lv-title { flex: 1; display: grid; min-width: 160px; }
.lv-title b { font: 700 1.15rem var(--display); }
.lv-title small { color: var(--muted); font-weight: 700; }
.lv-main { padding: 24px clamp(16px, 4vw, 48px); overflow: auto; }
.lv-main > section { max-width: 1200px; margin: 0 auto; display: grid; gap: 22px; }
/* Sala de espera */
.lv-lobby { justify-items: center; text-align: center; }
.lv-how { font-size: 1.3rem; }
.lv-code span { font-size: clamp(3.5rem, 10vw, 7rem); }
.lv-lobbybar { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.lv-count { font: 700 1.4rem var(--display); }
.lv-go { font-size: 1.3rem; padding: 16px 34px; }
.lv-people { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 2px solid var(--c); font: 700 1.1rem var(--display); animation: icIn .35s ease-out; }
.lv-chip i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; display: grid; place-items: center; font-size: .9rem; }
/* Pregunta */
.lv-qhead { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.lv-prompt { font-size: clamp(1.6rem, 3.6vw, 2.8rem); text-align: center; line-height: 1.2; }
.lv-timer b { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 2.2rem var(--display); }
.lv-timer b.low { background: var(--bad); animation: recBlink 1s infinite; }
.lv-ans { text-align: center; display: grid; }
.lv-ans b { font: 700 2.4rem var(--display); color: var(--accent); line-height: 1; }
.lv-ans small { color: var(--muted); font-weight: 700; }
.lv-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lv-opt { display: flex; align-items: center; gap: 16px; background: var(--c); color: #fff; border-radius: 14px; padding: 22px 20px; font: 700 clamp(1.1rem, 2.4vw, 1.7rem) var(--display); box-shadow: var(--shadow); }
.lv-opt span { font-size: 1.6em; opacity: .9; }
.lv-type { text-align: center; font-size: 1.3rem; color: var(--muted); font-weight: 700; }
.lv-q .q-media { max-width: 700px; margin: 0 auto; }
/* Respuesta */
.lv-reveal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.lv-bars { display: flex; gap: 14px; align-items: flex-end; min-height: 280px; }
.lv-bar { flex: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 280px; }
.lv-bar i { width: 100%; align-self: end; height: calc(var(--h) * 100% + 6px); background: var(--c); border-radius: 10px 10px 0 0; opacity: .45; }
.lv-bar.ok i { opacity: 1; box-shadow: 0 0 0 3px var(--ok); }
.lv-bar b { font: 700 1.8rem var(--display); }
.lv-bar span { font-weight: 800; text-align: center; font-size: 1.05rem; }
.lv-bar.ok span { color: var(--ok); }
.lv-sum { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lv-big { display: grid; justify-items: center; min-width: 150px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.lv-big b { font: 700 3rem var(--display); color: var(--ink); line-height: 1.1; }
.lv-big.ok b { color: var(--ok); } .lv-big.mid b { color: var(--warn); } .lv-big.bad b { color: var(--bad); }
.lv-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 300px; box-shadow: var(--shadow); }
.lv-board h3 { margin-bottom: 8px; }
.lv-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lv-board li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; font-size: 1.15rem; }
.lv-rk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 900; font-size: .9rem; }
.lv-board li:first-child .lv-rk { background: #D89E00; }
/* Podio */
.lv-end { justify-items: center; text-align: center; }
.lv-end h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lv-podium { display: grid; grid-template-columns: repeat(3, minmax(120px, 220px)); gap: 14px; align-items: end; }
.lv-step { display: grid; justify-items: center; gap: 4px; animation: icIn .5s ease-out both; }
.lv-step.s1 { animation-delay: .6s; } .lv-step.s2 { animation-delay: .3s; }
.lv-medal { font-size: 3rem; }
.lv-step b { font: 700 1.3rem var(--display); }
.lv-step small { color: var(--muted); font-weight: 800; }
.lv-block { width: 100%; border-radius: 12px 12px 0 0; background: var(--accent); color: #fff; font: 700 2.5rem var(--display); display: grid; place-items: center; }
.lv-step.s1 .lv-block { height: 190px; background: #D89E00; } .lv-step.s2 .lv-block { height: 140px; background: #8C96AB; } .lv-step.s3 .lv-block { height: 100px; background: #B8733A; }
.lv-rest { text-align: left; min-width: 280px; display: grid; gap: 4px; }
.lv-rest li { display: flex; justify-content: space-between; gap: 20px; }
.lv-self .lv-prog { display: block; width: 160px; margin-bottom: 2px; }
.lv-self .lv-prog i { background: var(--accent); }
.ic-live-opts { width: 100%; text-align: left; }
@media (max-width: 800px) {
  .lv-top { padding: 8px 12px; } .lv-top .brand-name { display: none; }
  .lv-opts { grid-template-columns: 1fr; } .lv-reveal { grid-template-columns: 1fr; } .lv-bars { min-height: 200px; } .lv-bar { height: 200px; }
  .lv-qhead { grid-template-columns: auto 1fr; } .lv-ans { grid-column: 1 / -1; }
  .lv-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lv-step b { font-size: 1rem; }
}

/* ----- Alumno ----- */
.hub-tile.live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.lvs { display: grid; gap: 16px; }
.lvs-join, .lvs-wait, .lvs-end { justify-items: center; text-align: center; padding: 28px 20px; }
.lvs-ico { width: 70px; height: 70px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.lvs-code { text-align: center; font: 700 2.4rem var(--display); letter-spacing: .3em; max-width: 320px; }
.lvs-dots { display: flex; gap: 8px; }
.lvs-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: lvDot 1.2s infinite; }
.lvs-dots i:nth-child(2) { animation-delay: .2s; } .lvs-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lvDot { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: none; } }
.lvs-timer { font-weight: 900; color: var(--accent); }
.lvs-timer.low { color: var(--bad); }
.lvs-send { position: sticky; bottom: 12px; box-shadow: 0 8px 24px rgba(35, 80, 216, .35); }
.lvs-verdict { display: grid; justify-items: center; gap: 4px; padding: 22px; border-radius: var(--r); color: #fff; animation: icIn .3s ease-out; }
.lvs-verdict b { font: 700 2rem var(--display); }
.lvs-verdict span { font-weight: 800; font-size: 1.1rem; }
.lvs-verdict.ok { background: var(--ok); } .lvs-verdict.mid { background: #D96F06; } .lvs-verdict.bad { background: var(--bad); }
.lvs-verdict.none { background: var(--surface-2); color: var(--ink); }
.lvs-me { text-align: center; font-size: 1.1rem; }
.lvs-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; max-width: 420px; justify-self: center; }
.lvs-board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.lvs-board li span:first-child { font-weight: 900; color: var(--accent); }
.lvs-board li.mine { border-color: var(--accent); background: var(--accent-soft); }
.lvs-medal { font-size: 4rem; line-height: 1; }
