:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #647084;
  --paper: #f4f6f9;
  --panel: #ffffff;
  --line: #d9e0ea;
  --accent: #b6282f;
  --accent-dark: #7f1d23;
  --gold: #c98928;
  --green: #24745f;
  --court: #bf6b2b;
  --showdown-gray: #3d444f;
  --showdown-orange: #b85f1f;
  --showdown-blue: #9fd5ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
}

button,
input,
select {
  font: inherit;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
}

.season-option-toggle {
  align-self: end;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.setup-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.era-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.compact-checkbox {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.scoreboard,
.rebound-track-panel,
.team-setup,
.team-board,
.side-panel,
.notice-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(25, 34, 47, 0.07);
}

.topbar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(184, 95, 31, 0.92) 0 8px, transparent 8px 64px),
    linear-gradient(90deg, var(--showdown-gray), #202936 58%, #304656 100%);
  border-color: rgba(159, 213, 239, 0.42);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08), 0 18px 42px rgba(25, 34, 47, 0.16);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--showdown-orange), var(--showdown-blue));
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar .eyebrow {
  color: var(--showdown-blue);
}

.topbar h1 {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.beta-version-label {
  display: inline-grid;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(159, 213, 239, 0.38);
  border-radius: 999px;
  color: #eaf7ff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.breadcrumb-label {
  display: block;
  margin-top: 6px;
  color: #d7e6f0;
  font-size: 0.82rem;
  font-weight: 850;
}

.topbar .ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(159, 213, 239, 0.38);
}

