/* v274 — One Würfel Extrem multiplayer design across waiting room,
   block scorecard, virtual dice and camera. Presentation only. */
body.kniffel-game-active,body.kniffel-camera-active{
  background:#0d1931;color:#e9f2ff;
}
body.kniffel-game-active .topbar,body.kniffel-camera-active .topbar{
  background:#13233e;color:#f2f7ff;border-bottom:1px solid #405d86;
  box-shadow:0 4px 15px #08132728;
}
body.kniffel-game-active .topbar h1,body.kniffel-camera-active .topbar h1{color:#f7faff}
body.kniffel-game-active .brand-caption,body.kniffel-camera-active .brand-caption{color:#becfea}
body.kniffel-game-active .mode-badge,body.kniffel-camera-active .mode-badge{
 background:#273d65;color:#dae9ff;border:1px solid #5975a2;
}
body.kniffel-game-active .debug-version,body.kniffel-camera-active .debug-version{
 color:#d8e7ff;background:#243a5f;border:1px solid #4f6d9d;
}
body.kniffel-game-active #userBadge,body.kniffel-camera-active #userBadge{color:#eff5ff}
body.kniffel-game-active .app-shell,body.kniffel-camera-active .app-shell{
 background:transparent;padding-bottom:calc(env(safe-area-inset-bottom) + 100px);
}
body.kniffel-game-active .bottom-nav{
 background:#172942;border-top:1px solid #58709a;
 box-shadow:0 -5px 22px #06112766;
}
body.kniffel-game-active .bottom-nav .nav-btn{
 background:transparent;color:#c6d8f1;
}
body.kniffel-game-active .bottom-nav .nav-btn.active{
 background:#365ee5;color:white;border:1px solid #718ff2;
}
#screenLobby.is-waiting > .live-header{display:none!important}
#screenLobby.is-waiting > #finishReadyBanner{display:none!important}
#screenLobby .live-header{
 background:#1b2c4a;color:#f4f8ff;border:1px solid #54719b;
 border-radius:15px;padding:11px;box-shadow:0 5px 15px #0615303b;
}
#screenLobby .live-header .scorebar{gap:6px}
#screenLobby .live-header .small-label{color:#c4d5eb}
#screenLobby .live-header .leaderboard-lines{
 display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin-top:6px;
 overscroll-behavior-x:contain;scrollbar-width:thin;
}
#screenLobby .live-header .leader-line{
 min-width:120px;flex:1 0 120px;max-width:200px;
 display:flex;align-items:center;gap:6px;
 padding:8px;background:#293f61;border:1px solid #617fa9;color:#f5f9ff;
 border-radius:11px;
}
#screenLobby .live-header .leader-line.active-turn{border-color:#ffda72}
#screenLobby .live-header .leader-name{font-size:.8rem;color:#fff}
#screenLobby .live-header .leader-meta{font-size:.69rem;color:#bfcee5}
#screenLobby .live-header .leader-score{font-weight:900;font-size:1.1rem;color:#fff}
#screenLobby .turn-info{color:#dbe8f9;font-weight:800}
#screenLobby .waiting-room-card{
 background:#1a2b49;color:#edf5ff;border:1px solid #5774a0;
 border-radius:18px;padding:14px;box-shadow:0 6px 20px #06112640;
}
#screenLobby .waiting-room-heading{
 display:flex;justify-content:space-between;align-items:flex-start;gap:10px;
}
#screenLobby .waiting-room-eyebrow{
 color:#bad0f3;font-weight:800;font-size:.7rem;letter-spacing:.07em;
}
#screenLobby .waiting-room-heading h2{color:#f6f9ff;font-size:1.55rem;margin:4px 0 0}
#screenLobby .waiting-room-count{
 background:#2d466d;border:1px solid #7996c4;
 border-radius:99px;padding:6px 9px;font-size:.77rem;white-space:nowrap;
 color:#f0f6ff;font-weight:800;
}
#screenLobby .waiting-room-intro{font-size:.84rem;color:#d2dff2;line-height:1.45;margin:9px 0}
#screenLobby .waiting-room-code{
 display:flex;gap:8px;align-items:center;flex-wrap:wrap;
 padding:10px;background:#213959;border:1px solid #5877a4;
 border-radius:12px;margin:10px 0 13px;color:#eaf2ff;
}
#screenLobby .waiting-room-code strong{font-size:.8rem;color:#c6d6ee}
#screenLobby .waiting-room-code span{font-size:1.12rem;font-weight:900;letter-spacing:.12em;color:white}
#screenLobby .waiting-room-code button{margin-left:auto;min-height:36px;padding:6px 11px}
#screenLobby .waiting-room-member-head{
 display:flex;justify-content:space-between;align-items:center;gap:8px;
 margin:8px 0;font-size:.88rem;
}
#screenLobby .waiting-room-member-head span{font-size:.69rem;color:#aebfda}
#screenLobby .waiting-room-members{gap:7px;margin:0}
#screenLobby .waiting-room-members .lobby-person-row{
 background:#263d60;border:1px solid #5a759f;
 border-radius:12px;padding:9px 11px;color:#f2f7ff;min-height:51px;
}
#screenLobby .waiting-room-members .lobby-person-row strong{color:#fff}
#screenLobby .waiting-room-members .lobby-person-meta .small-label{color:#b8cbe6;font-size:.73rem}
#screenLobby .waiting-room-members .waiting-up-btn,
#screenLobby .waiting-room-members .waiting-down-btn{
 width:37px;min-width:37px;min-height:37px;padding:5px;
 background:#395576;color:#eaf2ff;border:1px solid #6c89b5;border-radius:9px;
}
#screenLobby .waiting-room-members button:disabled{opacity:.45}
#screenLobby .waiting-room-controls{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:8px;margin-top:13px;
}
#screenLobby .waiting-room-controls button{
 min-height:48px;border-radius:12px;font-size:.94rem;font-weight:850;
 padding:10px;
}
#screenLobby .waiting-room-controls button:not(.secondary){
 color:white;background:linear-gradient(125deg,#3765e8,#4e83f7);border:1px solid #8bb0ff;
}
#screenLobby .waiting-room-controls button:disabled{opacity:.5}
#screenLobby .waiting-room-controls button.secondary{
 background:#324b70;color:#edf6ff;border:1px solid #7893ba;
}
#screenLobby .waiting-room-help{
 text-align:center;font-size:.75rem;color:#b6cbe8;line-height:1.35;margin:8px 0 0;
}
#screenLobby .waiting-room-card #waitingRoomInviteStatus,
#screenLobby .waiting-room-card #waitingRoomInviteStatusDice{
 padding:10px;background:#21395a;color:#e9f2ff;
 border:1px solid #4c709d;border-radius:12px;margin-top:10px!important;
}
#screenLobby .waiting-room-card .invite-status-row{
 background:#273f61;color:#f1f6ff;border-color:#5876a2;
}
#screenLobby .waiting-room-card .invite-status-row strong{color:white}
#screenLobby .waiting-room-card .invite-status-row .small-label{color:#bfcde4}

