/* Lokaler Mehrspielermodus (Hot-Seat) – Seite wie Galerie/Peers, Übergabe als Vollbild */
#mp { position: fixed; inset: 0; z-index: 100; background: var(--bg, var(--papier)); overflow-y: auto; padding: var(--a-4) var(--a-5); box-sizing: border-box; }
#mp[hidden], #mpHand[hidden], #mpBar[hidden] { display: none; }
#mp button, #mp select, #mp input[type="number"], #mp input[type="text"], #mpBar button { min-height: 44px; }
#mp label:has(> input[type="checkbox"]), .mp-toggles label { min-height: 44px; display: inline-flex; align-items: center; gap: var(--a-2); margin-right: var(--a-4); }
#mpTabs { display: flex; gap: var(--a-2); margin: var(--a-3) 0; flex-wrap: wrap; }
#mpTabs button { border: 1px solid var(--linie); border-radius: var(--r-bedien); background: var(--flaeche); padding: 0 var(--a-4); }
#mpTabs button.on { background: var(--tinte); color: var(--auf-tinte); border-color: var(--tinte); }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--a-1) var(--a-4); align-items: end; }
.mp-row { display: flex; gap: var(--a-2); flex-wrap: wrap; align-items: center; }
.mp-row input[type="text"] { width: 220px; }
.mp-list { list-style: none; padding: 0; margin: 0; }
.mp-prof { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-bedien); padding: var(--a-2) var(--a-3); margin: var(--a-2) 0; }
.mp-acts { display: inline-flex; flex-wrap: wrap; gap: var(--a-1); margin-left: var(--a-2); }
.mp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: var(--a-2); vertical-align: middle; }
.mp-big { font-size: var(--t-2); font-weight: 700; padding: 0 var(--a-5); border: none; border-radius: var(--r-bedien); background: var(--tinte); color: var(--auf-tinte); }
.mp-link { background: none; border: none; color: var(--untiefe); text-decoration: underline; }
.mp-table { border-collapse: collapse; font-size: var(--t-1); background: var(--flaeche); margin: var(--a-2) 0; min-width: 100%; }
.mp-table th, .mp-table td { padding: var(--a-2) var(--a-2); border-bottom: 1px solid var(--linie); text-align: left; white-space: nowrap; }
.mp-table td:not(:nth-child(2)) { font-family: var(--schrift-zahl); font-variant-numeric: tabular-nums; }
.mp-table th { background: var(--flaeche); color: var(--untiefe); font-size: var(--t-1); }
#result .mp-table td:last-child { text-align: left; }
.mp-win td { background: var(--weich-hinweis); font-weight: 600; }
.mp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.mp-game { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-bedien); padding: var(--a-2) var(--a-3); margin: var(--a-2) 0; }
.mp-game > summary { cursor: pointer; min-height: 44px; padding: var(--a-3) 0; line-height: 1.6; }
#mpBar { border-top: 1px solid var(--linie); margin-top: var(--a-2); padding-top: var(--a-2); }
.mp-who { border-left: 6px solid var(--messing); padding: var(--a-2) var(--a-3); background: var(--flaeche); border-radius: var(--r-bedien); font-size: var(--t-2); }

/* Übergabe: deckt alles ab, damit niemand etwas vom vorigen Spieler sieht */
#mpHand { position: fixed; inset: 0; z-index: 300; background: var(--papier); color: var(--tinte); display: flex; align-items: center; justify-content: center;
  padding: max(var(--a-5), env(safe-area-inset-top)) var(--a-5) max(var(--a-5), env(safe-area-inset-bottom)); text-align: center; }
.mp-hand-box { max-width: 520px; width: 100%; }
.mp-hand-meta { color: var(--untiefe); font-size: var(--t-2); }
.mp-hand-title { font-size: var(--t-3); margin: var(--a-2) 0; }
.mp-hand-name { font-family: var(--schrift-zahl); font-size: clamp(48px, 16vw, 112px); line-height: 1; font-weight: 600; margin: var(--a-2) 0; word-break: break-word; }
#mpHand .mp-big { min-height: 64px; width: 100%; font-size: var(--t-3); margin: var(--a-5) 0 var(--a-3); color: var(--auf-tinte); }
#mpHand .hint { color: var(--untiefe); }
#mpHand .mp-link { color: var(--untiefe); min-height: 44px; }

