/* Spieler-Ansichten (Schritt 7): großer runder Buzzer, kompakter Punktestand,
   Spielbrett am Handy ohne Scrollen. Gilt nur für Spieler (.player-question-modal,
   .jeopardy-player-view ohne Host-Szene) und nie für OBS (.obs-view). */

/* ---------- Buzzer: groß, rund, mittig ---------- */
body:not(.obs-view) .player-question-modal .buzzer-panel{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0;padding:14px;text-align:center}
body:not(.obs-view) .player-question-modal .buzzer-head{display:flex;flex-direction:column-reverse;align-items:center;gap:12px;width:100%}
body:not(.obs-view) .player-question-modal .buzzer-head>div{display:flex;flex-direction:column;align-items:center}
body:not(.obs-view) .player-question-modal .buzzer-head>div>b{display:none}
body:not(.obs-view) .player-question-modal .buzzer-head .small{font-size:15px;font-weight:700}
body:not(.obs-view) .player-question-modal .buzzer-button{display:grid;place-items:center;width:clamp(150px,24vh,220px);height:clamp(150px,24vh,220px);min-width:0;padding:16px;border-radius:50%;font-size:clamp(22px,3.4vh,32px);line-height:1.15;letter-spacing:.02em;box-shadow:0 8px 0 rgba(0,0,0,.28);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body:not(.obs-view) .player-question-modal .buzzer-button:not(:disabled){border:6px solid #fff0b8;background:#f4c542;color:#1a1300;animation:buzzer-ready 1.4s ease-in-out infinite}
body:not(.obs-view) .player-question-modal .buzzer-button:not(:disabled):active{transform:translateY(6px);box-shadow:0 2px 0 rgba(0,0,0,.28)}
body:not(.obs-view) .player-question-modal .buzzer-button:disabled:not(.buzzed){opacity:1;border:4px solid #2c4268;background:#1b2c47;color:#8fa3c2;font-size:clamp(15px,2.2vh,19px);box-shadow:none}
body:not(.obs-view) .player-question-modal .buzzer-button.buzzed{opacity:1;border:6px solid #8fe3b2;background:#15803d;color:#fff}
body:not(.obs-view) .player-question-modal .buzzer-list{width:100%;max-width:420px;display:flex;flex-direction:column;gap:4px;text-align:left}
body:not(.obs-view) .player-question-modal .buzzer-list>.muted{text-align:center}
@keyframes buzzer-ready{0%,100%{box-shadow:0 8px 0 rgba(0,0,0,.28),0 0 0 0 rgba(244,197,66,.55)}50%{box-shadow:0 8px 0 rgba(0,0,0,.28),0 0 0 16px rgba(244,197,66,0)}}
@media (prefers-reduced-motion:reduce){body:not(.obs-view) .player-question-modal .buzzer-button{animation:none!important}}

/* ---------- Handy: Frage oben, Buzzer im Daumenbereich, Punkte als Leiste ---------- */
@media (max-width:900px){
  body:not(.obs-view) .player-question-layout>.question{display:flex!important;flex-direction:column;gap:12px}
  body:not(.obs-view) .player-question-layout>.question>.buzzer-panel{margin-top:auto;border:0;background:none;padding:6px 0 0}
  body:not(.obs-view) .player-question-layout>.question>.row:last-child{margin-top:0!important}

  /* Punktestand: alle Teams in einer Zeile, nur Name und Zahl */
  body:not(.obs-view) .player-question-layout .player-side-scoreboard{max-height:none!important;overflow:visible!important;padding:0!important;background:none!important;border:0!important}
  body:not(.obs-view) .player-question-layout .player-side-scoreboard-list{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px!important}
  body:not(.obs-view) .player-question-layout .player-side-scoreboard .score{flex:none!important;min-width:0;min-height:0;margin:0;padding:6px 4px!important;text-align:center;border-radius:10px}
  body:not(.obs-view) .player-question-layout .player-side-scoreboard .score>b{display:block;font-size:11px;line-height:1.25}
  body:not(.obs-view) .player-question-layout .player-side-scoreboard .team-name-member{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body:not(.obs-view) .player-question-layout .player-side-scoreboard .team-score{margin:0;font-size:16px;line-height:1.2}
  body:not(.obs-view) .player-question-layout .player-side-scoreboard .score-unit{display:none}
  body:not(.obs-view) .player-question-layout .player-side-scoreboard .score.own-team{outline:2px solid #f4c542;outline-offset:-2px}
}

/* ---------- Handy: Spielbrett und Punktestand ohne Scrollen ---------- */
@media (max-width:600px){
  body.jeopardy-page:not(.obs-view) .jeopardy-player-view:not(.host-board-scene){padding:52px 8px 16px}
  body.jeopardy-page:not(.obs-view) .jeopardy-player-view:not(.host-board-scene) .jeopardy-board-scoreboard .player-side-scoreboard-list{gap:8px!important}
  body.jeopardy-page:not(.obs-view) .jeopardy-player-view:not(.host-board-scene) .jeopardy-board-scoreboard .score{width:calc(50% - 4px)!important;flex:0 0 calc(50% - 4px)!important}
  body.jeopardy-page:not(.obs-view) .jeopardy-player-view:not(.host-board-scene) .jeopardy-board-scoreboard .score.own-team{filter:drop-shadow(0 0 6px #f4c542)}
  /* HUB-Knopf oben rechts statt über den Teamkarten */
  body:not(.obs-view):has(.jeopardy-player-view:not(.host-board-scene)) .player-hub-button{top:8px;bottom:auto;right:8px;min-width:0;min-height:38px;padding:6px 14px;font-size:13px}
  body:not(.obs-view):has(#modal.player-question-modal) .player-hub-button{display:none}
}