/* One shared account-selection panel is moved to the active lobby card. */
#screenLobby .kniffel-waiting-invites{
 margin:13px 0 2px;padding:13px;background:#172941;
 border:1px solid #6886b5;border-radius:15px;color:#f0f6ff;
}
#screenLobby .kniffel-waiting-invites[hidden]{display:none!important}
#screenLobby .kwi-topline{
 display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;
}
#screenLobby .kwi-topline h3{font-size:.96rem;margin:0;color:#fff}
#screenLobby .kwi-topline button{width:auto;min-height:37px;font-size:.74rem;padding:7px 9px}
#screenLobby .kwi-description{margin:8px 0;color:#c7d9f2;font-size:.8rem;line-height:1.45}
#screenLobby .kwi-direct-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0 12px}
#screenLobby .kwi-direct-actions button{
 width:100%;min-height:42px;border:1px solid #6c8dbb;border-radius:11px;
 color:#fff;background:#304a71;font-size:.83rem;font-weight:780;padding:7px;
}
#screenLobby .kwi-picker > label{display:block;font-size:.79rem;font-weight:750;margin-bottom:6px}
#screenLobby #kwiSearch{
 width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:10px 12px;
 border:1px solid #829dc4;border-radius:11px;
 font-size:16px;color:#10223e;background:#f2f6ff;
}
#screenLobby .kwi-roster{
 display:flex;flex-direction:column;gap:7px;
 max-height:255px;overflow-y:auto;overscroll-behavior:contain;
 padding:2px 1px;margin:10px 0;
}
#screenLobby .kwi-choice{
 display:flex;align-items:center;gap:10px;cursor:pointer;
 padding:9px 10px;min-height:53px;border:1px solid #52719a;
 border-radius:11px;background:#274160;color:#eff6ff;box-sizing:border-box;
}
#screenLobby .kwi-choice:has(input:checked){background:#34577c;border-color:#f0c75b}
#screenLobby .kwi-choice input[type="checkbox"]{
 flex:0 0 auto;width:21px;height:21px;margin:0;accent-color:#39ef86;
}
#screenLobby .kwi-choice.is-unavailable{opacity:.62;cursor:default}
#screenLobby .kwi-choice-name{display:flex;flex-direction:column;gap:3px;min-width:0}
#screenLobby .kwi-choice-name strong{font-size:.9rem;color:#fff;overflow-wrap:anywhere}
#screenLobby .kwi-choice-name small{font-size:.76rem;color:#c2d5ef}
#screenLobby .kwi-empty{margin:3px 0;font-size:.8rem;color:#cbd8ee;line-height:1.4}
#screenLobby .kwi-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}
#screenLobby .kwi-count{font-size:.78rem;color:#bbd0ee}
#screenLobby #kwiSend{
 min-height:45px;padding:8px 12px;min-width:0;
 border:1px solid #99b6ff;border-radius:12px;
 background:linear-gradient(115deg,#3c68eb,#4b86fb);
 color:#fff;font-size:.84rem;font-weight:850;
}
#screenLobby #kwiSend:disabled{opacity:.5}
#screenLobby .kwi-feedback{font-size:.78rem;color:#8df6bb;margin:6px 0 0;min-height:0}
#screenLobby .kwi-feedback[data-error="true"]{color:#ffa6ae}
#screenLobby .kwi-copy-link{
 display:block;width:auto;min-height:35px;padding:7px 10px;
 margin:10px 0 0;color:#c8dff9;background:transparent;
 border:1px solid #536f96;border-radius:9px;font-size:.76rem;
}
#screenLobby .kniffel-waiting-invites.kwi-guest .kwi-picker,
#screenLobby .kniffel-waiting-invites.kwi-guest #kwiRefresh{display:none}
#screenLobby .kniffel-waiting-invites button.secondary{
 color:#e6f0ff;background:#2d476d;border:1px solid #6a87af;
}
/* The Block scorecard keeps all native fields and edit controls, but uses
   the same frame and compact player tabs as the virtual dice mode. */
