/* Generated: shared NBA card drawing. Edit the NBA cards_page copy, then publish. */
/* NBA Galaxy Matchups: the 3-pointer team card (nba_cards.js), shared by the standalone page and the
   membership site. It mirrors the NHL Galaxy Matchups (Cards) tile: light card, navy header, jersey
   tiles, game-colored history cells. Every rule is scoped to .nbc-*, and the card carries its own
   colors and fonts, so the host page's variables and base styles do not change it.
   Fonts: Inter 400-800 and Space Grotesk 500-700. */
.nbc-card {
  --nbc-cyan: #22d3ee;
  --nbc-line-strong: rgba(148, 163, 184, .32);
  --nbc-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --nbc-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --nbc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  container: nbc / inline-size; width: 100%; max-width: 1180px; min-width: 0; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--nbc-line-strong); box-shadow: var(--nbc-shadow); background: #f3f6fb; color: #12263f;
  font: 14px/1.45 var(--nbc-font); -webkit-font-smoothing: antialiased;
}
.nbc-card, .nbc-card::before, .nbc-card::after, .nbc-card *, .nbc-card *::before, .nbc-card *::after { box-sizing: border-box; }
.nbc-card :where(button) { font: inherit; color: inherit; }
.nbc-card :where(button):focus-visible { outline: 2px solid var(--nbc-cyan); outline-offset: 2px; }
.nbc-head { padding: 16px 26px; background: #12263f; color: #e8eef8; border-top: 6px solid var(--nbc-team, #22d3ee); }
.nbc-brand { padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); font: 600 17px var(--nbc-display); }
.nbc-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 12px; }
.nbc-kicker { color: #c5d0e3; font-weight: 600; font-size: 14px; letter-spacing: .03em; }
.nbc-date { color: #c5d0e3; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-align: right; }
.nbc-team { margin: 8px 0 2px; color: #fff; font: 800 clamp(24px, 4.2cqi, 40px)/1.1 var(--nbc-display); letter-spacing: normal; overflow-wrap: anywhere; }
.nbc-vs { color: #c9d4e6; font-size: 16px; }
.nbc-head-foot { margin-top: 10px; color: #b7c4d9; font-weight: 700; font-size: 12.5px; letter-spacing: .03em; align-items: flex-end; }
.nbc-head-foot span:last-child { text-align: right; white-space: nowrap; }
.nbc-body { padding: 8px 22px 22px; }
.nbc-sec { margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #cfd8e6; font: 800 15px var(--nbc-display); letter-spacing: .02em; color: #12263f; }
.nbc-sec span { margin-left: 8px; font: 600 11.5px var(--nbc-font); letter-spacing: .04em; color: #6b7a93; }

/* the half court: hardwood, team-colored paint, three-point arc; the starting five stand on it */
.nbc-court {
  position: relative; isolation: isolate; overflow: hidden; padding: 84px 18px 64px; border-radius: 14px; border: 3px solid #8a5a32;
  background-color: #cf9a62;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .08)),
    repeating-linear-gradient(90deg, rgba(110, 62, 24, .17) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(255, 236, 205, .08) 0 19px, transparent 19px 38px),
    repeating-linear-gradient(0deg, transparent 0 140px, rgba(110, 62, 24, .10) 140px 141px);
}
.nbc-floor { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.nbc-lines { fill: none; stroke: rgba(255, 250, 238, .92); stroke-width: 3; }
.nbc-lines * { vector-effect: non-scaling-stroke; }
.nbc-hoop { position: absolute; top: 6px; left: 50%; z-index: 0; width: 116px; transform: translateX(-50%); filter: drop-shadow(0 3px 3px rgba(60, 30, 8, .35)); }
.nbc-court-mark { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 0; text-align: center; font: 700 12px var(--nbc-display); letter-spacing: .32em; color: rgba(80, 44, 16, .5); }
.nbc-court-grid {
  position: relative; z-index: 1; display: grid; gap: 22px 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas: "pf pf c c sf sf" ". sg sg pg pg .";
}
.nbc-bench { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container nbc (max-width: 980px) {
  .nbc-court-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: ". c c ." "pf pf sf sf" "sg sg pg pg"; }
  .nbc-bench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* one starter per row once two side by side on the court would be too narrow for the jersey and five games */
@container nbc (max-width: 700px) {
  .nbc-court-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pg" "sg" "sf" "pf" "c"; gap: 14px; }
}
@container nbc (max-width: 620px) {
  .nbc-court { padding: 76px 10px 48px; }
  .nbc-bench { grid-template-columns: minmax(0, 1fr); }
  .nbc-head { padding: 14px 16px; }
  .nbc-body { padding: 4px 10px 14px; }
  .nbc-head-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nbc-head-foot span:last-child { text-align: left; }
  .nbc-vs { font-size: 14px; }
}

/* player tile */
.nbc-tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; container-type: inline-size;
  padding: 8px 10px 10px; border-radius: 12px; background: #ebeff6; border: 2px solid transparent;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.nbc-court .nbc-tile { background: rgba(243, 246, 251, .97); box-shadow: 0 8px 20px rgba(60, 30, 8, .3); }
.nbc-tile.nbc-on, .nbc-court .nbc-tile.nbc-on { background: #e4f5fa; border-color: var(--nbc-cyan); box-shadow: 0 0 0 1px var(--nbc-cyan), 0 0 24px rgba(34, 211, 238, .45); }
.nbc-slot { position: absolute; left: 10px; top: 8px; z-index: 1; min-width: 44px; padding: 4px 12px 4px 10px; border-radius: 8px; background: #dde5f1; color: #1b2b46; font: 800 13px var(--nbc-display); }

/* tags | jersey | attack side, as on the NHL tile. The tag column is only as wide as a tag, so the
   jersey sits close to it and the attack side gets the rest: tonight's role chip at the jersey's
   shoulder, and the player's last games lined up with the chip's left edge underneath it. */
.nbc-top { display: grid; grid-template-columns: minmax(76px, .6fr) auto minmax(0, 1.4fr); gap: 2px 6px; align-items: start; }
.nbc-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding-top: 34px; }
.nbc-tag { padding: 3px 7px; border-radius: 5px; background: #12263f; color: #fff; font-weight: 800; font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
.nbc-tag.nbc-soft { background: #b45309; }
.nbc-inj { padding: 2px 6px; border-radius: 5px; border: 1px solid #fca5a5; background: #fee2e2; color: #b91c1c; font-weight: 800; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.nbc-jersey { display: block; width: 90px; height: auto; margin-top: 12px; filter: drop-shadow(0 2px 3px rgba(18, 38, 63, .28)); }
.nbc-j-last { font: 700 9px var(--nbc-display); letter-spacing: .05em; }
.nbc-j-num { font: 800 46px var(--nbc-display); }
.nbc-att { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding-top: 2px; }
.nbc-role { padding: 2px 7px; border-radius: 8px; border: 1.5px solid #7f8fb0; background: #fff; color: #12263f; text-align: center; line-height: 1.1; }
.nbc-role small { display: block; font-size: 7.5px; font-weight: 700; letter-spacing: .06em; color: #6b7a93; }
.nbc-role b { display: block; font: 800 13px var(--nbc-display); }
.nbc-form { min-width: 0; font-variant-numeric: tabular-nums; }
.nbc-form small { display: block; margin-bottom: 2px; font-size: 8.5px; font-weight: 800; line-height: 1.2; letter-spacing: .08em; color: #8a97ae; white-space: nowrap; }
/* one column per game, filled top to bottom: threes made, then minutes; the first column names the rows */
.nbc-fgrid { display: grid; grid-template-columns: auto; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 18px; gap: 2px; align-items: center; justify-content: start; }
.nbc-fgrid.nbc-f1 { grid-template-rows: auto; }
.nbc-fl { padding-right: 3px; color: #8a97ae; font-size: 8px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.nbc-f { display: grid; place-items: center; height: 18px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #cfd8e6; color: #12263f; font: 800 11px var(--nbc-font); }
.nbc-f.nbc-hit { background: #16a34a; box-shadow: none; color: #fff; }
.nbc-f.nbc-fq { background: #f3f6fb; color: #a3adc2; }
/* a preseason game in a window that also has regular-season games */
.nbc-f.nbc-pre { box-shadow: none; border: 1px dashed #7f8fb0; }
.nbc-f.nbc-hit.nbc-pre { border: 1.5px dashed #14532d; }
.nbc-f.nbc-fq.nbc-pre { border-color: #b6c2d6; }
.nbc-m { color: #3f4d66; font: 700 10.5px/1.2 var(--nbc-font); text-align: center; }
.nbc-fsum { margin-top: 3px; color: #12263f; font-weight: 700; font-size: 11.5px; line-height: 1.25; white-space: nowrap; }
.nbc-fsum b { color: #15803d; }
.nbc-fsum.nbc-none { min-height: 28px; color: #8a97ae; font-weight: 600; font-style: italic; }   /* as tall as the two summary lines, so names line up */
.nbc-fsum2 { color: #5f6f8a; font-weight: 600; font-size: 10.5px; line-height: 1.25; white-space: nowrap; }
/* The name sits under the jersey, centered on it; a long name spills evenly past both sleeves. */
.nbc-name { grid-column: 2; position: relative; height: 20px; margin: 0 0 8px; font: 700 16px/1.2 var(--nbc-font); color: #12263f; }
.nbc-name > span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; }
@container (min-width: 330px) {
  .nbc-jersey { width: 100px; }
  .nbc-fgrid { grid-auto-columns: 20px; }
  .nbc-f { height: 20px; font-size: 11.5px; }
}
/* A narrow tile (a phone, or two tiles side by side on a small card): smaller tags that may wrap,
   so the jersey keeps its size and five games still fit beside it. */
@container (max-width: 304px) {
  .nbc-top { grid-template-columns: minmax(46px, .4fr) auto minmax(0, 1.6fr); gap: 2px 5px; }
  .nbc-tag { padding: 2px 5px; font-size: 9px; line-height: 1.15; white-space: normal; text-align: center; }
  .nbc-inj { padding: 1px 5px; font-size: 9px; }
  .nbc-fgrid { grid-auto-columns: 16px; }
  .nbc-f { height: 17px; font-size: 10.5px; }
  .nbc-m { font-size: 10px; }
  .nbc-fsum, .nbc-fsum2 { white-space: normal; }
  .nbc-fsum2 { font-size: 10px; }
}
/* A 360px phone (a 256px court tile): a slightly smaller jersey keeps the five games beside it. */
@container (max-width: 264px) {
  .nbc-jersey { width: 82px; }
}
/* Narrower still: the attack side moves under the name. */
@container (max-width: 250px) {
  .nbc-top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .nbc-jersey { width: 90px; }
  .nbc-att { grid-column: 1 / -1; grid-row: 3; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding: 0 0 6px; }
}

/* round pick button, top-right of the tile */
.nbc-check { position: absolute; top: 6px; right: 6px; z-index: 3; width: 24px; height: 24px; cursor: pointer; }
.nbc-check input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nbc-check span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #94a3b8; background: #fff; transition: background .15s ease, border-color .15s ease; }
.nbc-check:hover span { border-color: #0891b2; }
.nbc-check input:checked + span { background: var(--nbc-cyan); border-color: #0891b2; }
/* the tick is sized without its border */
.nbc-check input:checked + span::after { content: ""; position: absolute; left: 7px; top: 2px; box-sizing: content-box; width: 5px; height: 11px; border: solid #06222b; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.nbc-check input:focus-visible + span { outline: 2px solid #0e7490; outline-offset: 2px; }

/* chosen line + picker */
.nbc-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.nbc-badges:not(:empty) { margin-bottom: 8px; }
.nbc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 0; border-radius: 999px; background: #12263f; color: #67e8f9; font: 800 10.5px var(--nbc-font); letter-spacing: .03em; cursor: pointer; }
.nbc-badge span { opacity: .7; font-size: 12px; line-height: 1; }
.nbc-badge:hover span { opacity: 1; }
.nbc-picker { margin-bottom: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #cdd7e6; }
.nbc-pg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nbc-pg-t { color: #5b6b85; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nbc-pg-p { display: flex; flex-wrap: wrap; gap: 5px; }
.nbc-pill { min-width: 38px; min-height: 28px; padding: 4px 10px; border-radius: 999px; border: 1px solid #b6c2d6; background: #fff; color: #12263f; font-weight: 800; font-size: 12px; cursor: pointer; }
.nbc-pill:hover { border-color: #0891b2; }
.nbc-pill[aria-pressed="true"] { background: var(--nbc-cyan); border-color: #0891b2; color: #06222b; }

/* the defense side: what tonight's opponent allowed to this position, one cell per game */
.nbc-def { margin-top: auto; padding-top: 8px; border-top: 1px dashed #bcc8da; }
.nbc-def-h { margin-bottom: 5px; overflow: hidden; color: #6b7a93; font: 700 9.5px/1.2 var(--nbc-font); letter-spacing: .06em; white-space: nowrap; text-overflow: ellipsis; }
.nbc-def-h b { color: #12263f; }
.nbc-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.nbc-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; padding: 3px 2px; border-radius: 6px; color: #0f172a; text-align: center; line-height: 1.15; }
.nbc-cell b { font: 800 15px var(--nbc-display); }
.nbc-cell b i { font-style: normal; font-weight: 700; font-size: 11px; opacity: .72; }
.nbc-cell small { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; opacity: .78; }
.nbc-cell.nbc-hit { box-shadow: inset 0 0 0 2px #0f172a; }
.nbc-cell.nbc-hit::after { content: "\2713"; position: absolute; top: 1px; right: 4px; font-size: 10px; font-weight: 900; }
.nbc-cell.nbc-q { background: #f3f6fb; color: #94a3b8; box-shadow: inset 0 0 0 1px #d5deea; }
.nbc-totals { padding-top: 8px; text-align: center; color: #5f6f8a; font-weight: 600; font-size: 11.5px; }
.nbc-totals b { color: #12263f; }

/* footer */
.nbc-foot { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #d5deea; color: #475569; }
.nbc-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; }
.nbc-keys b { color: #12263f; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }
.nbc-key { display: inline-flex; align-items: center; white-space: nowrap; }
.nbc-key i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; }
.nbc-key em { margin-left: 3px; font-style: normal; font-size: 10px; font-weight: 700; color: #94a3b8; }
.nbc-foot p { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.nbc-foot p b { color: #334155; }

@media (prefers-reduced-motion: reduce) { .nbc-card, .nbc-card * { transition: none !important; } }
