/* /inhouse (Modul IH). Nur was es nur hier gibt: die Karte der obersten laufenden Partie und die Spalten der Partien-Zeilen. */
.ih-top { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--tw-akzent); padding: 16px 20px 20px; }
a.ih-top:hover { color: inherit; background: rgba(239, 237, 232, .04); }
.ih-top-kopf { display: flex; align-items: center; gap: 10px; font-size: var(--tw-s-etikett); letter-spacing: .12em; text-transform: uppercase; }
.ih-top-akt { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.ih-top-stand { display: flex; align-items: center; gap: 20px; }
.ih-top-seite { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ih-top-seite.r { align-items: flex-end; }
.ih-top-ch { display: flex; gap: 5px; }
.ih-top-bild { width: 42px; height: 42px; object-fit: cover; }
.ih-top-zahl { flex: none; font-size: 56px; line-height: .9; }
/* W2g: Stand mit seiner Spielzeit + EIN Satz zum Verzug (Wortlaut im Katalog wie /live) */
.ih-top-mitte { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ih-asof { display: inline-flex; align-items: center; gap: 6px; font-size: var(--tw-s-etikett); letter-spacing: var(--tw-sperr); text-transform: uppercase; color: var(--tw-text-2); white-space: nowrap; }
.ih-z-zahl .ih-asof { display: flex; margin-top: 3px; font-family: var(--tw-f-mono); font-weight: 400; }
.ih-verzug { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 12px 0 0; font-size: var(--tw-s-klein); color: var(--tw-text-3); }
.ih-verzug svg { flex: none; margin-top: 3px; }
.ih-z-stand { flex: 0 0 110px; }
.ih-z-zahl { flex: 0 0 110px; text-align: left; }
.ih-z-akt { flex: 0 0 90px; text-align: right; }
@media (max-width: 759px) {
    .ih-top { padding: 14px 14px 16px; gap: 14px; }
    .ih-top-stand { gap: 10px; }
    .ih-top-bild { width: 26px; height: 26px; }
    .ih-top-ch { gap: 3px; }
    .ih-top-zahl { font-size: 30px; }
    .ih-z-stand { flex-basis: 84px; }
    .ih-z-zahl { flex-basis: 84px; font-size: 16px; }
    .ih-z-akt { display: none; }
}
/* Unter dem Queue-Brett (Plakat) keine zweite Linie: die letzte 5v5-Zeile traegt ihre Haarlinie, unter ARAM steht keine (Entwurf F) */
.tw-qb + .tw-ab { border-top: 0; padding-top: 36px; }
/* Knopf + Rollenwahl (5v5 vor dem Beitritt): 80 % Knopf · Luecke · Wahl mit Rollen-Icon; Hoehe wie der Knopf allein (nichts springt) */
.ih-kn { display: flex; gap: 8px; }
.ih-kn > .tw-btn { flex: 1 1 0; min-width: 0; }
.ih-rolle { position: relative; flex: 0 0 22%; display: flex; }
.ih-rolle-k { flex: 1 1 auto; padding: 0 10px; gap: 8px; }
.ih-rolle-k img, .ih-rolle-l img { flex: none; filter: brightness(0) invert(.93); }
.ih-rolle-k[aria-expanded="true"] { border-color: var(--tw-akzent); }
.ih-rolle-k[aria-expanded="true"] .tw-pf { rotate: 180deg; }
.ih-rolle-l { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; display: flex; flex-direction: column; background: var(--tw-grund); border: 1px solid var(--tw-linie-3); }
.ih-rolle-l > button { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 14px; background: none; border: 0; border-bottom: 1px solid var(--tw-linie); color: var(--tw-text-2); font: 400 var(--tw-s-text)/1 var(--tw-f-mono); text-align: left; cursor: pointer; }
.ih-rolle-l > button:last-child { border-bottom: 0; }
.ih-rolle-l > button:hover, .ih-rolle-l > button:focus-visible { color: var(--tw-text); background: color-mix(in srgb, var(--tw-text) 7%, transparent); }
.ih-rolle-l > button[aria-selected="true"] { color: var(--tw-akzent); }
@media (max-width: 1179px) { .ih-rolle-l { top: auto; bottom: calc(100% + 6px); } }
/* Rechte Spalte: Etiketten ueber Puls und Spielabenden (die Spalte endet mit ihrem Inhalt — nichts wird auf Bildhoehe gezogen) */
.ih-ps-t { margin: 26px 0 8px; }
.tw-ps-mehr > .ih-ps-t:first-child { margin-top: 0; }
