/* Expanded card geometry follows the approved 1920px reference. */
.game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail) {
 box-sizing:border-box;width:min(900px,calc(100vw - 32px));height:min(720px,calc(100dvh - 36px));max-width:none;max-height:none;
 padding:30px;margin:auto;overflow:hidden;background:#1a2531;color:#e6e9ee;border:0;border-radius:14px;box-shadow:0 20px 60px #000a;font-size:15px;
}
.game-shell :is(#content-card-dialog,#player-card-dialog)[open]:has(.director-detail){display:block}
.game-shell :is(#content-card-dialog,#player-card-dialog)::backdrop{background:#02070bb0}
#content-card-detail:has(.director-detail),.player-dialog-body:has(.director-detail){height:100%;width:100%;overflow:hidden;display:block}
.game-shell :is(#content-card-close,#player-card-close){position:absolute;z-index:4;right:13px;top:9px;padding:2px;width:34px;height:34px;min-height:0;border:0;background:none;color:#aeb8c4;border-radius:5px;font-size:24px;line-height:1}
#player-card-dialog:has(.director-detail) .player-dialog-top,#player-card-dialog:has(.director-detail) .expanded-history{display:contents}
#player-card-dialog:has(.director-detail) :is(.player-dialog-top>span,.expanded-history>*){display:none}
.director-detail.player-detail-layout{display:grid;height:100%;grid-template-columns:minmax(180px,min(330px,calc((100dvh - 105px)*.55))) minmax(0,1fr);gap:30px}
.director-detail .director-card{display:block;align-self:start;aspect-ratio:11/20;width:100%;position:relative;border:0;padding:0;overflow:hidden;background:#0f1822;border-radius:8px;box-shadow:0 2px 5px #0007;container-type:inline-size}
.director-card .content-card-face{position:absolute;inset:0;border:0;border-radius:inherit;background:#0f1822}
.director-card .content-card-art{height:67.5%}
.director-card .content-card-art .content-emblem{left:42%;top:11%;width:77%;height:63%}
.director-card .content-card-art .content-photo,.director-card [data-portrait-kind] .content-card-art .content-photo{inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:center top}
.director-card .content-position,.director-card .content-level{font-size:6.36cqw;padding:2.3cqw 3.6cqw}
.director-card [data-role=MF]{--card-accent:#9fd6b0}.director-card [data-role=DF]{--card-accent:#8fbbe8}.director-card [data-role=FW]{--card-accent:#f29a8a}
.director-card .content-flag{left:0;width:15.45%;height:8.15%}
.director-card .content-enhancement{right:0;height:8.15%;padding:0 3.6%;font-size:6.8cqw;line-height:1.45}
.director-card .content-card-name{inset:68.5% 3.64% auto;height:7.5%;padding:0 4%;display:grid;align-items:center;text-align:center;line-height:1.1;font-size:7.27cqw;font-weight:700;background:#0a1118;box-shadow:inset 0 2px 4px #000c;border-radius:4px}
.game-shell .director-card .content-card-face .card-fitness{inset:76% auto auto 4.55%;width:90.9%;height:1%}
.director-card .player-detail-overview{position:absolute;inset:79% 4.55% auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.9cqw 5.45cqw;margin:0;padding:0;border:0}
.director-card .content-ability{min-width:0;display:flex;gap:2px;border-bottom:1px dotted #34404b;padding-bottom:1cqw;font-size:5.68cqw;line-height:1.2}
.director-card .content-ability dt{color:#9aa4b1}.director-card .content-ability dd{white-space:nowrap}.director-card .content-ability small{color:#5fc58f;margin-left:3px;font-size:.85em}
.director-detail .player-detail-data{display:flex;flex-direction:column;gap:0;min-height:0;min-width:0;padding:0;border:0;background:none;overflow:hidden}
.director-detail .director-heading{padding:2px 30px 0 0}
.director-detail .player-detail-title{font-size:28px;color:#e6e9ee}.director-detail .player-detail-sub{margin:6px 0 0;color:#aab4bf;font-size:15px}
.director-detail .card-detail-tabs{display:flex;flex:none;gap:4px;padding:0;border:0;border-bottom:1px solid #2a3846;margin:20px 0 16px;background:none}
.director-detail .card-detail-tabs [role=tab]{width:auto;min-height:36px;padding:9px 18px;color:#9aa4b1;background:transparent;border:0;border-radius:0;font-size:15px}
.director-detail .card-detail-tabs [aria-selected=true]{color:white;box-shadow:inset 0 -3px #5fc489}
.director-detail [role=tabpanel]{min-height:0;overflow:auto;flex:1}.director-detail [hidden]{display:none!important}
.director-detail h3{margin:0 0 10px;color:#9aa4b1;font-size:13px;font-weight:500}
.director-detail .director-growth{margin:0 0 28px}.director-progress{margin-bottom:12px;font-size:14px}
.director-progress>div,.director-season>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.director-progress span,.director-friend small,.director-friends>small{color:#9aa4b1}
.director-progress progress{appearance:none;display:block;width:100%;height:8px;margin-top:6px;border:none;border-radius:4px;overflow:hidden;background:#2a3846;accent-color:#5fc489}
.director-progress progress::-webkit-progress-bar{background:#2a3846}.director-progress progress::-webkit-progress-value{background:#5fc489}.director-progress progress::-moz-progress-bar{background:#5fc489}
.director-enhance progress::-webkit-progress-value{background:#f0c64a}.director-enhance progress::-moz-progress-bar{background:#f0c64a}
.game-shell .director-find{padding:0;border:0;background:none;color:#5fc489;font-size:13px}
.director-friend{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #2a3846}
.director-friend small{display:block;font-size:12px}.director-mini{width:44px;height:44px;overflow:hidden;border-radius:6px;background:#425368}
.director-mini :is(img,svg){display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.friend-stage{padding:3px 10px;border-radius:10px;background:#314252;font-size:12px}.friend-stage:is([data-stage="3"],[data-stage="4"]){background:#2f6e57}.friend-stage[data-stage="5"]{background:#3ee0b0;color:#06241b}.friend-stage[data-stage="6"]{color:#2b1d0e;background:linear-gradient(90deg,#c9a24a,#f3dc8c)}
.director-actions{margin-top:auto;display:flex;gap:8px;padding-top:8px;flex-wrap:wrap}.director-actions:empty{display:none}
.game-shell .director-actions button{min-height:38px;border:0;border-radius:6px;padding:7px 14px;color:white;background:#30465a}
.game-shell .director-actions button:first-child{background:#1f8f6a}.game-shell .director-actions button:last-child{margin-left:auto;background:#4a2a35}
.director-season{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:8px 14px}.director-season dd{margin:0}
@media(min-width:1024px) and (min-height:790px){.game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail){transform:translateY(-10px)}}
@media(max-width:680px){
 .game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail){width:calc(100vw - 16px);height:auto;max-height:94dvh;padding:17px;border-radius:10px;overflow:auto}
 #content-card-detail:has(.director-detail),.player-dialog-body:has(.director-detail){height:auto;overflow:visible}
 .director-detail.player-detail-layout{display:flex;flex-direction:column;align-items:stretch;gap:16px;height:auto}
 .director-detail .director-card{width:min(175px,52%);align-self:center}
 .director-detail .director-heading{padding:0}.director-detail .player-detail-title{font-size:22px}
 .director-detail .card-detail-tabs{margin:10px 0}.director-detail [role=tabpanel]{overflow:visible}.director-detail .director-growth{margin-bottom:16px}
}
#formation .lineup-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
#formation .formation-row{position:relative;z-index:1;pointer-events:none}#formation .formation-row .player-card{pointer-events:auto}
.game-shell .director-detail .player-detail-data .card-detail-tabs{margin:20px 0 16px;padding:0;border:0;border-bottom:1px solid #2a3846;border-radius:0;background:none}
.game-shell .director-detail .card-detail-tabs [role=tab]{flex:0 1 auto;padding:9px 18px;border:0;border-radius:0;background:none;color:#9aa4b1;font-size:15px}
.game-shell .director-detail .card-detail-tabs [role=tab][aria-selected=true]{background:none;color:#e6e9ee;box-shadow:inset 0 -3px #5fc489}
.game-shell .director-detail .director-progress progress{height:8px;margin-top:6px}
.game-shell .director-detail .director-enhance progress::-webkit-progress-value{background:#f0c64a}
.director-card .content-card-art .content-flag{position:absolute;inset:auto auto 0 0;width:15.45%;height:8.15%;max-width:none;max-height:none;object-fit:fill}
.director-detail .player-detail-stat{grid-template-columns:minmax(5.7em,1fr) minmax(35px,1.35fr) 3ch}
.game-shell .substitutes-area{min-width:0;padding:10px;background:#1c3a2c;border:2px solid #2f7a52;border-radius:10px}
.substitutes-area .panel-title{display:flex;justify-content:space-between;color:#cfe8d8}
.game-shell #squad-panel .formation-field{background:repeating-linear-gradient(#24603f 0 9%,#22593b 9% 18%);border:2px solid #2f7a52}
.friend-line{stroke-linecap:round}
.lineup-mobile-totals{display:none}
@media(min-width:1024px){
 .game-shell #squad-panel .squad-board{width:100%;height:100%;margin:0;display:grid;grid-template-columns:minmax(0,800fr) minmax(0,236fr) minmax(0,400fr) minmax(0,352fr);gap:1.05cqw}
 .game-shell #squad-panel .lineup-group{display:contents}
 .game-shell #squad-panel .starting-area{height:100%}
 .game-shell #squad-panel .formation-field{height:100%;max-height:none;width:100%}
 .game-shell #squad-panel .substitutes-area{overflow:auto;padding:.6cqw}
 .game-shell #squad-panel #bench,.game-shell #squad-panel #reserves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;justify-items:center;gap:.55cqw .4cqw}
 .game-shell #squad-panel #reserves{grid-template-columns:repeat(3,minmax(0,1fr))}
 .game-shell #squad-panel .content-player-card{width:min(5.42cqw,9.65cqh);height:auto;aspect-ratio:104/134;max-width:100%}
 .game-shell #squad-panel .tactics-bench{gap:1cqh;overflow:auto;padding:0;background:transparent}
 .game-shell #squad-panel :is(#lineup-power,#squad-save,#squad-summary,#fixture-lineup){padding:.75cqw;background:#1f2a36;border:1px solid #2a3846;border-radius:6px}
}
@media(max-width:1023px){
 .game-shell #squad-panel .squad-board{display:flex;flex-direction:column;width:100%;gap:10px;padding-bottom:65px}
 .game-shell #squad-panel .lineup-group{display:contents}
 .game-shell #squad-panel .starting-area{order:1}
 .game-shell #squad-panel .substitutes-area{order:2}
 .game-shell #squad-panel .reserve-area{order:3}
 .game-shell #squad-panel .tactics-bench{order:4}
 .lineup-mobile-totals{display:grid;grid-template-columns:1fr 1.2fr .8fr;gap:6px;margin-bottom:var(--section-gap,8px)}
 .lineup-mobile-totals>div{display:grid;padding:7px;background:#1f2a36;border-radius:6px;min-width:0}
 .lineup-mobile-totals small{color:#9aa4b1;font-size:11.5px}.lineup-mobile-totals b{font-size:16px;overflow-wrap:anywhere}
 .game-shell #squad-panel #formation{box-sizing:border-box;width:100%;flex:none;height:clamp(330px,100vw,510px);min-height:0;padding:22px 2px 16px;gap:1px;justify-content:space-around}
 .game-shell #squad-panel .formation-row{gap:clamp(4px,2vw,14px);min-height:0;padding:0}
 .game-shell #squad-panel #formation .lineup-slot{flex:0 1 clamp(46px,14.6vw,65px)}
 .game-shell #squad-panel .lineup-slot-value{display:none}
 .game-shell #squad-panel #formation .player-card{flex:0 0 100%;width:100%;min-width:0;height:auto;aspect-ratio:104/134;touch-action:pan-y}
 .game-shell #squad-panel #bench{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;max-height:none;justify-content:flex-start;padding:5px 0}
 .game-shell #squad-panel #bench .player-card,.game-shell #squad-panel #reserves .player-card{flex:0 0 62px;min-width:0;width:62px;height:auto;aspect-ratio:104/134;touch-action:pan-x pan-y}
 .game-shell #squad-panel #reserves{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:6px;max-height:none}
 .game-shell #squad-panel #squad-save>button{position:fixed;bottom:calc(var(--mobile-nav-height,48px) + env(safe-area-inset-bottom) + 4px);left:16px;width:calc(100% - 32px);min-height:40px;z-index:9;background:#1f8f6a;border:0;box-shadow:0 0 0 6px #111a24}
 body.game-shell:has(#squad-panel:not([hidden])) #social-bar{bottom:calc(var(--mobile-nav-height,48px) + env(safe-area-inset-bottom) + 53px)}
}
@media(max-width:680px){
 .game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail){inset:0;width:100%;height:100dvh;max-height:100dvh;max-width:none;border-radius:0;margin:0;overflow:hidden;padding:0}
 .game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail) :is(#content-card-detail,.player-dialog-body){box-sizing:border-box;height:100%;overflow-y:auto;padding:48px 16px 76px}
 .director-detail .director-card{width:min(308px,100%);align-self:center}
 .director-detail .player-detail-data{overflow:visible}
 .game-shell .director-detail .card-detail-tabs [role=tab]{flex:1}
 .director-detail .director-actions:not(:empty){position:absolute;z-index:3;left:0;right:0;bottom:0;flex-wrap:nowrap;padding:9px 16px max(9px,env(safe-area-inset-bottom));background:#111a24;border-top:1px solid #2a3846}
 .game-shell .director-actions button{padding:6px 12px}
 .game-shell :is(#content-card-close,#player-card-close){background:#1a2531}
 .game-shell .player-detail-stats[data-categories]{column-count:1}
}
.game-shell #lineup-sheet{position:fixed;inset:auto 0 0;box-sizing:border-box;width:min(520px,100%);max-width:100%;max-height:81dvh;margin:0 auto;border:0;border-radius:16px 16px 0 0;padding:12px 16px max(16px,env(safe-area-inset-bottom));color:#e6e9ee;background:#1a2531;overflow:auto}
#lineup-sheet::backdrop{background:#000a}#lineup-sheet header,.sheet-selected,.swap-candidate{display:flex;gap:10px;align-items:center}
#lineup-sheet header{justify-content:space-between}.sheet-selected,.swap-candidate{border-bottom:1px solid #2a3846;padding:9px 0}
.sheet-selected :is(img,svg),.swap-face :is(img,svg){width:44px;height:44px;border-radius:6px;background:#314354;object-fit:cover;object-position:center top}
.game-shell #lineup-sheet button{min-height:40px;border:0;border-radius:6px;background:#2c4256;color:#eee}
.game-shell #lineup-sheet .swap-face{display:grid;place-items:center;padding:0;background:none}.sheet-selected button{margin-left:auto}
.sheet-selected strong,.swap-stats strong{overflow-wrap:anywhere}.swap-stats{flex:1;min-width:0}.swap-stats small{display:block;font-size:12px;color:#9aa4b1}
.swap-stats .positive{color:#5fc489}.swap-stats .negative{color:#e07474}.swap-stats .swap-tag{display:inline;margin-left:4px;padding:2px 5px;border-radius:5px;background:#2a3846}
.swap-stats .swap-tag[data-slot="교체"]{background:#2f7a52;color:white}
@media(max-width:1023px){
 .game-shell #squad-panel .content-card-name{inset:auto 1px 5px;line-height:1.12;font-size:clamp(10px,2.8vw,12px);padding:0}
 .game-shell #squad-panel .content-card-face .card-fitness{bottom:2px;left:3px;width:calc(100% - 6px)}
 .game-shell #squad-panel .content-card-art{height:calc(100% - 19px)}
 .game-shell #squad-panel :is(.content-position,.content-level){padding:2px 3px;font-size:10px}
}
@media(max-width:680px){
 .game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail)::before{
  content:"선수 정보";position:absolute;inset:0 0 auto;z-index:3;height:50px;display:grid;place-items:center;
  background:var(--chrome,#111a24);border-bottom:1px solid var(--line,#2a3846);font-size:16px;font-weight:700;pointer-events:none
 }
 .game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail) :is(#content-card-detail,.player-dialog-body){padding-top:66px}
}

.director-detail .above-base strong,.director-detail .detail-bonus-breakdown{color:#5fc489}
.director-detail .stat-scale-note{column-span:all;color:#c4ced8;font-size:13px}

/* The pitch and legend share one visual scale for relationship stages. */
.stage-1,.stage-2,.relation-known{--relation-ink:#d7e3da;--relation-width:3px}
.stage-3,.stage-4,.relation-close{--relation-ink:#7fe0a5;--relation-width:6px}
.stage-5,.relation-best{--relation-ink:#3ef0c4;--relation-width:7px;--relation-glow:drop-shadow(0 0 3px #3ef0c4)}
.stage-6,.relation-partner{--relation-ink:#f3d77a;--relation-width:8px;--relation-glow:drop-shadow(0 0 3px #e6bd54)}
.friend-line{stroke:var(--relation-ink);stroke-width:var(--relation-width);filter:var(--relation-glow,none)}
#lineup-links-legend{position:absolute;z-index:2;bottom:6px;left:8px;display:flex;align-items:center;gap:.8em;padding:.35em .65em;border-radius:5px;background:#12271eed;color:#edf5ee;font-size:clamp(10px,.73cqw,13px);pointer-events:none}
#lineup-links-legend span{display:flex;gap:.35em;align-items:center;white-space:nowrap}
#lineup-links-legend span::before{content:'';width:1.5em;height:var(--relation-width);border-radius:9px;background:var(--relation-ink);filter:var(--relation-glow,none)}
#club-color-options,#mobile-color-options{display:grid;gap:3px;min-width:0}
#club-color-options .team-color-row,#mobile-color-options .team-color-row{margin:0;display:grid;grid-template-columns:1em 2em 1.45em minmax(0,1fr) 2.3em 1.9em;align-items:center;gap:.45em;padding:.5em .42em;border:1px solid transparent;border-radius:6px;cursor:pointer;font-size:inherit;color:#d6e2e7}
.team-color-row:has(input:focus-visible){outline:2px solid #e3ad37;outline-offset:-1px}
.team-color-row.active{border-color:#5fc489!important;background:#243d46;box-shadow:inset 3px 0 #5fc489}
.team-color-row:not(:has(input:disabled)):hover{background:#263b49}
.team-color-row.upcoming{opacity:.72}
.team-color-row:has(input:disabled){cursor:default!important}
.game-shell .team-color-row input{margin:0;min-height:0;padding:0;width:1em;height:1em;accent-color:#73d294}
.color-kind,.color-count,.color-goal{color:#a9b8c5;font-size:.88em}
.color-identity{display:grid;min-width:0}.color-name{font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.color-mark{display:grid;place-items:center;overflow:hidden;border-radius:3px;width:1.45em;height:1.45em}
.color-mark img{width:100%;height:100%;object-fit:contain}.color-count,.color-bonus{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.color-bonus{font-weight:800;color:#80dfac}.upcoming .color-bonus,.color-empty{color:#a1afbd}
#lineup-links-panel{flex:none;background:#1f2a36;border:1px solid #2a3846;border-radius:6px;padding:.75cqw;font-size:clamp(11px,.8cqw,15px)}
.game-shell #lineup-links-panel h3{margin:0 0 .55em;color:#c3cfd9;font-size:1em}
#lineup-links-summary{display:block;margin-top:.65em;padding-top:.6em;border-top:1px solid #344451;line-height:1.4;color:#deebe5}
#lineup-rotation-state{color:#b5c2cc;align-self:center}
.game-shell #club-color-sheet{position:fixed;inset:auto 0 0;width:min(520px,100%);max-width:100%;max-height:80dvh;overflow:auto;margin:0 auto;border:1px solid #3f5261;border-bottom:0;border-radius:16px 16px 0 0;padding:16px 14px max(18px,env(safe-area-inset-bottom));background:#1a2531;color:#edf4f4}
#club-color-sheet::backdrop{background:#071018ab}
#club-color-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
#club-color-sheet h2{margin:0;font-size:18px}.game-shell #club-color-sheet header button{background:#2e4251;color:#e5edef}
#mobile-color-options .team-color-row{min-height:46px}
.candidate-order{display:block;padding-top:8px;color:#b1c2ce;font-size:12px}
@media(min-width:1024px){
 .lineup-power-heading{flex-wrap:wrap;column-gap:.35cqw;row-gap:0}
 .game-shell .lineup-power-heading h3{flex:1 0 100%;font-size:max(11px,.73cqw);color:#a9bac4}
 .game-shell .lineup-power-heading strong{font-size:2.396cqw;line-height:1.15;color:#eef1f4;letter-spacing:-.035em}
 .game-shell .lineup-power-heading span,#lineup-links-summary{font-size:max(11px,.73cqw)}
 .lineup-power-bars{gap:.4cqh;margin-top:.6cqh}.game-shell .lineup-power-bar{gap:.5cqw;font-size:max(11px,.73cqw)}
 .lineup-power-bar meter,.lineup-power-bar meter::-webkit-meter-bar{height:.741cqh}
 .game-shell #squad-save{grid-template-columns:auto minmax(0,1fr);align-items:center}
 #squad-save>label,#squad-save>.tactics-inputs,#squad-dirty{grid-column:1/-1}
 #lineup-rotation-state{text-align:right;font-size:max(10px,.69cqw)}
}
@media(max-width:1023px){
 #lineup-links-panel{display:none}
 .game-shell #mobile-color-button{position:relative;display:grid;align-content:center;justify-items:start;padding:7px 17px 7px 8px;min-width:0;text-align:left;color:#e7f1ea;background:#223a35;border:1px solid #385d4f}
 #mobile-color-button::after{content:'›';position:absolute;right:6px;top:50%;transform:translateY(-50%);color:#8dd7ab}
 #lineup-links-legend{left:3px;bottom:2px;gap:.55em;font-size:10px}
 #lineup-links-legend span::before{width:1.15em}
}
@media(min-width:1024px) and (max-height:850px){
 .game-shell #squad-panel .tactics-bench{gap:.55cqh}
 .game-shell #squad-panel :is(#lineup-power,#squad-save,#squad-summary,#lineup-links-panel){padding:.48cqw}
 #club-color-options .team-color-row{padding-block:.28em}
 .game-shell #squad-panel #squad-summary{display:flex;align-items:baseline;justify-content:space-between;gap:.35em}
}
@media(max-width:380px){
 #lineup-links-legend{bottom:auto;top:2px;max-width:calc(100% - 56px)}
}

/* The detail card keeps its own canvas. The right panel carries the team sheet. */
@media(min-width:681px){
 .game-shell :is(#content-card-dialog,#player-card-dialog):has(.director-detail){width:min(1160px,calc(100vw - 32px));height:min(780px,calc(100dvh - 32px));padding:clamp(18px,2vw,34px);transform:none}
 .director-detail.player-detail-layout{gap:clamp(18px,2vw,34px);grid-template-columns:minmax(150px,min(28.5%,330px,calc((100dvh - 105px)*.55))) minmax(0,1fr)}
}
.director-detail .director-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:0}
.director-heading-main{flex:1;min-width:0}
.director-detail .player-detail-title{display:block;font-size:30px;line-height:1.2;margin:0;text-wrap:balance;overflow-wrap:anywhere}
.director-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 7px;margin-top:8px;color:#c4ced5;font-size:13px}
.director-meta-role{font-weight:800;color:#13291f;background:#a3d8bd;padding:0 5px;border-radius:3px}
.director-meta-item{display:inline-flex;align-items:center;gap:4px;min-width:0;overflow-wrap:anywhere}
.director-meta-item img{width:18px;height:16px;object-fit:contain}.director-meta-sep{width:3px;height:3px;border-radius:50%;background:#587080}
.director-best{flex:none;display:grid;justify-items:center;padding:8px 13px;background:#192f29;border:1px solid #337859;border-radius:9px;line-height:1.3}
.director-best small{font-size:11px;color:#9ed7b9}.director-best-position{color:#79daa1;font-size:13px;font-weight:800}
.director-best-score{margin-left:5px;color:#edf6f0;font-size:22px}
.director-detail .card-detail-tabs button{font-weight:700}
.director-growth-tiles,.director-friends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.director-growth-tile{display:flex;flex-direction:column;min-width:0;gap:7px;background:#223240;border:1px solid #344858;border-radius:9px;padding:14px}
.director-growth-tile h4{font-size:13px;margin:0;color:#b4c2cf}.director-growth-value{line-height:1.1;font-variant-numeric:tabular-nums}
.director-growth-value strong{font-size:26px}.director-growth-value strong:last-child:not(:first-child),.director-growth-value span{font-size:17px;color:#9cc7b3}
.director-growth-tile[data-kind=enhancement] .director-growth-value strong{color:#f0c64a}
.director-growth-tile progress{appearance:none;border:0;width:100%;height:8px;overflow:hidden;border-radius:9px;background:#344350;accent-color:#5fc489}
.director-growth-tile progress::-webkit-progress-bar{background:#344350}.director-growth-tile progress::-webkit-progress-value{background:#5fc489}
.director-growth-tile[data-kind=enhancement] progress{accent-color:#f0c64a}.director-growth-tile[data-kind=enhancement] progress::-webkit-progress-value{background:#f0c64a}
.director-growth-note,.director-friends-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px;font-size:12px;color:#b6c4cf}
.director-growth-bonus{color:#93dfb6}.director-detail .director-find{font-size:12px;padding:2px;min-height:0}
.director-friends-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.director-friends-heading small{font-size:12px;color:#98abba}
.director-friend-card{min-width:0;overflow:hidden;border-radius:8px;border:1px solid #344657;background:#21313e}
.director-friend-card .director-friend-art{position:relative;display:block;height:96px;overflow:hidden;inset:auto}
.director-friend-art .content-emblem{position:absolute;right:-8px;left:auto;top:5%;height:90%;width:auto;opacity:.35}
.director-friend-art .content-photo,.director-friend-art .card-portrait{position:absolute;inset:0;transform:none;width:100%;height:100%;object-fit:contain;object-position:center top}
.director-friend-art .content-flag{position:absolute;bottom:0;left:0;width:16px;height:11px;object-fit:cover}
.director-friend-band{height:4px;background:#d7e3da}
.director-friend-card:is([data-stage="3"],[data-stage="4"]) .director-friend-band{background:#7fe0a5}
.director-friend-card[data-stage="5"] .director-friend-band{background:#3ef0c4}.director-friend-card[data-stage="6"] .director-friend-band{background:#f3d77a}
.director-friend-info{padding:8px 10px;display:grid;justify-items:start;gap:3px}
.director-friend-info>strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#edf3f7}
.director-friend-info>small{color:#9eb0bd;font-size:12px}.director-friend-info .friend-stage{margin-top:3px}
.director-attributes{display:grid;grid-template-columns:minmax(150px,206px) minmax(0,1fr);align-content:start;gap:clamp(10px,1.2vw,22px)}
.director-position-map{min-width:0}.director-position-map>h3{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.director-position-pitch{position:relative;isolation:isolate;overflow:hidden;height:290px;padding:4px 7px;border:1px solid #34744d;border-radius:8px;background:radial-gradient(circle at center,transparent 26px,#78968077 26px 27px,transparent 27px),linear-gradient(transparent 49.8%,#87aa9166 50%,transparent 50.3%),repeating-linear-gradient(#205338 0 29px,#1c4b32 29px 58px);display:grid;grid-template-rows:repeat(6,1fr)}
.director-position-pitch::before,.director-position-pitch::after{content:'';position:absolute;z-index:-1;left:25%;width:50%;height:14%;top:-1px;border:1px solid #93b99f55;border-radius:0 0 5px 5px}
.director-position-pitch::after{top:auto;bottom:-1px;border-radius:5px 5px 0 0}
.director-position-row{display:flex;align-items:center;justify-content:space-between;gap:2px}.director-position-row:has(:only-child){justify-content:center}
.director-position-slot{width:min(50px,31%);height:38px;display:grid;place-content:center;text-align:center;background:#102c1fd9;border:1px solid #385840;color:#bbcdc1;border-radius:6px;line-height:1.05;font-variant-numeric:tabular-nums}
.director-position-label{font-weight:700;font-size:10px}.director-position-score{font-size:16px}
.director-position-slot[data-familiarity=primary]{background:#5fc489;color:#0d291c;box-shadow:inset 0 0 0 2px #dcffeb}
.director-position-slot[data-familiarity=nearby]{background:#2f7a52;color:#f2fff6}
.director-position-slot[data-familiarity=ineligible]{background:transparent;border:1px dashed #638572;color:#90aa97}
.director-position-legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px;margin-top:7px;font-size:11px;color:#b5c3cb}
.director-position-legend span::before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;background:#162d20;border:1px solid #527360;margin-right:3px}
.director-position-legend [data-familiarity=primary]::before{background:#5fc489}.director-position-legend [data-familiarity=nearby]::before{background:#2f7a52}
.director-position-note,.director-skills-note{display:block;color:#a5b4c1;font-size:12px;line-height:1.45;margin:8px 0 0}
.director-skills,.director-skill-column,.director-skill-group{min-width:0}
.director-skill-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}
.director-skill-column{display:flex;flex-direction:column;gap:12px}
.director-detail .director-skill-heading,.director-skill-row{display:flex;justify-content:space-between;align-items:baseline;gap:4px}
.director-detail h3.director-skill-heading{font-size:14px;font-weight:700;padding:0 0 4px;border-bottom:2px solid #405260;color:#e4edf3;margin:0}
.director-skill-row{border-bottom:1px solid #2b3946;padding:3px 0;color:#c4ced5;font-size:13px;line-height:1.45}
.director-skill-value{font-size:14px;font-variant-numeric:tabular-nums}.director-skill-value[data-band="80"]{color:#5fe3a1}.director-skill-value[data-band="70"]{color:#a9dc72}.director-skill-value[data-band="60"]{color:#e6cf62}.director-skill-value[data-band="50"]{color:#e8a35f}.director-skill-value[data-band="low"]{color:#8b96a3}
@media(min-width:681px) and (max-width:980px){
 .director-attributes{grid-template-columns:1fr}.director-position-pitch{height:230px}.director-position-slot{height:29px}
}
@media(max-width:680px){
 .director-detail .director-card{width:min(264px,100%)}.director-heading{flex-direction:column;align-items:stretch!important}
 .director-detail .player-detail-title{font-size:24px}
 .director-meta{font-size:12px;gap:2px 5px}
 .director-best{display:flex;align-items:center;justify-content:space-between;padding:6px 10px}
 .director-attributes{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 .director-position-pitch{width:100%;height:300px}.director-position-slot{width:54px}
 .director-growth-tiles,.director-friends-grid{gap:6px}.director-growth-tile{padding:8px}.director-friend-info{padding:5px}
 .director-friend-card .director-friend-art{height:76px}.director-friend-info :is(small,.friend-stage){font-size:10px}
 .director-skill-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 11px}.director-skill-column{display:contents}
}
@media(max-width:380px){
 .game-shell #squad-panel #formation #lineup-arrange{top:24px;min-height:30px;padding:3px 6px}
}