.topbar .ghost-button:hover {
  background: rgba(159, 213, 239, 0.18);
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions,
.section-heading,
.flow-actions,
.rating-row,
.stat-row,
.team-mods,
.roll-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

h3 {
  margin-bottom: 3px;
  font-size: 1rem;
}

.primary-button,
.ghost-button,
.roll-button {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 850;
}

.compact-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.danger-button {
  color: #9f1239;
  border-color: #fecdd3;
}

.danger-button:hover {
  color: #fff;
  background: #be123c;
  border-color: #be123c;
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.primary-button.large {
  min-width: 220px;
}

.ghost-button {
  color: var(--accent-dark);
  background: #fff;
  border-color: var(--line);
}

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

.start-menu {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 180px);
  display: grid;
  align-content: center;
  gap: 30px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 54px);
  border: 1px solid rgba(63, 76, 91, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(135deg, #eef3f8 0%, #d6e0e9 46%, #b9dff0 100%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.45), 0 24px 70px rgba(45, 55, 72, 0.18);
}

.mode-selection-theme {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(63, 76, 91, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(135deg, #eef3f8 0%, #d6e0e9 46%, #b9dff0 100%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.35), 0 18px 46px rgba(45, 55, 72, 0.12);
}

.mode-selection-theme::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 3px solid rgba(61, 68, 79, 0.14);
  border-radius: 8px;
  pointer-events: none;
}

.mode-selection-theme > * {
  position: relative;
  z-index: 1;
}

.start-menu-title {
  position: relative;
  z-index: 1;
  text-align: center;
}

.start-menu-title h2 {
  max-width: 980px;
  margin: 0 auto;
  color: #252b33;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 #fff,
    0 7px 0 rgba(233, 125, 36, 0.38),
    0 22px 34px rgba(36, 48, 61, 0.22);
}

.home-tagline {
  width: fit-content;
  margin: 18px auto 0;
  padding: 8px 14px;
  border: 1px solid rgba(61, 68, 79, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #394454;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(61, 68, 79, 0.12);
}

.start-menu-grid {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.start-menu-grid.single-menu-card {
  grid-template-columns: minmax(240px, 360px);
  justify-content: center;
}

.start-auth-panel,
.signed-in-dashboard {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 31, 43, 0.12);
}

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

.start-auth-actions {
  justify-content: start;
}

.cloud-status-line {
  margin: 0;
  padding: 10px 12px;
  color: #1e5f4b;
  background: #edf8f3;
  border: 1px solid rgba(36, 116, 95, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.cloud-status-line.is-error {
  color: #8e1b23;
  background: #fff1f2;
  border-color: rgba(190, 37, 50, 0.28);
}

.resume-game-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(233, 125, 36, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(25, 34, 47, 0.12);
}

.resume-game-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.mode-hub-group {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.mode-hub-group + .mode-hub-group {
  margin-top: 18px;
}

.mode-hub-group h3 {
  margin: 0;
  color: #1f2a3a;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.menu-card {
  position: relative;
  min-height: 146px;
  padding: 18px;
  text-align: left;
  overflow: hidden;
  color: #17202b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 252, 0.88));
  border: 1px solid rgba(63, 76, 91, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(25, 34, 47, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 8px solid var(--showdown-orange);
  background:
    linear-gradient(90deg, rgba(233, 125, 36, 0.12), transparent 36%),
    linear-gradient(135deg, transparent 0 72%, rgba(159, 213, 239, 0.46) 72% 100%);
  pointer-events: none;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 125, 36, 0.65);
  box-shadow: 0 24px 50px rgba(25, 34, 47, 0.18);
}

.menu-card strong,
.menu-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.menu-card .menu-number {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: transparent;
  background:
    radial-gradient(circle at 34% 28%, #f5a24b 0 10%, transparent 11%),
    linear-gradient(145deg, #d86f22, #9e4615);
  border: 2px solid #7d3510;
  border-radius: 50%;
  font-size: 0;
  font-weight: 950;
  box-shadow: 0 7px 0 rgba(159, 213, 239, 0.65), inset -6px -7px 0 rgba(82, 31, 7, 0.16);
}

.menu-card .menu-number::before,
.menu-card .menu-number::after {
  content: "";
  position: absolute;
  border-color: rgba(59, 25, 8, 0.72);
  pointer-events: none;
}

.menu-card .menu-number::before {
  width: 34px;
  height: 34px;
  border-left: 3px solid rgba(59, 25, 8, 0.72);
  border-right: 3px solid rgba(59, 25, 8, 0.72);
  border-radius: 50%;
}

.menu-card .menu-number::after {
  width: 42px;
  height: 42px;
  border-top: 3px solid rgba(59, 25, 8, 0.72);
  border-bottom: 3px solid rgba(59, 25, 8, 0.72);
  border-radius: 50%;
}

.menu-card strong {
  margin-bottom: 8px;
  color: #202936;
  font-size: 1.28rem;
  text-transform: uppercase;
}

.menu-card span {
  color: #586474;
  font-weight: 750;
}

.home-court-lines {
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 3px solid rgba(61, 68, 79, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.home-court-lines::before,
.home-court-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(61, 68, 79, 0.2);
}

.home-court-lines::before {
  left: 50%;
}

.home-court-lines::after {
  left: 50%;
  transform: translateX(-72px);
  width: 144px;
  border-left: 3px solid rgba(233, 125, 36, 0.42);
  border-right: 3px solid rgba(233, 125, 36, 0.42);
  background: transparent;
}

.center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(30vw, 270px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(233, 125, 36, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.paint-box {
  position: absolute;
  top: 28%;
  width: min(18vw, 190px);
  height: 44%;
  border: 4px solid rgba(159, 213, 239, 0.68);
  background: rgba(233, 125, 36, 0.08);
}

.paint-box.left {
  left: 0;
  border-left: 0;
}

.paint-box.right {
  right: 0;
  border-right: 0;
}

.mode-placeholder {
  min-height: 320px;
  align-content: center;
}

.season-setup,
.season-dashboard,
.deck-builder,
.catalog-screen,
.collect-screen,
.courtvision-screen,
.teams-screen {
  display: grid;
  gap: 18px;
}

.teams-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.team-viewer-full-layout {
  grid-template-columns: minmax(0, 1fr);
}

.team-viewer-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(140px, 0.5fr) minmax(240px, 1.3fr);
  gap: 12px;
  align-items: end;
}

.team-viewer-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-viewer-filter-bar select {
  min-height: 40px;
}

.team-pool-list {
  max-height: 720px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.team-pool-row,
.team-library-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.team-pool-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
}

.team-pool-row.selected {
  border-color: rgba(233, 125, 36, 0.58);
  background: #fff8ef;
}

.team-pool-row.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.team-pool-row span,
.team-library-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.team-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  font-weight: 900;
}

.team-button.selected {
  border-color: rgba(233, 125, 36, 0.58);
  background: #fff8ef;
}

.team-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.team-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #243143;
  background: #eef2f7;
  font-size: 0.74rem;
  font-weight: 900;
}

.starter-pill {
  color: #0f4b6c;
  background: #e6f7ff;
}

.bench-pill {
  color: #58606f;
  background: #eef2f7;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-library-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.team-viewer-roster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.team-roster-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.team-viewer-starters,
.team-viewer-bench {
  overflow-x: auto;
  padding-bottom: 4px;
}

.team-roster-column-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 2px 6px;
  border-bottom: 1px solid var(--line);
}

.team-roster-column-header h3,
.team-roster-column-header p {
  margin: 0;
}

.team-roster-column-header h3 {
  font-size: 1rem;
}

.team-roster-column-header > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.team-viewer-card {
  border-color: rgba(30, 42, 56, 0.18);
  background: #fffdfa;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.team-viewer-card.is-rare {
  border-color: rgba(233, 125, 36, 0.42);
  background: #fff9ef;
}

.team-viewer-card-heading {
  gap: 8px;
}

.team-viewer-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.team-rare-star {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #1d2735;
  background: #f3b45f;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(29, 39, 53, 0.14);
}

.team-viewer-card-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.team-viewer-card-row.starters-row {
  grid-template-columns: repeat(5, minmax(150px, 210px));
  justify-content: start;
  width: max-content;
  min-width: 0;
}

.team-viewer-card-row.bench-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.team-viewer-card-row.bench-row .team-viewer-card-wrap {
  width: min(210px, 100%);
  flex: 0 0 min(210px, 100%);
}

.team-viewer-card-row.bench-row .team-viewer-card {
  width: 100%;
}

.team-viewer-card-row.bench-row .art-player-card,
.team-viewer-card-row.bench-row .cv2-player-card {
  width: 100%;
}

.team-viewer-card-row .art-player-card,
.team-viewer-card-row .cv2-player-card {
  width: min(210px, 100%);
  justify-self: center;
}

.team-viewer-card.player-card {
  padding: 10px;
  gap: 8px;
}

.team-viewer-card .card-rating-top span {
  min-height: 30px;
  font-size: 0.78rem;
}

.team-viewer-card .card-player-title {
  grid-template-columns: auto minmax(0, 1fr);
}

.team-viewer-card .card-player-title h3 {
  font-size: 0.92rem;
}

.team-viewer-role-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-viewer-card .roll-chart {
  font-size: 0.72rem;
}

.tournament-team-slot {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.tournament-team-slot small {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.35;
}

.draft-config-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.draft-duplicate-grid {
  grid-template-columns: minmax(190px, 1fr) minmax(160px, 1fr);
  max-width: 420px;
  gap: 8px;
}

.draft-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  font-weight: 850;
}

.compact-check-row {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.15;
}

.compact-check-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.draft-pick-list {
  max-height: 520px;
}

.draft-roster-list {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.draft-team-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.draft-team-card h3 {
  margin: 0;
}

.draft-roster-slots {
  display: grid;
  gap: 6px;
}

.draft-roster-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #edf1f6;
}

.draft-roster-row:last-child {
  border-bottom: 0;
}

.draft-roster-row span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.draft-bracket-grid {
  display: grid;
  gap: 10px;
}

.draft-pregame-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.locked-cpu-control {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(159, 213, 239, 0.34);
  border-radius: 6px;
  background: #eef6fb;
}

.locked-cpu-control strong {
  color: #0f2f48;
  font-size: 0.82rem;
}

.locked-cpu-control p {
  margin: 0;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 800;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  margin: 4px 0 0;
}

.compact-heading {
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.status-pill {
  border-radius: 999px;
  background: #e8f0ff;
  color: #23406b;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.courtvision-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.courtvision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.courtvision-launch-panel {
  display: block;
}

.courtvision-frame {
  width: 100%;
  min-height: 780px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(25, 34, 47, 0.07);
}

.collect-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.credit-chip {
  min-width: 150px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(233, 125, 36, 0.38);
  border-radius: 8px;
  background: #fff7ed;
  color: #6f3a10;
  text-align: center;
}

.credit-chip span {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.credit-chip strong {
  font-size: 1rem;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pack-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(61, 68, 79, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(159, 213, 239, 0.24), transparent 44%),
    linear-gradient(180deg, #ffffff, #f6f8fb);
  box-shadow: 0 18px 42px rgba(25, 34, 47, 0.09);
}

.pack-tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--showdown-gray);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pack-card h3 {
  color: #202936;
  font-size: 1.08rem;
}

.pack-card p {
  color: var(--muted);
  font-weight: 730;
}

.pack-progress {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(28, 42, 58, 0.14);
  border-radius: 999px;
  background: #eef4f8;
  color: #1d2d3d;
  font-size: 0.78rem;
  font-weight: 900;
}

.starter-reveal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.starter-reveal-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(191, 32, 43, 0.92), rgba(35, 48, 64, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 10px);
  box-shadow: 0 14px 30px rgba(25, 34, 47, 0.2);
  cursor: pointer;
}

.starter-reveal-card.is-revealed {
  align-content: start;
  justify-items: start;
  text-align: left;
  color: #182232;
  background: linear-gradient(180deg, #ffffff, #eef4f8);
  border-color: rgba(31, 84, 114, 0.25);
}

.starter-reveal-card.duplicate-pack-card {
  border-color: rgba(191, 32, 43, 0.42);
  background: linear-gradient(180deg, #fff6f6, #eef4f8);
}

.rare-pack-panel {
  border-color: rgba(218, 165, 32, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 214, 102, 0.24), transparent 48%),
    linear-gradient(180deg, #fffdf6, #ffffff);
}

.rare-pack-message {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(218, 165, 32, 0.38);
  border-radius: 999px;
  background: #fff7d6;
  color: #7a4b00;
  font-weight: 950;
}

.starter-reveal-card.rare-pack-reveal-card {
  border-color: rgba(218, 165, 32, 0.58);
  box-shadow: 0 16px 34px rgba(122, 75, 0, 0.18);
}

.starter-reveal-card strong {
  font-size: 1rem;
}

.starter-reveal-card span {
  font-size: 0.78rem;
  font-weight: 900;
}

.starter-card-back-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1rem;
}

.beta-dashboard-panel {
  margin-top: 18px;
}

.career-progress-panel {
  margin-top: 18px;
}

.career-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.career-title-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 84, 114, 0.18);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.career-title-badge.is-unlocked {
  border-color: rgba(154, 91, 21, 0.34);
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  color: #7c2d12;
  box-shadow: 0 6px 16px rgba(154, 91, 21, 0.12);
}

.career-title-badge.is-locked {
  opacity: 0.62;
}

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

.career-goal-card {
  padding: 14px;
  border: 1px solid rgba(31, 84, 114, 0.16);
  border-radius: 8px;
  background: #f8fbfd;
}

.career-goal-card h3 {
  margin: 0 0 10px;
}

.career-goal-row {
  display: grid;
  gap: 6px;
  padding: 9px 0;
  border-top: 1px solid rgba(31, 84, 114, 0.12);
}

.career-goal-row:first-of-type {
  border-top: 0;
}

.career-goal-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.career-goal-copy strong {
  color: var(--ink);
}

.career-goal-row.is-complete .career-goal-copy strong {
  color: #166534;
}

.career-goal-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.career-goal-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #16a34a);
}

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

.beta-info-card {
  padding: 14px;
  border: 1px solid rgba(31, 84, 114, 0.16);
  border-radius: 8px;
  background: #f8fbfd;
}

.beta-info-card ul {
  margin: 8px 0 0 18px;
  color: var(--muted);
  font-weight: 780;
}

.reset-warning {
  width: fit-content;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 900;
}

.collection-catalog-screen {
  display: grid;
  gap: 18px;
}

.collection-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.collection-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.collection-summary-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(31, 84, 114, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4f7fa);
}

.collection-summary-card.overall {
  border-color: rgba(191, 32, 43, 0.25);
  background: linear-gradient(180deg, #fff7f7, #ffffff);
}

.collection-summary-card span,
.collection-summary-card small {
  color: var(--muted);
  font-weight: 850;
}

.collection-summary-card strong {
  color: #162232;
  font-size: 1.25rem;
}

.collection-binder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.binder-card {
  min-height: 360px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(31, 84, 114, 0.18);
  border-radius: 8px;
  background: #fff;
}

.binder-card.is-missing {
  color: #d8e1e9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, #1f2b38, #101821);
  border-color: rgba(255, 255, 255, 0.12);
}

.binder-card-back {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgba(191, 32, 43, 0.18), rgba(31, 43, 56, 0.1));
  text-align: center;
}

.binder-card-back span,
.binder-card-back small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.binder-card-back strong {
  color: #fff;
  font-size: 2rem;
}

.binder-card-image {
  min-height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #e9f0f5;
  color: #607080;
  font-weight: 950;
}

.binder-card.is-missing .binder-card-image {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.18) 0 18px, transparent 19px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.72);
}

.binder-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.binder-card strong,
.binder-card small {
  overflow-wrap: anywhere;
}

.collection-catalog-card {
  width: 100%;
  min-width: 0;
}

.collection-catalog-card.player-card {
  padding: 10px;
  gap: 8px;
}

.collection-catalog-card .card-rating-top span {
  min-height: 30px;
  font-size: 0.72rem;
}

.collection-catalog-card .card-player-title {
  gap: 6px;
}

.collection-catalog-card .card-player-title h3 {
  font-size: 0.86rem;
}

.collection-catalog-card .position-badge,
.collection-catalog-card .marker-chip {
  font-size: 0.66rem;
}

.collection-catalog-card .chart-header,
.collection-catalog-card .chart-row {
  min-height: 24px;
}

.collection-catalog-card .chart-header strong,
.collection-catalog-card .chart-row strong,
.collection-catalog-card .chart-row span {
  font-size: 0.65rem;
}

.deck-builder-header {
  grid-column: 1 / -1;
}

.career-solo-screen {
  display: grid;
  gap: 18px;
}

.career-solo-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.difficulty-grid {
  display: grid;
  gap: 10px;
}

.difficulty-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.difficulty-card.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: var(--accent-dark);
}

.difficulty-card.is-locked {
  opacity: 0.52;
  cursor: not-allowed;
}

.difficulty-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.difficulty-card.is-active span {
  color: rgba(255, 255, 255, 0.82);
}

.next-opponent-clue {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(17, 34, 51, 0.12);
  border-radius: 7px;
  background: #f8fafc;
}

.next-opponent-clue span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.next-opponent-clue strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.wager-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(182, 40, 47, 0.34);
  border-radius: 8px;
  background: #fff7ed;
}

.wager-box label {
  display: grid;
  gap: 6px;
}

.wager-box label span {
  color: #7f1d23;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wager-box input {
  min-height: 38px;
  border: 1px solid rgba(182, 40, 47, 0.34);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 900;
}

.wager-box p {
  margin: 0;
  color: #7c2d12;
  font-size: 0.78rem;
  font-weight: 800;
}

.career-deck-choice-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.career-deck-choice {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  font-weight: 900;
}

.career-deck-choice.is-selected {
  border-color: rgba(182, 40, 47, 0.55);
  background: #fff6f6;
}

.career-deck-choice strong {
  color: #7f1d23;
  font-size: 0.78rem;
}

.deck-health-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.deck-health-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef2f7;
  color: #243143;
  font-size: 0.76rem;
  font-weight: 950;
}

.deck-health-pill.is-ok {
  color: #065f46;
  background: #dcfce7;
  border-color: #86efac;
}

.deck-health-pill.is-warning {
  color: #7f1d23;
  background: #fff1f2;
  border-color: #fecdd3;
}

.deck-builder-grid,
.catalog-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.deck-builder-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.1fr) minmax(320px, 0.95fr);
}

.catalog-grid {
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
}

.catalog-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.clear-filter-button {
  align-self: end;
  min-height: 40px;
}

.position-checkbox-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(17, 34, 51, 0.16);
  border-radius: 6px;
  background: rgba(246, 248, 250, 0.92);
}

.filter-group-label {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.position-checkbox {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(17, 34, 51, 0.15);
  border-radius: 6px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.advanced-filter-row {
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  margin-top: 10px;
}

.deck-search-controls {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.deck-builder .catalog-filter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deck-builder .advanced-filter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-placeholder {
  min-height: 220px;
  align-content: center;
}

.catalog-list {
  max-height: 650px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.catalog-list.compact-list {
  max-height: 240px;
}

.catalog-row {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.catalog-row.selected {
  border-color: rgba(182, 40, 47, 0.55);
  background: #fff6f6;
}

.catalog-row.is-claimed-card {
  color: #667085;
  background: #eef2f6;
  border-color: rgba(102, 112, 133, 0.28);
}

.catalog-row.is-claimed-card strong,
.catalog-row.is-claimed-card span {
  opacity: 0.68;
}

.catalog-row.is-claimed-card.selected {
  border-color: rgba(182, 40, 47, 0.55);
  background: #f4e7e8;
}

.catalog-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.catalog-row .claimed-card-note {
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: #667085;
  font-size: 0.68rem;
  font-weight: 950;
  opacity: 1;
}

.claimed-transfer-panel {
  border-color: rgba(102, 112, 133, 0.35);
  background: #f3f5f8;
}

.claimed-transfer-panel p {
  margin: 0;
  color: #475467;
  font-size: 0.82rem;
  font-weight: 800;
}

.display-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.season-game-banner {
  grid-column: 1 / -1;
}

.recovery-panel {
  border-color: rgba(233, 125, 36, 0.55);
  background: #fff8ef;
}

.season-config-panel,
.season-team-picker {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(25, 34, 47, 0.07);
}

.season-config-panel.is-muted {
  opacity: 0.62;
}

.compact-form-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.compact-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-stat-list {
  margin: 12px 0 16px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.league-play-screen .season-config-panel {
  min-height: 100%;
}

.league-mode-tabs {
  margin: 14px 0;
}

.league-tab-panel.is-hidden {
  display: none;
}

.league-leaders-panel {
  margin-top: 12px;
}

.leader-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.leader-sort-tabs button {
  min-height: 34px;
  border: 1px solid rgba(31, 84, 114, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.leader-sort-tabs button.active {
  border-color: var(--accent);
  background: #fff3e9;
  color: var(--accent-dark);
}

.league-leaders-table th,
.league-leaders-table td {
  text-align: right;
}

.league-leaders-table th:nth-child(2),
.league-leaders-table td:nth-child(2) {
  text-align: left;
}

.cloud-migration-panel {
  margin-top: 16px;
}

.league-online-screen .collect-hero {
  align-items: center;
}

.league-online-rules {
  margin: 14px 0;
}

.league-court-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.league-court-card {
  display: grid;
  gap: 12px;
}

.league-court-card.is-hosted {
  border-color: rgba(193, 43, 45, 0.32);
  box-shadow: 0 18px 42px rgba(145, 28, 28, 0.08);
}

.compact-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.45;
}

.league-deck-choice-list {
  display: grid;
  gap: 8px;
}

.league-deck-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 84, 114, 0.16);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
}

.league-deck-choice.is-selected {
  border-color: rgba(193, 43, 45, 0.42);
  background: #fff8ef;
}

.league-player-pair {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(31, 84, 114, 0.16);
  border-radius: 8px;
  background: #f7fafc;
  font-size: 0.82rem;
}

.league-player-pair p {
  margin: 0;
}

.cloud-status {
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid rgba(31, 84, 114, 0.16);
  border-radius: 6px;
  background: #edf5f9;
  color: var(--muted);
  font-weight: 800;
}

.cloud-status.is-error {
  border-color: rgba(145, 28, 28, 0.24);
  background: #fff2f2;
  color: #8a1b1b;
}

.migration-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.season-config-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.division-summary,
.season-team-grid {
  display: grid;
  gap: 8px;
}

.division-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 12px 0;
}

.division-summary span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 8px;
  background: #eef2f7;
  color: #243143;
  font-size: 0.78rem;
  font-weight: 900;
}

.career-dime-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 12px;
  padding: 14px 16px;
  border: 2px solid #b7791f;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e6 0%, #ffffff 72%);
  box-shadow: 0 14px 32px rgba(183, 121, 31, 0.14);
}

.career-dime-feature strong {
  display: block;
  color: #7a1b1b;
  font-size: 2.1rem;
  line-height: 1;
}

.career-dime-feature span {
  color: #243143;
  font-size: 0.82rem;
  font-weight: 900;
}

.career-dime-feature.is-paid {
  border-color: #1f6f43;
  background: linear-gradient(135deg, #eaf8ef 0%, #ffffff 72%);
}

.career-dime-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.career-dime-breakdown span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #243143;
  color: #ffffff;
}

.season-team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.season-team-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.season-team-row.selected {
  border-color: rgba(36, 116, 95, 0.55);
  background: #f4fbf8;
}

.season-team-row strong,
.season-team-row span {
  display: block;
}

.season-team-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.season-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.playoff-tree-panel {
  display: grid;
  gap: 16px;
}

.playoff-rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
}

.playoff-round {
  display: grid;
  gap: 10px;
}

.playoff-series-card {
  border: 1px solid #c9d2df;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.champion-panel {
  border: 2px solid #d19122;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #fff7d6, #ffffff 55%, #e7f3fb);
  box-shadow: 0 14px 32px rgba(209, 145, 34, 0.18);
}

.champion-panel h2 {
  margin-bottom: 4px;
}

.series-score-row,
.playoff-game-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.series-score-row span {
  border-radius: 999px;
  background: #edf3f8;
  color: #122033;
  min-width: 28px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 900;
}

.playoff-game-list {
  display: grid;
  gap: 6px;
}

.playoff-game-row {
  grid-template-columns: minmax(54px, auto) minmax(70px, 1fr) auto;
  border-top: 1px solid #e5ebf2;
  padding-top: 6px;
  font-size: 0.82rem;
  font-weight: 760;
}

.align-top {
  align-items: start;
}

.leaders-table th,
.leaders-table td {
  text-align: right;
}

.leaders-table th:nth-child(2),
.leaders-table td:nth-child(2),
.leaders-table th:nth-child(3),
.leaders-table td:nth-child(3) {
  text-align: left;
}

.leaders-table .sortable-heading {
  padding: 0;
}

.sort-header {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 8px 10px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: inherit;
}

.sort-header:hover,
.sort-header.active {
  color: var(--accent-dark);
  background: rgba(184, 95, 31, 0.12);
}

.stats-legend {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.stats-legend h3 {
  margin-bottom: 10px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 16px;
}

.legend-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.leader-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 12px;
  align-items: end;
}

.standings-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.division-standings {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.division-standings h4 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.seed-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  margin-right: 8px;
  border-radius: 999px;
  color: #fff;
  background: #243143;
  font-size: 0.72rem;
  font-weight: 950;
}

.seed-marker:empty {
  background: transparent;
}

.seed-marker.eliminated {
  background: #8a1f2d;
}

.notice-panel,
.team-setup {
  padding: 18px;
}

.notice-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.under-construction-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-dark), var(--showdown-orange));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(25, 34, 47, 0.12);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.under-construction-banner span {
  font-weight: 760;
  opacity: 0.92;
}

