.game-shell .content-player-card {
 border-radius:5px;border:0;background:#0f1822;box-shadow:0 1px 3px #0008;
 width:104px;height:134px;flex-basis:104px
}
.content-card-face {
 width:100%;height:100%;position:relative;display:block;overflow:hidden;
 text-align:center;background:#0f1822;color:#e6e9ee;border-radius:5px;
 container-type:size;
}
.content-card-art {position:absolute;inset:0 0 auto;height:74.627%;overflow:hidden}
.content-emblem {position:absolute;left:38.46%;top:4%;width:88.46%;height:92%;object-fit:contain;opacity:.42}
.content-photo {position:absolute;left:50%;top:-4%;height:132%;width:auto;max-width:none;transform:translateX(-50%);object-fit:contain}
[data-portrait-kind=kleague_transparent] .content-photo {height:150%;top:-2%}
[data-portrait-kind=original_pack_grey_bg] .content-photo {height:148%;top:-12%}
.game-shell .content-card-art .card-portrait {position:absolute;left:12.5%;bottom:0;width:75%;height:85%;fill:#445665}
.content-position,.content-level {position:absolute;top:0;font:700 11px/1 sans-serif;padding:3px 5px;z-index:2}
.content-position {left:0;border-radius:0 0 4px 0;color:#111;background:var(--card-accent,#b9d5df)}
.content-level {right:0;border-radius:0 0 0 4px;background:#0d1620d0;color:#fff;min-width:9px}
.content-flag,.content-enhancement {position:absolute;bottom:0;z-index:2;height:15px}
.content-flag {left:0;width:22px;border-radius:0 4px 0 0;box-shadow:1px -1px 0 #0d1620;object-fit:cover}
.content-enhancement {
 right:0;font:800 11px/15px sans-serif;padding:0 5px;border-radius:4px 0 0 0;
 color:#1a1a1a;box-shadow:-1px -1px 0 #0d1620
}
.content-enhancement[data-stage="1"] {background:#c58a5a}
.content-enhancement[data-stage="2"] {background:#c9ced6}
.content-enhancement[data-stage="3"] {background:#f0c64a}
.content-enhancement[data-stage="4"] {background:#7fd3e6}
.content-enhancement[data-stage="5"] {background:linear-gradient(135deg,#ff8ad8,#9f8bff,#6fe0ff)}
.content-card-name {position:absolute;inset:74.627% 0 auto;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:24px}
.game-shell .content-card-face .card-fitness {position:absolute;left:6px;bottom:4px;width:calc(100% - 12px);height:3px}
.content-panel button {margin:4px}
.content-card-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:12px;max-width:1100px}
.content-row {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border-bottom:1px solid #37495b}
#content-card-dialog {max-width:min(620px,calc(100vw - 24px));background:#202e3d;color:#eef3f7;border:1px solid #536b82;border-radius:8px}
#content-card-detail {display:flex;gap:16px;align-items:start;margin-bottom:12px}
.content-card-actions {max-width:260px;display:flex;flex-direction:column;gap:8px}
#header-balance {margin-inline-end:.55em;color:#eef3f7;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
#header-balance:empty {display:none}
#content-balance {font-size:1.2em;font-weight:700}
@media(min-width:1024px){
 .game-shell .player-card.content-player-card {width:5.4167cqw;height:12.4074cqh;flex-basis:5.4167cqw}
 .game-shell #bench .player-card.content-player-card {height:12.4074cqh}
 .game-shell .content-card-grid .player-card.content-player-card {width:104px;height:134px}
}
@media(max-width:1023px){
 .game-shell .formation-row .content-player-card {flex-shrink:1}
}
@media(max-width:560px){
 #content-card-dialog[open] {display:grid;grid-template-rows:auto minmax(0,1fr);gap:6px;max-height:92dvh;box-sizing:border-box;overflow:hidden}
 #content-card-close {justify-self:end}
 #content-card-detail {flex-direction:column;align-items:center;overflow-y:auto;overscroll-behavior:contain;margin-bottom:0}
 .content-card-actions {width:100%}
}

/* Club and awards use the game frame on PC and stack in reading order on mobile. */
#header-balance.negative-balance {color:#ff9a9a}
#locker-fans {
 display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
 margin-block:8px;border:1px solid var(--line);text-align:start;
}
#locker-fans::after {content:'›';font-size:1.35em;margin-inline-start:auto}
.content-v2-view {height:100%;min-height:0}
.v2-club-grid,.v2-award-grid {display:grid;gap:12px;min-height:0}
.v2-card {
 display:flex;flex-direction:column;align-items:stretch;gap:.45em;min-width:0;min-height:0;
 padding:.85em 1em;border:1px solid var(--line);border-radius:8px;background:var(--panel);
}
.v2-card h2 {margin:0 0 .3em;font-size:1.12em}
.v2-card h3,.content-career h3 {margin:.45em 0 .2em;font-size:1em}
.v2-card h4 {margin:.55em 0 .2em;color:var(--muted);font-size:.92em}
.v2-card p {margin:0}
.v2-card button {align-self:flex-start;margin:0}
.v2-fan-totals {display:flex;align-items:baseline;flex-wrap:wrap;gap:.45em .65em}
.v2-hero-value {font-size:2.3em;line-height:1.1}
.v2-gain {color:#80daaa}
.v2-loss {color:#ff9a9a}
.v2-meta,.v2-empty {color:var(--muted);font-size:.92em}
.v2-line {
 display:flex;align-items:baseline;justify-content:space-between;gap:.6em;
 padding:.28em 0;border-bottom:1px solid var(--line);
}
.v2-line strong {flex:none;text-align:end;font-variant-numeric:tabular-nums}
.v2-scroll {min-height:0}
.v2-scroll:focus-visible,.v2-card button:focus-visible,.v2-field select:focus-visible,
.v2-project:focus-visible,#locker-fans:focus-visible {outline:2px solid var(--ink);outline-offset:2px}
.v2-chart {
 display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.5em;align-items:end;
 padding:0;margin:.3em 0;list-style:none;
}
.v2-chart li {display:grid;grid-template-rows:auto minmax(28px,6em) auto;gap:.16em;text-align:center;font-size:.84em;color:var(--muted)}
.v2-chart-area {display:flex;align-items:end;border-bottom:1px solid #526778}
.v2-chart-bar {height:var(--fan-height);width:100%;border-radius:4px 4px 0 0;background:#48866c}
.v2-chart li:last-child .v2-chart-bar {background:#69c990}
.v2-chart b {color:var(--ink)}
.v2-chart li>* {min-width:0}
.v2-chart b {overflow:hidden;text-overflow:ellipsis}
.v2-table {width:100%;font-size:.96em}
.v2-table th,.v2-table td {padding:.3em .4em;text-align:end;border-bottom:1px solid var(--line)}
.v2-table th:first-child,.v2-table td:first-child {text-align:start}
.v2-table th {color:var(--muted)}
.v2-project {padding:.55em .7em;border-inline-start:3px solid #6fa4bf;background:#182b3b}
.v2-award-filters {display:flex;gap:.6em 1em;flex-wrap:wrap}
.v2-field {display:flex;align-items:center;gap:.45em;min-width:0;max-width:100%;font-weight:600}
.v2-field select {width:auto;min-width:0;max-width:100%;text-overflow:ellipsis}
.v2-podium {
 background:radial-gradient(ellipse at center top,#3a321c,#1b2028 72%);
 border-color:#66542c;
}
.v2-podium h2,.v2-award-detail h3,.v2-award-detail>strong {color:#f0d382}
.v2-podium-grid {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,30em);align-items:end;
 gap:.6em;margin:0 auto;padding:0;list-style:none;text-align:center;
}
.v2-podium-place {min-width:0;display:grid;gap:.28em}
.v2-podium-place[data-rank="1"] {grid-column:2;grid-row:1;--medal:#f6d87b;--pedestal:2.55em}
.v2-podium-place[data-rank="2"] {grid-column:1;grid-row:1;--medal:#d5e0e7;--pedestal:1.9em}
.v2-podium-place[data-rank="3"] {grid-column:3;grid-row:1;--medal:#dfa77d;--pedestal:1.55em}
.v2-podium-place .content-card-face {height:clamp(86px,14em,17vh);box-shadow:inset 0 0 0 2px var(--medal)}
.v2-podium-place .content-card-art {inset:0 0 auto;height:79%}
.v2-podium-place .content-card-name {top:auto;inset-inline:4px;bottom:6px;font-size:clamp(11px,1.2em,18px)}
.v2-podium-place .content-level {display:none}
.v2-podium-place>strong {
 display:grid;place-items:center;min-height:var(--pedestal);padding:3px;color:#19232d;
 background:var(--medal);border-radius:5px 5px 2px 2px;
}
.v2-podium-club {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9em;color:var(--muted)}
.v2-ranking {padding:0;margin:0;list-style:none}
.v2-ranking-row {
 display:grid;grid-template-columns:3em minmax(0,1.5fr) 4em minmax(0,1fr) 4em;align-items:center;gap:.45em;
 padding:.45em .45em;border-bottom:1px solid var(--line);
}
.v2-ranking-row>strong {text-align:end}
.v2-ranked-identity {display:flex;gap:.28em .5em;align-items:baseline;flex-wrap:wrap;min-width:0}
.v2-ranked-identity>strong {overflow-wrap:anywhere}
.v2-ranked-identity>span,.v2-ranked-stats {font-size:.87em;color:var(--muted)}
.v2-ranked-identity>small {padding:0 .35em;border-radius:3px;background:#347257}
.v2-own-club {background:#213e36}
.v2-award-details,.v2-trophy-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45em}
.v2-trophy-grid {grid-template-columns:repeat(auto-fit,minmax(min(8em,100%),1fr))}
.v2-award-detail {min-width:0;padding:.45em .55em;border-radius:5px;background:#16232f;overflow-wrap:anywhere}
.v2-award-detail h3 {margin:0 0 .16em}
.v2-best-eleven {
 display:grid;gap:.32em;padding:.45em;border-radius:5px;border:1px solid #48876a;flex:none;
 background:repeating-linear-gradient(to bottom,#225740 0 25%,#285e46 25% 50%);
}
.v2-eleven-line {display:flex;justify-content:center;flex-wrap:wrap;gap:.25em .65em}
.v2-eleven-line span {padding:0 .35em;border-radius:3px;background:#152b29;overflow-wrap:anywhere}
.content-career ul {margin:.3em 0;padding-inline-start:1.1em}

@media(min-width:1024px){
 .game-shell .content-area>.content-v2-panel:not([hidden]) {overflow:hidden;font-size:1.53cqh}
 .v2-club-grid,.v2-award-grid {height:100%;gap:1.1cqh 1.05cqw}
 .v2-club-grid {
  grid-template-columns:minmax(0,.55fr) minmax(0,.45fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:'fans fans history' 'stadium youth finance';
 }
 .v2-club-grid.v2-club-compact {height:auto;max-height:100%;grid-template-rows:auto minmax(0,1fr);align-items:start}
 .v2-fans {grid-area:fans}
 .v2-fan-history {grid-area:history}
 .v2-stadium {grid-area:stadium}
 .v2-youth {grid-area:youth}
 .v2-finance {grid-area:finance}
 .v2-award-grid {
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  grid-template-rows:auto auto minmax(0,2.3fr) minmax(0,.76fr);
  grid-template-areas:'filters filters' 'podium podium' 'ranking seasonal' 'ranking trophies';
 }
 .v2-award-filters {grid-area:filters}
 .v2-podium {grid-area:podium}
 .v2-podium-place .content-card-face {height:11cqh}
 .v2-award-ranking {grid-area:ranking}
 .v2-seasonal-awards {grid-area:seasonal}
 .v2-trophies {grid-area:trophies}
 .v2-award-detail {padding:.36em .55em}
 .v2-seasonal-awards .v2-award-detail {
  display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:.55em;align-content:start
 }
 .v2-seasonal-awards .v2-award-detail p {grid-column:2}
 .v2-scroll {overflow:auto;scrollbar-gutter:stable}
 .v2-card button {font-size:.93em}
}
@media(max-width:1023px){
 .v2-club-grid,.v2-award-grid {grid-template-columns:minmax(0,1fr)}
 .v2-field {flex-wrap:wrap}
 .v2-award-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .v2-field select {width:100%}
 .v2-ranking-row {grid-template-columns:2.5em minmax(0,1fr) 2.5em 3.5em}
 .v2-ranked-stats {display:none}
 .v2-ranked-identity>span {flex-basis:100%}
}
@media(max-width:460px){
 .v2-card {padding:.7em}
 .v2-podium-grid {gap:.37em}
 .v2-podium-place .content-card-face {height:clamp(86px,30vw,123px)}
 .v2-podium-place .content-card-name {font-size:11px}
 .v2-podium-place>strong {font-size:.85em}
 .v2-award-details {grid-template-columns:1fr}
 .v2-chart {gap:.28em}
 .v2-table thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .v2-table tbody {display:grid;gap:.65em}
 .v2-table tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line)}
 .v2-table td,.v2-table td:first-child {display:grid;text-align:start;border:0}
 .v2-table td::before {content:attr(data-label);color:var(--muted);font-size:.84em}
}

.youth-summary {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.youth-space {color:#f2d595}
.youth-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7em;max-width:1100px}
.youth-grid .youth-candidate {display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:.18em;background:var(--panel);border:1px solid var(--line);border-radius:6px;text-align:center}
.youth-candidate .content-card-face {width:clamp(75px,9vw,112px);height:auto;aspect-ratio:104/134}
.youth-candidate .content-level {display:none}
.youth-club {overflow-wrap:anywhere}
@media(max-width:640px){.youth-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.youth-candidate .content-card-face {width:88px}}
.youth-candidate .content-card-name {white-space:normal;line-height:1.15;inset-inline:2px;overflow-wrap:anywhere}
#youth-content {max-width:1100px;margin-inline:auto}
.youth-summary p {margin-block:.45em}

/* The wallet is a persistent shortcut to club finances. */
.game-shell #content-account-menu #header-balance {
 display:inline-flex;align-items:center;gap:.52em;margin:0 .55em 0 0;padding:.36em .75em .36em .38em;
 border:1px solid #71623f;border-radius:18px;background:linear-gradient(105deg,#3d3425,#282a2c);
 color:#ffe6a9;font-size:clamp(12px,1.05vw,17px);font-variant-numeric:tabular-nums;line-height:1.15
}
#header-balance::before {
 content:'K';display:grid;place-items:center;width:1.45em;height:1.45em;border-radius:50%;
 color:#49330e;background:linear-gradient(135deg,#fff0b8,#d4a54d);box-shadow:inset 0 0 0 2px #f3d28e;
 font:bold .94em Georgia,serif
}
.game-shell #content-account-menu #header-balance:hover,.game-shell #content-account-menu #header-balance:focus-visible {border-color:#f3d28e}
.game-shell #content-account-menu #header-balance.negative-balance {color:#ffbcb0;border-color:#9e6053}
.game-shell :where(button,summary,a,select,input):focus-visible {outline:2px solid #8de4cf;outline-offset:2px}
.game-shell .content-panel {min-width:0}
.game-shell .content-list {color:var(--ink);font-variant-numeric:tabular-nums}
.offer-heading,.offer-title,.youth-summary {display:flex;align-items:center;gap:.8em;flex-wrap:wrap}
.offer-heading {justify-content:space-between;padding:.55em 0 .85em;margin-block-end:.75em;border-bottom:1px solid var(--line)}
.game-shell .offer-heading h2 {margin:0;font-size:1.25em}
.offers-remaining,.offer-heading>strong,.youth-summary p {color:var(--muted);font-size:.94em}
.game-metric {display:grid;gap:.2em;color:var(--ink)}
.game-metric>span {font-size:.84em;color:var(--muted)}
.recruit-decision-facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(7.6em,1fr));gap:.65em 1em;margin:0 0 1em;padding:.65em .8em;border:1px solid var(--line);border-radius:6px;background:#192b38}
.scout-offers {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.2vw,22px)}
.scout-offer {min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75em;
 padding:clamp(12px,1.3vw,24px);border:1px solid #40586b;border-radius:8px;background:linear-gradient(152deg,#283c4d,#1b2a37 72%)}
.scout-offer .content-card-face {grid-column:1/-1;justify-self:center;width:clamp(110px,10.4vw,185px);height:auto;aspect-ratio:1/1.18}
.scout-offer .content-card-art {height:100%}
.scout-offer .content-card-name,.scout-offer .content-level {display:none}
.scout-profile {min-width:0;display:grid;gap:.2em}
.scout-profile strong {font-size:1.14em;overflow-wrap:anywhere}
.scout-profile span {color:var(--muted);font-size:.9em}
.scout-offer .game-metric {text-align:end}
.scout-offer .game-metric strong {font-size:1.35em;color:#a5e9d1}
.game-shell .scout-offer>button {grid-column:1/-1;margin:0;min-height:36px}
.market-entry,.history-entry {display:grid;align-items:center;gap:.75em;padding:.65em .8em;border-bottom:1px solid var(--line);background:#1a2b39}
.market-entry {grid-template-columns:3em minmax(0,1fr) minmax(3em,auto) minmax(8em,auto)}
.market-entry .offer-position {font-weight:700;color:#9edbc9}
.history-entry {grid-template-columns:8.5em minmax(0,1fr) auto}
.history-entry:nth-child(even),.market-entry:nth-child(even) {background:#20313f}
.history-entry time,.history-subject span {font-size:.9em;color:var(--muted)}
.history-subject {display:grid;gap:2px}
.transaction-gain {color:#90e7be}
.content-card-grid {max-width:none;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));justify-items:center}
@media(min-width:1024px){
 .game-shell .content-panel {height:100%;overflow:hidden;display:flex;flex-direction:column}
 .game-shell .content-list {min-height:0;overflow:auto;scrollbar-gutter:stable}
 #youth-content {max-width:none;margin:0}
 .youth-grid {max-width:none}
}
@media(max-width:640px){
 .game-shell #content-account-menu #header-balance {margin-right:auto}
 .scout-offers {grid-template-columns:1fr;gap:8px}
 .scout-offer {grid-template-columns:74px minmax(0,1fr) auto;gap:6px 10px;padding:10px}
 .scout-offer .content-card-face {grid-column:1;grid-row:1/3;width:70px}
 .scout-offer>button {grid-column:2/4;grid-row:2}
 .game-shell .scout-offer>button {grid-column:2/4}
 .market-entry {grid-template-columns:2.5em minmax(0,1fr) auto}
 .market-entry button {grid-column:2/4;justify-self:stretch}
 .history-entry {grid-template-columns:minmax(0,1fr) auto;gap:3px .6em}
 .history-entry time {grid-column:1/-1}
 .offer-heading {gap:.45em}
 .content-card-grid {grid-template-columns:repeat(auto-fill,minmax(83px,1fr));gap:8px}
 .game-shell .content-card-grid .player-card {width:min(100%,104px)}
}
.game-shell .topbar .match-alert:disabled {opacity:1;color:#b8cbd1;background:#233743;border:1px solid #405862}
.game-shell #content-account-menu .account-actions>button {background:#223543;border:1px solid #3d5361;color:#d9e4e9}
.game-shell #content-account-menu .account-actions>button:hover {background:#324b5b}
@media(min-width:1024px){
 .youth-grid .youth-candidate {grid-template-columns:minmax(70px,1fr) minmax(70px,1fr);grid-template-rows:1fr auto 1fr;
  gap:5px 12px;align-items:center;justify-items:start;text-align:start;padding:clamp(8px,.9vw,18px);background:linear-gradient(130deg,#263b4a,#1b2a38)}
 .youth-candidate .content-card-face {grid-row:1/4;width:min(100%,145px)}
 .youth-candidate .youth-club {align-self:end}
 .youth-candidate button {align-self:start}
}
.game-shell .scoreline>strong {display:flex;align-items:center;gap:.5em;min-width:0;max-width:42%;font-variant-numeric:tabular-nums}
.score-club {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1023px){
 .game-shell #service-notification {bottom:calc(98px + env(safe-area-inset-bottom));max-height:32dvh}
}
@media(max-width:640px){
}
.game-shell :is(.match-field,.match-roster,.scoreline,#match-waiting) {min-width:0}
#stadium-title {overflow-wrap:anywhere;max-width:100%}
@media(max-width:1023px){
 .game-shell .match-layout {grid-template-columns:minmax(0,1fr)}
 .game-shell .scoreline {width:100%;box-sizing:border-box}
}

.recruit-section {min-width:0;margin:12px 0 20px}
.recruit-section>h3,.recruit-section .offer-heading h3 {margin:0}
.recruit-section h3 {font-size:1.12em}
.recruit-section .offer-heading {margin-bottom:8px}
.recruit-section .offer-heading>span,.recruit-status p {color:var(--muted)}
.recruit-search {display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.recruit-search label {display:grid;gap:4px;color:var(--muted);font-size:.94em}
.recruit-search label:first-child {flex:1 1 14em}
.recruit-search :is(input,select,button) {min-height:38px}
.recruit-search input {min-width:0;width:100%;box-sizing:border-box}
.recruit-results,.club-offers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin-top:8px}
.recruit-results .market-entry,.club-offers .market-entry {border:1px solid var(--line);border-radius:5px}
.recruit-section .recruit-name {display:grid;min-width:0;overflow-wrap:anywhere}
.recruit-name small {color:var(--muted)}
.recruit-status {padding:12px;border:1px solid #547066;border-radius:6px;background:#1b332f;margin:8px 0}
.recruit-status p {margin:4px 0 8px}
@media(max-width:800px){.recruit-results,.club-offers {grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){
 .recruit-search {display:grid;grid-template-columns:minmax(0,1fr) auto}
 .recruit-search label:first-child {grid-column:1/-1}
 .recruit-section button {min-height:40px}
}
@media(max-width:1023px){
 .game-shell main:has(:is(#scout-panel,#market-panel):not([hidden])) {padding-bottom:calc(112px + env(safe-area-inset-bottom))}
 .recruit-section article,.recruit-status {scroll-margin-block:12px 112px}
}
/* Shared player details and card management. */
#content-card-dialog {
 width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:92dvh;
 box-sizing:border-box;padding:10px 16px 16px;overflow:hidden;border-color:#33534e;background:#152422;color:#eff7f2;
}
#content-card-dialog[open] {display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}
.game-shell :is(#content-card-close,#player-card-close) {
 justify-self:end;min-height:34px;margin:0;padding:5px 12px;font-size:13px;font-weight:650;
 background:#233734;color:#e0eee8;border:1px solid #426059;border-radius:6px;
}
.game-shell :is(#content-card-close,#player-card-close):hover {background:#315149}
#content-card-detail {display:block;min-width:0;min-height:0;margin:0;overflow:auto;overscroll-behavior:contain}
.player-detail-layout {display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:14px;min-width:0}
.player-detail-identity {
 display:grid;align-content:start;gap:9px;min-width:0;align-self:start;padding:9px;
 background:#101e1d;border:1px solid #304a46;border-radius:8px;
}
.player-detail-portrait {position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:5px;background:#253f39}
.player-detail-portrait .content-card-art {height:100%}
.player-detail-portrait .content-photo {inset:0;transform:none;width:100%;height:100%;object-fit:cover;object-position:center top}
.player-detail-portrait[data-portrait-kind=original_pack_grey_bg] .content-photo {width:118%;height:112%;left:-9%;top:-6%}
.player-detail-portrait .content-flag {width:25px;height:16px}
.player-detail-profile {display:grid;gap:4px;align-content:start;min-width:0}
.player-detail-title {margin:0;color:#f1fbf5;font-size:19px;font-weight:720;line-height:1.18;overflow-wrap:anywhere}
.player-detail-heading {display:flex;align-items:baseline;gap:.45em;flex-wrap:wrap}
.player-detail-growth,.player-detail-xp {margin:0;color:#c8dcd4;font-size:12px;line-height:1.35}
.player-detail-xp {display:grid;gap:4px}
.player-detail-identity>p {margin:0;color:#bdcec7;font-size:12px;line-height:1.35}
.player-detail-overview {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin:0;padding-top:6px;border-top:1px solid #324a45}
.content-ability {display:flex;justify-content:space-between;gap:3px;align-items:baseline;font-size:12px}
.content-ability dt {color:#bdcec7;overflow-wrap:anywhere}
.content-ability dd {margin:0;color:#eff7f2;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.content-ability small {color:#96e2bc;margin-left:2px}
.player-detail-data {min-width:0;--detail-fill:#69c3a1}
.game-shell .player-detail-data .card-detail-tabs {
 display:flex;gap:4px;margin:0 0 8px;padding:3px;background:#0e1e1b;border:1px solid #35534b;border-radius:7px;
}
.game-shell .player-detail-data [role=tab] {
 min-height:34px;margin:0;padding:4px 8px;border:1px solid transparent;border-radius:5px;
 color:#b8cec4;background:transparent;box-shadow:none;font-size:13px;font-weight:650;
}
.game-shell .player-detail-data [role=tab]:hover {color:#ecfbf4;background:#203731}
.game-shell .player-detail-data [role=tab][aria-selected=true] {
 background:#285346;color:#f2fef7;border-color:#4b8976;box-shadow:inset 0 -2px #8de0bb;
}
.game-shell .player-detail-data [role=tab]:focus-visible {outline:2px solid #f0d391;outline-offset:-2px}
.player-detail-stats {display:grid;gap:4px;align-content:start;padding:8px;background:#12221f;border-radius:7px}
.player-detail-stats[data-categories] {display:block;column-count:2;column-gap:8px;padding:0;background:transparent}
.player-detail-category {
 --detail-fill:#6bc5a5;break-inside:avoid;margin:0 0 8px;padding:8px 9px;
 background:#12221f;border:1px solid #304a43;border-radius:6px;
}
.player-detail-category[data-group=defense] {--detail-fill:#71b8b2}
.player-detail-category[data-group=technique] {--detail-fill:#82bf8e}
.player-detail-category[data-group=buildUp] {--detail-fill:#86bdb6}
.player-detail-category[data-group=physical] {--detail-fill:#b5bd79}
.game-shell .player-detail-category h3 {
 margin:0 0 5px;padding:0 0 5px;border-bottom:1px solid #2d443d;color:#d9eee5;font-size:13px;font-weight:750;
}
.player-detail-stat {display:grid;grid-template-columns:minmax(5.7em,1fr) minmax(35px,1.35fr) 2ch;gap:8px;align-items:center;min-height:19px}
.player-detail-stat :is(span,strong) {color:#dfede7;font-size:12.5px;line-height:1.22}
.player-detail-stat strong {text-align:right;font-variant-numeric:tabular-nums}
.player-detail-stat span:last-child {grid-column:2/4;text-align:right;color:#b7c9c1}
.player-detail-extra {margin:0;font-size:12px;color:#c8dcd4}
.game-shell .player-detail-layout :is(meter,progress) {
 appearance:none;display:block;width:100%;height:5px;min-height:0;margin:0;border:0;border-radius:99px;background:#293f39;
}
.game-shell .player-detail-layout meter::-webkit-meter-bar {height:100%;background:#293f39;border:0;border-radius:99px}
.game-shell .player-detail-layout meter::-webkit-meter-optimum-value {background:var(--detail-fill,#79c5a2);border-radius:99px}
.game-shell .player-detail-layout meter::-moz-meter-bar {background:var(--detail-fill,#79c5a2);border-radius:99px}
.game-shell .player-detail-layout progress::-webkit-progress-bar {background:#293f39;border-radius:99px}
.game-shell .player-detail-layout progress::-webkit-progress-value {background:#75c6b5;border-radius:99px}
.game-shell .player-detail-layout progress::-moz-progress-bar {background:#75c6b5;border-radius:99px}
.player-detail-bio {margin:0;padding:0 10px;background:#12221f;border:1px solid #304a43;border-radius:6px}
.player-detail-bio-row {display:grid;grid-template-columns:minmax(68px,1fr) minmax(0,2fr);gap:9px;padding:9px 0;border-bottom:1px solid #2d453e}
.player-detail-bio-row dt {color:#bcd1c7}
.player-detail-bio-row dd {margin:0;text-align:right;overflow-wrap:anywhere}
.player-detail-bio-row:last-child {border-bottom:0}
.content-career {grid-column:1/-1}
.owned-card-entry {min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px}
.game-shell .owned-manage {margin:0;width:100%;padding:4px 8px;font-size:13px;min-height:30px}
#owned-management-dialog {box-sizing:border-box;width:min(450px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;background:#192a34;color:#edf4f2;border:1px solid #48605f;border-radius:10px}
#owned-management-dialog::backdrop {background:#07121cb8}
#owned-management-dialog header {display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #435752;background:#213931}
#owned-management-dialog header small {color:#a9d9bd}
#owned-management-dialog h2 {margin:2px 0 0;font-size:21px;overflow-wrap:anywhere}
#owned-management-body {padding:0 18px 8px}
#owned-management-body .detail-actions-group {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0}
#owned-management-body .detail-actions-group+.detail-actions-group {border-top:1px solid #374a54}
#owned-management-body h3 {flex-basis:100%;margin:0;font-size:15px}
#owned-management-body p {margin:0;color:#c5d3d6}
#owned-management-body progress {flex:1;min-width:24px;max-width:110px;height:7px;accent-color:#82d7a6}
#owned-management-dialog button {margin:0;min-height:36px;padding:6px 12px;font-size:13px}
#owned-management-dialog #owned-management-state {color:#c0d2c9}
#owned-management-body .roster-actions button {background:#283f4a;border:1px solid #48616b;color:#e2eef0}
#owned-management-body .roster-actions button:last-child {margin-left:auto;background:#382b30;border-color:#735159;color:#f3cacc}
@media(max-width:1023px){.game-shell .owned-manage,#owned-management-dialog button {min-height:44px}}
#player-card-dialog .player-dialog-body {display:block}#player-card-dialog .player-detail-layout {width:100%}
@media(max-width:600px){
 #content-card-dialog {padding:7px 9px 10px}
 .game-shell :is(#content-card-close,#player-card-close),.game-shell .player-detail-data [role=tab] {min-height:44px}
 .player-detail-layout {grid-template-columns:minmax(0,1fr);gap:10px}
 .player-detail-identity {grid-template-columns:minmax(68px,88px) minmax(0,1fr);gap:6px 10px}
 .player-detail-identity .player-detail-portrait {align-self:center}
 .player-detail-identity .player-detail-overview,.player-detail-identity>p {grid-column:1/-1}
 .player-detail-title {font-size:18px}
 .player-detail-overview {grid-template-columns:repeat(3,minmax(0,1fr))}
 .player-detail-stats[data-categories] {column-count:1}
 .player-detail-stat {min-height:23px}
}

/* Keep the free-signing limit next to its candidates and identify the name as a detail link. */
#scout-content .trial-camp {max-inline-size:42rem;padding-inline-start:.55rem}
#scout-content .trial-candidate button:first-of-type {text-decoration:underline;text-underline-offset:.2em;text-decoration-color:#83aca8}
.player-availability {color:#ffd38a;font-weight:700}
.game-shell .match-roster :is(#starter-list,#match-bench) :is(td,th):last-child {width:38%;white-space:normal;overflow-wrap:anywhere}
/* Keep the listing identity, detail and purchase controls together. */
#market-content .market-entry {grid-template-columns:3em minmax(0,1fr) minmax(3em,auto) auto auto;gap:.5em}
#market-content .market-entry button {margin:0;white-space:nowrap}
@media(max-width:640px){
 #market-content .market-entry {grid-template-columns:2.5em minmax(0,1fr) minmax(5.5em,auto);gap:5px 7px}
 #market-content .market-entry button:first-of-type:not(:last-of-type) {grid-column:1/3;grid-row:2}
 #market-content .market-entry button:last-of-type:not(:first-of-type) {grid-column:3;grid-row:2}
 #market-content .market-entry button {min-height:44px}
}

@media(max-width:640px){
 #market-content .market-entry {grid-template-columns:2.5em minmax(0,1fr) minmax(0,1fr) 3em}
 #market-content .market-entry .recruit-name,#market-content .market-entry>strong {grid-column:2/4}
 #market-content .market-entry>.game-metric {grid-column:4}
 #market-content .market-entry button:first-of-type:not(:last-of-type) {grid-column:1/3}
 #market-content .market-entry button:last-of-type:not(:first-of-type) {grid-column:3/5}
 #market-content .market-entry button {white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:640px){
 #market-content .market-entry {grid-template-columns:2.5em minmax(0,.7fr) minmax(0,1.3fr) 3em}
 #market-content .market-entry button {padding-inline:6px}
}
/* Give the message list the available width until a message is opened. */
.game-shell #locker-panel:not(.inbox-reading) .inbox-detail {display:none}
@media(min-width:1024px){
 .game-shell #locker-panel:not(.inbox-reading) .locker-layout {grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
 .game-shell #locker-panel.inbox-reading .inbox-detail #inbox-back {display:block;align-self:flex-start;min-height:36px;margin-bottom:8px}
}
@media(max-width:1023px){.game-shell #locker-panel.inbox-reading .inbox-detail #inbox-back {min-height:44px}}

/* Main destinations and their local tabs have distinct selection markers. */
.account-actions {display:flex;align-items:center;gap:3px}
.mobile-nav-glyph,.match-label-short,.wallet-short {display:none}
.game-shell #subnavigation {
 background:#1b2936;border-bottom:1px solid #3c4a54;gap:4px;
}
.game-shell #subnavigation button {
 background:transparent;color:#b9c7cd;font-weight:500;
}
.game-shell #subnavigation button[aria-current=true] {
 color:#ffdd92;box-shadow:inset 0 -3px #e7b658;font-weight:700;
}
@media(max-width:1023px) {
 .game-shell {--mobile-nav-height:54px;--safe-bottom:env(safe-area-inset-bottom,0px)}
 .game-shell .topbar {
  --brand-width:clamp(54px,14vw,78px);
  display:grid;grid-template-columns:var(--brand-width) minmax(0,1fr) auto var(--brand-width) minmax(0,1fr);
  align-items:center;gap:3px;height:46px;min-height:46px;padding:0 8px;flex-wrap:nowrap;
 }
 .game-shell .topbar .brand {grid-area:1/1;justify-self:start;font-size:clamp(16px,4vw,22px);letter-spacing:-1px}
 .game-shell .topbar #content-account-menu {display:contents}
 .game-shell .topbar #header-balance {
  grid-area:1/2;justify-self:start;max-width:min(100%,120px);min-width:0;min-height:30px;
  margin:0;padding:3px 4px;gap:2px;font-size:11px;border-radius:5px;
 }
 .game-shell .topbar #content-account-menu #header-balance {margin:0;padding:3px 4px;font-size:11px;gap:2px}
 .game-shell .topbar #header-balance strong {min-width:0;overflow:hidden;text-overflow:ellipsis}
 .game-shell .topbar #header-balance::before {width:1em;height:1em;font-size:10px;flex:none}
 .game-shell .topbar .match-alert {
  grid-area:1/3;position:static;transform:none;justify-self:center;max-width:100%;min-width:0;
  min-height:32px;margin:0;padding:4px 6px;font-size:12px;line-height:1.15;
 }
 .game-shell .topbar .account-actions {grid-area:1/4/2/6;justify-self:end}
 .game-shell .topbar #content-account-menu .account-actions>button {
  min-height:34px;margin:0;padding:4px clamp(3px,1vw,8px);font-size:12px;white-space:nowrap;
 }
 .game-shell main {padding-bottom:calc(var(--mobile-nav-height) + var(--safe-bottom) + 50px)}
 .game-shell #navigation {
  position:fixed;inset:auto 0 0;z-index:12;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;
  height:calc(var(--mobile-nav-height) + var(--safe-bottom));padding:0 4px var(--safe-bottom);
  margin:0;border-top:1px solid #527067;background:#10251f;
 }
 .game-shell #navigation button {
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;position:relative;
  min-width:0;padding:3px 1px;border:0;border-radius:0;font-size:12px;line-height:1.1;color:#b7cec4;
 }
 .game-shell #navigation button[aria-current=true] {background:#204237;color:#b8f2d1;box-shadow:inset 0 3px #80d6a6}
 .game-shell #navigation .locker-badge {position:absolute;top:2px;left:calc(50% + 4px);margin:0}
 .mobile-nav-glyph {display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .game-shell #subnavigation {padding:0 8px;align-items:stretch;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 .game-shell #subnavigation button {min-height:36px;padding:6px 9px;font-size:13px;white-space:nowrap}
 .game-shell #social-bar {
  position:fixed;inset:auto max(8px,env(safe-area-inset-right)) calc(var(--mobile-nav-height) + var(--safe-bottom) + 4px) auto;
  width:66.666vw;padding:0;border:1px solid #486075;border-radius:8px;
  background:#1d3040;box-shadow:0 2px 7px #07121c55;
 }
 .game-shell #social-toggle {width:100%;min-height:34px;gap:7px;padding:5px 10px;font-size:12px}
 .game-shell #social-preview {flex:1}
 .game-shell #social-toggle::after {
  content:'';flex:none;width:6px;height:6px;border:solid #afc2ce;border-width:1.5px 1.5px 0 0;
  transform:rotate(-45deg);margin:3px 2px 0;
 }
 .game-shell #social-toggle[aria-expanded=true]::after {transform:rotate(135deg);margin-top:-3px}
 .game-shell #social-panel {
  left:auto;right:-1px;bottom:calc(100% + 4px);width:clamp(100%,380px,calc(100vw - 16px));
  height:min(450px,58dvh);max-height:calc(100dvh - var(--mobile-nav-height) - var(--safe-bottom) - 52px);
  border-radius:9px;overflow:hidden;
 }
}

@media(max-width:1023px) {
 #header-balance.wallet-large .wallet-full {display:none}
 #header-balance.wallet-large .wallet-short {display:inline}
 .game-shell #subnavigation button {flex:none}
}
@media(max-width:399px) {
 .game-shell .topbar .match-label-full {display:none}
 .game-shell .topbar .match-label-short {display:inline}
}
@media(max-width:359px) {
 .game-shell .topbar .account-actions {gap:1px}
 .game-shell .topbar .match-alert {max-width:calc(100vw - 248px);padding-inline:3px}
 .game-shell .topbar .wallet-full {display:none}
 .game-shell .topbar .wallet-short {display:inline}
 .game-shell .topbar #header-balance::before {content:'KP';width:auto;height:auto;background:none;box-shadow:none;color:#ffe096;font:700 10px system-ui}
}

.primary-nav-row {display:contents}
@media(min-width:1024px) {
 .game-shell .primary-nav-row {display:flex;align-items:center;position:relative;background:#192a3a}
 .game-shell #navigation {flex:1;min-width:0}
 .game-shell #social-bar {
  align-self:center;width:clamp(158px,16cqw,272px);min-height:0;margin-right:1.5cqw;padding:0;
  border:1px solid #4b625e;border-radius:6px;background:#203735;
 }
 .game-shell #social-toggle {
  width:100%;min-height:0;height:clamp(21px,2.9cqh,32px);padding:0 .65cqw;gap:.5cqw;
  font-size:clamp(11px,1.25cqh,14px);line-height:1.1;white-space:nowrap;
 }
 .game-shell #social-toggle strong {color:#b6e8cb}
 .game-shell #social-preview {flex:1}
 .game-shell #social-toggle::after {content:'';width:5px;height:5px;flex:none;border:solid #a8ccbb;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
 .game-shell #social-toggle[aria-expanded=true]::after {transform:rotate(225deg)}
 .game-shell #social-panel {inset:calc(100% + 5px) -1px auto auto;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px #07131bcc}
}

.market-name-search{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:6px 0 10px}
.market-name-search input{width:min(13rem,50%)}.market-name-search button{white-space:nowrap}