#viewGame > .card.mobile-only,#viewGame > .card.desktop-only{
 background:#1a2d4d;border:1px solid #54709d;color:#eff6ff;
 border-radius:16px;padding:10px;
}
#viewGame .section-head h2{font-size:1.04rem;color:#f5f9ff}
#viewGame .mobile-tabs{display:flex;gap:6px;scrollbar-width:thin;padding-bottom:4px}
#viewGame .mobile-tab{
 flex:1 0 auto;min-height:43px;border:1px solid #6c89b6;
 border-radius:10px;padding:8px 12px;background:#2c446b;
 color:#eaf2ff;font-size:.81rem;font-weight:800;
}
#viewGame .mobile-tab.active{background:#3b65de;color:#fff;border-color:#a5bdff}
#viewGame .score-card{
 background:#f5f8ff;color:#172945;border:1px solid #8ba4c9;
 border-radius:13px;overflow:hidden;
}
#viewGame .score-card h3{
 background:#dbe8fa;color:#213b62;font-size:1.02rem;padding:10px 12px;
}
#viewGame .score-card .score-row{padding:9px 11px;gap:9px}
#viewGame .score-card .score-row label{color:#213756;font-size:.86rem}
#viewGame .score-card .score-row input{
 color:#1e3455;background:#fff;border-radius:9px;min-height:39px;
}
#viewGame .card.desktop-only .table-wrap{
 border-radius:12px;background:#f6faff;color:#182d4b;overflow-x:auto;
}
#viewGame .card.desktop-only th,#viewGame .card.desktop-only td{color:#1c2e49}