.notice-panel p {
  max-width: 920px;
  margin-bottom: 0;
  color: #475467;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9d2df;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(182, 40, 47, 0.2);
  border-color: var(--accent);
}

.prebuilt-era-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 10px;
}

.prebuilt-era-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(17, 34, 51, 0.14);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.prebuilt-era-chip input {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.lineup-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.lineup-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: start;
}

.readonly-lineup-list {
  gap: 8px;
  margin-top: 8px;
}

.readonly-lineup-row {
  grid-template-columns: 44px 1fr;
  align-items: center;
}

.setup-roster-preview {
  display: grid;
  gap: 6px;
}

.setup-player-field {
  display: grid;
  gap: 8px;
}

.selected-player-summary {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.selected-player-summary.is-empty {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-action-button {
  width: max-content;
  min-height: 0;
  padding: 5px 8px;
  border: 1px solid #c9d5e3;
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 950;
}

.mini-action-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.selected-player-summary strong,
.selected-player-summary span {
  display: block;
}

.selected-player-summary strong {
  font-size: 0.86rem;
}

.selected-player-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.position-badge,
.salary-pill,
.team-mods span,
.rating-row span,
.stat-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #243143;
  background: #eef2f7;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.position-badge {
  color: #fff;
  background: #222f3f;
}

.salary-pill {
  color: var(--accent-dark);
  background: #fff1f0;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.start-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: end;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.scoreboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
}

.court-scoreboard {
  position: relative;
  overflow: hidden;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  color: #f7fafc;
  border: 2px solid #324354;
  background:
    linear-gradient(90deg, rgba(159, 213, 239, 0.14), transparent 40%),
    linear-gradient(180deg, #1d2a36, #101820);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04), 0 18px 42px rgba(11, 18, 26, 0.16);
}

.court-scoreboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(159, 213, 239, 0.18) 50%, transparent 50.2%),
    radial-gradient(circle at 50% 100%, transparent 0 58px, rgba(255, 255, 255, 0.18) 59px 61px, transparent 62px);
  opacity: 0.65;
}

.court-scoreboard > * {
  position: relative;
  z-index: 1;
}

.court-scoreboard-title {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: 10px 12px;
  border-left: 4px solid var(--accent-dark);
  border-radius: 6px;
  background: rgba(5, 10, 16, 0.34);
}

.court-scoreboard-title .eyebrow {
  color: #ffb06b;
}

.court-scoreboard-title h2 {
  color: #fff;
}

.court-scoreboard table {
  color: #f8fafc;
}

.court-scoreboard th {
  color: #9fd5ef;
  border-color: rgba(159, 213, 239, 0.28);
}

.court-scoreboard td {
  color: #fff;
  border-color: rgba(159, 213, 239, 0.2);
}

.court-scoreboard td:first-child {
  font-weight: 950;
}

.scoreboard-team-name,
.scoreboard-season-context {
  display: block;
}

.scoreboard-season-context {
  margin-top: 2px;
  color: #9fd5ef;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.court-scoreboard .total-cell {
  color: #ffefe0;
  text-shadow: 0 0 12px rgba(207, 73, 25, 0.55);
  font-size: 1.04rem;
}

.live-stat-ticker {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid #263241;
  border-radius: 6px;
  background: #070b10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

.ticker-track span {
  padding: 8px 18px;
  color: #f6f8fb;
  border-right: 1px solid rgba(159, 213, 239, 0.18);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.rebound-track-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px 18px;
}

.rebound-track-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-weight: 850;
}

.rebound-track-heading span {
  color: var(--accent-dark);
}

.rebound-track {
  display: grid;
  grid-template-columns: repeat(17, minmax(32px, 1fr));
  gap: 4px;
}

.rebound-space {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-weight: 900;
}

.rebound-space strong {
  display: none;
  color: #fff;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.rebound-space.away-side {
  background: #f7f8fb;
}

.rebound-space.home-side {
  background: #fff8ed;
}

.rebound-space.center-side {
  background: #eef2f7;
}

.rebound-space.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent-dark);
}

.rebound-space.active strong {
  display: block;
}

.playmat-board {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  padding: 10px;
  overflow-x: hidden;
  border: 1px solid #232b34;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.38) 49.7%, rgba(255, 255, 255, 0.38) 50.3%, transparent 50.3%),
    radial-gradient(circle at 50% 50%, transparent 0 86px, rgba(255, 255, 255, 0.32) 87px 89px, transparent 90px),
    linear-gradient(180deg, #556777 0%, #20272f 18%, #101316 50%, #20272f 82%, #556777 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.12), 0 18px 42px rgba(25, 34, 47, 0.12);
}

.playmat-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.playmat-board > * {
  position: relative;
  z-index: 1;
}

.playmat-board.flash-hot::before {
  background: rgba(214, 39, 47, 0.52);
  animation: boardFlash 2.25s linear;
}

.playmat-board.flash-cold::before {
  background: rgba(42, 120, 205, 0.54);
  animation: boardFlash 2.25s linear;
}

.playmat-board.has-result-focus .playmat-team-strip,
.playmat-board.has-result-focus .matchup-band,
.playmat-board.has-result-focus .court-player-slot,
.playmat-board.has-result-focus .assist-track,
.playmat-board.has-result-focus .court-rebound-track {
  opacity: 0.26;
  filter: grayscale(0.9);
  transition: opacity 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.playmat-board.has-result-focus .court-player-slot.is-result-focus,
.playmat-board.has-result-focus .assist-track.is-result-focus,
.playmat-board.has-result-focus .court-rebound-track.is-result-focus {
  opacity: 1;
  filter: none;
  z-index: 5;
}

.playmat-board.has-result-focus .court-player-slot.is-result-focus .player-card,
.playmat-board.has-result-focus .assist-track.is-result-focus,
.playmat-board.has-result-focus .court-rebound-track.is-result-focus {
  box-shadow:
    0 0 0 3px rgba(243, 180, 95, 0.9),
    0 0 26px rgba(243, 180, 95, 0.42);
}

.playmat-board.has-result-focus .court-player-slot.is-result-focus .chart-row.is-current,
.playmat-board.has-result-focus .court-player-slot.is-result-focus .chart-row.is-current-projected {
  background: #5b330f;
}

@keyframes boardFlash {
  0%, 100% { opacity: 0; }
  5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95% { opacity: 1; }
  10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% { opacity: 0; }
}

.marker-callout {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  animation: markerCallout 2.25s ease-out;
}

.marker-callout.hot {
  color: #ff2333;
  text-shadow:
    0 4px 0 #6f1118,
    0 0 26px rgba(255, 35, 51, 0.85);
}

.marker-callout.cold {
  color: #4ab3ff;
  text-shadow:
    0 4px 0 #0a3f70,
    0 0 26px rgba(74, 179, 255, 0.85);
}

@keyframes markerCallout {
  0% { opacity: 0; transform: scale(0.78); }
  10%, 72% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

.playmat-scoreboard {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 2px solid #2f3a44;
  border-radius: 8px;
  color: #f6f8fb;
  background: linear-gradient(180deg, #15191e, #080a0d);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.scoreboard-period {
  justify-self: center;
  padding: 4px 7px;
  border-radius: 4px;
  color: #9fd5ef;
  background: #1f2a34;
  font-size: 0.78rem;
  font-weight: 950;
}

.scoreboard-team-line {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.scoreboard-team-line strong {
  color: #d7dde6;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.scoreboard-team-line span {
  width: 100%;
  padding: 6px 4px;
  border: 1px solid #4b1218;
  border-radius: 5px;
  color: #ff2637;
  background: #1a0507;
  font-family: "Courier New", monospace;
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 9px rgba(255, 38, 55, 0.6);
}

.playmat-team-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  max-height: 62px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(11, 17, 24, 0.72);
  overflow: hidden;
}

.playmat-team-strip h2,
.playmat-team-strip p {
  margin: 0;
}

.playmat-team-strip h2 {
  font-size: 0.98rem;
  line-height: 1.05;
}

.playmat-team-strip .eyebrow {
  color: #9fd5ef;
  font-size: 0.62rem;
  line-height: 1;
}

.assist-track {
  display: grid;
  grid-template-columns: 82px repeat(10, minmax(26px, 1fr));
  gap: 5px;
  align-items: center;
  color: #fff;
}

.assist-track strong {
  color: #f3b45f;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.assist-track span {
  display: grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: #17202b;
  background: #eef2f7;
  font-size: 0.78rem;
  font-weight: 950;
}

.assist-track span.active {
  color: #fff;
  background: var(--accent);
  border-color: #ffd092;
}

.playmat-court {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  grid-template-rows: auto 42px auto;
  gap: 8px 10px;
  align-items: stretch;
  min-width: 0;
}

.possession-arrow {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "arrow label"
    "arrow team";
  column-gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 3px solid rgba(243, 180, 95, 0.95);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 18, 23, 0.96), rgba(30, 39, 49, 0.94));
  box-shadow: 0 10px 24px rgba(5, 8, 12, 0.2), 0 0 22px rgba(243, 180, 95, 0.22);
}

.possession-arrow-head {
  grid-area: arrow;
  justify-self: center;
  align-self: center;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
}

.possession-arrow.away-turn .possession-arrow-head {
  border-bottom: 38px solid #f3b45f;
}

.possession-arrow.home-turn .possession-arrow-head {
  border-top: 38px solid #f3b45f;
}

.possession-arrow strong {
  grid-area: label;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.possession-arrow em {
  grid-area: team;
  max-width: 100%;
  overflow: hidden;
  color: #f3d19e;
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.court-lane {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.away-lane {
  grid-column: 1;
  grid-row: 1;
}

.home-lane {
  grid-column: 1;
  grid-row: 3;
}

.matchup-band {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.matchup-band span {
  display: grid;
  place-items: center;
  min-height: 38px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.court-player-slot {
  min-width: 0;
}

.court-player-slot .player-card {
  height: 100%;
  padding: 10px;
  gap: 7px;
  box-shadow: 0 8px 18px rgba(5, 8, 12, 0.28);
}

.court-player-slot .cv2-player-card {
  height: auto;
  padding: 0;
  min-width: 0;
  width: 100%;
}

.court-player-slot .card-player-title h3 {
  font-size: 0.96rem;
}

.court-player-slot .source-note {
  font-size: 0.72rem;
}

.court-player-slot .rating-row span,
.court-player-slot .card-rating-top span,
.court-player-slot .card-footer-row > span,
.court-player-slot .rating-choice-chip {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 0.68rem;
}

.court-player-slot .chart-row {
  min-height: 24px;
}

.court-player-slot .chart-header strong,
.court-player-slot .chart-row strong,
.court-player-slot .chart-row span {
  font-size: 0.66rem;
}

.court-player-slot .roll-controls {
  grid-template-columns: 1fr;
  gap: 5px;
}

.court-player-slot .roll-controls label {
  font-size: 0.68rem;
}

.court-rebound-track {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 58px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(11, 17, 24, 0.72);
  text-align: center;
  min-height: 560px;
}

.court-rebound-track strong,
.court-rebound-track span {
  font-size: 0.72rem;
  font-weight: 900;
}

.vertical-rebound-spaces {
  display: grid;
  grid-template-rows: repeat(17, minmax(24px, 1fr));
  gap: 3px;
}

.vertical-rebound-space {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #17202b;
  background: #eef2f7;
  font-size: 0.72rem;
  font-weight: 950;
  min-width: 0;
}

.vertical-rebound-space.home-side {
  background: #fff8ed;
}

.vertical-rebound-space.away-side {
  background: #e9f6fc;
}

.vertical-rebound-space.center-side {
  background: #f0f2f5;
}

.vertical-rebound-space.active {
  color: #fff;
  background: var(--accent);
  border-color: #ffd092;
}

.playmat-double-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.playmat-double-teams .double-team-controls {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.92);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px;
  text-align: center;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: #475467;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.total-cell {
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 950;
}

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

.team-board,
.side-panel {
  padding: 18px;
}

.dice-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  justify-items: center;
  padding: 12px;
  border: 1px solid rgba(159, 213, 239, 0.28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #15191e, #080a0d);
  text-align: center;
}

.dice-panel h2,
.dice-panel p {
  margin: 0;
}

.dice-panel p {
  color: #aeb8c6;
  font-size: 0.84rem;
  font-weight: 800;
}

.quarter-break-panel {
  gap: 10px;
  border-color: rgba(243, 180, 95, 0.72);
  background:
    linear-gradient(180deg, rgba(30, 37, 45, 0.98), rgba(9, 12, 16, 0.99)),
    radial-gradient(circle at 50% 0%, rgba(243, 180, 95, 0.2), transparent 58%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.quarter-break-panel .eyebrow {
  color: #ffb06b;
}

.quarter-break-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.quarter-break-score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.quarter-break-score-line div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quarter-break-score-line strong {
  overflow: hidden;
  color: #d7dde6;
  font-size: 0.66rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.quarter-break-score-line span {
  display: block;
  padding: 7px 8px;
  border: 1px solid #4b1218;
  border-radius: 6px;
  color: #ff2637;
  background: #1a0507;
  font-family: "Courier New", monospace;
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 38, 55, 0.55);
}

.quarter-break-score-line em {
  color: #f3b45f;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 950;
}

.quarter-break-review {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(243, 180, 95, 0.42);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.quarter-break-review span {
  color: #ffb06b;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quarter-break-review strong {
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.25;
}

.d20 {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), #ef7a23);
  clip-path: polygon(50% 0%, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  box-shadow: 0 10px 22px rgba(36, 49, 67, 0.22);
  transform-origin: center;
}

.d20::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  clip-path: polygon(50% 0%, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
}

.d20 span {
  position: relative;
  font-size: 1.1rem;
  font-weight: 950;
}

.d20.is-rolling {
  animation: d20-roll 700ms cubic-bezier(0.22, 0.7, 0.2, 1);
}

.roll-button.ready-to-roll {
  box-shadow: 0 0 0 0 rgba(239, 122, 35, 0.45);
  animation: roll-pulse 1.4s ease-in-out infinite;
}

.roll-status {
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.82rem;
  text-align: center;
}

.waiting-status {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.38);
  color: #cbd5e1;
}

@keyframes d20-roll {
  0% {
    transform: rotate(0deg) scale(1);
  }
  30% {
    transform: rotate(145deg) scale(1.12);
  }
  65% {
    transform: rotate(310deg) scale(0.96);
  }
  100% {
    transform: rotate(720deg) scale(1);
  }
}

@keyframes roll-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 122, 35, 0.42);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 122, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 122, 35, 0);
  }
}

.player-grid {
  display: grid;
  gap: 12px;
}

.player-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.player-card.is-rare-card {
  border-color: #c89416;
  outline: 6px solid #f2c94c;
  outline-offset: -6px;
  box-shadow: inset 0 0 0 2px #8f6410, 0 10px 24px rgba(137, 98, 18, 0.36);
}

.player-card.needs-roll {
  border-width: 3px;
  border-color: #243143;
}

.player-card.is-rare-card.needs-roll {
  border-color: #c89416;
}

.court-player-slot .player-card.is-rare-card {
  outline: 6px solid #f2c94c;
  outline-offset: -6px;
  box-shadow: inset 0 0 0 2px #8f6410, 0 10px 24px rgba(137, 98, 18, 0.42);
}

.player-card.is-rolled {
  border-width: 1px;
  border-color: rgba(36, 116, 95, 0.45);
  background: #f4fbf8;
}

.player-card.is-hot {
  border-color: #c92b32;
  background: #fff1f1;
}

.player-card.is-hot-multiple {
  border-color: #c98928;
  background: #fff4df;
}

.player-card.is-cold {
  border-color: #13559f;
  background: #dcecff;
}

.player-card.is-cold-multiple {
  border-color: #7b4fb3;
  background: #f4edff;
}

.cv2-player-card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.cv2-player-card.is-rare-card,
.court-player-slot .cv2-player-card.is-rare-card {
  border: 0;
  outline: 0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.cv2-card-art-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.cv2-card-art-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cv2-card-art-shell.is-original-scan-shell .cv2-card-art-image {
  object-fit: fill;
}

.cv2-chart-zoom-button {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.cv2-chart-zoom-button:hover,
.cv2-chart-zoom-button:focus-visible {
  background: #0f172a;
  outline: 2px solid rgba(250, 204, 21, 0.9);
  outline-offset: 2px;
}

.cv2-card-art-shell::before,
.cv2-card-art-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
}

.cv2-card-art-shell::before {
  z-index: 5;
}

.cv2-card-art-shell::after {
  z-index: 6;
}

.cv2-rare-glimmer {
  position: absolute;
  inset: -18% -45%;
  z-index: 7;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(110deg,
      transparent 0%,
      transparent 36%,
      rgba(255, 255, 255, 0.06) 42%,
      rgba(255, 255, 255, 0.5) 48%,
      rgba(251, 191, 36, 0.22) 51%,
      rgba(255, 255, 255, 0.08) 58%,
      transparent 66%,
      transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-72%);
  animation: cv2-rare-glimmer-sweep 4.5s ease-in-out infinite;
}

.cv2-player-card.is-hot .cv2-card-art-shell::before,
.cv2-player-card.is-hot-multiple .cv2-card-art-shell::before {
  opacity: 1;
  background:
    radial-gradient(circle at 20% 82%, rgba(251, 146, 60, 0.22) 0 16%, transparent 38%),
    radial-gradient(circle at 82% 74%, rgba(220, 38, 38, 0.18) 0 14%, transparent 38%),
    linear-gradient(180deg, rgba(127, 29, 29, 0.1), rgba(251, 146, 60, 0.08) 58%, rgba(127, 29, 29, 0.13));
  mix-blend-mode: screen;
}

.cv2-player-card.is-hot .cv2-card-art-shell::after,
.cv2-player-card.is-hot-multiple .cv2-card-art-shell::after {
  opacity: 0.88;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 237, 213, 0.94) 0 1.7px, transparent 2.6px),
    radial-gradient(circle at 34% 68%, rgba(253, 186, 116, 0.96) 0 1.8px, transparent 2.7px),
    radial-gradient(circle at 56% 34%, rgba(248, 113, 22, 0.9) 0 1.8px, transparent 2.7px),
    radial-gradient(circle at 78% 74%, rgba(254, 215, 170, 0.92) 0 1.7px, transparent 2.6px),
    radial-gradient(circle at 92% 42%, rgba(239, 68, 68, 0.78) 0 1.8px, transparent 2.7px);
  background-size: 70px 66px;
  animation: cv2-ember-rise 2.35s linear infinite;
}

.cv2-player-card.is-hot-multiple .cv2-card-art-shell::after {
  opacity: 1;
  background-size: 56px 52px;
  animation-duration: 1.85s;
}

.cv2-player-card.is-cold .cv2-card-art-shell::before,
.cv2-player-card.is-cold-multiple .cv2-card-art-shell::before {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 14%, rgba(224, 242, 254, 0.22), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(147, 197, 253, 0.18), transparent 28%),
    radial-gradient(circle at 50% 50%, transparent 36%, rgba(191, 219, 254, 0.12) 74%, rgba(96, 165, 250, 0.2));
  mix-blend-mode: screen;
}

.cv2-player-card.is-cold .cv2-card-art-shell::after,
.cv2-player-card.is-cold-multiple .cv2-card-art-shell::after {
  opacity: 0.8;
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 246, 255, 0.92) 0 1.7px, transparent 2.7px),
    radial-gradient(circle at 38% 72%, rgba(224, 242, 254, 0.86) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 68% 28%, rgba(191, 219, 254, 0.9) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 84% 62%, rgba(219, 234, 254, 0.92) 0 1.7px, transparent 2.7px);
  background-size: 74px 78px;
  animation: cv2-snow-drift 4s linear infinite;
}

