/* ===== Base / Reset ===== */
:root{
  --bg:#0b0f14;
  --card:#111827;
  --line:#1f2937;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#22c55e;
  --danger:#ef4444;
  --radius:14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* ===== Common ===== */
.hidden{ display:none!important; }
.wrap{ max-width:980px; margin:0 auto; padding:16px; }
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.hint{ color:var(--muted); font-size:14px; }
.btn{
  appearance:none; border:0; border-radius:12px;
  padding:14px 16px; font-size:16px; font-weight:600;
  background:#1f2937; color:var(--text); cursor:pointer;
}
.btn.primary{ background:var(--accent); color:#052e16; }
.btn.warn{ background:#f59e0b; color:#3b2600; }
.btn.danger{ background:var(--danger); color:#2b0b0b; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

.field{ display:block; margin:12px 0; }
.field input{
  width:100%; padding:14px; border-radius:12px;
  border:1px solid var(--line); background:#020617; color:var(--text);
}

/* ===== Host ===== */
body.host{ overflow:hidden; }
.host-shell{
  height:100vh; display:grid; grid-template-rows:auto 1fr auto;
  gap:12px; padding:12px;
}
.host-top{ display:flex; gap:12px; align-items:center; }
.host-main{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:12px; height:100%;
}
@media(max-width:900px){
  .host-main{ grid-template-columns:1fr; }
}
.qbox{ height:100%; display:flex; flex-direction:column; gap:12px; }
#qTitle{ font-size:18px; color:var(--muted); }
#qText{ font-size:28px; line-height:1.25; }
.answers{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bigans{
  padding:18px; border-radius:14px; background:#020617; border:1px solid var(--line);
  font-size:18px;
}
.board{ display:flex; flex-direction:column; gap:8px; }
.lbrow{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px; border-radius:12px; background:#020617; border:1px solid var(--line);
}
.biglb{ font-size:20px; }

/* ===== Player (fullscreen, minimal) ===== */
body.player{
  height:100vh;
  overflow:hidden;
}
.player-shell{
  height:100vh;
  width:100vw;
  display:flex;
  flex-direction:column;
  padding:12px;
  gap:12px;
}
.player-main{
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* Während der Frage: NUR Antworten (Timer komplett entfernt) */
.player-answers{
  flex:1;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media(min-width:720px){
  .player-answers{ grid-template-columns:1fr 1fr; }
}

.ansbtn{
  border-radius:16px;
  border:1px solid var(--line);
  background:#020617;
  color:var(--text);
  padding:22px;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
}
.ansbtn:disabled{ opacity:.6; }

/* Nicht-Frage-Zustände */
.player-nonquestion{
  color:var(--muted);
  padding:8px 0;
}
.result{ font-size:18px; }

/* Leaderboard Card beim Player */
#playerBoardCard .board{ gap:6px; }

/* ===== Login ===== */
.top h1{ margin:0 0 6px 0; }
.top .sub{ margin:0; color:var(--muted); }


/* === Host: Buttons mit Abstand === */
button.btn {
  margin: 6px;
}

/* Falls Buttons in einer Leiste sind */
.controls, .host-controls, .host-bottom, .btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Host: Antwortboxen mit etwas Luft */
.answers {
  gap: 12px;
}