/* Camera mode: all existing controls, correction fields and auto detection
   keep their original IDs/handlers; only their presentation is changed. */
#liveModeView{
 color:#edf5ff;max-width:950px;margin:0 auto;padding-bottom:25px;
}
#liveModeView > .card{
 background:#192c4a;border:1px solid #54719d;
 box-shadow:0 10px 26px #0716304a;border-radius:18px;padding:12px;
}
#liveModeView .camera-unified-head h2{color:#f5f9ff;font-size:1.3rem;margin:3px 0}
#liveModeView .camera-eyebrow{color:#bfd5f4;font-size:.7rem;font-weight:850}
#liveModeView .camera-unified-head button{
 width:auto;min-height:39px;border:1px solid #738eb8;
 background:#2d456a;color:#f7faff;
}
#liveModeView .camera-social-bar{
 margin:9px 0 12px;padding:11px;
 background:#243c60;border:1px solid #6180ad;
 border-radius:13px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;
}
#liveModeView .camera-social-bar > div{flex:1 1 170px;min-width:0}
#liveModeView .camera-social-bar strong{font-size:.9rem;color:#fff}
#liveModeView .camera-social-bar p{margin:3px 0 0;font-size:.77rem;color:#d1e0f5;line-height:1.4}
#liveModeView .camera-social-bar button{flex:0 1 auto;min-height:41px;font-size:.81rem}
#liveModeView .camera-social-bar button[hidden]{display:none}
#liveModeView .card.muted{
 background:#223958;color:#f1f6ff;border:1px solid #56749c;
 border-radius:14px;padding:12px;box-shadow:none;
}
#liveModeView .camera-video-head strong{color:#fff}
#liveModeView .camera-video-head .chip{background:#355174;color:#e9f4ff;border-color:#7e97bb}
#liveModeView .subtitle,#liveModeView .small-label{color:#c7d7eb;font-size:.79rem;line-height:1.4}
#liveModeView .camera-preview{border:1px solid #8ba1c7;border-radius:14px;margin-top:8px;box-shadow:none}
#liveModeView #liveMainVideo{min-height:210px;max-height:48dvh;background:#101e32;object-fit:contain}
#liveModeView #liveMainStatus{color:#d8ebff;font-size:.83rem}
#liveModeView .dice-status-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0;
}
#liveModeView .dice-status-grid > div{
 display:flex;flex-direction:column;gap:4px;min-width:0;
 padding:9px;background:#293f61;border:1px solid #6686b1;border-radius:10px;
}
#liveModeView .dice-status-grid strong{color:#fff;font-size:.95rem;overflow-wrap:anywhere}
#liveModeView .camera-result-head{margin-top:14px;gap:7px}
#liveModeView .camera-result-head h3{margin:0;color:#fff}
#liveModeView #liveDiceBoard{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;
 max-width:320px;margin:8px auto;
}
#liveModeView #liveDiceBoard .v2-die-card{min-width:0;width:100%;max-width:100%}
#liveModeView #liveDiceBoard .v2-die-cube{width:min(70px,76%);height:auto;aspect-ratio:1}
#liveModeView .button-row{display:flex;flex-wrap:wrap;gap:7px}
#liveModeView .button-row > button{
 flex:1 1 155px;min-height:42px;font-weight:800;
 border-radius:11px;padding:8px 10px;
}
#liveModeView #rollLiveVirtualBtn,#liveModeView #startLiveMainBtn{
 background:linear-gradient(125deg,#406dec,#5485f7);color:white;
}
#liveModeView #applyLiveMainBtn{background:linear-gradient(120deg,#f8d986,#eab94c);color:#3c2b0c}
#liveModeView button.secondary{background:#2c466e;border:1px solid #7792bb;color:#edf6ff}
#liveModeView button:disabled{opacity:.5}
#liveModeView #liveSuggestionsBox{
 background:#223857;color:#eaf4ff;border:1px solid #6581ad;
}
#liveModeView #liveSuggestionsBox h3{color:#fff;font-size:1.02rem}
#liveModeView #liveSuggestionsList .suggestion-card{
 background:#edf4ff;color:#1e3151;border-radius:11px;
}
#liveModeView #liveSuggestionsList .small-label{color:#5c6b83}
#liveModeView #liveCorrectionFields{color:#f5f9ff}
#liveModeView #liveCorrectionFields input,#liveModeView #liveCorrectionFields select{
 background:#f5f9ff;color:#172944;
}
@media(max-width:560px){
 body.kniffel-game-active .topbar,body.kniffel-camera-active .topbar{
  padding:8px 11px 6px;gap:5px;
 }
 body.kniffel-game-active .brand h1,body.kniffel-camera-active .brand h1{font-size:1rem}
 body.kniffel-game-active .brand-symbol,body.kniffel-camera-active .brand-symbol{
  width:34px;height:34px;flex-basis:34px;font-size:20px;border-radius:10px;
 }
 body.kniffel-game-active .brand-meta,body.kniffel-camera-active .brand-meta{
  margin-top:3px;margin-left:43px;
 }
 body.kniffel-game-active .app-shell,body.kniffel-camera-active .app-shell{
  padding:8px 9px calc(env(safe-area-inset-bottom) + 94px);
 }
 #screenLobby .waiting-room-card{padding:10px}
 #screenLobby .waiting-room-heading h2{font-size:1.33rem}
 #screenLobby .waiting-room-member-head{flex-wrap:wrap}
 #screenLobby .waiting-room-member-head span{font-size:.68rem}
 #screenLobby .kniffel-waiting-invites{padding:10px}
 #screenLobby .kwi-roster{max-height:235px}
 #screenLobby .waiting-room-controls button{font-size:.86rem;padding:8px}
 #screenLobby .live-header{padding:8px}
 #screenLobby .live-header .leader-line{min-width:110px;flex-basis:110px}
 #screenLobby .turn-info{font-size:.78rem}
 #liveModeView > .card{padding:9px}
 #liveModeView .camera-social-bar{padding:9px}
 #liveModeView .camera-social-bar button{flex:1 1 auto}
 #liveModeView .dice-status-grid > div{padding:7px}
}