.cv2-player-card.is-cold-multiple .cv2-card-art-shell::after {
  opacity: 1;
  background-size: 60px 64px;
  animation-duration: 3.35s;
}

.cv2-row-highlight {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  border: 2px solid rgba(255, 213, 74, 1);
  background: rgba(255, 213, 74, 0.3);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.72), 0 0 12px rgba(255, 213, 74, 0.88);
}

.cv2-card-marker-badge {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 28%;
  transform: translateX(-50%);
  min-width: 44px;
  padding: 4px 8px 3px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.75);
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.45);
  pointer-events: none;
}

.cv2-card-marker-badge.is-hot-badge {
  background: linear-gradient(180deg, #ef4444, #991b1b);
}

.cv2-card-marker-badge.is-cold-badge {
  background: linear-gradient(180deg, #38bdf8, #1d4ed8);
}

.cv2-card-marker-badge.is-multiple {
  min-width: 50px;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.45), 0 4px 10px rgba(15, 23, 42, 0.5);
}

@keyframes cv2-ember-rise {
  from {
    background-position: 0 70px, 0 70px, 0 70px, 0 70px, 0 70px;
  }
  to {
    background-position: 0 -70px, 0 -70px, 0 -70px, 0 -70px, 0 -70px;
  }
}

@keyframes cv2-snow-drift {
  from {
    background-position: 0 -70px, 0 -70px, 0 -70px, 0 -70px;
  }
  to {
    background-position: 24px 70px, 24px 70px, 24px 70px, 24px 70px;
  }
}

@keyframes cv2-rare-glimmer-sweep {
  0%, 42% {
    opacity: 0;
    transform: translateX(-72%);
  }
  50% {
    opacity: 0.72;
  }
  61% {
    opacity: 0;
    transform: translateX(72%);
  }
  100% {
    opacity: 0;
    transform: translateX(72%);
  }
}

.cv2-live-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 5px;
  padding: 5px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.6);
}

.cv2-rating-chip,
.cv2-marker-chip,
.cv2-roll-status,
.cv2-live-controls .roll-button {
  min-height: 22px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.cv2-live-controls .roll-button,
.cv2-roll-status {
  grid-column: 1 / -1;
}

.cv2-live-controls .roll-button {
  min-height: 30px;
  border-color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(180deg, #c81e1e, #8f1111);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.34);
}

.cv2-live-controls .roll-button.ready-to-roll {
  animation: pulseRoll 1.25s infinite;
}

.cv2-player-card.is-display-card {
  max-width: 360px;
}

.cv2-display-identity {
  display: none;
}

.cv2-card-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(3px);
}

.cv2-card-zoom-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: min(92vw, 520px);
}

.cv2-card-zoom-image {
  display: block;
  width: min(92vw, 430px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.56);
}

.cv2-card-zoom-generated {
  width: min(92vw, 430px);
}

.cv2-card-zoom-generated .art-player-card {
  width: 100%;
}

.cv2-card-zoom-close {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #991b1b;
  color: #fff;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.cv2-card-zoom-caption {
  margin: 0;
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.58);
}

.art-player-card {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: visible;
  isolation: isolate;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: transparent;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.art-card-face {
  position: relative;
  display: grid;
  grid-template-rows: 32px minmax(54px, 1fr) auto auto auto;
  gap: 3px;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  isolation: isolate;
  padding: 6px;
  border: 3px solid #0b1220;
  border-radius: 12px;
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 24px rgba(5, 8, 12, 0.34);
}

.art-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #26282a 0 38%, #e03a3e 38% 67%, #c1d32f 67% 100%);
}

