.team-crest { display:block; width:64px; height:64px; object-fit:contain; flex-shrink:0; }
.hero-meta .team-crest { width:62px; height:62px; }
.hero-meta > span:nth-child(2) { text-transform:uppercase; }
.scoreboard-crest { width:42px; height:42px; }
.score-club { text-transform:uppercase; }
.score-club > span { min-width:0; }
.score-club small { max-width:160px; line-height:1.3; }
.arena-tag b { font-weight:600; }
.hero-photo { background:radial-gradient(ellipse at 60% 35%, color-mix(in srgb,var(--club-color) 55%, #507077),#10232e 75%); }
.hero-photo[data-photo="portrait"] > img { object-fit:contain; object-position:center bottom; padding-top:25px; }
.photo-label strong { display:block; text-transform:uppercase; max-width:360px; }
.photo-label strong > span:not(.photo-number) { position:static; display:block; font:inherit; color:inherit; -webkit-text-stroke:0; }
.photo-label strong > .photo-number { left:calc(100% + 14px); }
.photo-label { max-width:72%; }
.avatar[data-photo="portrait"] img { position:absolute; width:100%; height:100%; left:0; top:0; object-fit:cover; object-position:center 15%; }
.avatar[data-photo="portrait"] { background:#244050; }
.club-card .team-crest { width:50px; height:50px; }
.change-club { margin-left:auto; font:26px Arial,sans-serif; color:var(--lime); }
.club-card strong { white-space:nowrap; }
.player-card { min-height:84px; }
.player-card > span:nth-child(2) { min-width:0; }
.player-card strong { font-size:23px; line-height:1.1; display:block; }
.player-card .check { flex-shrink:0; }
.player-details { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.player-details i { width:9px; height:9px; border:1px solid #ffffff55; }
.player-details a { margin-left:auto; color:#bccbcf; text-decoration:underline; text-underline-offset:3px; }
#clubDialog { width:940px; padding:34px; }
#clubDialog h2 { margin-bottom:10px; }
#clubDialog > p { margin:0 0 25px; }
.club-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.club-option { position:relative; min-height:135px; padding:17px 10px 15px; border:1px solid #ffffff22; border-radius:5px; background:#102733; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:11px; text-align:center; transition:background .15s,border-color .15s; }
.club-option img { width:49px; height:49px; object-fit:contain; }
.club-option strong { display:block; font:600 23px/1.05 var(--display); }
.club-option small { font-size:9px; line-height:1.35; margin-top:6px; }
.club-option:hover { background:#1a3541; border-color:#dcfa7977; }
.club-option.selected { border-color:var(--lime); background:#dcfa7910; }
.club-selected-mark { position:absolute; top:9px; right:10px; color:var(--lime); opacity:0; }
.club-option.selected .club-selected-mark { opacity:1; }
#finishPlayer { margin-bottom:12px; color:var(--lime); }
@media (max-width:1100px) and (min-width:761px) {
  .setup { grid-template-columns:1fr 1.1fr 1fr; }
  .club-card strong { font-size:22px; }
  .club-card .team-crest { width:40px; height:40px; }
  .club-card,.player-card { gap:10px; padding:12px; }
  .player-card strong { font-size:21px; }
  .photo-label strong { font-size:46px; }
}
@media (max-width:760px) {
  .hero-meta .team-crest { width:43px; height:43px; }
  .hero-meta > span:nth-child(2) { font-size:9px; letter-spacing:.6px; }
  .hero-number { font-size:31px; }
  .hero-photo[data-photo="portrait"] > img { width:145%; max-width:none; left:-22%; object-fit:contain; object-position:center 35%; padding-top:0; }
  .photo-label { left:17%; max-width:80%; }
  .photo-label strong { font-size:clamp(25px,5.5vw,36px); overflow-wrap:normal; }
  .photo-label strong > .photo-number { display:none; }
  .club-card,.player-card { min-height:88px; }
  .club-card .team-crest { width:35px; height:43px; }
  .club-card strong { white-space:normal; font-size:21px; }
  .player-card strong { font-size:20px; }
  .change-club { font-size:20px; }
  .player-card .check { display:none; }
  .player-card .avatar { width:37px; height:49px; }
  .player-details { font-size:8px; gap:4px; }
  .player-details a { margin-left:0; }
  .scoreboard { padding:9px 10px; gap:12px; max-width:calc(100% - 26px); }
  .scoreboard-crest { width:31px; height:31px; }
  .score-club { max-width:185px; font-size:16px; padding-right:12px; }
  .score-club small { max-width:125px; font-size:6px; }
  .arena-info { top:91px; right:12px; }
  #clubDialog { padding:27px 15px 18px; max-width:calc(100% - 20px); max-height:calc(100dvh - 24px); }
  #clubDialog h2 { font-size:36px; margin-top:14px; }
  #clubDialog > p { font-size:11px; margin-bottom:20px; }
  #clubDialog .eyebrow { font-size:9px; }
  .club-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .club-option { min-height:119px; padding:13px 8px; gap:9px; }
  .club-option img { width:41px; height:41px; }
  .club-option strong { font-size:22px; }
  .club-option small { font-size:8px; }
}
@media (max-width:370px) {
  .club-card,.player-card { gap:6px; padding:10px 7px; }
  .club-card .team-crest { width:29px; }
  .club-card strong,.player-card strong { font-size:18px; }
  .hero-meta .team-crest { width:35px; height:39px; }
  .hero-meta > span:nth-child(2) { font-size:8px; letter-spacing:0; }
  .photo-label strong { font-size:23px; }
  .player-details i { display:none; }
}
/* Fit each source photo without stretching the player. */
.hero-photo[data-photo="studio"] > img { object-fit:cover; object-position:center top; padding:0; }
.hero-photo[data-photo="cutout"] > img { object-fit:contain; object-position:center bottom; padding-top:25px; }
.hero-photo[data-photo="head"] > img { object-fit:contain; object-position:center; padding:35px 30px 0; }
.hero-photo[data-photo="wide"] > img { object-fit:cover; object-position:center top; }
.avatar[data-photo="head"] img { width:100%; height:100%; left:0; top:0; object-fit:cover; object-position:center; }
.avatar[data-photo="body"] img { width:100%; height:185%; left:0; top:0; object-fit:cover; object-position:center top; }
.change-club { font:700 10px var(--body); letter-spacing:.7px; border:1px solid #dcfa7944; border-radius:3px; padding:6px; }
@media(max-width:760px) {
 .hero-photo[data-photo="studio"] > img { width:100%; left:0; object-fit:cover; object-position:48% top; }
 .hero-photo[data-photo="cutout"] > img { width:145%; max-width:none; left:-22%; object-fit:contain; object-position:center 30%; padding-top:0; }
 .hero-photo[data-photo="head"] > img { width:120%; max-width:none; left:-10%; object-fit:contain; object-position:center 30%; padding:0; }
 .hero-photo[data-photo="wide"] > img { width:100%; left:0; object-position:50% top; }
 .change-club { font-size:8px; padding:4px; letter-spacing:.3px; }
}