/* Chat uses the existing shared chat_messages table in every play style. */
#viewGame .kniffel-chat-shortcut{
 width:auto;min-height:37px;display:inline-flex;align-items:center;
 padding:6px 12px;border-radius:10px;border:1px solid #7899c6;
 background:#2c466b;color:#eef6ff;font-size:.81rem;font-weight:800;
 margin-bottom:8px;
}
#liveModeView .camera-header-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
#liveModeView .camera-header-actions button{min-height:37px;width:auto;padding:6px 9px;font-size:.77rem}
#liveModeView .camera-header-actions button[hidden]{display:none}

/* Mode picker and game creation share the same visual hierarchy as the match. */
#homeKniffelModes{
 background:#182b4b;color:#eff6ff;border:1px solid #5f7fb0;
 border-radius:18px;padding:13px;
}
#homeKniffelModes .home-kniffel-header h2{color:#f6faff;font-size:1.15rem}
#homeKniffelModes .small-label{color:#cbddf6}
#homeKniffelModes .home-back-games{
 width:auto;padding:7px 10px;min-height:38px;
 background:#304a70;color:#f2f8ff;border:1px solid #819dca;border-radius:11px;
}
#homeKniffelModes .mode-picker{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0;
}
#homeKniffelModes .mode-card{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
 min-width:0;min-height:113px;padding:11px;border:1px solid #7593c0;
 border-radius:13px;background:linear-gradient(135deg,#2c4c82,#365eb0);
 color:#fff;text-align:left;box-shadow:none;gap:4px;
}
#homeKniffelModes .mode-card:nth-child(2){background:linear-gradient(135deg,#315f95,#276b9b)}
#homeKniffelModes .mode-card:nth-child(3){background:linear-gradient(135deg,#24675e,#2e617c)}
#homeKniffelModes .mode-card .mode-icon{font-size:1.33rem;line-height:1.25}
#homeKniffelModes .mode-card .mode-title{font-size:.91rem;color:#fff;font-weight:850}
#homeKniffelModes .mode-card .mode-subtitle{font-size:.7rem;color:#d5e7ff;line-height:1.3;overflow-wrap:anywhere}
#homeKniffelActions .compact-start-card{
 background:#f4f7fd;border:1px solid #cbd9ed;
 border-radius:16px;box-shadow:0 5px 14px #254a7720;
}
#homeKniffelActions .compact-start-card h2{font-size:1.13rem;color:#1c3356}
#homeKniffelActions #btnCreateGame{
 min-height:51px;border:1px solid #8ca9fc;border-radius:12px;
 background:linear-gradient(120deg,#315adb,#507cf1);color:#fff;
 font-size:.98rem;font-weight:850;
}
#homeKniffelActions .kniffel-home-invite-hint{
 width:100%;margin:2px 0 0;font-size:.79rem;line-height:1.4;color:#536b91;
}
#homeKniffelActions #joinCode{
 background:#fff;color:#192d4b;min-width:0;border-radius:10px;
}
#homeKniffelActions #btnJoinGame{min-height:43px;border-radius:10px}
@media(max-width:390px){
 #homeKniffelModes{padding:10px}
 #homeKniffelModes .mode-picker{gap:6px}
 #homeKniffelModes .mode-card{padding:8px;min-height:106px}
 #homeKniffelModes .mode-card .mode-title{font-size:.81rem}
 #homeKniffelModes .mode-card .mode-subtitle{font-size:.67rem}
}


