/* THE ROSTER ROOM — city collection.
   Background spans the card; the jersey and live text remain separate.
   Register more city backgrounds here using the player's team abbreviation. */
[data-city="PHX"] {
  --player-city-art: url("/static/generated/phoenix-v1.65cf6b8d8798ac35.webp");
  --player-art-position: 50% 62%;
}
[data-city="CHI"] {
  --player-city-art: url("/static/generated/chicago-v1.9864285180297124.webp");
  --player-art-position: 50% 62%;
}
[data-city="BOS"] {
  --player-city-art: url("/static/generated/boston-v1.82832ffed7c6ab9c.webp");
  --player-art-position: 50% 62%;
}
[data-city="GSW"] {
  --player-city-art: url("/static/generated/san-francisco-v1.67b0c3db56c0eb0b.webp");
  --player-art-position: 50% 62%;
}
[data-city="MIA"] {
  --player-city-art: url("/static/generated/miami-v1.f4fae0070f33a88b.webp");
  --player-art-position: 50% 62%;
}
[data-city="NYK"] {
  --player-city-art: url("/static/generated/new-york-knicks-v1.971fb134437e9471.webp");
  --player-art-position: 50% 62%;
}
[data-city="CLE"] {
  --player-city-art: url("/static/generated/cleveland-v1.629b5887f47f5e75.webp");
  --player-art-position: 50% 62%;
}
[data-city="DET"] {
  --player-city-art: url("/static/generated/detroit-v1.ac50f26e8873f349.webp");
  --player-art-position: 50% 62%;
}
[data-city="MIL"] {
  --player-city-art: url("/static/generated/milwaukee-v1.0bdaf13d8b3046c0.webp");
  --player-art-position: 50% 62%;
}
[data-city="IND"] {
  --player-city-art: url("/static/generated/indianapolis-v1.0f6aa0cc927a9685.webp");
  --player-art-position: 50% 62%;
}
[data-city="ATL"] {
  --player-city-art: url("/static/generated/atlanta-v1.22a7a6ff18cf3702.webp");
  --player-art-position: 50% 62%;
}
[data-city="WAS"] {
  --player-city-art: url("/static/generated/washington-dc-v1.a1906142a5b7c3e0.webp");
  --player-art-position: 50% 62%;
}
[data-city="CHA"] {
  --player-city-art: url("/static/generated/charlotte-v1.246ed23c8e651e96.webp");
  --player-art-position: 50% 62%;
}
[data-city="ORL"] {
  --player-city-art: url("/static/generated/orlando-v1.e2d2afcbeb477d37.webp");
  --player-art-position: 50% 62%;
}
[data-city="BKN"] {
  --player-city-art: url("/static/generated/brooklyn-v1.432e2bf61fdc53d5.webp");
  --player-art-position: 50% 62%;
}
[data-city="DAL"] {
  --player-city-art: url("/static/generated/dallas-v1.128db64732462f7b.webp");
  --player-art-position: 50% 62%;
}
[data-city="DEN"] {
  --player-city-art: url("/static/generated/denver-v1.5bef489cc97e51b7.webp");
  --player-art-position: 50% 62%;
}
[data-city="HOU"] {
  --player-city-art: url("/static/generated/houston-v1.65bbd9c18302af2a.webp");
  --player-art-position: 50% 62%;
}
[data-city="LAL"] {
  --player-city-art: url("/static/generated/los-angeles-lakers-v1.94a2e2f201f9f078.webp");
  --player-art-position: 50% 62%;
}
[data-city="LAC"] {
  --player-city-art: url("/static/generated/los-angeles-clippers-v1.fbe4a5cc39e25018.webp");
  --player-art-position: 50% 62%;
}
[data-city="MEM"] {
  --player-city-art: url("/static/generated/memphis-v1.2095127fadf38c94.webp");
  --player-art-position: 50% 62%;
}
[data-city="MIN"] {
  --player-city-art: url("/static/generated/minneapolis-v1.5435c8c870ba4ef0.webp");
  --player-art-position: 50% 62%;
}
[data-city="NOP"] {
  --player-city-art: url("/static/generated/new-orleans-v1.ff219ca68266d97b.webp");
  --player-art-position: 50% 62%;
}
[data-city="OKC"] {
  --player-city-art: url("/static/generated/oklahoma-city-v1.77054b6f803a4865.webp");
  --player-art-position: 50% 62%;
}
[data-city="PHI"] {
  --player-city-art: url("/static/generated/philadelphia-v1.3af0fe34971d69c4.webp");
  --player-art-position: 50% 62%;
}
[data-city="POR"] {
  --player-city-art: url("/static/generated/portland-v1.2f0a59b487e34f37.webp");
  --player-art-position: 50% 62%;
}
[data-city="SAC"] {
  --player-city-art: url("/static/generated/sacramento-v1.6ccb0e56dc3e0236.webp");
  --player-art-position: 50% 62%;
}
[data-city="SAS"] {
  --player-city-art: url("/static/generated/san-antonio-v1.9eaa31248632657b.webp");
  --player-art-position: 50% 62%;
}
[data-city="TOR"] {
  --player-city-art: url("/static/generated/toronto-v1.148a05ec990c65a8.webp");
  --player-art-position: 50% 62%;
}
[data-city="UTA"] {
  --player-city-art: url("/static/generated/salt-lake-city-v1.4d8bc2a8076b30cf.webp");
  --player-art-position: 50% 62%;
}
.universal-player-card, .budget-player-card-b {
  --player-primary: #30475a;
  --player-secondary: #d48246;
  --player-soft: #e5ebee;
}
.universal-player-card, .budget-player-card-b, .result-player {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  color: #fff2d9;
  border: 1px solid #d9c4ff50;
  border-radius: 12px;
  background-color: #161329;
  background-image: linear-gradient(90deg, #090e1beb 0%, #090e1bb8 34%, #090e1b3d 65%, #090e1b0d 100%),
    var(--player-city-art, linear-gradient(135deg, var(--player-primary, #30475a), var(--player-secondary, #182431)));
  background-position: center, var(--player-art-position, center);
  background-size: cover;
  box-shadow: inset 0 1px 0 #ffffff18, 0 3px 8px #0003;
}
/* Transparent art regions reveal one continuous skyline beneath all content. */
.universal-jersey-zone, .bpc-jersey-zone, .result-player-art {
  position: relative;
  container-type: size;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}
.universal-jersey-img-wrap, .bpc-jersey-img-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.universal-jersey-img, .bpc-jersey-img, .result-player-art img {
  position: absolute;
  top: 10%;
  left: 46%;
  width: auto;
  height: 148%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translateX(-50%);
  transform-origin: 50% 28%;
  /* Print grain stays inside the jersey alpha; no fading or transparent holes. */
  filter: url("/static/images/jersey-print.svg#jersey-print") brightness(.96) saturate(.92) drop-shadow(0 4px 6px #070d1b99);
  pointer-events: none;
  user-select: none;
}
/* Keep shoulders close to the typography, but never draw over the name. */
.bpc-jersey-zone { overflow: visible; clip-path: inset(0 -1px 0 -10px); }
.bpc-info, .universal-card-info { position: relative; z-index: 2; }
.jersey-number {
  position: absolute; inset: 0; z-index: 1;
  display: none; place-content: center; text-align: center;
  color: #fff2d9; text-shadow: 0 2px 12px #130c2670;
  font: 800 70px/1 var(--font-display); letter-spacing: -1px;
}
.jersey-number small { display: block; font: 800 10px/1.3 var(--font-body); letter-spacing: 2px; margin-bottom: 8px; }
.universal-jersey-zone.no-jersey .jersey-number,
.bpc-jersey-zone.no-jersey .jersey-number,
.result-player-art.no-jersey .jersey-number { display: grid; }
.universal-jersey-zone.no-jersey img,
.bpc-jersey-zone.no-jersey img,
.result-player-art.no-jersey img { display: none; }

/* Auction: identity now sits left, with the same composition as compact cards. */
.draft-player-card { container-type: inline-size; }
.universal-player-card { display: grid; grid-template-columns: 53% minmax(0,1fr); }
.universal-card-info {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; padding: 60px 20px 30px 30px;
}
.universal-jersey-zone { grid-column: 2; grid-row: 1; }
/* Fit the entire jersey width inside the auction art column. */
.universal-player-card--auction .universal-jersey-img {
  width: 90%; height: auto; top: 8%; left: 50%;
}
.universal-name-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.universal-first-name { font: 600 36px/1.1 var(--font-display); white-space: nowrap; max-width: 100%; transform-origin: left center; }
.universal-last-name { font: 800 88px/.98 var(--font-display); white-space: nowrap; max-width: 100%; transform-origin: left center; letter-spacing: -.5px; }
.universal-name-rule { display: none; }
.universal-meta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #edddcf; margin-top: 22px; }
.universal-meta-item { min-width: 0; }
.universal-meta-item:first-child { order: 1; }
.universal-meta-item:nth-child(2) { order: 0; padding-right: 12px; border-right: 1px solid #fff2d950; }
.universal-meta-item:last-child { order: 2; flex-basis: 100%; margin-top: 7px; }
.universal-meta-value { display: block; font: 600 15px/1.3 var(--font-body); white-space: nowrap; transform-origin: left center; }
.universal-meta-item:last-child .universal-meta-value,
.bpc-archetype {
  width: fit-content; max-width: 100%;
  background: #ff963f; color: #1a1028;
  border-radius: 2px; padding: 5px 9px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  text-shadow: none;
}
.universal-card-status {
  position: absolute; top: 20px; left: 30px; right: auto; z-index: 3;
  font: 800 10px/1 var(--font-body); letter-spacing: 1.3px; text-transform: uppercase; color: #fff2d9;
}
.universal-card-status::before { content: ''; display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: #ff963f; margin-right: 7px; }
.universal-price-badge { position: absolute; top: 15px; right: 18px; display: none; background: #161123f5; color: #fff2d9; border-radius: 5px; padding: 6px 10px; z-index: 3; }
.universal-price-label { font-size: 10px; margin-right: 6px; }
.universal-price-value { font-size: 15px; }
@container (max-width: 650px) {
  .universal-player-card--auction {
    grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto;
    background-image: linear-gradient(0deg, #090e1bf2, #090e1bc9 28%, #090e1b00 65%),
      var(--player-city-art, linear-gradient(135deg, var(--player-primary), var(--player-secondary)));
  }
  .universal-player-card--auction .universal-jersey-zone { grid-column: 1; grid-row: 1; }
  .universal-player-card--auction .universal-card-info { grid-column: 1; grid-row: 2; padding: 12px 24px 20px; }
  .universal-player-card--auction .universal-name-block { gap: 2px; }
  .universal-player-card--auction .universal-meta-row { gap: 10px 15px; margin-top: 10px; }
  .universal-player-card--auction .universal-meta-item:last-child { flex-basis: auto; margin-top: 0; }
  .universal-player-card--auction .universal-card-status { left: 16px; top: 16px; }
  .universal-player-card--auction .universal-jersey-img { width: auto; max-width: 90%; height: 150%; top: 9%; left: 50%; object-position: top center; }
}

/* One compact card for the board and both draft rosters. */
.budget-player-card-b {
  height: 100%; width: 100%; container-type: size;
  display: grid; grid-template-columns: minmax(0,1fr) 45%;
  border-radius: 9px;
}
.bpc-info {
  min-width: 0; display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 9px 10px 9px 14px;
}
.bpc-name { order: 0; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 2px; }
.bpc-first { font: 600 15px/1.05 var(--font-body); color: #fff2d9; white-space: nowrap; width: max-content; transform-origin: left center; }
.bpc-last { font: 800 36px/.98 var(--font-display); white-space: nowrap; width: max-content; transform-origin: left center; letter-spacing: -.25px; }
.bpc-kicker { order: 1; display: flex; align-items: center; gap: 6px; font: 600 11px/1.2 var(--font-body); color: #edddcf; white-space: nowrap; }
.bpc-team { font-weight: 800; letter-spacing: .5px; color: #fff2d9; }
.bpc-team::after { content: '·'; margin-left: 6px; color: #dccfc5; }
.bpc-archetype { order: 2; flex-shrink: 0; align-self: flex-start; font: 800 9px/1.15 var(--font-body); letter-spacing: .6px; padding: 4px 7px; overflow-wrap: anywhere; }
.bpc-archetype:empty { display: none; }
.bpc-jersey-zone .jersey-number { font-size: 44px; padding-top: 18px; }
.bpc-price, .result-player-price {
  position: absolute; top: 6px; right: 6px; bottom: auto; z-index: 3;
  background: #161123f5; color: #fff2d9;
  font: 800 23px/1 var(--font-display);
  padding: 5px 7px; border-radius: 5px;
  box-shadow: 0 0 0 1px #ffffff26;
  font-variant-numeric: tabular-nums;
}
.bpc-price small { font: 600 13px var(--font-display); vertical-align: top; margin-right: 1px; }
/* Type responds to BOTH card dimensions, avoiding oversized labels in short rows. */
@supports (font-size: 1cqw) {
  .bpc-first { font-size: clamp(11px, min(4cqw, 13cqh), 18px); }
  .bpc-last { font-size: clamp(25px, min(12cqw, 32cqh), 46px); }
  .bpc-info { gap: clamp(3px, 4cqh, 7px); padding-block: clamp(6px, 6cqh, 11px); }
  .bpc-kicker { font-size: clamp(9px, 9cqh, 12px); }
}

/* Results: retain the readable name below the jersey within one city surface. */
.result-player {
  padding-bottom: 8px;
  background-image: linear-gradient(0deg, #090e1bf5 0%, #090e1bb0 22%, #090e1b14 75%),
    var(--player-city-art, linear-gradient(135deg, var(--player-primary, #30475a), var(--player-secondary, #182431)));
}
/* The results jersey extends past its art row into the identity area.
   Only the outside card clips; the fade is painted ABOVE the jersey. */
.result-player-art { border: 0; border-radius: 0; overflow: visible; }
.result-player-art img {
  height: calc(100% + 32px);
  width: auto;
  max-width: 88%;
  top: 8px;
  left: 50%;
  object-fit: contain;
  object-position: top center;
}
.result-player::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 76px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, #090e1b00, #090e1be8 52%, #090e1bf7);
}
.result-player-price { font-size: 19px; }
.result-player-name { position: relative; z-index: 3; padding: 0 10px; color: #fff2d9; }
.result-player-meta { position: relative; z-index: 3; padding: 0 10px; color: #edddcf; }

@media (min-width: 1100px) and (max-height: 760px) {
  .bpc-info { padding-inline: 9px; gap: 3px; }
  .bpc-archetype { font-size: 8px; padding: 3px 5px; }
  .bpc-price { font-size: 20px; padding: 4px 6px; top: 5px; right: 5px; }
}
/* Phone cards retain the shared landscape anatomy in scrollable rows and stacks. */
@media (max-width: 760px) {
  .budget-player-card-b { grid-template-columns:minmax(0,1fr) 43%; }
  .bpc-info { padding:10px 8px 10px 12px; gap:6px; }
  .bpc-first { font-size:13px; }
  .bpc-last { font-size:30px; }
  .bpc-kicker { font-size:11px; }
  .bpc-archetype { font-size:9px; padding:4px 6px; }
  .bpc-price { font-size:21px; }
  .bpc-jersey-img { height:145%; max-width:100%; }
  .result-player-price { font-size:19px; }
  .result-player-name,.result-player-meta { padding-inline:10px; }
}
