#players-view .players-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#players-view .player-card{display:grid;grid-template-columns:minmax(118px,36%) minmax(0,1fr);padding:0;min-height:228px;overflow:hidden}
#players-view .player-portrait{position:relative;display:flex;align-self:stretch;min-width:0;min-height:228px;padding:0;border:0;border-right:1px solid #86957c44;background:linear-gradient(145deg,#26362de0,#17221ceb);cursor:pointer}
#players-view .player-portrait .avatar{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;margin:0;border:0;border-radius:0;background:transparent;font:700 72px var(--display);color:#bed49b;overflow:hidden}
#players-view .player-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%;transition:transform .25s ease}
#players-view .player-portrait:hover img{transform:scale(1.035)}
#players-view .player-portrait:focus-visible{outline:2px solid var(--green);outline-offset:-3px;z-index:1}
#players-view .player-card-details{display:flex;flex-direction:column;min-width:0;padding:20px 18px 14px}
#players-view .player-card header{align-items:flex-start;gap:8px;min-width:0;flex-wrap:wrap}
#players-view .player-card header>div{flex:1 1 100px;min-width:0}
#players-view .player-card h2{font-size:clamp(25px,2.1vw,31px);line-height:1.12;overflow-wrap:anywhere}
#players-view .player-card .alias{font-size:13px;line-height:1.4;overflow-wrap:anywhere;margin-top:7px}
#players-view .player-card .gc-pill{font-size:11px;padding:4px 6px;flex-shrink:0}
#players-view .player-card .profile-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:18px 0 14px;padding-top:14px}
#players-view .profile-stats>div{min-width:0;container-type:inline-size}
#players-view .profile-stats strong{font-size:clamp(12px,calc(200cqi / var(--stat-characters,3)),var(--stat-max-size,43px));line-height:1.05;color:#f0f1e9;font-variant-numeric:tabular-nums;white-space:nowrap}
#players-view .profile-stats>div:first-child strong{color:var(--green)}
#players-view .profile-stats small{display:block;font-size:10px;line-height:1.4;margin-top:6px;letter-spacing:.3px}
#players-view .profile-stats .impact-coverage{font-size:9px;letter-spacing:0;margin-top:3px}
#players-view .player-card .profile-actions{margin-top:auto;gap:12px;flex-wrap:wrap}
#players-view .profile-actions button{font-size:12px;min-height:32px;text-align:left}
@media(max-width:1200px){#players-view .players-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#players-view .player-card{grid-template-columns:minmax(130px,36%) minmax(0,1fr)}#players-view .profile-stats{--stat-max-size:38px}}
@media(max-width:800px){#players-view .heading-row{flex-wrap:wrap}#players-view .players-grid{grid-template-columns:minmax(0,1fr);max-width:620px;margin-inline:auto}#players-view .player-card{grid-template-columns:minmax(125px,34%) minmax(0,1fr);min-height:224px}#players-view .player-portrait{min-height:224px}#players-view .player-card-details{padding:20px 18px 12px}#players-view .player-card h2{font-size:30px}#players-view .profile-stats{--stat-max-size:40px}#players-view .profile-actions button{min-height:44px}}
@media(max-width:400px){#players-view .player-card{grid-template-columns:108px minmax(0,1fr);min-height:214px}#players-view .player-portrait{min-height:214px}#players-view .player-portrait .avatar{font-size:60px}#players-view .player-card-details{padding:17px 12px 10px}#players-view .player-card h2{font-size:26px}#players-view .player-card .alias{font-size:12px}#players-view .player-card .profile-stats{gap:6px;margin-top:15px}#players-view .profile-stats{--stat-max-size:33px}#players-view .profile-stats small{font-size:9px;letter-spacing:0}#players-view .profile-actions{gap:8px}}
@media(prefers-reduced-motion:reduce){#players-view .player-portrait img{transition:none}#players-view .player-portrait:hover img{transform:none}}

#modal.player-profile-modal{max-width:900px;padding:34px}
.player-profile>.eyebrow{margin:0 0 22px}
.player-profile-overview{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}
.player-profile-photo{min-width:0;overflow:hidden;border:1px solid #a4bc7270;border-radius:5px;background:linear-gradient(145deg,#314531,#17221ceb)}
.player-profile-photo .avatar{display:grid;place-items:center;width:100%;height:auto;aspect-ratio:4/5;margin:0;border:0;border-radius:0;background:transparent;color:var(--green);font:700 100px var(--display)}
.player-profile-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.player-profile-portrait{min-width:0}
.player-setup-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;margin-top:12px;padding:12px 16px;border:1px solid #a8ca6680;border-radius:4px;background:linear-gradient(125deg,#a5c95c24,#18251c88);color:var(--green);font:700 18px/1 var(--display);letter-spacing:1px;box-shadow:inset 0 1px 0 #d0e79f15;transition:border-color .2s,background .2s,box-shadow .2s}
.player-setup-button svg{width:23px;height:23px;flex-shrink:0}
.player-setup-button>span:last-child{margin-left:auto;font:24px/1 var(--body)}
.player-setup-button:hover:not(:disabled){border-color:var(--green);background:#96b8542e;box-shadow:0 0 18px #8eb14b17}
.player-setup-button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.player-setup-button:disabled{opacity:.45;cursor:default}
.player-setup-pending{display:block;margin-top:8px;text-align:center;font-size:11px;color:var(--muted)}
#modal.player-setup-modal{max-width:1120px;padding:30px}
.player-setup-view .eyebrow{margin-bottom:8px;color:var(--green)}
.player-setup-view .modal-heading{font-size:42px;margin:0 0 20px;overflow-wrap:anywhere}
.player-setup-view .modal-heading span{color:var(--green)}
.player-setup-view figure{display:grid;place-items:center;min-height:180px;margin:0 0 20px;overflow:hidden;border:1px solid #8fa76d55;border-radius:4px;background:#090f0ddd}
.player-setup-view figure img{display:block;width:100%;height:auto;max-height:66dvh;object-fit:contain}
.player-setup-view>.outline{min-height:44px}
.profile-form .setup-upload-field{border:1px dashed #91ae6266;border-radius:4px;padding:14px;background:#9cbd5410}
.setup-upload-field input{display:block;width:100%;font-size:13px}
.setup-upload-preview{display:block;max-width:100%;width:190px;max-height:120px;object-fit:contain;margin-top:12px;border:1px solid #7b925944;border-radius:3px;background:#0a120f}
.player-profile-details{min-width:0}
.player-profile-details header{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;margin-bottom:22px}
.player-profile-details .modal-heading{width:100%;font-size:44px;line-height:1.1;margin:0;overflow-wrap:anywhere}
.player-profile-details .muted{font-size:14px;line-height:1.5;margin:0;flex:1 1 160px;overflow-wrap:anywhere}
.player-profile-details .gc-pill{font-size:12px;padding:5px 9px;color:var(--purple-light);border-color:#a88bb580}
.player-profile .profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px;text-align:left}
.player-profile .profile-stats>div{min-width:0;container-type:inline-size;padding:14px 12px;border:1px solid #86957c44;background:#101a1655;border-radius:4px}
.player-profile .profile-stats strong{font-size:clamp(16px,calc(200cqi / var(--stat-characters,3)),46px);line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
.player-profile .profile-stats>div:first-child strong{color:var(--green)}
.player-profile .profile-stats small{display:block;font-size:10px;line-height:1.5;letter-spacing:.4px;margin-top:7px}
.player-profile .profile-stats .impact-coverage{font-size:9px;margin-top:3px}
.player-profile-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 16px;margin:0;padding:17px 0 0;border-top:1px solid #86957c44}
.player-profile-totals>div{min-width:0}
.player-profile-totals dt{font-size:10px;line-height:1.5;color:var(--muted);letter-spacing:.5px}
.player-profile-totals dd{margin:4px 0 0;font:700 25px/1.15 var(--display);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.player-profile .gc-profile-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0 12px}
.player-profile .gc-profile-metrics>div{min-width:0}
.player-profile .gc-profile-metrics strong{overflow-wrap:anywhere}
.player-profile .gc-profile-metrics small{line-height:1.5;margin-top:5px}
.player-profile-bio{margin-top:20px;padding-top:17px;border-top:1px solid #86957c44;overflow-wrap:anywhere}
.player-profile-bio p{margin:0}
.player-profile-edit{margin-top:24px;min-height:44px}
@media(max-width:800px){#modal.player-profile-modal{padding:30px 24px 24px}.player-profile-overview{grid-template-columns:190px minmax(0,1fr);gap:22px}.player-profile-details .modal-heading{font-size:38px}.player-profile .profile-stats{gap:7px}.player-profile .profile-stats>div{padding:12px 9px}.player-profile .gc-profile-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#modal.player-profile-modal{padding:32px 20px 24px}.player-profile-overview{grid-template-columns:minmax(0,1fr);gap:22px}.player-profile-photo{width:176px;justify-self:center}.player-profile-photo .avatar{font-size:80px}.player-profile-details header{justify-content:center;text-align:center;margin-bottom:20px}.player-profile-details .modal-heading{font-size:38px}.player-profile-details .muted{flex-basis:100%}.player-profile .profile-stats{text-align:center;margin-bottom:18px}.player-profile-totals{text-align:center}.player-profile .gc-profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.player-profile>.eyebrow{margin-bottom:20px}}
@media(max-width:360px){#modal.player-profile-modal{padding-inline:15px}.player-profile .profile-stats>div{padding:12px 7px}.player-profile .profile-stats small{font-size:9px;letter-spacing:0}.player-profile-totals{gap:12px 8px}.player-profile-totals dd{font-size:23px}}
@media(max-width:600px){.player-profile-portrait{width:176px;justify-self:center}.player-profile-portrait .player-profile-photo{width:100%}.player-setup-button{font-size:16px;gap:9px;padding:11px 12px}.player-setup-pending{font-size:10px}#modal.player-setup-modal{padding:32px 16px 20px}.player-setup-view .modal-heading{font-size:34px}.player-setup-view figure{min-height:120px}.player-setup-view figure img{max-height:62dvh}}
@media(prefers-reduced-motion:reduce){.player-setup-button{transition:none}}