/* v276 — Contrast fix for the light subviews inside the dark game shell.
   The game header stays dark; scorecards, tables and lists stay readable. */
body.kniffel-game-active #userBadge,
body.kniffel-camera-active #userBadge{
  color:#1d3457;background:#f7faff;border-color:#aebed8;
}
body.kniffel-game-active #userBadge .user-avatar,
body.kniffel-camera-active #userBadge .user-avatar{color:#fff}
body.kniffel-game-active #screenLobby :is(#viewListe,#viewOverview,#viewPlayers,#viewBestenliste,#viewSpielinfo) > .card{
  background:#fff;color:#1d3252;border-color:#d7e1ef;
}
body.kniffel-game-active #screenLobby :is(#viewListe,#viewOverview,#viewPlayers,#viewBestenliste,#viewSpielinfo) > .card .section-head h2,
body.kniffel-game-active #screenLobby #viewListe .list-group-title,
body.kniffel-game-active #screenLobby #viewListe .list-score{
  color:#1a3152;
}
body.kniffel-game-active #screenLobby :is(#viewListe,#viewOverview,#viewPlayers,#viewBestenliste,#viewSpielinfo) .small-label,
body.kniffel-game-active #screenLobby :is(#viewListe,#viewOverview,#viewPlayers,#viewBestenliste,#viewSpielinfo) .subtitle{
  color:#526985;
}
body.kniffel-game-active #screenLobby #viewListe :is(.list-group,.list-item-row,.edit-row){
  color:#1c3455;border-color:#d9e2f0;
}
body.kniffel-game-active #screenLobby #viewListe .list-group{background:#fff}
body.kniffel-game-active #screenLobby #viewListe .list-item-row{
  background:#f4f7fc;
}
body.kniffel-game-active #screenLobby #viewListe .list-item-row strong{
  color:#223653;
}
body.kniffel-game-active #screenLobby #viewListe .list-item-row .list-rank{
  color:#fff;background:#1b2d48;
}
body.kniffel-game-active #screenLobby #viewListe .list-group-title{
  font-size:1.06rem;line-height:1.35;overflow-wrap:anywhere;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table-container{
  background:#fff;border:1px solid #d9e3ef;border-radius:12px;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table{
  color:#243955;background:#fff;font-variant-numeric:tabular-nums;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table th,
body.kniffel-game-active #screenLobby #viewOverview .overview-table td{
  color:#243955;border-color:#dbe4f0;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table thead th,
body.kniffel-game-active #screenLobby #viewOverview .overview-table tbody th{
  color:#1b3353;background:#eaf1fa;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table tr.computed-row th,
body.kniffel-game-active #screenLobby #viewOverview .overview-table tr.computed-row td{
  color:#1e395c;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table td.active-turn{
  color:#992936;background:#fff1f2!important;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table thead th.active-turn{
  color:#a52438;background:#ffe8eb!important;
}
body.kniffel-game-active #screenLobby #viewOverview .overview-table .badge.active-turn{
  color:#a52438;background:#ffe8eb;
}
body.kniffel-game-active #screenLobby #viewBestenliste .list-item-row,
body.kniffel-game-active #screenLobby #viewPlayers .list-item-row{
  color:#1d3454;
}
/* iPhone: the live score stays visible when scrolling but no longer covers
   the active screen with tall player cards and an empty turn-info line. */
