/* Graphics-only presentation layer. Keep workflow visuals progressive and self-hosted. */

.workflow-visual {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1.35fr);
  min-height: 224px;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(244, 192, 92, .32);
  border-radius: 20px;
  background:
    linear-gradient(122deg, rgba(9, 17, 28, .98), rgba(18, 31, 45, .95) 58%, rgba(32, 25, 22, .96));
  box-shadow: 0 22px 58px rgba(1, 7, 14, .24);
  color: #f5f0e8;
}

.workflow-visual-art {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 66% 28%, rgba(67, 191, 213, .24), transparent 24%),
    linear-gradient(148deg, #10253a, #09121d 66%);
}

.workflow-visual-art::before,
.workflow-visual-art::after {
  position: absolute;
  content: "";
}

.workflow-visual-art::before {
  inset: auto -16% -42% -18%;
  height: 80%;
  border: 2px solid rgba(247, 211, 147, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .025);
}

.workflow-visual-art::after {
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(90deg, transparent 49%, rgba(255,255,255,.17) 50%, transparent 51%);
}

.workflow-art-board {
  position: absolute;
  inset: 27px 33px 35px;
  transform: rotate(-3deg);
  border: 8px solid #6c482e;
  border-radius: 12px;
  background: linear-gradient(145deg, #e7d9bf, #bca787);
  box-shadow: 0 16px 26px rgba(0, 0, 0, .28);
}

.workflow-art-board::before {
  position: absolute;
  top: -16px;
  left: 34%;
  width: 38%;
  height: 18px;
  content: "";
  border-radius: 4px 4px 8px 8px;
  background: #b78845;
}

.workflow-art-court {
  position: absolute;
  inset: 58px 55px 54px;
  transform: rotate(-3deg);
  border: 2px solid rgba(39, 46, 50, .66);
  border-radius: 2px;
}

.workflow-art-court::before {
  position: absolute;
  top: 23%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  content: "";
  transform: translateX(-50%);
  border: 2px solid rgba(39, 46, 50, .56);
  border-radius: 50%;
}

.workflow-art-ball,
.workflow-art-token {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(0,0,0,.25);
}

.workflow-art-ball {
  right: 28px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(18, 18, 18, .82);
  background:
    linear-gradient(90deg, transparent 47%, #2a160d 48% 52%, transparent 53%),
    #d86927;
}

.workflow-art-token { width: 17px; height: 17px; background: #0e6177; }
.workflow-art-token--one { top: 84px; left: 74px; }
.workflow-art-token--two { top: 124px; left: 118px; background: #c64e30; }
.workflow-art-token--three { top: 75px; right: 69px; background: #c64e30; }

.workflow-art-route {
  position: absolute;
  z-index: 1;
  display: block;
  height: 2px;
  transform-origin: left center;
  border-top: 3px dashed rgba(15, 78, 96, .8);
}

.workflow-art-route--one { top: 100px; left: 82px; width: 78px; transform: rotate(15deg); }
.workflow-art-route--two { top: 132px; left: 126px; width: 58px; transform: rotate(-38deg); border-color: rgba(187, 67, 38, .72); }

.workflow-visual-copy {
  align-self: center;
  padding: 28px clamp(24px, 5vw, 54px);
}

.workflow-visual-copy h2 {
  margin: 5px 0 7px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.5vw, 38px);
  line-height: 1.02;
}

.workflow-visual-copy > p { max-width: 760px; margin: 0; color: #cbd5dd; }

.workflow-visual-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-visual-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #e5ebef;
  font-size: 12px;
  font-weight: 700;
}

.workflow-visual-steps li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f0ad42;
  color: #111923;
  font-size: 11px;
}

.workflow-visual--finance .workflow-visual-art {
  background: radial-gradient(circle at 60% 25%, rgba(75, 202, 144, .22), transparent 26%), linear-gradient(145deg, #17362f, #0b181d 72%);
}

.workflow-visual--finance .workflow-art-board { background: repeating-linear-gradient(0deg, #dce8dc 0 19px, #b8ccb9 20px); }
.workflow-visual--finance .workflow-art-court { border-radius: 0; border-width: 0 0 2px; }
.workflow-visual--finance .workflow-art-court::before { top: auto; bottom: 0; left: 7%; width: 18%; height: 38%; transform: none; border: 0; border-radius: 0; background: #2b7455; box-shadow: 35px -25px #4f9c70, 70px -55px #d3993a, 105px -86px #e1b65b; }
.workflow-visual--finance .workflow-art-token { background: #d9aa4e; box-shadow: 0 0 0 4px #6e4c20; }

.workflow-visual--draft .workflow-visual-art { background: radial-gradient(circle at 70% 18%, rgba(186, 77, 135, .25), transparent 28%), linear-gradient(145deg, #341a31, #130f1c 72%); }
.workflow-visual--draft .workflow-art-board { background: linear-gradient(#27303a, #171c22); border-color: #8e6b38; }
.workflow-visual--draft .workflow-art-court { border-color: rgba(240, 188, 95, .6); }

.workflow-visual--scouting .workflow-visual-art { background: radial-gradient(circle at 36% 28%, rgba(45, 180, 181, .25), transparent 28%), linear-gradient(145deg, #173641, #0b141b 72%); }
.workflow-visual--scouting .workflow-art-board { background: linear-gradient(145deg, #cad8d6, #8fa7a6); }

.workflow-visual--market .workflow-visual-art,
.workflow-visual--offseason .workflow-visual-art {
  background: radial-gradient(circle at 70% 22%, rgba(100, 178, 117, .24), transparent 27%), linear-gradient(145deg, #1f3a2b, #0d1815 72%);
}

.workflow-visual--trade .workflow-visual-art {
  background: radial-gradient(circle at 35% 24%, rgba(231, 151, 66, .22), transparent 28%), linear-gradient(145deg, #3a2a20, #151317 72%);
}

.workflow-visual--trade .workflow-art-route--one,
.workflow-visual--trade .workflow-art-route--two {
  border-color: rgba(224, 135, 56, .8);
}

.matchup-meter-native {
  display: block;
  width: 100%;
  height: 15px;
  margin: 8px 0 5px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b74738, #d8b15d 50%, #2a8164);
}

.matchup-meter-native::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b74738, #d8b15d 50%, #2a8164);
}

.matchup-meter-native::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 2px #17202a inset;
}

.matchup-meter-native::-moz-meter-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 2px #17202a inset;
}

.loan-repayment-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  min-width: min(100%, 300px);
}

.loan-repayment-preview span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(77, 147, 104, .24);
  border-radius: 9px;
  background: rgba(63, 137, 92, .08);
}

.loan-repayment-preview small { color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.loan-repayment-preview strong { color: #22744a; font-size: 17px; }

.finance-cash-timeline {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 2px 12px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
}

.finance-cash-timeline li {
  position: relative;
  flex: 0 0 min(230px, 78vw);
  display: grid;
  gap: 3px;
  padding: 15px;
  border: 1px solid #cfd9d3;
  border-radius: 13px;
  background: linear-gradient(155deg, #fbfdfb, #edf5ef);
  scroll-snap-align: start;
}

.finance-cash-timeline li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  width: 12px;
  height: 2px;
  content: "";
  background: #5b8e6d;
}

.finance-cash-timeline span { color: #436151; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.finance-cash-timeline strong { color: #173f29; font-size: 21px; }
.finance-cash-timeline small { color: #607069; line-height: 1.35; }

.endpoint-coaching-tactics .tactics-choice-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.endpoint-coaching-tactics .tactics-choice-guide p {
  position: relative;
  min-height: 118px;
  margin: 0;
  padding: 54px 12px 12px;
  overflow: hidden;
  border: 1px solid rgba(45, 95, 113, .2);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(226, 241, 244, .9), rgba(246, 242, 232, .96));
  font-size: 12px;
}

.endpoint-coaching-tactics .tactics-choice-guide p::before,
.endpoint-coaching-tactics .tactics-choice-guide p::after {
  position: absolute;
  content: "";
}

.endpoint-coaching-tactics .tactics-choice-guide p::before {
  top: 12px;
  left: 14px;
  width: 34px;
  height: 34px;
  border: 2px solid #15384a;
  border-radius: 50%;
  background: #e6782f;
  box-shadow: 0 5px 0 rgba(21, 56, 74, .12);
}

.endpoint-coaching-tactics .tactics-choice-guide p::after {
  top: 27px;
  left: 45px;
  width: calc(100% - 58px);
  border-top: 3px dashed #2d8291;
  transform: rotate(-6deg);
  transform-origin: left center;
}

.endpoint-coaching-tactics .tactics-choice-guide p:nth-child(2)::after { border-color: #b98c37; transform: rotate(5deg); }
.endpoint-coaching-tactics .tactics-choice-guide p:nth-child(3)::after { border-style: double; border-width: 5px 0 0; border-color: #a14d43; transform: rotate(0); }

@media (max-width: 680px) {
  .endpoint-coaching-tactics .tactics-choice-guide { grid-template-columns: 1fr; }
  .loan-repayment-preview { grid-template-columns: 1fr; }
}

.workflow-visual--tactics .workflow-art-route { animation: workflow-route-pulse 2.6s ease-in-out infinite; }

@keyframes workflow-route-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@media (max-width: 760px) {
  .workflow-visual { grid-template-columns: 1fr; }
  .workflow-visual-art { min-height: 154px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .workflow-art-board { inset: 17px 24% 24px; }
  .workflow-art-court { inset: 43px 28% 40px; }
  .workflow-art-token--one { left: 34%; top: 65px; }
  .workflow-art-token--two { left: 48%; top: 96px; }
  .workflow-art-token--three { right: 34%; top: 58px; }
  .workflow-art-route--one { left: 35%; top: 80px; }
  .workflow-art-route--two { left: 49%; top: 104px; }
  .workflow-visual-copy { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-visual--tactics .workflow-art-route { animation: none; }
}

/* Deterministic player portraits, lineup board, and training-focus artwork. */

.player-portrait {
  --portrait-size: 88px;
  --portrait-skin: #b9774e;
  --portrait-skin-shadow: #7a432e;
  --portrait-skin-highlight: #db9e72;
  --portrait-lip: #8e4c48;
  --portrait-hair: #171412;
  --portrait-hair-highlight: #43382f;
  --portrait-beard: #211a17;
  --portrait-iris: #60402b;
  --portrait-background-base: #102536;
  --portrait-background-glow: #2e6780;
  --portrait-accent: #e0a746;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--portrait-size);
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid rgba(231, 186, 101, .78);
  border-radius: 18px;
  background: var(--portrait-background-base);
  box-shadow:
    0 0 0 2px rgba(10, 19, 28, .86),
    0 10px 22px rgba(3, 10, 17, .24);
  isolation: isolate;
}

.player-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 -18px 26px rgba(1, 8, 15, .18),
    inset 0 0 18px rgba(2, 9, 15, .16);
}

.player-portrait--inline { --portrait-size: 44px; border-width: 2px; border-radius: 10px; }
.player-portrait--lineup { --portrait-size: 64px; border-width: 2px; border-radius: 14px; }
.player-portrait--training { --portrait-size: 72px; border-width: 2px; border-radius: 14px; }
.player-portrait--card { --portrait-size: clamp(88px, 10vw, 116px); }
.player-portrait--hero { --portrait-size: clamp(112px, 16vw, 154px); border-width: 4px; border-radius: 24px; }

.player-portrait__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  shape-rendering: geometricPrecision;
}

.player-portrait[data-portrait-skin-tone="tone-1"] {
  --portrait-skin: #4a291f; --portrait-skin-shadow: #291713; --portrait-skin-highlight: #76503c; --portrait-lip: #6d3738;
}
.player-portrait[data-portrait-skin-tone="tone-2"] {
  --portrait-skin: #68402e; --portrait-skin-shadow: #3e251d; --portrait-skin-highlight: #94654b; --portrait-lip: #7e4041;
}
.player-portrait[data-portrait-skin-tone="tone-3"] {
  --portrait-skin: #855237; --portrait-skin-shadow: #56301f; --portrait-skin-highlight: #b47850; --portrait-lip: #8e4946;
}
.player-portrait[data-portrait-skin-tone="tone-4"] {
  --portrait-skin: #a66541; --portrait-skin-shadow: #6d3e29; --portrait-skin-highlight: #cf8c61; --portrait-lip: #99534e;
}
.player-portrait[data-portrait-skin-tone="tone-5"] {
  --portrait-skin: #bf7f55; --portrait-skin-shadow: #865338; --portrait-skin-highlight: #dfa477; --portrait-lip: #a7615a;
}
.player-portrait[data-portrait-skin-tone="tone-6"] {
  --portrait-skin: #d49a6f; --portrait-skin-shadow: #a16a49; --portrait-skin-highlight: #ecc09b; --portrait-lip: #b86e68;
}
.player-portrait[data-portrait-skin-tone="tone-7"] {
  --portrait-skin: #e1ae86; --portrait-skin-shadow: #b77e5a; --portrait-skin-highlight: #f3d0ad; --portrait-lip: #be7772;
}
.player-portrait[data-portrait-skin-tone="tone-8"] {
  --portrait-skin: #efc7a6; --portrait-skin-shadow: #c99671; --portrait-skin-highlight: #ffe1c5; --portrait-lip: #c9827e;
}

.player-portrait[data-portrait-hair-color="black"] { --portrait-hair: #111214; --portrait-hair-highlight: #34363b; --portrait-beard: #171719; }
.player-portrait[data-portrait-hair-color="espresso"] { --portrait-hair: #211813; --portrait-hair-highlight: #4b382d; --portrait-beard: #281b17; }
.player-portrait[data-portrait-hair-color="brown"] { --portrait-hair: #3e291d; --portrait-hair-highlight: #76503a; --portrait-beard: #432d22; }
.player-portrait[data-portrait-hair-color="chestnut"] { --portrait-hair: #5a3322; --portrait-hair-highlight: #945c39; --portrait-beard: #5e3627; }
.player-portrait[data-portrait-hair-color="auburn"] { --portrait-hair: #6d2f20; --portrait-hair-highlight: #b55e37; --portrait-beard: #713328; }
.player-portrait[data-portrait-hair-color="golden"] { --portrait-hair: #a86f2f; --portrait-hair-highlight: #e1b65b; --portrait-beard: #8f6030; }
.player-portrait[data-portrait-hair-color="silver"] { --portrait-hair: #72777e; --portrait-hair-highlight: #c2c7ce; --portrait-beard: #686d73; }
.player-portrait[data-portrait-hair-color="white"] { --portrait-hair: #d8d7d0; --portrait-hair-highlight: #fffdf4; --portrait-beard: #bfc0bd; }

.player-portrait[data-portrait-eye-color="dark-brown"] { --portrait-iris: #392419; }
.player-portrait[data-portrait-eye-color="brown"] { --portrait-iris: #6a4427; }
.player-portrait[data-portrait-eye-color="amber"] { --portrait-iris: #b66d22; }
.player-portrait[data-portrait-eye-color="hazel"] { --portrait-iris: #7e7235; }
.player-portrait[data-portrait-eye-color="green"] { --portrait-iris: #4f785d; }
.player-portrait[data-portrait-eye-color="blue"] { --portrait-iris: #4a789f; }

.player-portrait[data-portrait-background="midnight"] { --portrait-background-base: #0c1b2a; --portrait-background-glow: #315c7a; --portrait-accent: #dfa64b; }
.player-portrait[data-portrait-background="teal"] { --portrait-background-base: #0a292d; --portrait-background-glow: #21838a; --portrait-accent: #f2be63; }
.player-portrait[data-portrait-background="cobalt"] { --portrait-background-base: #15234a; --portrait-background-glow: #4266bc; --portrait-accent: #f0a548; }
.player-portrait[data-portrait-background="plum"] { --portrait-background-base: #2b1939; --portrait-background-glow: #7a4c91; --portrait-accent: #e7b269; }
.player-portrait[data-portrait-background="ember"] { --portrait-background-base: #351b17; --portrait-background-glow: #9d4e2c; --portrait-accent: #f0bf56; }
.player-portrait[data-portrait-background="forest"] { --portrait-background-base: #142b22; --portrait-background-glow: #3f7757; --portrait-accent: #e0ad4c; }

.player-portrait__arena-base { fill: var(--portrait-background-base); }
.player-portrait__arena-haze { fill: var(--portrait-background-glow); opacity: .42; }
.player-portrait__arena-line { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 1.2; }
.player-portrait__fingerprint circle { fill: var(--portrait-accent); opacity: .82; }

.player-portrait__skin,
.player-portrait__neck,
.player-portrait__face { fill: var(--portrait-skin); }
.player-portrait__skin,
.player-portrait__face { stroke: var(--portrait-skin-shadow); stroke-width: 1.15; stroke-linejoin: round; }
.player-portrait__neck-shadow,
.player-portrait__face-side-shadow { fill: var(--portrait-skin-shadow); opacity: .5; }
.player-portrait__face-highlight { fill: var(--portrait-skin-highlight); opacity: .34; }
.player-portrait__detail,
.player-portrait__nose,
.player-portrait__nostril { fill: none; stroke: var(--portrait-skin-shadow); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.player-portrait__jersey { fill: #111820; stroke: #070b10; stroke-width: 1.4; }
.player-portrait__jersey-shadow { fill: #293844; opacity: .72; }
.player-portrait__jersey-trim { fill: none; stroke: var(--portrait-accent); stroke-width: 2.6; }

.player-portrait__cheek-soft,
.player-portrait__cheek-sharp { fill: none; stroke: var(--portrait-skin-highlight); stroke-width: 1.7; stroke-linecap: round; opacity: .58; }
.player-portrait__cheek-fill { fill: var(--portrait-skin-highlight); opacity: .3; }
.player-portrait__cheek-hollow { fill: var(--portrait-skin-shadow); opacity: .38; }

.player-portrait__eye-white { fill: #f5eee2; stroke: #2a1e1a; stroke-width: .75; stroke-linejoin: round; }
.player-portrait__eye-lid { fill: none; stroke: var(--portrait-skin-shadow); stroke-width: 1.6; stroke-linecap: round; }
.player-portrait__iris { fill: var(--portrait-iris); stroke: #191515; stroke-width: .55; }
.player-portrait__pupil { fill: #090b0d; }
.player-portrait__eye-glint { fill: #fff; opacity: .9; }
.player-portrait__brow { fill: none; stroke: var(--portrait-hair); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.player-portrait__brow--thick { stroke-width: 4.5; }
.player-portrait__brow--soft { stroke-width: 2.1; opacity: .85; }

.player-portrait__mouth-line { fill: none; stroke: #4b2728; stroke-width: 1.35; stroke-linecap: round; }
.player-portrait__lip { fill: var(--portrait-lip); opacity: .82; }
.player-portrait__facial-hair { fill: var(--portrait-beard); opacity: .96; }
.player-portrait__stubble { fill: var(--portrait-beard); opacity: .34; }

.player-portrait__hair { fill: var(--portrait-hair); stroke: #0e0d0d; stroke-width: 1; stroke-linejoin: round; }
.player-portrait__hair-highlight { fill: none; stroke: var(--portrait-hair-highlight); stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }
.player-portrait__hair-highlight circle { fill: var(--portrait-hair-highlight); stroke: none; opacity: .72; }
.player-portrait__hair-strand { fill: none; stroke: var(--portrait-hair); stroke-width: 4.4; stroke-linecap: round; }
.player-portrait__hair-strand--braid { stroke-width: 3.2; stroke-dasharray: 3 1.7; }
.player-portrait__scalp-shine { fill: none; stroke: var(--portrait-skin-highlight); stroke-width: 2; stroke-linecap: round; opacity: .54; }

.player-table-identity,
.player-page-identity,
.public-player-hero-inner,
.training-player-lead,
.training-history-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-table-identity {
  min-width: max-content;
  text-align: left;
}

.player-table-identity > span:last-child,
.player-page-identity > div,
.training-player-lead > div,
.training-history-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.player-table-identity small { display: block; }
.player-page-header .player-page-identity { align-items: center; }
.public-player-hero-inner { align-items: center; }
.public-player-hero-inner > div { min-width: 0; }

.roster-card-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 24px);
  align-items: start;
}

.roster-card-content { min-width: 0; }
.roster-card-portrait { position: sticky; top: 90px; }

.vacant-roster-layout {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vacant-roster-graphic {
  display: grid;
  flex: 0 0 auto;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px dashed #8c846f;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .74) 0 16%, transparent 17%),
    linear-gradient(145deg, #d9ceb7, #b6a98f);
  color: #685d49;
  font-size: 36px;
  font-weight: 300;
}

.starting-five-board {
  overflow: hidden;
  border: 1px solid rgba(225, 185, 104, .42);
  border-radius: 22px;
  background: linear-gradient(145deg, #101c28, #162f3d 64%, #0f202b);
  box-shadow: 0 18px 45px rgba(4, 11, 17, .2);
  color: #f7f2e9;
}

.starting-five-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.starting-five-board-heading h2 { margin: 2px 0 0; color: #fff; }
.starting-five-board-heading .eyebrow { color: #eab45b; }

.starting-five-board-count {
  padding: 7px 11px;
  border: 1px solid rgba(237, 190, 102, .56);
  border-radius: 999px;
  background: rgba(5, 12, 19, .45);
  color: #f3c877;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.starting-five-court {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(138px, auto));
  gap: 14px 8px;
  min-height: 340px;
  padding: 30px clamp(12px, 4vw, 42px) 26px;
  isolation: isolate;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(236, 211, 163, .22) 50%, transparent 50.3%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(167, 100, 46, .3), rgba(96, 57, 31, .42));
}

.starting-five-court::before,
.starting-five-court::after {
  position: absolute;
  z-index: -1;
  left: 50%;
  content: "";
  transform: translateX(-50%);
  border: 2px solid rgba(244, 224, 186, .3);
}

.starting-five-court::before {
  top: -78px;
  width: min(70%, 520px);
  height: 220px;
  border-radius: 0 0 50% 50%;
}

.starting-five-court::after {
  top: 0;
  width: min(28%, 210px);
  height: 132px;
  border-top: 0;
}

.starting-five-slot {
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(5, 13, 20, .34);
  color: #b9c8cf;
  text-align: center;
}

.starting-five-slot.is-filled {
  border-style: solid;
  border-color: rgba(238, 193, 106, .5);
  background: rgba(8, 19, 28, .74);
}

.starting-five-slot > strong {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.starting-five-slot > span:last-child { font-size: 11px; }
.starting-five-slot:nth-child(1) { grid-column: 3 / 5; grid-row: 2; }
.starting-five-slot:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
.starting-five-slot:nth-child(3) { grid-column: 5 / 7; grid-row: 2; }
.starting-five-slot:nth-child(4) { grid-column: 2 / 4; grid-row: 1; }
.starting-five-slot:nth-child(5) { grid-column: 4 / 6; grid-row: 1; }

.starting-five-open-number {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #dbc697;
  font-family: var(--score-font, monospace);
  font-size: 18px;
}

.training-session-form {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.training-player-select { max-width: 520px; }

.training-focus-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.training-focus-picker legend {
  padding: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.training-focus-picker > p {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.training-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.training-focus-option {
  display: grid;
  grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgba(79, 98, 108, .48);
  border-radius: 16px;
  background: #f3ead8;
  box-shadow: 0 8px 20px rgba(31, 22, 13, .1);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.training-focus-option:hover {
  transform: translateY(-2px);
  border-color: #b67a31;
  box-shadow: 0 12px 28px rgba(31, 22, 13, .15);
}

.training-focus-option:focus-within {
  outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent);
  outline-offset: 3px;
}

.training-focus-option:has(input:checked) {
  border-color: #c36a2b;
  box-shadow: 0 0 0 3px rgba(218, 126, 51, .2), 0 12px 28px rgba(31, 22, 13, .16);
}

.training-focus-art {
  display: block;
  min-height: 150px;
  aspect-ratio: 1;
  background-color: #0d1924;
  background-image: url("images/graphics/training-focus-atlas.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.training-focus-art--shooting { background-position: 0 0; }
.training-focus-art--three-point { background-position: 50% 0; }
.training-focus-art--playmaking { background-position: 100% 0; }
.training-focus-art--defense { background-position: 0 100%; }
.training-focus-art--rebounding { background-position: 50% 100%; }
.training-focus-art--fitness { background-position: 100% 100%; }

.training-focus-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 15px;
}

.training-focus-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.training-focus-name input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #c65f29;
}

.training-focus-name strong { color: #20282c; font-size: 16px; }
.training-focus-copy small { color: #5e6668; line-height: 1.45; }
.training-submit-row { justify-content: flex-end; }

.training-player-lead { min-width: 210px; }
.training-history-card { align-items: center; }

@media (max-width: 760px) {
  .roster-card-layout { grid-template-columns: 1fr; }
  .roster-card-portrait { position: static; }
  .starting-five-board-heading { align-items: flex-start; flex-direction: column; }
  .starting-five-court {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: 0;
    padding: 24px 12px;
  }
  .starting-five-slot:nth-child(n) { grid-column: auto; grid-row: auto; }
  .starting-five-slot:nth-child(1) { grid-column: 1 / -1; }
  .training-focus-grid { grid-template-columns: 1fr; }
  .training-focus-option { grid-template-columns: 126px minmax(0, 1fr); }
  .training-focus-art { min-height: 126px; }
  .player-page-identity,
  .public-player-hero-inner { align-items: flex-start; }
}

@media (max-width: 460px) {
  .training-focus-option { grid-template-columns: 104px minmax(0, 1fr); }
  .training-focus-art { min-height: 104px; }
  .training-focus-copy { padding: 11px; }
  .training-focus-copy small { font-size: 11px; }
  .player-portrait--hero { --portrait-size: 96px; }
}

@media (forced-colors: active) {
  .player-portrait,
  .training-focus-art {
    border: 2px solid CanvasText;
  }

  .training-focus-art { background-image: none; }
  .player-portrait { background: Canvas; }
  .player-portrait__arena-base,
  .player-portrait__arena-haze,
  .player-portrait__jersey,
  .player-portrait__jersey-shadow { fill: Canvas; }
  .player-portrait__skin,
  .player-portrait__neck,
  .player-portrait__face,
  .player-portrait__hair,
  .player-portrait__facial-hair,
  .player-portrait__stubble,
  .player-portrait__lip { fill: CanvasText; }
  .player-portrait__detail,
  .player-portrait__nose,
  .player-portrait__nostril,
  .player-portrait__mouth-line,
  .player-portrait__brow,
  .player-portrait__hair-highlight,
  .player-portrait__hair-strand,
  .player-portrait__jersey-trim { stroke: CanvasText; }

  .training-focus-option,
  .starting-five-slot { border: 2px solid CanvasText; }
}

/* Stories: newspaper front page and inside-page treatment. */
.story-content-column {
  width: min(100%, 1100px);
}

.story-newspaper {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.story-masthead {
  display: grid;
  gap: 8px;
  padding: 10px 0 9px;
  border-top: 6px double #28231d;
  border-bottom: 3px double #28231d;
  color: #28231d;
  text-align: center;
}

.story-masthead-strap,
.story-masthead-edition {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  font-family: var(--score-font, monospace);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.story-masthead-strap span:first-child,
.story-masthead-edition span:first-child { text-align: left; }
.story-masthead-strap span:last-child,
.story-masthead-edition span:last-child { text-align: right; }

.story-masthead-name {
  margin: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .92;
}

.story-masthead-edition {
  padding-top: 7px;
  border-top: 1px solid currentColor;
  font-size: 9px;
}

.story-masthead-edition strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
}

.story-masthead-inside { margin-bottom: 16px; }
.story-masthead-inside .story-masthead-name { font-size: clamp(28px, 5vw, 52px); }
.story-newspaper .story-filter-panel { margin-bottom: 0; }
.story-front-page { min-width: 0; }

.story-feed {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #8e806e;
  border-left: 1px solid #8e806e;
}

.story-feed > .story-card {
  grid-column: span 4;
  min-width: 0;
  margin: -1px 0 0 -1px;
  border-color: #8e806e;
  border-width: 1px;
  border-radius: 0;
  box-shadow: none;
}

.story-feed > .story-card:first-child {
  grid-column: span 8;
  grid-row: span 2;
  padding: clamp(20px, 3vw, 30px);
}

.story-feed > .story-card:only-child {
  grid-column: 1 / -1;
  grid-row: auto;
}

.story-news-graphic {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid #66717a;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, .42) 50%, transparent 50.3%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 7px),
    #3e505b;
  filter: grayscale(.22) sepia(.12);
}

.story-feed > .story-card:first-child .story-news-graphic {
  min-height: clamp(190px, 25vw, 280px);
}

.story-news-graphic-ball {
  position: absolute;
  z-index: 2;
  top: 17%;
  left: 10%;
  width: clamp(54px, 10vw, 108px);
  aspect-ratio: 1;
  border: 4px solid rgba(255, 249, 230, .82);
  border-radius: 50%;
  background: rgba(18, 25, 30, .42);
  box-shadow: 5px 7px 0 rgba(0, 0, 0, .22);
  transform: rotate(-13deg);
}

.story-news-graphic-ball::before,
.story-news-graphic-ball::after {
  position: absolute;
  content: "";
}

.story-news-graphic-ball::before {
  inset: 43% -3px;
  border-top: 3px solid rgba(255, 249, 230, .82);
  border-bottom: 3px solid rgba(255, 249, 230, .82);
  border-radius: 50%;
}

.story-news-graphic-ball::after {
  top: -3px;
  bottom: -3px;
  left: 42%;
  width: 16%;
  border-right: 3px solid rgba(255, 249, 230, .82);
  border-left: 3px solid rgba(255, 249, 230, .82);
  border-radius: 50%;
}

.story-news-graphic-court {
  position: absolute;
  right: 7%;
  bottom: -24%;
  width: 62%;
  height: 112%;
  border: 4px solid rgba(255, 249, 230, .7);
  border-radius: 50% 50% 0 0;
}

.story-news-graphic-court::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 3px solid rgba(255, 249, 230, .55);
  content: "";
}

.story-news-graphic-flash {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 28%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(255, 255, 255, .06), 0 0 0 36px rgba(255, 255, 255, .035);
}

.story-card[data-story-category="playoffs"] .story-news-graphic { background-color: #503d61; }
.story-card[data-story-category="world_tournament"] .story-news-graphic { background-color: #315f63; }
.story-card[data-story-category="club_superleague"] .story-news-graphic { background-color: #6a3852; }

.story-category-club-superleague {
  border-color: #b47894;
  background: #f3dce7;
  color: #681c43;
}

.story-feed > .story-card:first-child .story-headline {
  font-size: clamp(29px, 4.2vw, 48px);
  line-height: 1.02;
}

.story-feed > .story-card:first-child .story-summary {
  font-size: clamp(17px, 2vw, 21px);
}

.story-detail-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0;
}

.story-detail-rule span {
  height: 3px;
  border-top: 1px solid #9a8971;
  border-bottom: 1px solid #9a8971;
}

.story-detail-rule i {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid #5c554c;
  border-radius: 50%;
  transform: rotate(18deg);
}

.story-article-body p:first-child::first-letter {
  float: left;
  margin: .05em .1em 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.35em;
  font-weight: 900;
  line-height: .72;
}

@media (max-width: 900px) {
  .story-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-feed > .story-card,
  .story-feed > .story-card:first-child {
    grid-column: span 1;
    grid-row: auto;
  }
  .story-feed > .story-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .story-masthead-strap,
  .story-masthead-edition { grid-template-columns: 1fr 1fr; }
  .story-masthead-strap span:nth-child(2) { text-align: right; }
  .story-masthead-edition strong {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .story-feed { grid-template-columns: minmax(0, 1fr); }
  .story-feed > .story-card,
  .story-feed > .story-card:first-child { grid-column: 1; }
  .story-news-graphic { min-height: 150px; }
  .story-masthead-name { font-size: clamp(31px, 13vw, 47px); }
  .story-masthead-strap { grid-template-columns: 1fr; }
  .story-masthead-strap span:first-child,
  .story-masthead-strap span:last-child { text-align: center; }
}