/* Während eines Spiels: Solo-Bedienelemente aus (Vorspulen, Abspielen, Zeitebene, Positionsvorschau) */
body.mp-on #btnPlay, body.mp-on #btnPause, body.mp-on #btnNoTrade, body.mp-on .skiprow, body.mp-on #tfSwitch, body.mp-on #posInfo { display: none !important; }
body.mp-turn #result, body.mp-turn #refBox, body.mp-turn #learn { display: none !important; }
@media (max-width: 800px) {
  #mp { padding: var(--a-3) var(--a-3) var(--a-6); padding-top: max(var(--a-3), env(safe-area-inset-top)); }
  .mp-big { width: 100%; margin-top: var(--a-2); }
}
.mp-final { font-size: var(--t-3); }
.mp-pos { display: flex; gap: var(--a-2); flex-wrap: wrap; }
.mp-pos label { flex: 1; min-width: 120px; }
#mpBar input[type="number"], #mpBar select { min-height: 44px; }
#mpLive input[type="number"] { width: 90px; }
#mpLive button { min-height: 44px; margin: 2px 2px 0 0; }
.mp-private { border: 2px solid var(--messing); border-radius: var(--r-bedien); padding: var(--a-3) var(--a-3); margin: var(--a-2) 0; background: var(--flaeche); }
#mpMine input, .mp-private input[type="number"] { width: 110px; min-height: 44px; }
.mp-private button { min-height: 44px; }
/* Endanzeige: Karten nacheinander, danach Depotverlauf und Rangliste */
.mp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--a-2); margin: var(--a-2) 0; }
.mp-card { border: 3px solid var(--messing); border-radius: var(--r-panel); padding: var(--a-2) var(--a-3); background: var(--flaeche); box-shadow: var(--karte); animation: mpIn .5s ease-out; }
.mp-card p { margin: var(--a-1) 0; }
.mp-card-name { font-size: var(--t-3); font-weight: 800; }
.mp-card-res { font-size: var(--t-2); font-weight: 700; }
.mp-card-r { font-size: var(--t-3); font-weight: 800; }
.mp-chart { width: 100%; max-width: 640px; height: auto; display: block; color: var(--tinte); background: var(--flaeche); border-radius: var(--r-bedien); margin: var(--a-2) 0; }
#mpRevealAll { min-height: 44px; }
@keyframes mpIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mp-card { animation: none; } }

/* Mehrspieler auf mehreren Geräten (live-ui.js, guest.html) */
.live-sec { background: var(--flaeche); border: 1px solid var(--rand-karte); box-shadow: var(--karte); border-radius: var(--r-panel); padding: var(--a-3) var(--a-4); margin: var(--a-3) 0; max-width: 760px; }
.live-sec h3 { margin: var(--a-2) 0; }
.live-invite { display: flex; flex-wrap: wrap; gap: var(--a-4); align-items: center; justify-content: space-between; }
.live-code { font: 600 clamp(40px, 9vw, 64px)/1 var(--schrift-zahl); letter-spacing: .12em; margin: 0 0 var(--a-2); }
.live-url { word-break: break-all; }
.live-qr { width: 200px; height: 200px; flex: none; border-radius: var(--r-bedien); }
#liveJoinCode { width: 12ch; font: 600 var(--t-3) var(--schrift-zahl); letter-spacing: .1em; text-transform: uppercase; }
/* Mehrspieler auf mehreren Geräten: Leiste im Prognose-Bereich (live-play.js) */
#liveBar { margin: var(--a-3) 0; }
#liveAdmin { display: flex; align-items: center; gap: var(--a-2); }
#liveAdmin[hidden] { display: none; }
#liveAdminMsg { color: var(--fallend); font-size: var(--t-0); max-width: 22em; }
.live-admin { flex-direction: column; align-items: stretch; min-width: 16em; }
.live-admin button { text-align: left; }
#liveLogDlg pre { max-height: 60vh; overflow: auto; font-size: var(--t-0); white-space: pre-wrap; word-break: break-all; }
.lp-players { list-style: none; padding: 0; margin: var(--a-2) 0; display: flex; flex-wrap: wrap; gap: var(--a-1) var(--a-3); }
.lp-players li { display: flex; align-items: center; gap: var(--a-1); }