@media(max-width:760px){
  #screenLobby:not(.is-waiting) > .live-header{
    padding:6px 8px;min-height:0;border-radius:0 0 12px 12px;
    box-shadow:0 3px 9px #07162a40;
  }
  #screenLobby:not(.is-waiting) > .live-header .scorebar{gap:0}
  #screenLobby:not(.is-waiting) > .live-header .scorebar > div:first-child{
    flex:1 1 100%;width:100%;
  }
  #screenLobby:not(.is-waiting) > .live-header .scorebar > div:first-child > .small-label,
  #screenLobby:not(.is-waiting) > .live-header #turnInfo{
    display:none;
  }
  #screenLobby:not(.is-waiting) > .live-header #leaderTicker{
    display:flex!important;flex-wrap:nowrap;
    gap:5px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  #screenLobby:not(.is-waiting) > .live-header #leaderTicker::-webkit-scrollbar{
    display:none;
  }
  #screenLobby:not(.is-waiting) > .live-header .leader-line{
    flex:1 0 140px;max-width:none;min-width:135px;
    min-height:51px;padding:5px 7px;gap:5px;
    border-radius:9px;box-sizing:border-box;
  }
  #screenLobby:not(.is-waiting) > .live-header .leader-line-left{gap:5px}
  #screenLobby:not(.is-waiting) > .live-header .leader-rank{
    min-width:23px;width:23px;height:23px;font-size:.69rem;
  }
  #screenLobby:not(.is-waiting) > .live-header .leader-name{
    font-size:.75rem;line-height:1.16;white-space:normal;
  }
  #screenLobby:not(.is-waiting) > .live-header .leader-name .badge{
    display:inline-block;padding:2px 5px;margin-top:2px;
    font-size:.59rem;line-height:1.1;
  }
  #screenLobby:not(.is-waiting) > .live-header .leader-meta{
    font-size:.64rem;margin-top:2px;line-height:1.15;
  }
  #screenLobby:not(.is-waiting) > .live-header .leader-score{
    font-size:.99rem;
  }
  #screenLobby #viewListe .section-head{
    flex-wrap:wrap;align-items:flex-start;gap:8px;
  }
  #screenLobby #viewListe .section-head > .button-row{
    flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  #screenLobby #viewListe .section-head > .button-row button{
    width:100%;min-width:0;min-height:42px;font-size:.85rem;
    padding:8px 6px;white-space:normal;
  }
  #screenLobby #viewListe .list-group{padding:10px}
  #screenLobby #viewListe .list-item-row{
    grid-template-columns:28px minmax(0,1fr) auto;
    gap:8px;padding:10px 8px;
  }
  #screenLobby #viewListe .list-score{font-size:1rem}
  #screenLobby #viewListe .list-tools{gap:5px}
  #screenLobby #viewListe .list-tools .mini-btn{
    font-size:.78rem;padding:7px 8px;min-height:37px;
  }
  #screenLobby #viewOverview .overview-table{
    font-size:.82rem;min-width:100%;
  }
  #screenLobby #viewOverview .overview-table th,
  #screenLobby #viewOverview .overview-table td{
    padding:9px 8px;
  }
  #screenLobby #viewOverview .overview-table tbody th{
    white-space:normal;min-width:130px;max-width:175px;
  }
}
