/* live.css — gemeinsame Oberfläche für Live-Räume (Quiz-Live, Kooperation,
   Werkzeuge). Baut auf core/base.css + Theme-Tokens auf. */

/* ---- Großer Einstieg / Moduswahl ---- */
.live-pick{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; max-width:760px; margin:1.4rem auto; }
@media (max-width:560px){ .live-pick{ grid-template-columns:1fr; } }
.live-pick__btn{ display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; text-align:left;
  padding:1.2rem 1.3rem; background:var(--panel); border:1.5px solid var(--line); border-radius:var(--radius-card);
  box-shadow:var(--shadow); cursor:pointer; }
.live-pick__btn:hover{ transform:translateY(-2px); }
.live-pick__btn .em{ font-size:2rem; }
.live-pick__btn b{ color:var(--navy); font-size:1.15rem; }
.live-pick__btn span{ color:var(--muted); font-size:.9rem; }

/* ---- Join-Karte ---- */
.join-card{ max-width:440px; margin:1.4rem auto; text-align:center; }
.join-card input.code{ font-family:var(--font-mono); font-size:1.6rem; letter-spacing:.35em;
  text-align:center; text-transform:uppercase; width:100%; }

/* ---- Host-Leiste (Spielleitung) ---- */
.host-bar{ position:sticky; top:0; z-index:6; display:flex; flex-wrap:wrap; gap:.6rem; align-items:center;
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-card);
  box-shadow:var(--shadow); padding:.6rem .8rem; margin-bottom:1rem; }
.host-bar .room-code{ font-family:var(--font-mono); font-weight:900; font-size:1.4rem; letter-spacing:.18em;
  color:var(--navy); background:var(--soft); padding:.1rem .6rem; border-radius:var(--radius-sm); }
.host-bar .spacer{ flex:1 1 auto; }
.host-bar .count{ font-weight:800; color:var(--accent); }

/* ---- Projektor (Beamer-Ansicht) ---- */
.beamer{ text-align:center; padding:1rem; }
.beamer .room-code{ font-family:var(--font-mono); font-size:clamp(2.4rem,9vw,5rem); font-weight:900;
  letter-spacing:.12em; color:var(--navy); line-height:1.1; }
.beamer .join-hint{ color:var(--muted); font-size:1.05rem; margin:.3rem 0 .6rem; }
.beamer .qr{ display:inline-block; background:#fff; padding:.7rem; border-radius:var(--radius-btn); box-shadow:var(--shadow); }
.beamer .qr svg{ width:min(300px,60vw); height:auto; display:block; }

/* ---- Teilnehmer-Wolke / Lobby ---- */
.lobby-people{ display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin:1rem auto; max-width:900px; }
.person-chip{ background:var(--panel); border:1.5px solid var(--line); border-radius:var(--radius-pill);
  padding:.4rem .9rem; font-weight:700; box-shadow:var(--shadow); animation:pop var(--dur) var(--ease); }
@keyframes pop{ from{ transform:scale(.6); opacity:0; } to{ transform:none; opacity:1; } }

/* ---- Spieler-Antwortkacheln (groß, fingerfreundlich) ---- */
.play-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:.8rem; margin:1rem 0; }
@media (max-width:420px){ .play-tiles{ gap:.6rem; } }
.play-tile{ display:flex; align-items:center; gap:.6rem; min-height:84px; padding:1rem 1.2rem; border-radius:14px;
  color:#fff; font-weight:800; font-size:1.1rem; border:0; box-shadow:0 5px 0 rgba(0,0,0,.25); cursor:pointer; }
.play-tile:active{ transform:translateY(3px); box-shadow:0 2px 0 rgba(0,0,0,.25); }
.play-tile .sym{ font-size:1.6rem; }
.play-tile.t0{ background:var(--k-red); } .play-tile.t1{ background:var(--k-blue); }
.play-tile.t2{ background:var(--k-yellow); } .play-tile.t3{ background:var(--k-green); }
.play-tile.t4{ background:#7d3cc9; } .play-tile.t5{ background:#0c8e7a; }
.play-tile[disabled]{ opacity:.45; }
.play-tile.chosen{ outline:5px solid #fff; }

/* ---- Live-Balken (Umfragen / Verteilungen) ---- */
.live-bars{ display:flex; flex-direction:column; gap:.55rem; margin:1rem 0; }
.live-bar{ display:grid; grid-template-columns:minmax(8rem,16rem) 1fr auto; gap:.6rem; align-items:center; }
.live-bar__label{ font-weight:700; }
.live-bar__track{ height:26px; background:var(--soft); border-radius:var(--radius-pill); overflow:hidden; border:1px solid var(--line); }
.live-bar__fill{ height:100%; width:0; background:linear-gradient(90deg,var(--accent),var(--accent2));
  border-radius:var(--radius-pill); transition:width .5s var(--ease); }
.live-bar__n{ font-weight:800; color:var(--muted); min-width:2.5rem; text-align:right; }

/* ---- Bestenliste ---- */
.leaderboard{ list-style:none; padding:0; margin:1rem auto; max-width:560px; display:flex; flex-direction:column; gap:.5rem; }
.leaderboard li{ display:flex; align-items:center; gap:.7rem; background:var(--panel); border:1px solid var(--line);
  border-radius:var(--radius-btn); box-shadow:var(--shadow); padding:.6rem .9rem; }
.leaderboard .rank{ font-weight:900; color:var(--muted); min-width:1.8rem; }
.leaderboard .nm{ font-weight:800; flex:1; }
.leaderboard .sc{ font-weight:900; color:var(--accent); }
.leaderboard li.me{ outline:3px solid var(--accent); }
.leaderboard li:nth-child(1) .rank{ color:#d4a017; } /* Gold  */
.leaderboard li:nth-child(2) .rank{ color:#9aa3b2; } /* Silber */
.leaderboard li:nth-child(3) .rank{ color:#b87333; } /* Bronze */

/* ---- Status / Hinweise ---- */
.live-note{ background:var(--soft); border-left:4px solid var(--accent); border-radius:var(--radius-sm);
  padding:.6rem .8rem; margin:.6rem 0; color:var(--ink); }
.live-status{ color:var(--muted); font-weight:700; }
.big-q{ font-size:clamp(1.2rem,3.5vw,1.9rem); font-weight:800; color:var(--navy); text-align:center; margin:1rem 0; }
.timer-ring{ font-variant-numeric:tabular-nums; font-weight:900; font-size:1.4rem; color:var(--accent); }

/* ---- Werkzeug-/Spiel-Kachelgitter (Bereichs-Startseiten) ---- */
.tool-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; margin:1.2rem 0; }
.tool-card{ display:flex; flex-direction:column; gap:.4rem; text-align:left; padding:1.1rem; background:var(--panel);
  border:1px solid var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow); cursor:pointer;
  text-decoration:none; color:inherit; transition:transform var(--dur) var(--ease); }
.tool-card:hover{ transform:translateY(-3px); }
.tool-card__icon{ font-size:2.1rem; }
.tool-card__title{ font-weight:800; color:var(--navy); font-size:1.1rem; }
.tool-card__desc{ color:var(--muted); font-size:.92rem; }
.tool-card__tag{ align-self:flex-start; margin-top:.2rem; font-size:.72rem; font-weight:700; padding:.12rem .5rem;
  border-radius:var(--radius-pill); background:var(--soft); color:var(--muted); }

/* ---- Bereichs-Kopf mit Zurück-Navigation ---- */
.area-head{ display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.area-head h1{ margin:0; color:var(--navy); }
.area-head .spacer{ flex:1; }
