.game-shell .match-roster {
 min-width:0;
 background:#162635;
 color:#ebf0f5;
}
.game-shell .match-roster .match-tabs {margin:.35rem 0}
.game-shell .match-roster .stadium-roster-table {
 table-layout:fixed;
 width:100%;
 min-width:0;
 font-variant-numeric:tabular-nums;
}
.game-shell .match-roster :is(#starter-list,#match-bench) .stadium-roster-table :is(td,th) {
 width:auto;
 text-align:center;
 vertical-align:middle;
 padding:.28rem .14rem;
 line-height:1.2;
}
.game-shell .match-roster :is(#starter-list,#match-bench) .stadium-roster-table :is(td,th):first-child {
 width:44%;
 text-align:left;
 padding-inline:.35rem;
}
.game-shell .match-roster :is(#starter-list,#match-bench) .stadium-roster-table th {
 color:#c5d6e2;
 background:#243949;
 white-space:nowrap;
 font-weight:650;
}
.game-shell .match-roster :is(#starter-list,#match-bench) .stadium-roster-table th:nth-child(2) {width:11%}
.game-shell .match-roster :is(#starter-list,#match-bench) .stadium-roster-table th:nth-child(5) {width:14%}
.game-shell .match-roster .stadium-roster-table tr {
 border-bottom:1px solid #2b4050;
}
.game-shell .match-roster .stadium-roster-table tr[data-selection="available"] {background:#223e48}
.game-shell .match-roster .stadium-roster-table tr[data-selection="selected"] {background:#1f514f}
.game-shell .match-roster .stadium-roster-table tr[data-roster-state="departed"] {background:#1b2b38;color:#aebfcb}
.game-shell .match-roster .stadium-roster-table tr[data-roster-state="bench"] + tr[data-roster-state="departed"] {box-shadow:inset 0 2px #4a6477}
.stadium-player-row {
 display:grid;
 grid-template-columns:minmax(0,1fr) min(3em,25%) min(8.4em,46%);
 align-items:center;
 gap:.13rem .25rem;
}
.stadium-player-identity {
 grid-column:1;
 grid-row:1;
 display:flex;
 align-items:center;
 min-width:0;
 gap:.18em;
}
.stadium-player-cards {
 display:inline-flex;
 gap:.12em;
 flex:none;
}
.stadium-player-cards:empty {display:none}
.stadium-card {
 position:relative;
 display:inline-flex;
 gap:.09em;
}
.stadium-card::before,.stadium-card[data-count="2"]::after {
 content:'';
 width:.38em;
 height:.62em;
 border-radius:.07em;
 background:#f4d36c;
}
.stadium-card[data-kind="red-card"]::before {background:#ff747d}
.stadium-card-label {
 position:absolute;
 width:1px;
 height:1px;
 overflow:hidden;
 clip-path:inset(50%);
 white-space:nowrap;
}
.game-shell .match-roster :is(.stadium-player-choice,.stadium-player-info) {
 margin:0;
 min-width:0;
 min-height:1.8em;
 padding:.15rem .28rem;
 line-height:1.1;
 box-shadow:none;
}
.game-shell .match-roster .stadium-player-choice {
 overflow:hidden;
 text-overflow:ellipsis;
 text-align:left;
 color:inherit;
 font-weight:650;
 white-space:nowrap;
 border-color:#4a6477;
 background:#243c4c;
}
.game-shell .match-roster .stadium-player-choice:disabled {
 opacity:1;
 background:transparent;
 border-color:transparent;
 cursor:default;
}
.game-shell .match-roster tr[data-selection="selected"] .stadium-player-choice {
 color:#e6fff3;
 background:#2a6760;
 border-color:#9de9cd;
}
.game-shell .match-roster .stadium-player-info {
 grid-column:2;
 grid-row:1;
 background:#172a39;
 color:#c4d4df;
 border-color:#476173;
 white-space:nowrap;
}
.stadium-player-grade {
 grid-column:3;
 grid-row:1;
 display:grid;
 grid-template-columns:4.25em minmax(0,1fr);
 align-items:center;
 justify-items:start;
 gap:.12rem;
}
.stadium-player-grade [data-kind="grade"] {grid-column:1;grid-row:1}
.stadium-player-grade [data-kind="boost"] {grid-column:2;grid-row:1}
.stadium-player-status {
 grid-column:1/-1;
 display:flex;
 flex-wrap:wrap;
 gap:.18rem;
}
.stadium-player-status:empty {display:none}
.stadium-roster-badge {
 padding:.12em .36em;
 border-radius:.2em;
 color:#d1e1eb;
 background:#2d4352;
 font-size:.86em;
 font-weight:650;
 white-space:nowrap;
}
.stadium-roster-badge[data-kind="boost"] {max-width:100%;white-space:normal;overflow-wrap:anywhere}
.stadium-roster-badge[data-kind="injury"] {color:#ffd8ab;background:#6a3b29}
.stadium-roster-badge:is([data-kind="boost"],[data-kind="growth"],[data-kind="entered"]) {color:#c8f4e0;background:#2a574e}
.game-shell .match-roster #match-substitution {
 position:sticky;
 bottom:0;
 z-index:1;
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
 gap:.45rem;
 margin-top:.5rem;
 padding:.45rem;
 border:1px solid #4c697b;
 border-radius:.35rem;
 background:#112635;
}
#match-selection {margin:0;flex:1 1 12em;line-height:1.35;overflow-wrap:anywhere}
.match-sub-actions {display:flex;justify-content:flex-end;gap:.35rem;margin-left:auto}
.game-shell #match-substitution button {margin:0;white-space:nowrap}
.game-shell .match-roster .stadium-roster-table .stadium-roster-empty {
 text-align:center;
 padding:.65rem;
 color:#c6d4df;
}
.game-shell .match-roster #command-status {margin:.35rem 0 0;line-height:1.35}
.game-shell .match-roster #command-status:empty {display:none}
@media(min-width:1024px){
 .game-shell .match-roster :is(#starter-list,#match-bench) .stadium-roster-table :is(td,th) {
  padding-block:.23rem;
  font-size:clamp(10px,1.3cqh,15px);
 }
}
@media(max-width:1023px){
 .game-shell .match-roster #match-substitution {bottom:calc(48px + env(safe-area-inset-bottom))}
}
@media(max-width:600px){
 .game-shell .match-roster {padding:.45rem}
 .game-shell .match-roster .stadium-roster-table thead {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
 }
 .game-shell .match-roster .stadium-roster-table,
 .game-shell .match-roster .stadium-roster-table tbody {
  display:block;
 }
 .game-shell .match-roster .stadium-roster-table tr {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  padding:.3rem .15rem;
 }
 .game-shell .match-roster .stadium-roster-table td {
  display:block;
  min-width:0;
  font-size:.82rem;
 }
 .game-shell .match-roster :is(#starter-list,#match-bench) .stadium-roster-table td:first-child {
  width:auto;
  grid-column:1/-1;
  padding-block:.1rem;
 }
 .game-shell .match-roster .stadium-roster-table td[data-stat]:not(:first-child)::before {
  display:block;
  margin-bottom:.15em;
  color:#c1d2df;
  font-size:.73rem;
  content:attr(data-stat);
  white-space:normal;
 }
 .game-shell .match-roster :is(.stadium-player-choice,.stadium-player-info) {
  min-height:40px;
  padding:.2rem .45rem;
 }
 .game-shell #match-substitution button {min-height:40px}
}
