/* Match, league, records and locker readability. All rules are scoped to those screens. */
.game-shell :is(#schedule-panel,#standings-panel,#scorers-panel,#team-records-panel) > label{
 color:#c6d5df;font-weight:700;gap:4px
}
.game-shell :is(#schedule,#standings,#league-scorers,#team-records) .game-list{
 width:100%;border-collapse:separate;border-spacing:0
}
.game-shell :is(#schedule,#standings,#league-scorers,#team-records) .game-list :is(th,td){
 vertical-align:middle;line-height:1.35;border-bottom:1px solid #405263
}
.game-shell :is(#schedule,#standings,#league-scorers,#team-records) .game-list th{
 color:#c8d8e2;background:#263b4b;font-weight:700
}
.game-shell :is(#schedule,#standings,#league-scorers,#team-records) .game-list tbody tr:nth-child(even){background:#203241}
.game-shell #standings .game-list tbody tr.own-team{background:#27534a;box-shadow:inset 3px 0 #79e2ac}
.game-shell :is(#standings,#league-scorers) td[data-label=순위]{font-variant-numeric:tabular-nums;color:#d4e2e9;font-weight:700}
.game-shell :is(#standings,#league-scorers) td[data-label=클럽],
.game-shell #league-scorers td[data-label=선수],.game-shell #schedule td[data-label=상대클럽]{color:#f4fafb;font-weight:700}
.game-shell :is(#schedule,#standings,#league-scorers,#team-records) [data-numeric=true],
.game-shell :is(#clock,#home-score,#away-score,.season-points,.locker-result){font-variant-numeric:tabular-nums}
.game-shell :is(#schedule-panel,#standings-panel,#scorers-panel,#team-records-panel,#match-panel,#locker-panel,.social-bar) :is(button,select,input,textarea,summary):focus-visible{
 outline:3px solid #ffe092;outline-offset:2px;position:relative;z-index:4
}
.game-shell #schedule-days button[aria-pressed=true],.game-shell #schedule-teams button[aria-pressed=true]{box-shadow:inset 0 -3px #bdf8d9}
.game-shell #team-reading{border-left:3px solid #80d9aa;background:#223d45;border-radius:4px}
.game-shell #team-records-scope{color:#c5d5df;line-height:1.4}
.game-shell .match-tabs button[aria-selected=true]{box-shadow:inset 0 -3px #bdf8d9}
.game-shell .scoreline{font-variant-numeric:tabular-nums;gap:8px}
.game-shell #locker-panel .locker-box{border-color:#3c5363}
.game-shell #locker-panel .inbox-item.unread .inbox-dot{box-shadow:0 0 0 2px #173528}
.game-shell #social-messages .social-message-heading strong{color:#f1f7fa}
.game-shell #social-messages .own-message{border-left:3px solid #75d6a0;padding-left:8px}
@media(min-width:1024px){
 .game-shell :is(#schedule,#standings,#league-scorers,#team-records) .game-list :is(th,td){padding-block:.65cqh;padding-inline:.55cqw}
 .game-shell :is(#standings,#league-scorers,#schedule,#team-records){overscroll-behavior:contain;scrollbar-gutter:stable}
 .game-shell #team-records-scope{font-size:clamp(12px,1.2cqh,15px)}
}
@media(max-width:600px){
 .game-shell :is(#schedule,#standings,#league-scorers) .game-list tbody tr{
  border:1px solid #405a6b;border-radius:6px;margin-bottom:7px;padding:8px;gap:3px 5px
 }
 .game-shell :is(#schedule,#standings,#league-scorers) .game-list tbody tr:nth-child(even){background:#203241}
 .game-shell :is(#schedule,#standings,#league-scorers) .game-list td[data-label]{
  white-space:normal;overflow-wrap:anywhere;min-width:0;padding:3px 2px;border:0;line-height:1.35
 }
 .game-shell :is(#schedule,#standings,#league-scorers) .game-list td[data-label]::before{color:#b8cbd7}
 .game-shell #schedule td[data-label=상대클럽],.game-shell #league-scorers td[data-label=선수],.game-shell #standings td[data-label=클럽]{font-size:15px}
 .game-shell #schedule-days button{min-height:44px}
 .game-shell #social-panel{max-width:calc(100vw - 16px)}
 .game-shell #social-input{min-height:44px}
 .game-shell #locker-panel .inbox-item-copy{overflow-wrap:anywhere}
}
@media(min-width:1024px){
 .game-shell #standings .game-list{table-layout:fixed}
 .game-shell #standings :is(th,td)[data-label=순위]{width:4%}
 .game-shell #standings :is(th,td)[data-label=클럽]{width:18%}
 .game-shell #standings :is(th,td)[data-numeric=true]:not([data-label=순위]){width:5%}
 .game-shell #standings :is(th,td)[data-label=구역]{width:12%}
 .game-shell #standings :is(th,td)[data-label="최근 5경기"]{width:12%}
 .game-shell #standings :is(th,td)[data-label="다음 상대"]{width:12%}
}
@media(max-width:600px){
 .game-shell #locker-panel .inbox-header{gap:4px}
 .game-shell #locker-panel .inbox-header h2{flex:1 0 auto;white-space:nowrap;font-size:16px}
 .game-shell #locker-panel .inbox-header #inbox-unread{font-size:11px;white-space:nowrap}
 .game-shell #locker-panel .inbox-header #inbox-read-all{font-size:11px;padding:7px 6px;white-space:nowrap}
 .game-shell #locker-panel .inbox-item-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 .game-shell #locker-panel .inbox-item-copy .inbox-meta{font-size:11px;line-height:1.3}
}
@media(max-width:600px){
 .game-shell #team-records .game-list{width:100%;table-layout:fixed}
 .game-shell #team-records .game-list :is(th,td):first-child{width:36%}
 .game-shell #team-records .game-list :is(th,td):not(:first-child){width:21.33%;padding-inline:3px;font-size:12px}
 .game-shell #team-records .game-list th:not(:first-child){white-space:nowrap}
}
@media(max-width:600px){
 .game-shell #team-records .game-list :is(th,td):first-child{width:34%}
 .game-shell #team-records .game-list :is(th,td):last-child{width:24%}
 .game-shell #team-records .metric-change{white-space:nowrap;overflow-wrap:normal}
}

/* Parallel lists share a header rhythm, with their own scroll regions on desktop. */
.game-shell .split-pane {min-width:0;min-height:0}
.game-shell .split-pane-heading {
 display:flex;align-items:center;min-height:40px;margin:0;padding:8px 12px;
 border:1px solid #435969;border-radius:6px 6px 0 0;background:#203542;
 color:#f1f7f7;font-size:clamp(16px,1.7cqh,20px);font-weight:750;line-height:1.25;overflow-wrap:anywhere;
}
.game-shell #other-leagues-content {
 --browse-column-height:34px;display:grid;grid-template-columns:minmax(220px,25%) minmax(0,1fr);
 align-items:start;gap:clamp(14px,2vw,32px);min-height:0;align-content:start;
}
.game-shell :is(.browse-index,.browse-detail) {display:flex;flex-direction:column}
.game-shell .browse-columns {
 display:flex;align-items:center;justify-content:space-between;gap:8px;height:var(--browse-column-height);padding:0 12px;
 color:#c8dce4;background:#273e4e;font-size:clamp(12px,1.3cqh,15px);font-weight:700;
}
.game-shell #browse-options {display:grid;align-content:start;gap:6px;min-width:0;padding:0;overflow-y:auto}
.game-shell #browse-options button {
 display:flex;align-items:baseline;justify-content:space-between;gap:8px;text-align:left;
 margin:0;padding:10px 12px;background:#203342;color:#e0edf2;border:1px solid #405968;border-radius:5px;
}
.game-shell #browse-options button span {color:#bbced7;font-size:.85em;white-space:nowrap}
.game-shell #browse-options button[aria-pressed=true] {background:#254c43;border-color:#77ceaa;box-shadow:inset 3px 0 #99e5bd}
.game-shell #browse-options button:focus-visible,.game-shell .scorers-empty button:focus-visible {outline:3px solid #ffe092;outline-offset:-3px}
.game-shell .scorers-empty h2 {margin:0;color:#f1f7f7}
.game-shell .browse-status {color:#bdd2da;margin:0;padding:12px}
.game-shell #browse-table {min-height:0}
.game-shell #browse-table .game-list {display:table;width:100%;min-width:0;border-collapse:separate;border-spacing:0}
.game-shell #browse-table thead {display:table-header-group}
.game-shell #browse-table tbody {display:table-row-group}
.game-shell #browse-table tr {display:table-row}
.game-shell #browse-table :is(td,th) {display:table-cell;padding:clamp(5px,.78vh,10px) 7px;text-align:right;border-bottom:1px solid #3a505e;font-variant-numeric:tabular-nums}
.game-shell #browse-table :is(td,th)[data-label=클럽] {text-align:left}
.game-shell #browse-table th {height:var(--browse-column-height);padding-block:0;background:#273e4e;color:#c8dce4}
.game-shell #browse-table tbody tr:nth-child(even) {background:#1c303e}
.game-shell #browse-table td[data-label=승점] {font-weight:bold;color:#a5e6c5}
.game-shell #browse-table td::before {display:none}
@media(min-width:1024px){
 .game-shell #other-leagues-content {height:100%;align-items:stretch;align-content:stretch;overflow:hidden;scrollbar-gutter:auto}
 .game-shell :is(#browse-options,#browse-table) {min-height:0;overflow:auto;overscroll-behavior:contain}
 .game-shell #browse-table th {position:sticky;top:0}
}
.game-shell .scorers-empty {display:grid;justify-items:start;gap:8px;padding:clamp(16px,2vw,28px);border-left:3px solid #80cdaa;background:#213541}
.game-shell .scorers-empty p {margin:0;color:#c7d7df}
@media(max-width:1023px){
 .game-shell #other-leagues-content {grid-template-columns:minmax(0,1fr);gap:18px;overflow:visible;scrollbar-gutter:auto}
 .game-shell .browse-columns {display:none}
 .game-shell #browse-options {grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
 .game-shell #browse-options button {display:grid;gap:3px;min-height:44px;overflow-wrap:anywhere}
 .game-shell #browse-table .game-list {table-layout:fixed}
 .game-shell #browse-table :is(td,th)[data-label=클럽] {width:52%;white-space:normal;overflow-wrap:anywhere}
 .game-shell #browse-table :is(td,th):is([data-label=승],[data-label=무],[data-label=패],[data-label=득실]) {display:none}
}
@media(max-width:1023px){
 .game-shell main:has(#other-leagues-panel:not([hidden])) {padding-bottom:calc(126px + env(safe-area-inset-bottom))}
}

.game-shell #browse-table .browse-club {display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.game-shell #browse-table .browse-club img {flex:none;width:22px;height:22px;object-fit:contain}
.game-shell #browse-table :is(th,td)[data-numeric=true] {padding-inline:clamp(6px,1.1vw,18px)}
@media(max-width:1023px){
 .game-shell #browse-table .browse-club {gap:5px}
 .game-shell #browse-table .browse-club img {width:18px;height:18px}
}

.game-shell .schedule-team-pane {display:flex;flex-direction:column}
.game-shell .schedule-layout {gap:clamp(12px,1.25vw,22px)}
.game-shell :is(.schedule-team-pane,.schedule-main) .split-pane-heading {margin-bottom:8px}
.game-shell #schedule-teams {min-height:0;padding:0;overscroll-behavior:contain}
.game-shell :is(#schedule-teams,#schedule-days) button {margin:0;min-height:34px}
.game-shell #schedule-days {gap:6px}
.game-shell #events:empty {display:none}
.game-shell .match-roster {min-height:0;overscroll-behavior:contain}
.game-shell .match-roster :is(#starter-list,#match-bench) th {background:#273e4e;color:#e1edf1}
.game-shell .match-roster .match-tabs {margin:10px 0 8px}
@media(max-width:1023px){
 .game-shell .match-roster {overflow:visible}
}
@media(max-width:600px){
 .game-shell .schedule-team-pane {display:none}
 .game-shell #schedule-days {gap:3px}
 .game-shell #schedule-days button {min-height:44px}
}

/* Keep the crest inside the club name's line box on league standings. */
.game-shell #standings td[data-label="클럽"] {vertical-align:middle}
.game-shell #standings .browse-club {display:flex;align-items:center;gap:.42em;min-width:0;max-width:100%;line-height:1.25}
.game-shell #standings .browse-club img {display:block;flex:0 0 auto;width:1em;height:1em;max-width:16px;max-height:16px;object-fit:contain}
.game-shell #standings .browse-club > span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.game-shell #browse-table .game-list {table-layout:fixed}
.game-shell #browse-table :is(th,td)[data-numeric=true] {width:5.5%;padding-inline:4px;text-align:center}
.game-shell #browse-table :is(th,td)[data-label="순위"] {width:3.1em;padding-inline:3px;text-align:center}
.game-shell #browse-table :is(th,td)[data-label="최근 5경기"] {width:8em;padding-inline:6px;text-align:left}
.game-shell #browse-table .browse-club {display:flex;align-items:center;gap:.45em;line-height:1.25}
.game-shell #browse-table .browse-club img {width:1em;height:1em;max-width:16px;max-height:16px}
.game-shell #browse-table .browse-club > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){
 .game-shell #browse-table :is(th,td)[data-label="순위"] {width:2.6em}
 .game-shell #browse-table :is(th,td):is([data-label="득점"],[data-label="실점"],[data-label="최근 5경기"]) {display:none}
 .game-shell #browse-table :is(th,td)[data-label="승점"],.game-shell #browse-table :is(th,td)[data-label="경기"] {width:3em}
}
.game-shell .league-margin {display:flex;align-items:center;flex-wrap:wrap;gap:5px 13px;border-left:3px solid #85cdb0;background:#1b3339;padding:7px 12px;margin:0 0 8px;color:#dcebe7;font-size:13px}
.league-margin > strong {color:#acc7bf}.league-margin > b {color:#9de4bd}
.stadium-comparison {justify-self:center;width:min(250px,90%);margin:8px auto 0;padding:8px 12px;background:#10251dec;border:1px solid #547267;border-radius:4px;color:#f2faf4;font-size:12px}
.game-shell .stadium-comparison table {width:100%;margin:4px 0 0;border-collapse:collapse;font-variant-numeric:tabular-nums}
.game-shell .stadium-comparison :is(th,td) {padding:2px 4px;text-align:center;font-size:12px;border:0;line-height:1.2;background:transparent;color:inherit}
.game-shell .stadium-comparison thead th {font-size:10px;color:#bbd1c4}
.game-shell #standings-detail-toggle{display:none}
@media(max-width:600px){
 .game-shell #standings-panel{position:relative}
 .game-shell #standings-panel>label{padding-right:4.8rem;min-height:44px}
 .game-shell #standings-panel>label select{max-width:100%;min-width:0}
 .game-shell #standings-detail-toggle{display:block;position:absolute;top:14px;right:14px;min-height:44px;padding:4px 9px}
 .game-shell #standings-detail-toggle[aria-pressed=true]{border-color:#7bd3ae;color:#b3efd2}
 .game-shell #standings:not(.show-detail) .game-list{display:table;width:100%;border-collapse:collapse;table-layout:fixed}
 .game-shell #standings:not(.show-detail) .game-list thead{position:static;display:table-header-group;width:auto;height:auto;clip:auto;clip-path:none;overflow:visible}
 .game-shell #standings:not(.show-detail) .game-list tbody{display:table-row-group}
 .game-shell #standings:not(.show-detail) .game-list tr{display:table-row;margin:0;border:0;padding:0}
 .game-shell #standings:not(.show-detail) .game-list :is(th,td)[data-label]{display:none}
 .game-shell #standings:not(.show-detail) .game-list :is(th,td):is([data-label=순위],[data-label=클럽],[data-label=승점],[data-label=승],[data-label=무],[data-label=패],[data-label=득실]){
  display:table-cell;width:1.9em;white-space:nowrap;text-align:center;padding:8px 1px;border-bottom:1px solid #354a57;font-size:12px;line-height:1.4;vertical-align:middle}
 .game-shell #standings:not(.show-detail) .game-list :is(th,td)[data-label=클럽]{width:auto;text-align:left;font-size:14px;max-width:0}
 .game-shell #standings:not(.show-detail) .game-list :is(th,td)[data-label=승점]{color:#a2e8be;font-weight:750;width:2.3em}
 .game-shell #standings:not(.show-detail) .game-list td[data-label]::before{content:none}
}
@media(max-width:600px){.game-shell #standings:not(.show-detail) .game-list :is(th,td)[data-label=순위]{width:2.35em;padding-right:4px}}
