/* ── Lobby ──────────────────────────────────────────────── */
.live-lobby { display:flex; flex-direction:column; gap:0; }
.live-lobby-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.live-lobby-status { font-weight:700; font-size:.9rem; color:var(--c-text-soft); }
.live-lobby-body {
  display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center;
  background:var(--c-text); border-radius:var(--radius-xl);
  padding:32px; margin-bottom:20px; color:#fff;
}
.live-code-label { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; opacity:.7; margin-bottom:8px; }
.live-code-display { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:3.5rem; letter-spacing:.2em; line-height:1; color:var(--c-secondary); margin-bottom:8px; }
.live-code-hint { font-size:.8rem; opacity:.6; }
/* Numbered step list under the game code — tells students exactly what
   to do (was just "Type it or scan the QR" with nowhere to type it). */
.live-code-steps {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .92rem;
  line-height: 1.45;
}
.live-code-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: .92;
}
.live-code-step strong { color: var(--c-secondary); font-weight: 800; }
.live-code-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
}
.live-code-step-or {
  font-size: .8rem;
  opacity: .55;
  padding-left: 32px;
  font-style: italic;
}
.live-qr-block { display:flex; flex-direction:column; align-items:center; gap:8px; }
.live-qr-img { width:150px; height:150px; border-radius:var(--radius-md); background:#fff; padding:6px; display:block; }
.live-qr-fallback { width:150px; height:150px; border-radius:var(--radius-md); background:rgba(255,255,255,.1); align-items:center; justify-content:center; }
.live-join-url { font-size:.65rem; opacity:.55; text-align:center; line-height:1.5; margin-top:2px; }
.live-lobby-players-label { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--c-text-soft); margin-bottom:12px; }
.live-player-chips { display:flex; flex-wrap:wrap; gap:8px; min-height:44px; align-items:center; }
.live-player-chip { padding:6px 14px; border-radius:99px; background:var(--c-surface); border:2px solid var(--c-border); font-weight:700; font-size:.85rem;
  display:inline-flex; align-items:center; gap:7px; }
.live-player-chip .lpc-av { font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;
  font-size:1.5rem; line-height:1; }