.art-player-card.era-90s-hawks-card .art-card-face::before {
  background: linear-gradient(135deg, #26282a 0 38%, #e03a3e 38% 67%, #c1d32f 67% 100%);
}

.art-player-card.era-90s-celtics-card .art-card-face::before {
  background: linear-gradient(135deg, #6b7280 0 38%, #008348 38% 66%, #f8fafc 66% 100%);
}

.art-player-card.era-90s-bulls-card .art-card-face::before {
  background: linear-gradient(135deg, #050608 0 38%, #ce1141 38% 67%, #111827 67% 100%);
}

.art-player-card.era-90s-cavaliers-card .art-card-face::before {
  background: linear-gradient(135deg, #78bde8 0 38%, #f15a24 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-cavaliers-modern-card .art-card-face::before {
  background: linear-gradient(135deg, #041e42 0 38%, #6f263d 38% 67%, #ffb81c 67% 100%);
}

.art-player-card.era-90s-hornets-card .art-card-face::before {
  background: linear-gradient(135deg, #1d1160 0 38%, #00788c 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-bobcats-card .art-card-face::before {
  background: linear-gradient(135deg, #002b5c 0 38%, #f36f21 38% 67%, #8a8d8f 67% 100%);
}

.art-player-card.era-nets-brooklyn-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #f8fafc 38% 67%, #8a8d8f 67% 100%);
}

.art-player-card.era-pelicans-card .art-card-face::before {
  background: linear-gradient(135deg, #0c2340 0 38%, #c8102e 38% 67%, #85714d 67% 100%);
}

.art-player-card.era-thunder-card .art-card-face::before {
  background: linear-gradient(135deg, #007ac1 0 38%, #ef3b24 38% 67%, #fdbb30 67% 100%);
}

.art-player-card.era-80s-celtics-card .art-card-face::before {
  background: linear-gradient(135deg, #f8fafc 0 38%, #008348 38% 67%, #6b7280 67% 100%);
}

.art-player-card.era-90s-mavericks-card .art-card-face::before {
  background: linear-gradient(135deg, #00538c 0 38%, #007a33 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-nuggets-card .art-card-face::before {
  background: linear-gradient(135deg, #00285e 0 38%, #fec524 38% 67%, #8b2131 67% 100%);
}

.art-player-card.era-90s-pistons-card .art-card-face::before {
  background: linear-gradient(135deg, #c8102e 0 38%, #1d42ba 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-90s-warriors-card .art-card-face::before {
  background: linear-gradient(135deg, #1d428a 0 38%, #ffc72c 38% 67%, #f15a24 67% 100%);
}

.art-player-card.era-90s-rockets-card .art-card-face::before {
  background: linear-gradient(135deg, #ce1141 0 38%, #041e42 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-pacers-card .art-card-face::before {
  background: linear-gradient(135deg, #002d62 0 38%, #fdbb30 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-90s-clippers-card .art-card-face::before {
  background: linear-gradient(135deg, #1d428a 0 38%, #c8102e 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-90s-lakers-card .art-card-face::before {
  background: linear-gradient(135deg, #552583 0 38%, #fdb927 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-90s-heat-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #98002e 38% 67%, #f9a01b 67% 100%);
}

.art-player-card.era-90s-bucks-card .art-card-face::before {
  background: linear-gradient(135deg, #00471b 0 38%, #702f8a 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-timberwolves-card .art-card-face::before {
  background: linear-gradient(135deg, #0c2340 0 38%, #236192 38% 67%, #78be20 67% 100%);
}

.art-player-card.era-90s-nets-card .art-card-face::before {
  background: linear-gradient(135deg, #002a60 0 38%, #c8102e 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-knicks-card .art-card-face::before {
  background: linear-gradient(135deg, #006bb6 0 38%, #f58426 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-90s-magic-card .art-card-face::before {
  background: linear-gradient(135deg, #0077c0 0 38%, #111827 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-sixers-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #ed174c 38% 67%, #006bb6 67% 100%);
}

.art-player-card.era-90s-suns-card .art-card-face::before {
  background: linear-gradient(135deg, #1d1160 0 38%, #e56020 38% 67%, #111827 67% 100%);
}

.art-player-card.era-90s-blazers-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #e03a3e 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-kings-card .art-card-face::before {
  background: linear-gradient(135deg, #5a2d81 0 38%, #111827 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-spurs-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #8a8d8f 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-90s-sonics-card .art-card-face::before {
  background: linear-gradient(135deg, #00653a 0 38%, #ffc72c 38% 67%, #e03a3e 67% 100%);
}

.art-player-card.era-90s-raptors-card .art-card-face::before {
  background: linear-gradient(135deg, #753bbd 0 38%, #ce1141 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-90s-jazz-card .art-card-face::before {
  background: linear-gradient(135deg, #00a9ce 0 38%, #2b0a3d 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-90s-grizzlies-card .art-card-face::before {
  background: linear-gradient(135deg, #00a9ce 0 38%, #e03a3e 38% 67%, #111827 67% 100%);
}

.art-player-card.era-memphis-grizzlies-card .art-card-face::before {
  background: linear-gradient(135deg, #5d76a9 0 38%, #12173f 38% 67%, #f5b112 67% 100%);
}

.art-player-card.era-90s-wizards-card .art-card-face::before {
  background: linear-gradient(135deg, #002b5c 0 38%, #e31837 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-wnba-dream-card .art-card-face::before {
  background: linear-gradient(135deg, #0c2340 0 38%, #e03a3e 38% 67%, #8bd3f7 67% 100%);
}

.art-player-card.era-wnba-sky-card .art-card-face::before {
  background: linear-gradient(135deg, #418fde 0 38%, #ffd100 38% 67%, #0b1f3a 67% 100%);
}

.art-player-card.era-wnba-sun-card .art-card-face::before {
  background: linear-gradient(135deg, #041e42 0 38%, #f37021 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-wnba-wings-card .art-card-face::before {
  background: linear-gradient(135deg, #0b1f3a 0 38%, #00a3e0 38% 67%, #c4d600 67% 100%);
}

.art-player-card.era-wnba-valkyries-card .art-card-face::before {
  background: linear-gradient(135deg, #2e1a47 0 38%, #111827 38% 67%, #c4a046 67% 100%);
}

.art-player-card.era-wnba-fever-card .art-card-face::before {
  background: linear-gradient(135deg, #002d62 0 38%, #e03a3e 38% 67%, #ffc72c 67% 100%);
}

.art-player-card.era-wnba-sparks-card .art-card-face::before {
  background: linear-gradient(135deg, #552583 0 38%, #fdb927 38% 67%, #00a3ad 67% 100%);
}

.art-player-card.era-wnba-aces-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #ba0c2f 38% 67%, #b4975a 67% 100%);
}

.art-player-card.era-wnba-lynx-card .art-card-face::before {
  background: linear-gradient(135deg, #0c2340 0 38%, #78be20 38% 67%, #8a8d8f 67% 100%);
}

.art-player-card.era-wnba-liberty-card .art-card-face::before {
  background: linear-gradient(135deg, #00a88e 0 38%, #111827 38% 67%, #ff671f 67% 100%);
}

.art-player-card.era-wnba-fire-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #c8102e 38% 67%, #ff7f32 67% 100%);
}

.art-player-card.era-wnba-mercury-card .art-card-face::before {
  background: linear-gradient(135deg, #201747 0 38%, #e56020 38% 67%, #111827 67% 100%);
}

.art-player-card.era-wnba-storm-card .art-card-face::before {
  background: linear-gradient(135deg, #2c5234 0 38%, #fee123 38% 67%, #0c2340 67% 100%);
}

.art-player-card.era-wnba-tempo-card .art-card-face::before {
  background: linear-gradient(135deg, #1d4ed8 0 38%, #ef4444 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-wnba-mystics-card .art-card-face::before {
  background: linear-gradient(135deg, #002b5c 0 38%, #e31837 38% 67%, #c4ced4 67% 100%);
}

.art-player-card.era-wnba-default-card .art-card-face::before {
  background: linear-gradient(135deg, #172554 0 38%, #db2777 38% 67%, #f8fafc 67% 100%);
}

.art-player-card.era-ncaa-billikens-card .art-card-face::before {
  background: linear-gradient(135deg, #003da5 0 50%, #f8fafc 50% 100%);
}

.art-player-card.era-ncaa-hawkeyes-card .art-card-face::before {
  background: linear-gradient(135deg, #000000 0 50%, #ffcd00 50% 100%);
}

.art-player-card.era-ncaa-illini-card .art-card-face::before {
  background: linear-gradient(135deg, #ff5f05 0 50%, #13294b 50% 100%);
}

.art-player-card.era-ncaa-mizzou-card .art-card-face::before {
  background: linear-gradient(135deg, #000000 0 50%, #f1b82d 50% 100%);
}

.art-player-card.era-ncaa-zips-card .art-card-face::before {
  background: linear-gradient(135deg, #00285e 0 50%, #a89968 50% 100%);
}

.art-player-card.era-ncaa-redhawks-card .art-card-face::before {
  background: linear-gradient(135deg, #000000 0 50%, #c8102e 50% 100%);
}

.art-player-card.era-ncaa-default-card .art-card-face::before {
  background: linear-gradient(135deg, #111827 0 38%, #2563eb 38% 67%, #f8fafc 67% 100%);
}

.art-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.14) 49% 51%, transparent 52% 100%);
  opacity: 0.34;
  pointer-events: none;
}

.art-player-card.is-rare-card .art-card-face {
  border-color: #c89416;
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(242, 201, 76, 0.78), 0 12px 26px rgba(137, 98, 18, 0.34);
}

.court-player-slot .art-player-card.is-rare-card .art-card-face {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(242, 201, 76, 0.78), 0 12px 26px rgba(137, 98, 18, 0.42);
}

.art-player-card.is-rolled:not(.is-display-card) .art-card-face {
  border-color: rgba(148, 163, 184, 0.82);
  background: #111827;
  filter: saturate(0.62) brightness(0.78);
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.34), 0 8px 16px rgba(5, 8, 12, 0.28);
}

.art-player-card.state-hot-1 {
  box-shadow: 0 12px 24px rgba(5, 8, 12, 0.34), 0 0 0 2px rgba(251, 146, 60, 0.32);
}

.art-player-card.state-hot-2 {
  box-shadow: 0 12px 24px rgba(5, 8, 12, 0.34), 0 0 18px rgba(248, 113, 22, 0.7);
}

.art-player-card.state-hot-3 {
  box-shadow: 0 12px 24px rgba(5, 8, 12, 0.34), 0 0 26px rgba(239, 68, 68, 0.76);
}

.art-player-card.state-hot-4 {
  box-shadow: 0 12px 24px rgba(5, 8, 12, 0.34), 0 0 34px rgba(248, 113, 22, 0.92), 0 0 64px rgba(220, 38, 38, 0.42);
}

.art-player-card.state-cold-1 {
  box-shadow: 0 12px 24px rgba(5, 8, 12, 0.34), 0 0 20px rgba(96, 165, 250, 0.7);
}

.art-player-card.state-cold-2 {
  box-shadow: 0 12px 24px rgba(5, 8, 12, 0.34), 0 0 28px rgba(56, 189, 248, 0.82), 0 0 58px rgba(147, 197, 253, 0.4);
}

.art-top-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4px;
  align-items: center;
}

.art-rating-box {
  min-height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  background: rgba(8, 13, 24, 0.88);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.art-rating-box span {
  color: #dbeafe;
  font-size: 0.46rem;
  font-weight: 950;
  text-transform: uppercase;
}

.art-rating-box strong {
  color: #fff;
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 950;
}

.art-position-badge {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #111827;
  border-radius: 50%;
  color: #111827;
  background: #f8fafc;
  font-size: 0.58rem;
  font-weight: 950;
}

.era-90s-warriors-card { --art-haze-a: rgba(29, 66, 138, 0.34); --art-haze-b: rgba(255, 199, 44, 0.2); }
.era-90s-rockets-card { --art-haze-a: rgba(206, 17, 65, 0.34); --art-haze-b: rgba(196, 206, 212, 0.18); }
.era-90s-pacers-card { --art-haze-a: rgba(0, 45, 98, 0.34); --art-haze-b: rgba(253, 187, 48, 0.22); }
.era-90s-clippers-card { --art-haze-a: rgba(29, 66, 138, 0.32); --art-haze-b: rgba(200, 16, 46, 0.24); }
.era-90s-lakers-card { --art-haze-a: rgba(85, 37, 130, 0.32); --art-haze-b: rgba(253, 185, 39, 0.22); }
.era-90s-heat-card { --art-haze-a: rgba(152, 0, 46, 0.34); --art-haze-b: rgba(249, 160, 27, 0.22); }
.era-90s-bucks-card { --art-haze-a: rgba(0, 71, 27, 0.34); --art-haze-b: rgba(112, 47, 138, 0.24); }
.era-90s-timberwolves-card { --art-haze-a: rgba(35, 97, 146, 0.34); --art-haze-b: rgba(120, 190, 32, 0.22); }
.era-90s-nets-card { --art-haze-a: rgba(0, 42, 96, 0.34); --art-haze-b: rgba(200, 16, 46, 0.22); }
.era-90s-knicks-card { --art-haze-a: rgba(0, 107, 182, 0.34); --art-haze-b: rgba(245, 132, 38, 0.24); }
.era-90s-magic-card { --art-haze-a: rgba(0, 119, 192, 0.34); --art-haze-b: rgba(196, 206, 212, 0.18); }
.era-90s-sixers-card { --art-haze-a: rgba(237, 23, 76, 0.34); --art-haze-b: rgba(0, 107, 182, 0.24); }
.era-90s-suns-card { --art-haze-a: rgba(29, 17, 96, 0.34); --art-haze-b: rgba(229, 96, 32, 0.24); }
.era-90s-blazers-card { --art-haze-a: rgba(224, 58, 62, 0.34); --art-haze-b: rgba(196, 206, 212, 0.18); }
.era-90s-kings-card { --art-haze-a: rgba(90, 45, 129, 0.34); --art-haze-b: rgba(196, 206, 212, 0.2); }
.era-90s-spurs-card { --art-haze-a: rgba(138, 141, 143, 0.28); --art-haze-b: rgba(248, 250, 252, 0.18); }
.era-90s-sonics-card { --art-haze-a: rgba(0, 101, 58, 0.34); --art-haze-b: rgba(255, 199, 44, 0.22); }
.era-90s-raptors-card { --art-haze-a: rgba(117, 59, 189, 0.34); --art-haze-b: rgba(206, 17, 65, 0.24); }
.era-90s-jazz-card { --art-haze-a: rgba(0, 169, 206, 0.34); --art-haze-b: rgba(43, 10, 61, 0.28); }
.era-90s-grizzlies-card { --art-haze-a: rgba(0, 169, 206, 0.34); --art-haze-b: rgba(224, 58, 62, 0.22); }
.era-memphis-grizzlies-card { --art-haze-a: rgba(93, 118, 169, 0.36); --art-haze-b: rgba(245, 177, 18, 0.2); }
.era-90s-wizards-card { --art-haze-a: rgba(0, 43, 92, 0.34); --art-haze-b: rgba(227, 24, 55, 0.22); }
.era-cavaliers-modern-card { --art-haze-a: rgba(111, 38, 61, 0.34); --art-haze-b: rgba(255, 184, 28, 0.22); }
.era-bobcats-card { --art-haze-a: rgba(0, 43, 92, 0.34); --art-haze-b: rgba(243, 111, 33, 0.24); }
.era-nets-brooklyn-card { --art-haze-a: rgba(248, 250, 252, 0.18); --art-haze-b: rgba(138, 141, 143, 0.22); }
.era-pelicans-card { --art-haze-a: rgba(12, 35, 64, 0.34); --art-haze-b: rgba(200, 16, 46, 0.24); }
.era-thunder-card { --art-haze-a: rgba(0, 122, 193, 0.34); --art-haze-b: rgba(239, 59, 36, 0.24); }
.era-80s-celtics-card { --art-haze-a: rgba(0, 131, 72, 0.32); --art-haze-b: rgba(248, 250, 252, 0.18); }
.era-ncaa-billikens-card { --art-haze-a: rgba(0, 61, 165, 0.36); --art-haze-b: rgba(248, 250, 252, 0.22); }
.era-ncaa-hawkeyes-card { --art-haze-a: rgba(0, 0, 0, 0.34); --art-haze-b: rgba(255, 205, 0, 0.26); }
.era-ncaa-illini-card { --art-haze-a: rgba(255, 95, 5, 0.28); --art-haze-b: rgba(19, 41, 75, 0.36); }
.era-ncaa-mizzou-card { --art-haze-a: rgba(0, 0, 0, 0.34); --art-haze-b: rgba(241, 184, 45, 0.28); }
.era-ncaa-zips-card { --art-haze-a: rgba(0, 40, 94, 0.36); --art-haze-b: rgba(168, 153, 104, 0.26); }
.era-ncaa-redhawks-card { --art-haze-a: rgba(0, 0, 0, 0.34); --art-haze-b: rgba(200, 16, 46, 0.3); }
.era-ncaa-default-card { --art-haze-a: rgba(37, 99, 235, 0.34); --art-haze-b: rgba(248, 250, 252, 0.18); }

.art-portrait {
  position: relative;
  overflow: hidden;
  height: 82px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 9px;
  background: rgba(7, 12, 20, 0.52);
}

.art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, var(--art-haze-a, rgba(224, 58, 62, 0.3)) 0 12%, transparent 32%),
    radial-gradient(circle at 82% 78%, var(--art-haze-b, rgba(193, 211, 47, 0.16)) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.18));
  mix-blend-mode: screen;
}

.era-90s-celtics-card .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, rgba(0, 131, 72, 0.32) 0 13%, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(248, 250, 252, 0.18) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.18));
  mix-blend-mode: screen;
}

.era-90s-bulls-card .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, rgba(206, 17, 65, 0.38) 0 13%, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(17, 24, 39, 0.28) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.24));
  mix-blend-mode: screen;
}

.era-90s-cavaliers-card .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, rgba(120, 189, 232, 0.36) 0 13%, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(241, 90, 36, 0.24) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.04), rgba(15, 23, 42, 0.18));
  mix-blend-mode: screen;
}

.era-90s-hornets-card .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, rgba(0, 120, 140, 0.34) 0 13%, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(29, 17, 96, 0.24) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.18));
  mix-blend-mode: screen;
}

.era-90s-mavericks-card .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, rgba(0, 83, 140, 0.36) 0 13%, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(0, 122, 51, 0.22) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(196, 206, 212, 0.05), rgba(15, 23, 42, 0.18));
  mix-blend-mode: screen;
}

.era-90s-nuggets-card .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, rgba(254, 197, 36, 0.28) 0 13%, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(139, 33, 49, 0.24) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(0, 40, 94, 0.04), rgba(0, 40, 94, 0.18));
  mix-blend-mode: screen;
}

.era-90s-pistons-card .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 82%, rgba(200, 16, 46, 0.34) 0 13%, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(29, 66, 186, 0.26) 0 12%, transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.04), rgba(15, 23, 42, 0.18));
  mix-blend-mode: screen;
}

.art-portrait::before,
.art-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.art-portrait .card-profile-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #1f2d3d, #0f1720);
}

.art-portrait .card-profile-image img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.era-ncaa-billikens-card .art-portrait .card-profile-image img,
.era-ncaa-hawkeyes-card .art-portrait .card-profile-image img,
.era-ncaa-illini-card .art-portrait .card-profile-image img,
.era-ncaa-mizzou-card .art-portrait .card-profile-image img,
.era-ncaa-zips-card .art-portrait .card-profile-image img,
.era-ncaa-redhawks-card .art-portrait .card-profile-image img,
.era-ncaa-default-card .art-portrait .card-profile-image img {
  object-fit: contain;
  object-position: center bottom;
}

.era-ncaa-billikens-card .art-portrait .card-profile-image.has-profile-image,
.era-ncaa-hawkeyes-card .art-portrait .card-profile-image.has-profile-image,
.era-ncaa-illini-card .art-portrait .card-profile-image.has-profile-image,
.era-ncaa-mizzou-card .art-portrait .card-profile-image.has-profile-image,
.era-ncaa-zips-card .art-portrait .card-profile-image.has-profile-image,
.era-ncaa-redhawks-card .art-portrait .card-profile-image.has-profile-image,
.era-ncaa-default-card .art-portrait .card-profile-image.has-profile-image {
  background:
    radial-gradient(circle at 22% 82%, var(--art-haze-a, rgba(37, 99, 235, 0.32)) 0 12%, transparent 34%),
    radial-gradient(circle at 82% 78%, var(--art-haze-b, rgba(248, 250, 252, 0.18)) 0 12%, transparent 34%),
    linear-gradient(145deg, #1f2d3d, #0f1720);
}

.era-ncaa-billikens-card .art-portrait .card-profile-image.has-profile-image img,
.era-ncaa-hawkeyes-card .art-portrait .card-profile-image.has-profile-image img,
.era-ncaa-illini-card .art-portrait .card-profile-image.has-profile-image img,
.era-ncaa-mizzou-card .art-portrait .card-profile-image.has-profile-image img,
.era-ncaa-zips-card .art-portrait .card-profile-image.has-profile-image img,
.era-ncaa-redhawks-card .art-portrait .card-profile-image.has-profile-image img,
.era-ncaa-default-card .art-portrait .card-profile-image.has-profile-image img {
  mix-blend-mode: normal;
  filter: saturate(1.05) contrast(1.03);
}

.art-player-card.state-hot-1 .art-portrait,
.art-player-card.state-hot-2 .art-portrait,
.art-player-card.state-hot-3 .art-portrait,
.art-player-card.state-hot-4 .art-portrait {
  border-color: rgba(254, 215, 170, 0.98);
  box-shadow: 0 0 18px rgba(248, 113, 22, 0.62);
}

.art-player-card.state-hot-1 .art-portrait::before,
.art-player-card.state-hot-2 .art-portrait::before,
.art-player-card.state-hot-3 .art-portrait::before,
.art-player-card.state-hot-4 .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 20% 86%, rgba(251, 146, 60, 0.42) 0 15%, transparent 38%),
    radial-gradient(circle at 78% 78%, rgba(220, 38, 38, 0.34) 0 13%, transparent 36%),
    linear-gradient(180deg, rgba(127, 29, 29, 0.12), rgba(251, 146, 60, 0.14) 58%, rgba(127, 29, 29, 0.2));
  mix-blend-mode: screen;
}

.art-player-card.state-hot-1 .art-portrait::after,
.art-player-card.state-hot-2 .art-portrait::after,
.art-player-card.state-hot-3 .art-portrait::after,
.art-player-card.state-hot-4 .art-portrait::after {
  opacity: 0.92;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 237, 213, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 68%, rgba(253, 186, 116, 0.96) 0 2px, transparent 3px),
    radial-gradient(circle at 56% 34%, rgba(248, 113, 22, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 74%, rgba(254, 215, 170, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 42%, rgba(239, 68, 68, 0.82) 0 2px, transparent 3px);
  background-size: 70px 66px;
  animation: art-ember-rise 2.35s linear infinite;
}

.art-player-card.state-hot-2 .art-portrait::after {
  opacity: 1;
  background-size: 62px 58px;
  animation-duration: 2.05s;
}

.art-player-card.state-hot-3 .art-portrait::after {
  opacity: 1;
  background-size: 54px 50px;
  animation-duration: 1.8s;
}

.art-player-card.state-hot-4 .art-portrait::after {
  opacity: 1;
  background-size: 46px 42px;
  animation-duration: 1.55s;
}

.art-player-card.state-cold-1 .art-portrait,
.art-player-card.state-cold-2 .art-portrait {
  border-color: rgba(191, 219, 254, 0.98);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.68);
}

.art-player-card.state-cold-1 .art-portrait::before,
.art-player-card.state-cold-2 .art-portrait::before {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 246, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 72%, rgba(224, 242, 254, 0.82) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 28%, rgba(191, 219, 254, 0.86) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 62%, rgba(219, 234, 254, 0.92) 0 2px, transparent 3px);
  background-size: 74px 78px;
  animation: art-snow-drift 4s linear infinite;
}

.art-player-card.state-cold-2 .art-portrait::after {
  opacity: 1;
  background:
    radial-gradient(circle at 14% 12%, rgba(224, 242, 254, 0.34), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(147, 197, 253, 0.26), transparent 25%),
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(191, 219, 254, 0.2) 74%, rgba(96, 165, 250, 0.32));
  mix-blend-mode: screen;
}

.art-player-card.state-cold-1 .art-portrait img,
.art-player-card.state-cold-2 .art-portrait img {
  filter: saturate(0.82) contrast(1.06) hue-rotate(8deg);
}

.art-state-badge {
  position: absolute;
  right: 10px;
  top: 64px;
  z-index: 4;
  min-width: 48px;
  padding: 5px 7px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff7ed;
  background: rgba(185, 28, 28, 0.92);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
  font-size: 0.62rem;
  font-weight: 950;
  text-align: center;
}

.state-cold-1 .art-state-badge,
.state-cold-2 .art-state-badge {
  color: #eff6ff;
  background: rgba(29, 78, 216, 0.92);
}

.art-nameplate {
  display: grid;
  gap: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.art-nameplate h3 {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  text-transform: uppercase;
}

.art-nameplate span {
  color: #f8fafc;
  font-size: 0.52rem;
  font-weight: 900;
}

.art-chart-frame {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(5, 11, 20, 0.92);
}

.art-player-card .roll-chart {
  border-radius: 0;
}

.art-player-card .chart-header,
.art-player-card .chart-row {
  grid-template-columns: minmax(38px, 1.25fr) repeat(3, minmax(18px, 0.7fr));
  min-height: 19px;
}

.art-player-card .chart-header strong,
.art-player-card .chart-row strong,
.art-player-card .chart-row span {
  font-size: 0.58rem;
}

.art-player-card .chart-row span:nth-child(2) {
  color: #74b9ff;
}

.art-player-card .chart-row span:nth-child(3) {
  color: #ffdf6e;
}

.art-player-card .chart-row span:nth-child(4) {
  color: #92e6a7;
}

.art-player-card .chart-row.is-current span,
.art-player-card .chart-row.is-current-projected span,
.art-player-card .chart-row.is-quarter-landed span {
  color: #ffd48a;
}

.art-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 7px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.92);
}

.art-tools > span,
.art-tools .roll-button {
  min-height: 26px;
  padding: 3px 6px;
  font-size: 0.66rem;
}

.art-tools .roll-button {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  outline: 2px solid rgba(248, 250, 252, 0.24);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.22), 0 8px 18px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
}

.art-card-footer {
  display: grid;
  gap: 3px;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  font-size: 0.56rem;
  font-weight: 950;
}

.art-card-value-row,
.art-card-meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.art-card-value-row {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(5, 11, 20, 0.76);
}

.art-card-footer .art-card-identity {
  min-width: 0;
  overflow: hidden;
  color: #7f1d1d;
  text-shadow: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-card-footer strong {
  justify-self: start;
  color: #fff;
  text-shadow: none;
}

.art-card-footer .art-three-point {
  justify-self: end;
  color: #fff;
  text-shadow: none;
  white-space: nowrap;
}

.art-card-footer .rarity-mark {
  display: grid;
  place-items: center;
  justify-self: end;
  align-self: center;
  width: 14px;
  min-width: 14px;
  min-height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.92);
}

.art-card-footer .common-mark::before {
  width: 6px;
  height: 6px;
  background: #0f172a;
}

/* Full-template fallback for cards that do not have finished full-card art yet. */
.art-player-card .art-card-face {
  display: block;
  container-type: inline-size;
  padding: 0;
  border-width: 4px;
  border-radius: 13px;
  background: #d8dde4;
  box-shadow:
    inset 0 0 0 2px #eef3f7,
    inset 0 0 0 5px rgba(15, 23, 42, 0.88),
    inset 0 0 0 8px rgba(255, 255, 255, 0.74),
    0 12px 24px rgba(5, 8, 12, 0.34);
}

.art-player-card .art-card-face::before {
  z-index: 0;
  opacity: 0.95;
  background:
    radial-gradient(ellipse at 56% 26%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.62), rgba(226, 232, 240, 0.38) 54%, rgba(17, 24, 39, 0.48) 77%, rgba(5, 11, 20, 0.78)),
    linear-gradient(135deg, #d8d1ea 0 58%, #2b1856 58% 100%);
}

.art-player-card .art-card-face::after {
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0 60%, rgba(5, 11, 20, 0.2) 72%, rgba(5, 11, 20, 0.88) 84%, transparent 84%),
    linear-gradient(135deg, transparent 0 64%, rgba(255, 255, 255, 0.72) 64.2% 65.2%, transparent 65.4% 100%);
  opacity: 1;
}

.art-nba-logo {
  position: absolute;
  top: 2.4%;
  left: 3.8%;
  z-index: 5;
  width: 7.6%;
  height: 12.8%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.art-rating {
  position: absolute;
  z-index: 5;
  top: 3%;
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 11%;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    -1px -1px 0 rgba(15, 23, 42, 0.75),
    1px 1px 0 rgba(15, 23, 42, 0.75),
    0 2px 2px rgba(0, 0, 0, 0.42);
}

.art-speed-rating {
  left: 14.5%;
}

.art-power-rating {
  right: 5.5%;
}

.art-rating strong {
  color: #dbeafe;
  font-size: 9cqw;
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: 0;
}

.art-power-rating strong {
  color: #ef233c;
}

.art-rating span {
  color: #f8fafc;
  font-size: 2cqw;
  line-height: 1;
  font-weight: 950;
}

.art-profile-stage {
  position: absolute;
  inset: 13% 9% 30.5% 9%;
  z-index: 2;
  display: grid;
  place-items: end center;
  overflow: visible;
}

.art-profile-stage .card-profile-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.art-profile-stage .card-profile-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.28));
}

.art-profile-stage .card-profile-image .silhouette-icon {
  width: 84%;
  height: 96%;
  opacity: 0.94;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
}

.art-team-mark {
  position: absolute;
  left: 7%;
  bottom: 24.5%;
  z-index: 4;
  max-width: 21%;
  min-width: 12%;
  padding: 1.4% 1.8%;
  border-radius: 6px;
  color: #f8fafc;
  background: rgba(17, 24, 39, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.48);
  font-size: 2.8cqw;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
}

.art-nameplate {
  position: absolute;
  left: 7%;
  right: 42%;
  bottom: 13%;
  z-index: 5;
}

.art-nameplate h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(0.68rem, 7.8cqw, 1.86rem);
  line-height: 0.86;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    2px 2px 0 rgba(15, 23, 42, 0.86),
    0 4px 8px rgba(0, 0, 0, 0.5);
}

.art-chart-cluster {
  position: absolute;
  right: 2.2%;
  bottom: 5.5%;
  z-index: 6;
  width: 42.5%;
}

.art-position-tab {
  height: 6.6cqw;
  display: grid;
  place-items: center;
  padding: 0 2.2cqw;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  color: #fff;
  background: rgba(38, 22, 88, 0.96);
  font-size: 4.4cqw;
  line-height: 1;
  font-weight: 950;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.62);
}

.art-chart-frame {
  border-width: 1px;
  border-radius: 0;
  background: rgba(5, 11, 20, 0.92);
}

.art-player-card .chart-header,
.art-player-card .chart-row {
  grid-template-columns: minmax(11cqw, 1.35fr) repeat(3, minmax(5.2cqw, 0.74fr));
  min-height: 6.2cqw;
}

.art-player-card .chart-header strong,
.art-player-card .chart-row strong,
.art-player-card .chart-row span {
  font-size: 3.35cqw;
  line-height: 1;
}

.art-player-card .chart-header strong {
  font-size: 2.45cqw;
}

.art-player-card .art-card-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 5.8cqw;
  padding: 0.7cqw 1.6cqw 0.7cqw 6cqw;
  border: 0;
  border-radius: 0;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  color: #111827;
  background: #f4a51c;
  text-shadow: none;
}

/* WNBA cards use the NBA-style salary tab: flush at the chart, angled inward below. */
.art-player-card[class*="era-wnba-"] .art-card-value-row {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
}

.art-card-value-row strong,
.art-card-value-row .art-three-point {
  color: #111827;
  font-size: 2.35cqw;
  font-style: italic;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}

.art-card-value-row .art-three-point {
  font-size: 2.1cqw;
  font-weight: 950;
}

.art-card-footer {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 1.6%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  min-height: 4.8cqw;
  color: #111827;
  text-shadow: none;
}

.art-card-footer .rarity-mark {
  display: grid;
  place-items: center;
  width: 3.2cqw;
  min-width: 3.2cqw;
  min-height: 3.2cqw;
  border: 1px solid rgba(15, 23, 42, 0.52);
  border-radius: 50%;
  color: #d4a017;
  background: rgba(248, 250, 252, 0.72);
  font-size: 2.6cqw;
  line-height: 1;
}

.art-card-footer .common-mark::before {
  width: 1.35cqw;
  height: 1.35cqw;
  background: rgba(15, 23, 42, 0.72);
}

.art-card-footer .art-card-identity {
  color: #111827;
  font-size: 2.4cqw;
  font-weight: 950;
  text-shadow: none;
}

.art-state-badge {
  top: 50%;
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

.art-player-card.state-hot-1 .art-profile-stage,
.art-player-card.state-hot-2 .art-profile-stage,
.art-player-card.state-hot-3 .art-profile-stage,
.art-player-card.state-hot-4 .art-profile-stage {
  filter: drop-shadow(0 0 18px rgba(248, 113, 22, 0.54));
}

.art-player-card.state-cold-1 .art-profile-stage,
.art-player-card.state-cold-2 .art-profile-stage {
  filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.58));
}

.art-player-card .cv2-card-marker-badge {
  position: absolute;
  top: 49%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.art-player-card .cv2-chart-zoom-button {
  position: absolute;
  right: 3.8%;
  bottom: 4.8%;
  z-index: 8;
}

.art-player-card .cv2-rare-glimmer {
  z-index: 3;
}

@keyframes art-ember-rise {
  from { background-position: 0 80px; }
  to { background-position: 0 -80px; }
}

@keyframes art-snow-drift {
  from { background-position: 0 -70px; }
  to { background-position: 24px 70px; }
}

.player-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
}

.card-top-layout {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
}

.card-profile-image {
  width: 46px;
  min-height: 52px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  background: linear-gradient(145deg, #1f2d3d, #0f1720);
  color: #f8fbff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.card-profile-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.card-profile-image.has-profile-image span {
  display: none;
}

.card-profile-image.image-load-failed img {
  display: none;
}

.card-profile-image.image-load-failed span,
.card-profile-image.is-silhouette span {
  display: grid;
  place-items: center;
}

.card-profile-image .silhouette-icon {
  position: relative;
  width: 92%;
  height: 96%;
  align-self: end;
  opacity: 0.95;
  background: url("assets/silhouettes/broken-headshot.png?v=2") center bottom / contain no-repeat !important;
}

.card-profile-image .silhouette-icon::before {
  content: none;
}

.card-profile-image .silhouette-icon::after {
  content: none;
}

.card-profile-image.image-load-failed .silhouette-icon {
  width: 92%;
  height: 96%;
}

.team-viewer-card .card-profile-image,
.collection-catalog-card .card-profile-image {
  width: 52px;
  min-height: 62px;
}

.display-card .card-profile-image {
  width: 58px;
  height: 58px;
  min-height: 58px;
  border-radius: 50%;
}

.card-rating-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.card-rating-top span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  color: #17202b;
  background: #eef5fb;
  font-size: 0.9rem;
  font-weight: 950;
}

.card-rating-top .speed-rating {
  color: #fff;
  background: linear-gradient(180deg, #4ea8dd, #176ca8);
  border-color: #0d4c7f;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

.card-rating-top .power-rating {
  color: #fff;
  background: linear-gradient(180deg, #cf3542, #8f1722);
  border-color: #641018;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

.card-player-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.card-player-title h3 {
  margin: 0;
  line-height: 1.05;
}

.player-head p,
.source-note,
.last-roll {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.sub-select {
  min-height: 38px;
}

.rating-row,
.stat-row {
  flex-wrap: wrap;
}

.marker-row {
  gap: 6px;
}

.marker-chip.hot-chip {
  color: #fff;
  background: #b6282f;
  border-color: #7f1d23;
}

.marker-chip.cold-chip {
  color: #fff;
  background: #13559f;
  border-color: #0b3970;
}

.roll-chart {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #4d5562;
  border-radius: 6px;
  background: #101214;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.chart-header,
.chart-row {
  display: grid;
  grid-template-columns: minmax(44px, 1.35fr) repeat(3, minmax(24px, 0.7fr));
  align-items: center;
  min-height: 28px;
}

.chart-header {
  color: #f4f6f9;
  background: #2d333b;
}

.chart-row {
  color: #f8fafc;
  background: #111315;
  text-align: center;
}

.chart-row.is-current,
.chart-row.is-current-projected {
  background: #3b2411;
}

.chart-row.is-quarter-landed {
  background: #263247;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.chart-row.is-projected {
  background: #173c2f;
}

.chart-row.is-current strong,
.chart-row.is-current span,
.chart-row.is-current-projected strong,
.chart-row.is-current-projected span {
  color: #ffd48a;
}

.chart-row.is-quarter-landed strong,
.chart-row.is-quarter-landed span {
  color: #f8fafc;
}

.chart-row.is-projected strong,
.chart-row.is-projected span {
  color: #9ff0c7;
}

.chart-header strong,
.chart-row strong {
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}

.chart-range-cell {
  position: relative;
}

.chart-row span {
  color: #eef2f7;
  font-size: 0.76rem;
  font-weight: 800;
}

.chart-header strong,
.chart-row strong,
.chart-row span {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid #c7ccd4;
  border-bottom: 1px solid #c7ccd4;
  padding: 2px 3px;
}

.chart-header strong:last-child,
.chart-row span:last-child {
  border-right: 0;
}

.chart-row:last-child strong,
.chart-row:last-child span {
  border-bottom: 0;
}

.roll-button {
  width: 100%;
  color: #fff;
  background: #243143;
}

.roll-controls {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.rating-choice-chip,
.card-footer-row > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 850;
}

.card-footer-row {
  display: block;
}

.card-footer-row > .card-id-bubble {
  width: 100%;
  min-height: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 5px;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  background: #fff;
  color: #344054;
  font-size: 0.66rem;
  font-weight: 900;
}

.card-footer-row > .card-id-bubble span:first-child {
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer-row > .card-id-bubble span:nth-child(2) {
  color: #9d1f2b;
  white-space: nowrap;
}

.rarity-mark {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  margin-top: 0;
}

.common-mark::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #243143;
  margin: auto;
}

.rare-mark {
  color: #8f6410;
  background: #fff3bf;
  border-color: #c89416;
}

.double-team-controls {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.roll-controls label,
.double-team-controls label {
  margin-bottom: 0;
}

.roll-controls select,
.double-team-controls select {
  min-height: 42px;
}

.setup-ok,
.setup-warning {
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.setup-ok {
  color: var(--green);
}

.setup-warning {
  color: var(--accent-dark);
}

.setup-issues {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e5b3b7;
  border-radius: 8px;
  background: #fff1f1;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.setup-issues ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.setup-issues li {
  margin: 2px 0;
}

.roll-button:hover {
  background: #111827;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  border-color: #232b34;
  background:
    linear-gradient(180deg, rgba(85, 103, 119, 0.18), rgba(16, 19, 22, 0.04)),
    #f7f9fc;
}

@media (max-width: 1280px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .side-panel > * {
    min-width: 0;
  }
}

.tracker-panel,
.game-log,
.pending-panel {
  display: grid;
  gap: 12px;
}

.pending-panel {
  padding: 12px;
  border: 1px solid #232b34;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(32, 39, 47, 0.96), rgba(16, 19, 22, 0.96));
  color: #fff;
}

.cpu-result-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #232b34;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(32, 39, 47, 0.96), rgba(16, 19, 22, 0.96));
}

.cpu-result-card h2,
.cpu-result-card p {
  margin: 0;
}

.roll-math-grid,
.cpu-result-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cpu-result-line {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roll-math-grid span,
.cpu-result-line strong,
.cpu-final-roll span,
.cpu-final-roll strong {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(159, 213, 239, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
}

.roll-math-grid .is-speed-math {
  color: #9ed8ff;
  background: rgba(31, 116, 184, 0.16);
}

.roll-math-grid .is-power-math {
  color: #ff9ca3;
  background: rgba(182, 40, 47, 0.16);
}

.roll-math-grid .is-hot-math {
  color: #ff9ca3;
  background: rgba(182, 40, 47, 0.16);
}

.roll-math-grid .is-cold-math {
  color: #9ed8ff;
  background: rgba(31, 116, 184, 0.16);
}

.roll-math-grid .is-assists-math {
  color: #f6d365;
  background: rgba(246, 211, 101, 0.1);
}

.cpu-final-roll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cpu-final-roll strong {
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), #ef7a23);
}

.muted-panel {
  color: #17202b;
  background: #fbfcff;
  border-color: var(--line);
}

.pending-panel p {
  margin-bottom: 0;
  color: #cbd5e1;
  font-weight: 750;
}

.pending-math {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pending-heading {
  display: grid;
  gap: 4px;
}

.pending-heading h2 {
  font-size: 1rem;
}

.pending-heading span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #222f3f;
  font-size: 0.78rem;
  font-weight: 950;
}

.pending-roll-center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.pending-roll-center span,
.pending-roll-center strong {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(159, 213, 239, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.pending-roll-center strong {
  width: 62px;
  min-height: 62px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), #ef7a23);
  clip-path: polygon(50% 0%, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  font-size: 1.25rem;
}

.assist-spend-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 8px;
  align-items: stretch;
}

.assist-bank-display,
.assist-stepper {
  min-height: 54px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(159, 213, 239, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.assist-bank-display {
  justify-items: center;
}

.assist-bank-display span {
  color: #aeb8c6;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.assist-bank-display strong {
  font-size: 1.4rem;
}

.assist-stepper {
  grid-template-columns: 36px 44px 36px;
  gap: 4px;
  padding: 6px;
}

.assist-stepper button {
  min-height: 34px;
  padding: 0;
}

.assist-stepper strong {
  text-align: center;
}

.assist-tier-note {
  min-height: 42px;
  display: grid;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(243, 180, 95, 0.42);
  border-radius: 6px;
  color: #ffe0ad;
  background: rgba(243, 180, 95, 0.1);
  font-size: 0.78rem;
  font-weight: 850;
}

.turn-result-hero {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid rgba(243, 180, 95, 0.72);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(26, 32, 39, 0.98), rgba(9, 13, 18, 0.98));
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.24);
}

.turn-result-roll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.turn-result-roll span {
  color: #f8d99f;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.turn-result-roll strong {
  width: 76px;
  min-height: 76px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), #ef7a23);
  clip-path: polygon(50% 0%, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  font-size: 1.75rem;
  font-weight: 1000;
}

.turn-result-hero.is-hot-result {
  border-color: rgba(221, 48, 61, 0.86);
}

.turn-result-hero.is-hot-result .turn-result-roll span {
  color: #ffd0d3;
}

.turn-result-hero.is-hot-result .turn-result-roll strong {
  background: linear-gradient(145deg, #8f111a, #e12f3f);
}

.turn-result-hero.is-cold-result {
  border-color: rgba(74, 151, 223, 0.88);
}

.turn-result-hero.is-cold-result .turn-result-roll span {
  color: #c7e6ff;
}

.turn-result-hero.is-cold-result .turn-result-roll strong {
  background: linear-gradient(145deg, #0d497f, #2e8bd8);
}

.turn-result-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.turn-result-stat-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 8px 6px;
  border: 1px solid rgba(159, 213, 239, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
}

.turn-result-stat-grid strong {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
}

.turn-result-stat-grid em {
  color: #aeb8c6;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.turn-result-stat-grid .is-assist-stat strong,
.turn-result-stat-grid .is-assist-stat em {
  color: #f6d365;
}

.turn-result-stat-grid .is-rebound-stat strong,
.turn-result-stat-grid .is-rebound-stat em {
  color: #70e6a1;
}

.pending-math span,
.pending-math strong,
.assist-preview {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 850;
}

.marker-preview.is-hot-preview {
  color: #fff;
  background: #b6282f;
  border-color: #7f1d23;
}

.marker-preview.is-cold-preview {
  color: #fff;
  background: #13559f;
  border-color: #0b3970;
}

.bench-heading {
  margin: 18px 0 8px;
  font-size: 0.95rem;
}

.substitution-prompt {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #232b34;
  border-radius: 8px;
  background: #f8fafc;
}

.substitution-prompt p {
  margin: 0;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 750;
}

.sub-team {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sub-slot {
  padding: 7px;
  border: 2px solid transparent;
  border-radius: 8px;
}

.sub-slot.is-hot-sub {
  border-color: #b6282f;
  background: #fff1f1;
}

.sub-slot.is-cold-sub {
  border-color: #13559f;
  background: #dcecff;
}

.sub-diff-note {
  display: block;
  margin-top: 5px;
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 900;
}

.is-empty-card {
  opacity: 0.65;
  border-style: dashed;
}

.side-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
}

.log-square-button {
  width: 54px;
  min-width: 54px;
  padding-inline: 0;
}

.log-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(9, 13, 18, 0.58);
}

.log-modal {
  width: min(760px, 100%);
  max-height: min(720px, 86vh);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(159, 213, 239, 0.35);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.save-tools-modal {
  overflow: auto;
  align-content: start;
}

.save-tools-modal .section-heading {
  position: sticky;
  top: -16px;
  z-index: 2;
  margin: -16px -16px 4px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.save-tools-modal .beta-tool-actions {
  align-items: stretch;
}

.save-tools-modal .beta-tool-actions button {
  min-height: 44px;
}

.log-modal .game-log ol {
  max-height: 560px;
}

.final-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background: rgba(8, 12, 18, 0.62);
}

.final-result-modal {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px;
  border: 2px solid rgba(159, 213, 239, 0.55);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(184, 95, 31, 0.95) 0 10px, transparent 10px 70px),
    linear-gradient(180deg, #202936, #101419);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), inset 0 0 0 4px rgba(255, 255, 255, 0.07);
  text-align: center;
  animation: finalModalPop 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.final-result-modal .eyebrow {
  color: var(--showdown-blue);
}

.final-result-modal h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.32);
}

.final-result-modal p {
  margin: 0;
  color: #d8e4ef;
  font-weight: 850;
}

.final-score-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(320px, 100%);
}

.final-score-line strong {
  padding: 10px 12px;
  border: 1px solid #4b1218;
  border-radius: 6px;
  color: #ff2637;
  background: #1a0507;
  font-family: "Courier New", monospace;
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 13px rgba(255, 38, 55, 0.68);
}

.final-score-line span {
  color: #9fd5ef;
  font-size: 1.4rem;
  font-weight: 950;
}

.final-actions {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.confetti-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti-field span {
  --hue: calc((var(--i) * 39) + 18);
  position: absolute;
  top: -24px;
  left: calc(var(--x) * 1%);
  width: 9px;
  height: 16px;
  border-radius: 2px;
  background: hsl(var(--hue), 88%, 58%);
  box-shadow: 0 0 12px hsla(var(--hue), 88%, 58%, 0.35);
  animation: confettiFall 2.8s cubic-bezier(0.2, 0.65, 0.35, 1) var(--d) forwards;
}

@keyframes finalModalPop {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translateY(-30px) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(105vh) rotate(760deg); }
}

.sub-team-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 850;
}

.sub-team-heading span {
  color: var(--accent-dark);
}

.sub-grid {
  display: grid;
  gap: 8px;
}

.sub-grid label {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.recap-screen {
  display: grid;
  gap: 18px;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.recap-team {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(25, 34, 47, 0.07);
}

.recap-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recap-totals span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2f7;
  color: #243143;
  font-size: 0.82rem;
  font-weight: 900;
}

.game-state-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(159, 213, 239, 0.28);
  border-radius: 8px;
  background: #0d141c;
  color: #fff;
}

.game-state-card span {
  color: #9fd5ef;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.game-state-card strong {
  font-size: 0.9rem;
}

.game-helper-text {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d6e2ef;
  border-radius: 7px;
  background: #f8fafc;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 850;
}

.recap-table th,
.recap-table td {
  font-size: 0.82rem;
}

.tracker-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.tracker-row span {
  color: #475467;
  font-size: 0.88rem;
  font-weight: 760;
}

.flow-actions {
  justify-content: stretch;
}

.flow-actions button {
  width: 100%;
}

.saved-roster-library {
  display: grid;
  gap: 8px;
}

.saved-roster-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.saved-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.saved-roster-row strong {
  font-size: 0.84rem;
}

.career-deck-slots {
  display: grid;
  gap: 10px;
}

.career-deck-slot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.career-deck-slot {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 10px;
  text-align: left;
}

.career-deck-slot strong {
  font-size: 0.92rem;
}

.career-deck-slot span {
  font-size: 0.74rem;
  color: var(--muted);
}

.career-deck-slot.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(194, 37, 45, 0.12);
}

.career-deck-slot.is-locked {
  color: #64748b;
  background: #e5e7eb;
  opacity: 0.72;
}

.career-deck-name-field {
  display: grid;
  gap: 5px;
  max-width: 360px;
}

.career-deck-name-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.career-deck-name-field input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.side-tool-row .log-square-button {
  width: 54px;
}

.game-log ol {
  max-height: 520px;
  margin: 0;
  padding-left: 20px;
  overflow: auto;
}

.game-log li {
  margin-bottom: 10px;
  color: #344054;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .game-layout,
  .board-grid,
  .setup-grid,
  .start-menu-grid,
  .season-config-grid,
  .career-goal-grid,
  .beta-info-grid,
  .career-solo-grid,
  .season-team-grid,
  .season-dashboard-grid,
  .deck-builder-grid,
  .catalog-grid,
  .catalog-filter-row,
  .draft-config-grid,
  .draft-duplicate-grid,
  .draft-checkbox-grid,
  .collect-hero,
  .pack-grid,
  .teams-layout,
  .team-viewer-filter-bar,
  .team-button-grid,
  .team-card-grid,
  .team-viewer-roster-layout,
  .division-summary,
  .recap-grid,
  .scoreboard {
    grid-template-columns: 1fr;
  }

  .notice-panel,
  .scoreboard,
  .rebound-track-panel,
  .start-row {
    grid-column: auto;
  }

  .start-row {
    justify-content: stretch;
  }

  .start-row button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 8px;
  }

  .log-modal-backdrop {
    align-items: stretch;
    justify-items: stretch;
    padding: 8px;
  }

  .log-modal.save-tools-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 12px;
    border-radius: 8px;
  }

  .save-tools-modal .section-heading {
    top: -12px;
    margin: -12px -12px 4px;
    padding: 12px;
    gap: 8px;
  }

  .save-tools-modal .section-heading h2 {
    font-size: 1.28rem;
  }

  .save-tools-modal .section-heading .ghost-button {
    min-width: 76px;
  }

  .save-tools-modal .beta-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .save-tools-modal .beta-info-card {
    padding: 10px;
  }

  .save-tools-modal .beta-tool-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .save-tools-modal .beta-tool-actions button {
    width: 100%;
  }

  .save-tools-modal .reset-warning {
    width: 100%;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .migration-summary-grid {
    grid-template-columns: 1fr;
  }

  .start-menu {
    padding: 18px;
    min-height: calc(100vh - 150px);
  }

  .start-menu-title h2 {
    font-size: clamp(2.4rem, 16vw, 4.2rem);
  }

  .start-auth-grid {
    grid-template-columns: 1fr;
  }

  .start-auth-actions {
    justify-content: stretch;
  }

  .home-tagline {
    width: 100%;
    font-size: 0.86rem;
  }

  .home-court-lines {
    inset: 10px;
  }

  .rebound-track {
    grid-template-columns: repeat(9, minmax(30px, 1fr));
  }

  .playmat-board {
    gap: 7px;
    padding: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .playmat-board > * {
    min-width: 844px;
  }

  .assist-track {
    grid-template-columns: 48px repeat(10, minmax(20px, 1fr));
    gap: 3px;
    min-width: 0;
  }

  .assist-track strong {
    font-size: 0.6rem;
  }

  .assist-track span {
    min-height: 22px;
    font-size: 0.62rem;
  }

  .playmat-court {
    grid-template-columns: 798px 39px;
    grid-template-rows: auto 34px auto;
    gap: 7px;
    min-width: 844px;
    align-items: start;
  }

  .court-lane,
  .matchup-band {
    grid-template-columns: repeat(5, 154px);
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
    align-items: start;
  }

  .away-lane,
  .home-lane,
  .matchup-band {
    grid-column: 1;
  }

  .away-lane {
    grid-row: 1;
  }

  .matchup-band {
    grid-row: 2;
  }

  .home-lane {
    grid-row: 3;
  }

  .court-player-slot {
    width: 154px;
  }

  .matchup-band span {
    min-height: 32px;
    font-size: 0.82rem;
  }

  .court-player-slot .player-card {
    padding: 4px;
    gap: 4px;
    height: auto;
  }

  .court-player-slot .art-player-card {
    border: 0;
    border-radius: 9px;
    padding: 0;
    gap: 3px;
  }

  .court-player-slot .art-card-face {
    grid-template-rows: 30px minmax(48px, 1fr) auto auto auto;
    gap: 2px;
    padding: 0;
    border-width: 2px;
    border-radius: 9px;
  }

  .court-player-slot .art-top-band {
    gap: 2px;
  }

  .court-player-slot .art-rating-box {
    min-height: 32px;
    border-width: 1px;
    border-radius: 5px;
  }

  .court-player-slot .art-rating-box span {
    font-size: 0.42rem;
  }

  .court-player-slot .art-rating-box strong {
    font-size: 1rem;
  }

  .court-player-slot .art-position-badge {
    min-width: 32px;
    height: 32px;
    border-width: 2px;
    font-size: 0.52rem;
  }

  .court-player-slot .art-portrait {
    height: 66px;
    border-width: 2px;
    border-radius: 7px;
  }

  .court-player-slot .art-nameplate h3 {
    font-size: 0.58rem;
  }

  .court-player-slot .art-nameplate span {
    font-size: 0.42rem;
  }

  .court-player-slot .art-chart-frame {
    border-width: 1px;
    border-radius: 5px;
  }

  .court-player-slot .art-player-card .chart-header,
  .court-player-slot .art-player-card .chart-row {
    grid-template-columns: minmax(34px, 1.22fr) repeat(3, minmax(15px, 0.72fr));
    min-height: 16px;
  }

  .court-player-slot .art-player-card .chart-header strong,
  .court-player-slot .art-player-card .chart-row strong,
  .court-player-slot .art-player-card .chart-row span {
    font-size: 0.48rem;
  }

  .court-player-slot .art-tools {
    gap: 3px;
    padding: 4px;
    border-width: 1px;
    border-radius: 5px;
  }

  .court-player-slot .art-tools > span,
  .court-player-slot .art-tools .roll-button {
    min-height: 24px;
    padding: 2px 3px;
    font-size: 0.5rem;
  }

  .court-player-slot .art-tools .roll-button {
    min-height: 32px;
    border-width: 1px;
    outline-width: 1px;
    outline-offset: 1px;
  }

  .court-player-slot .art-card-footer {
    gap: 2px;
    font-size: 0.5rem;
  }

  .court-player-slot .art-card-value-row {
    padding: 0.7cqw 1.6cqw 0.7cqw 6cqw;
    border-radius: 0;
  }

  .court-player-slot .art-state-badge {
    right: auto;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    min-width: 34px;
    padding: 3px 5px;
    border-width: 1px;
    font-size: 0.42rem;
  }

  .court-rebound-track {
    position: sticky;
    right: 0;
    z-index: 4;
    grid-column: 2;
    grid-row: 1 / 4;
    width: 39px;
    min-height: 408px;
    display: grid;
    grid-template-columns: none;
    grid-template-rows: auto 1fr auto;
    gap: 4px;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
  }

  .court-rebound-track strong,
  .court-rebound-track span {
    font-size: 0.46rem;
  }

  .vertical-rebound-spaces {
    grid-template-columns: none;
    grid-template-rows: repeat(17, minmax(18px, 1fr));
    gap: 2px;
    overflow: visible;
  }

  .vertical-rebound-space {
    border-radius: 3px;
    min-height: 18px;
    font-size: 0.52rem;
  }

  .playmat-double-teams {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .playmat-team-strip {
    min-height: 36px;
    padding: 4px 7px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }

  .playmat-team-strip h2 {
    font-size: 0.76rem;
  }

  .playmat-team-strip .eyebrow,
  .team-mods span {
    font-size: 0.52rem;
  }

  .roll-controls,
  .double-team-controls,
  .leader-filter-row,
  .season-team-row {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 7px 4px;
    font-size: 0.82rem;
  }
}