/* ── Big "Iniciar" button ────────────────────────────────── */
.live-launch-btn {
  width:100%; margin-top:24px; padding:22px 20px;
  border-radius:var(--radius-xl); border:none;
  font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.5rem; font-weight:800;
  cursor:pointer; transition:transform .18s, filter .18s;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  position:relative; overflow:hidden;
}
.live-launch-btn:disabled {
  background:var(--c-surface2); color:var(--c-text-soft);
  cursor:not-allowed; box-shadow:none;
}
.live-launch-btn:not(:disabled) {
  background:linear-gradient(135deg,#76AF77 0%,#2B3D85 100%);
  color:#fff;
  animation:launch-glow 2s ease infinite;
}
.live-launch-btn:not(:disabled):hover { transform:translateY(-3px); filter:brightness(1.08); }
.live-launch-btn:not(:disabled):active { transform:translateY(0); }
.live-launch-sub { font-size:.78rem; font-weight:600; opacity:.85; font-family:var(--font-body,inherit); }
@keyframes launch-glow {
  0%   { box-shadow:0 0 0 0 rgba(118,175,119,.55); }
  55%  { box-shadow:0 0 0 18px rgba(118,175,119,0); }
  100% { box-shadow:0 0 0 0 rgba(118,175,119,0); }
}

/* ── Question / Timer ────────────────────────────────────── */
.live-question-screen { display:flex; flex-direction:column; gap:0; }
.live-q-hud { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; padding:6px 4px; }
.live-q-num { font-weight:700; font-size:.85rem; color:var(--c-text-soft); }
.live-q-answers { font-weight:700; font-size:.85rem; color:var(--c-accent-ink); }
.live-q-timer { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.8rem; color:var(--c-primary); min-width:44px; text-align:right; }
.live-timer-bar-wrap { height:10px; background:var(--c-surface2); border-radius:99px; overflow:hidden; margin-bottom:20px; }
.live-timer-bar { height:100%; background:linear-gradient(90deg,var(--c-accent),var(--c-accent2)); border-radius:99px; }
.live-q-body { text-align:center; margin-bottom:20px; padding:24px 20px; background:var(--c-text); border-radius:var(--radius-xl); color:#fff; }
.live-q-label { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; opacity:.65; margin-bottom:10px; }
.live-q-verb    { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:3rem; color:var(--c-secondary); line-height:1; margin-bottom:8px; }
.live-q-pronoun { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.6rem; color:#fff; opacity:.92; margin-bottom:4px; line-height:1.1; }
.live-q-tense   { font-size:1.05rem; font-weight:700; opacity:.7; }

/* ── MC Tiles (host) ────────────────────────────────────── */
.live-mc-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.live-mc-tile { border-radius:var(--radius-lg); padding:20px 16px; display:flex; align-items:center; gap:12px; color:#fff; font-weight:800; position:relative; transition:opacity .3s; border:none; cursor:pointer; text-align:left; font-family:inherit; font-size:inherit; width:100%; }
.live-mc-tile:not(:disabled):hover { filter:brightness(1.1); }
.live-mc-tile:disabled { cursor:default; }
.live-mc-tile.correct { animation:popIn .4s cubic-bezier(.34,1.56,.64,1); box-shadow:0 0 0 4px rgba(255,255,255,.4); }
.live-mc-label { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.3rem; flex-shrink:0; width:34px; height:34px; background:rgba(0,0,0,.18); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.live-mc-text { font-size:.95rem; line-height:1.3; }
.live-mc-correct-mark { position:absolute; right:14px; top:50%; transform:translateY(-50%); font-size:1.4rem; }
.live-reveal-bar { display:flex; align-items:center; justify-content:space-between; background:var(--c-text); color:#fff; padding:12px 18px; border-radius:var(--radius-lg); margin-bottom:16px; }

/* Host's reveal-control button. Sits below the answer tiles and stays
   pressable for the whole question. Pulses once all students have
   answered so the teacher knows they can move on. */
.live-reveal-cta { margin-top:22px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.live-reveal-cta .live-reveal-hint { font-size:.78rem; color:var(--c-text-soft); }
.live-reveal-btn { min-width:240px; }
.live-reveal-btn.ready { background:#2F6B38; border-color:#2F6B38; animation:pulseReveal 1.4s ease-in-out infinite; }
.live-reveal-btn.ready:hover { filter:brightness(1.05); }
@keyframes pulseReveal {
  0%, 100% { box-shadow:0 8px 22px rgba(118,175,119,.32); transform:translateY(0); }
  50%      { box-shadow:0 12px 32px rgba(118,175,119,.55); transform:translateY(-2px); }
}

/* Persistent "join late" footer — kept on screen during every question
   so latecomers can still hop in. */
.live-join-footer {
  margin-top:26px; padding:14px 18px;
  background:var(--c-surface2);
  border:2px dashed var(--c-border);
  border-radius:var(--radius-lg);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px 14px;
  font-size:.85rem; color:var(--c-text-soft);
}
.live-join-footer strong { color:var(--c-text); font-weight:800; letter-spacing:.04em; }
.live-join-footer .live-join-footer-code { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.05rem; letter-spacing:.2em; color:var(--c-primary); }

/* ── Leaderboard ─────────────────────────────────────────── */
.live-leaderboard-screen { max-width:560px; margin:0 auto; }
.live-lb-title { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:2rem; text-align:center; margin-bottom:4px; }
.live-lb-subtitle { text-align:center; font-size:.85rem; color:var(--c-text-soft); margin-bottom:20px; }
.live-lb-list { display:flex; flex-direction:column; gap:8px; }
.live-lb-row { display:flex; align-items:center; gap:12px; background:var(--c-surface); border:1.5px solid var(--c-border); border-radius:var(--radius-md); padding:12px 16px; }
.live-lb-rank { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.1rem; width:28px; color:var(--c-text-soft); flex-shrink:0; }
.live-lb-name { flex:1; font-weight:700; }
.live-lb-score { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1rem; color:var(--c-primary); }
.live-lb-row:nth-child(1) .live-lb-rank { color:#FFD23F; font-size:1.4rem; }
.live-lb-row:nth-child(2) .live-lb-rank { color:#C0C0C0; font-size:1.3rem; }
.live-lb-row:nth-child(3) .live-lb-rank { color:#CD7F32; font-size:1.2rem; }

/* ── Podium ──────────────────────────────────────────────── */
.live-podium-screen { max-width:560px; margin:0 auto; }
.live-podium-title { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:2rem; text-align:center; margin-bottom:28px; }
.live-podium-wrap { display:flex; align-items:flex-end; justify-content:center; gap:10px; margin-bottom:20px; }
.live-podium-place { background:var(--c-surface); border-radius:var(--radius-lg) var(--radius-lg) 0 0; padding:16px 12px 14px; text-align:center; flex:1; max-width:150px; border-bottom:none; }
.live-podium-place.place-1 { min-height:160px; display:flex; flex-direction:column; justify-content:flex-end; }
.live-podium-place.place-2 { min-height:120px; display:flex; flex-direction:column; justify-content:flex-end; }
.live-podium-place.place-3 { min-height:90px; display:flex; flex-direction:column; justify-content:flex-end; }
.live-podium-medal { font-size:2rem; margin-bottom:6px; }
.live-podium-name { font-weight:800; font-size:.85rem; margin-bottom:4px; word-break:break-word; }
.live-podium-score { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:.82rem; color:var(--c-text-soft); }
.live-podium-rest { display:flex; flex-direction:column; gap:6px; }

/* ── Student Overlay ─────────────────────────────────────── */
.live-student-overlay {
  position:fixed; inset:0; z-index:500;
  background:#1F2850;
  display:flex; flex-direction:column; align-items:center;
  padding:24px 16px 40px; overflow-y:auto; color:#fff;
}
.live-student-join, .live-student-lobby {
  width:100%; max-width:420px;
  display:flex; flex-direction:column; align-items:center; gap:20px; padding-top:16px;
}
.live-student-logo { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.8rem; color:var(--c-secondary); display:flex; align-items:center; gap:10px; }
.live-live-badge { background:var(--c-primary); color:#fff; font-size:.6rem; font-weight:800; padding:3px 9px; border-radius:99px; letter-spacing:.08em; vertical-align:middle; }
.live-student-card { background:var(--c-surface); border-radius:var(--radius-xl); padding:26px 22px; width:100%; color:var(--c-text); }
.live-student-nick-badge { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:2rem; color:var(--c-primary); margin-bottom:6px; }
.live-waiting-dots { display:flex; gap:8px; justify-content:center; margin:12px 0; }
.live-waiting-dots span { width:10px; height:10px; border-radius:50%; background:var(--c-accent2); animation:pulse 1.2s ease infinite; }
.live-waiting-dots span:nth-child(2) { animation-delay:.2s; }
.live-waiting-dots span:nth-child(3) { animation-delay:.4s; }

/* Waiting banner (student lobby): the "nothing is broken, the game just
   hasn't started yet" signal. Big enough to read at arm's length, and
   deliberately NOT a button — dashed border, no shadow, no press state,
   cursor:default — so kids don't tap it expecting something to happen. */
.live-wait-banner {
  width:100%; margin-top:2px; padding:18px 18px 16px;
  border-radius:var(--radius-xl);
  background:linear-gradient(135deg, rgba(118,175,119,.20) 0%, rgba(43,61,133,.26) 100%);
  border:2px dashed rgba(255,255,255,.30);
  color:#fff; text-align:center; cursor:default;
  animation:wait-breathe 2.6s ease-in-out infinite;
}
.live-wait-title {
  font-family:var(--font-display);font-weight:var(--font-display-weight);
  font-size:1.35rem; line-height:1.15;
  display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap;
}
.live-wait-title .live-waiting-dots { margin:0; gap:6px; }
.live-wait-title .live-waiting-dots span { width:8px; height:8px; background:#fff; }
.live-wait-sub { font-size:.95rem; font-weight:800; margin-top:8px; }
.live-wait-hint { font-size:.8rem; font-weight:600; opacity:.75; margin-top:10px; }
.live-wait-players { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:10px; }
.live-wait-chip {
  padding:5px 11px; border-radius:99px; font-size:.82rem; font-weight:700;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25);
}
.live-wait-chip.is-me { background:#fff; color:#1F2850; border-color:transparent; }
/* Post-answer variant: the question screen already has a running timer
   bar, so this one sits still — only the dots move. */
.live-wait-banner.is-compact { margin-top:14px; padding:12px 14px; animation:none; }
.live-wait-banner.is-compact .live-wait-title { font-size:1.05rem; }
.live-wait-banner.is-compact .live-wait-sub { font-size:.85rem; font-weight:700; opacity:.9; margin-top:4px; }
@keyframes wait-breathe { 0%,100% { transform:scale(1); opacity:1 } 50% { transform:scale(1.025); opacity:.94 } }
@media (prefers-reduced-motion: reduce) {
  .live-wait-banner { animation:none; }
}

/* ── Student Game ────────────────────────────────────────── */
.live-student-game { width:100%; max-width:480px; display:flex; flex-direction:column; }
.live-s-hud { display:flex; align-items:center; justify-content:space-between; padding:8px 4px; font-size:.85rem; font-weight:700; color:rgba(255,255,255,.7); margin-bottom:8px; }
.live-s-timer { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.5rem; color:var(--c-secondary); }
.live-s-q-prompt { text-align:center; color:rgba(255,255,255,.92); margin:16px 0 14px; display:flex; flex-direction:column; gap:2px; }
.live-s-q-verb   { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.8rem; color:var(--c-secondary); line-height:1.1; }
.live-s-q-pron   { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.15rem; color:#fff; line-height:1.2; }
.live-s-q-tense  { font-size:.85rem; font-weight:700; opacity:.72; }
.live-student-mc-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.live-student-mc-btn { border:none; border-radius:var(--radius-lg); padding:28px 14px; color:#fff; font-weight:800; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:8px; transition:transform .12s, opacity .2s; min-height:110px; }
.live-student-mc-btn:active { transform:scale(.94); }
.live-student-mc-btn:disabled { cursor:default; }
.live-s-mc-label { font-family:var(--font-display);font-weight:var(--font-display-weight); font-size:1.3rem; width:36px; height:36px; background:rgba(0,0,0,.18); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.live-s-mc-text { font-size:.88rem; text-align:center; line-height:1.3; }
.live-s-result { margin-top:14px; padding:14px 20px; border-radius:var(--radius-lg); text-align:center; font-weight:800; font-size:1.1rem; display:flex; align-items:center; justify-content:center; gap:10px; animation:popIn .3s ease; }
.live-s-result.correct { background:rgba(118,175,119,.18); color:#2F6B38; border:2px solid rgba(118,175,119,.4); }
.live-s-result.wrong { background:rgba(239,68,68,.15); color:#b91c1c; border:2px solid rgba(239,68,68,.35); }

/* ── Live game — mode picker ─────────────────────────────── */
.live-mode-pick { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.live-mode-card { border:2px solid var(--c-border); border-radius:var(--radius-lg); padding:14px 12px; cursor:pointer; text-align:center; background:var(--c-surface); transition:border-color .15s, box-shadow .15s; }
.live-mode-card:hover { border-color:var(--c-primary); }
.live-mode-card.selected { border-color:var(--c-primary); box-shadow:0 0 0 3px rgba(43,61,133,.18); }
.live-mode-card .lm-emoji { font-size:1.7rem; display:block; margin-bottom:4px; }
.live-mode-card .lm-name { font-weight:800; font-size:.9rem; display:block; }
.live-mode-card .lm-sub { font-size:.72rem; color:var(--c-text-soft); display:block; margin-top:3px; line-height:1.35; }

/* ── «¡Escapa del robot!» co-op — host scene ─────────────── */
.r2-wrap { max-width:860px; margin:0 auto; }
.r2-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.r2-chip { background:var(--c-surface); border:2px solid var(--c-border); border-radius:99px; padding:6px 14px; font-weight:800; font-size:.95rem; }
.r2-gap { font-family:var(--font-display); font-weight:var(--font-display-weight); font-size:1.5rem; color:var(--c-text); }
.r2-gap.danger { color:#ef4444; animation:pulse 0.8s ease infinite; }
.r2-scene { position:relative; height:300px; border-radius:var(--radius-xl); overflow:hidden;
  background:linear-gradient(180deg,#0d0d23 0%,#1F2850 55%,#242447 100%); }
.r2-stars { position:absolute; inset:0;
  background-image:radial-gradient(2px 2px at 30px 40px,#fff8,transparent), radial-gradient(1.5px 1.5px at 120px 90px,#fff6,transparent),
    radial-gradient(2px 2px at 220px 30px,#fff7,transparent), radial-gradient(1.5px 1.5px at 320px 110px,#fff5,transparent),
    radial-gradient(2px 2px at 420px 60px,#fff8,transparent), radial-gradient(1.5px 1.5px at 520px 20px,#fff6,transparent);
  background-size:600px 160px; animation:r2Stars 24s linear infinite; }
.r2-stars.s2 { background-size:420px 200px; opacity:.6; animation-duration:14s; }
@keyframes r2Stars { from { background-position:0 0; } to { background-position:-600px 0; } }
.r2-ground { position:absolute; left:0; right:0; bottom:26px; border-bottom:3px dashed rgba(255,255,255,.18); }
.r2-rocket { position:absolute; right:2%; bottom:34px; font-size:4.6rem; filter:drop-shadow(0 0 12px rgba(222,130,106,.7)); }
.r2-robot { position:absolute; bottom:38px; font-size:4.2rem; transform:translateX(-50%);
  filter:drop-shadow(0 0 10px rgba(58,78,157,.9)); animation:robotStomp 0.9s ease-in-out infinite; z-index:3;
  transition:left 0.25s linear; }
.r2-robot.frozen { filter:drop-shadow(0 0 10px rgba(120,200,255,.9)); animation:none; }
@keyframes robotStomp { 0%,100% { transform:translateX(-50%) rotate(-6deg); } 50% { transform:translateX(-50%) rotate(6deg) translateY(-3px); } }
.r2-crew { position:absolute; bottom:40px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; z-index:4;
  transition:left 0.5s cubic-bezier(.34,1.2,.64,1); }
/* Heads used to sit at -0.5em, overlapping so hard that a crew of six
   read as one blob on the projector. Looser spacing plus a drop shadow
   so each character is its own silhouette against the night sky. */
.r2-crewheads { font-size:3rem; line-height:1; letter-spacing:-0.18em; padding-right:.2em; animation:r2Run 0.55s ease-in-out infinite; }
.r2-head { display:inline-block;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.65)); }
.r2-head.r2-flip { transform:scaleX(-1); }
.r2-more { display:inline-block; letter-spacing:normal; font-size:.75rem; font-weight:800; color:#fff; background:rgba(43,61,133,.85); border-radius:99px; padding:2px 7px; margin-left:.6em; vertical-align:middle; }
.r2-music { border:2px solid var(--c-border); cursor:pointer; font-family:inherit; font-size:.95rem; line-height:1; }
.r2-clock { font-variant-numeric:tabular-nums; min-width:86px; text-align:center; }
.r2-clock.danger { color:#ef4444; border-color:#ef4444; animation:pulse 0.8s ease infinite; }
@keyframes r2Run { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-4px); } }
.r2-crewlabel { font-size:.72rem; font-weight:800; color:#fff; background:rgba(43,61,133,.85); border-radius:99px; padding:3px 10px; margin-top:4px; letter-spacing:.08em; }
.r2-flash { position:absolute; left:50%; top:38%; transform:translate(-50%,-50%); padding:14px 22px; border-radius:var(--radius-lg);
  font-weight:800; font-size:1.15rem; color:#fff; z-index:6; animation:popIn .3s ease; text-align:center; max-width:80%; }
.r2-flash.good { background:rgba(118,175,119,.92); }
.r2-flash.bad  { background:rgba(239,68,68,.92); }
.r2-meterwrap { display:flex; align-items:center; gap:10px; margin:14px 0 10px; }
.r2-meter { position:relative; flex:1; height:14px; background:var(--c-surface2); border-radius:99px; }
.r2-meter-fill { height:100%; background:linear-gradient(90deg,var(--c-accent),var(--c-accent2)); border-radius:99px; transition:width .5s ease; }
.r2-meter-robot { position:absolute; top:50%; transform:translate(-50%,-50%); font-size:0; width:14px; height:14px; }
.r2-meter-robot::after { content:'🤖'; font-size:1rem; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.r2-meter-goal { font-weight:800; font-size:.85rem; color:var(--c-text-soft); white-space:nowrap; }
.r2-feed { min-height:66px; display:flex; flex-direction:column; gap:3px; margin-bottom:6px; }
.r2-feed-row { font-size:1rem; color:var(--c-text-soft); animation:fadeUp .3s ease; }
.r2-feed-row strong { color:var(--c-primary); }
.r2-hint { text-align:center; font-size:.75rem; color:var(--c-text-soft); }
/* pods (host overlay) */
.r2-pods-overlay { position:absolute; inset:0; background:rgba(13,13,35,.9); z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:14px; }
.r2-pods-title { font-family:var(--font-display); font-weight:var(--font-display-weight); font-size:1.7rem; color:#DE826A; animation:pulse 1s ease infinite; }
.r2-pods-sub { font-size:.85rem; color:rgba(255,255,255,.85); margin:4px 0 14px; text-align:center; max-width:520px; }
.r2-pods-zones { display:flex; gap:16px; margin-bottom:14px; }
.r2-pod { background:rgba(255,255,255,.1); border:3px solid rgba(255,255,255,.35); border-radius:var(--radius-xl); padding:14px 18px; text-align:center; color:#fff; min-width:170px; min-height:180px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.r2-pod.full { border-color:#2F6B38; background:rgba(118,175,119,.16); }
.r2-pod.over { border-color:#ef4444; background:rgba(239,68,68,.25); animation:pulse .7s ease infinite; }
.r2-pod-head { display:flex; align-items:center; gap:8px; }
.r2-pod-emoji { font-size:2rem; }
.r2-pod-name { font-family:var(--font-display); font-weight:var(--font-display-weight); font-size:1.6rem; }
.r2-pod-count { font-weight:800; font-size:1.15rem; }
.r2-pod-people { display:flex; flex-wrap:wrap; gap:3px; justify-content:center; align-items:center; font-size:2rem; line-height:1.15; min-height:52px; max-width:230px; }
.r2-pod-person { animation:popIn .25s ease; }
.r2-pod-empty { color:rgba(255,255,255,.4); font-size:1.2rem; }
.r2-pods-timer { width:70%; max-width:420px; height:10px; background:rgba(255,255,255,.15); border-radius:99px; overflow:hidden; }
.r2-pods-timerbar { height:100%; background:linear-gradient(90deg,#DE826A,#3A4E9D); border-radius:99px; }
/* ending */
.r2-end { max-width:560px; margin:0 auto; text-align:center; padding-top:10px; }
.r2-end-emoji { font-size:4.2rem; animation:popIn .4s ease; }
.r2-end-title { font-family:var(--font-display); font-weight:var(--font-display-weight); font-size:2rem; margin:8px 0 4px; }
.r2-end-sub { color:var(--c-text-soft); margin-bottom:18px; }
.r2-end-stats { display:flex; gap:12px; justify-content:center; margin-bottom:16px; }
.r2-stat { background:var(--c-surface); border-radius:var(--radius-lg); padding:12px 20px; font-size:.78rem; color:var(--c-text-soft); }
.r2-stat span { display:block; font-family:var(--font-display); font-weight:var(--font-display-weight); font-size:1.6rem; color:var(--c-text); }
.r2-end-top { background:var(--c-surface); border-radius:var(--radius-lg); padding:12px 18px; display:inline-block; }
.r2-end-toplabel { font-weight:800; font-size:.8rem; color:var(--c-text-soft); margin-bottom:6px; }
.r2-end-toprow { font-weight:700; font-size:.95rem; padding:2px 0; }

/* avatar picker (student waiting room) */
/* Character picker. Kahoot-style: big, high-contrast tiles you can hit
   with a thumb and read across a classroom, not a dense little grid.
   auto-fill rather than a fixed 8 columns so a phone gets fewer, larger
   tiles instead of eight cramped ones. With 85 characters the list is
   long on purpose, so it scrolls inside its own panel rather than
   pushing "waiting for the teacher" off the screen. */
.r2-av-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(56px,1fr)); gap:8px;
  margin-bottom:10px; max-height:232px; overflow-y:auto; padding:8px; border-radius:var(--radius-md);
  background:rgba(0,0,0,.04); -webkit-overflow-scrolling:touch; }
/* Emoji font FIRST: inheriting the app's display font left some glyphs
   monochrome or oddly aligned, which is most of what "hard to see" was. */
.r2-av { font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;
  font-size:1.9rem; line-height:1; padding:8px 0; min-height:52px;
  background:#fff; border:2px solid var(--c-border); border-radius:var(--radius-md);
  cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.10);
  transition:transform .1s, border-color .15s, box-shadow .15s; }
.r2-av:hover { transform:translateY(-2px); box-shadow:0 4px 10px rgba(0,0,0,.14); }
.r2-av:active { transform:scale(.92); }
.r2-av.picked { border-color:var(--c-primary); background:rgba(43,61,133,.12);
  box-shadow:0 0 0 4px rgba(43,61,133,.28); transform:translateY(-2px); }
/* The student's own character, big enough to recognise from the back row. */
.r2-my-av { font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;
  font-size:3.4rem; line-height:1; margin-bottom:4px;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.22)); }

/* ── «¡Escapa del robot!» co-op — student ────────────────── */
.r2s-top { display:flex; align-items:center; justify-content:space-between; font-size:.85rem; font-weight:700; color:rgba(255,255,255,.75); padding:6px 4px 10px; }
.r2s-team { font-weight:800; }
.r2s-team.danger { color:#ff7b6b; animation:pulse .8s ease infinite; }
.r2s-chargewrap { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.r2s-pips { display:flex; gap:4px; font-size:1.2rem; }
.r2s-pip { opacity:.22; }
.r2s-pip.on { opacity:1; filter:drop-shadow(0 0 6px rgba(222,130,106,.9)); }
.r2s-boost { flex:1; border:none; border-radius:var(--radius-lg); padding:16px 12px; font-weight:800; font-size:1.02rem; font-family:inherit;
  background:linear-gradient(90deg,#DE826A,#FF9A3B); color:#1F2850; cursor:pointer; opacity:.35; transition:opacity .2s, transform .1s; }
.r2s-boost.ready { opacity:1; animation:r2BoostPulse 0.9s ease infinite; }
.r2s-boost.fired { animation:none; transform:scale(.96); opacity:.5; }
.r2s-boost:disabled { cursor:default; }
@keyframes r2BoostPulse { 0%,100% { box-shadow:0 0 0 0 rgba(222,130,106,.7); } 50% { box-shadow:0 0 0 10px rgba(222,130,106,0); } }
.r2s-grid .r2s-mc { min-height:82px; padding:16px 10px; }
.r2s-mc.r2s-right { box-shadow:0 0 0 4px rgba(255,255,255,.55); }
.r2s-pods { text-align:center; padding-top:8px; }
.r2s-pods-title { font-family:var(--font-display); font-weight:var(--font-display-weight); font-size:1.5rem; color:#DE826A; animation:pulse 1s ease infinite; }
.r2s-pods-sub { font-size:.85rem; color:rgba(255,255,255,.8); margin:6px 0 14px; }
.r2s-pods-zones { display:flex; gap:12px; justify-content:center; margin-bottom:14px; }
.r2s-pod { position:relative; background:rgba(255,255,255,.1); border:3px solid rgba(255,255,255,.3); border-radius:var(--radius-xl);
  padding:14px 16px; color:#fff; font-family:inherit; cursor:pointer; text-align:center; display:flex; flex-direction:column; align-items:center; gap:4px; min-width:130px; min-height:150px; }
.r2s-pod .r2-pod-people { font-size:1.5rem; min-height:38px; max-width:160px; }
.r2s-pod.mine { border-color:#DE826A; background:rgba(222,130,106,.18); }
.r2s-pod.over { border-color:#3A4E9D; }
.r2s-pod-you { position:absolute; top:-8px; right:-6px; background:#DE826A; color:#1F2850; font-size:.6rem; font-weight:800; border-radius:99px; padding:2px 7px; }
.r2s-pods .r2-pods-timer { margin:0 auto; width:85%; }
.r2s-pods-result { margin-top:12px; font-weight:800; font-size:1rem; min-height:24px; }
.r2s-pods-result.ok { color:#2F6B38; }
.r2s-pods-result.fail { color:#ff7b6b; }

@media (max-width:480px) {
  .live-lobby-body { grid-template-columns:1fr; gap:16px; padding:20px; }
  .live-qr-block { display:none; }
  .live-code-display { font-size:2.6rem; }
  .live-q-verb { font-size:2.2rem; }
  .live-student-mc-btn { padding:20px 10px; min-height:90px; }
  .live-mode-pick { grid-template-columns:1fr; }
  .robot-runner .rr-name { max-width:64px; }
}
