/* V4 color-only calibration: Concept G structure and geometry remain untouched. */

:root {


  --series-family-regular: #A7AEAC;
  --series-family-national: #7296D1;
  --series-family-monster: #B895D6;
  --series-family-true: #D8D2C4;
  --series-family-batting-award: #E4B35C;
  --series-family-rising: #77C5A1;
  --series-family-all-star: #E58D55;
  --control-bg: #242A2D;
  --control-bg-hover: #293033;
  --control-border: #30383C;
  --control-border-hover: #414B50;
  --control-text: #F1F3F2;
  --control-label: #9AA2A0;
  --control-placeholder: #AEB7B4;
  --control-icon: #B8C0BE;
  --control-popup-bg: #171D20;
  --control-popup-border: #343E43;
  --control-option-hover: #252D31;
  --control-option-selected: #313A3E;
  --control-accent: rgba(211,153,91,.70);
  --control-radius: 10px;
  --control-height: 44px;
  --control-option-height: 34px;
}

html:root[data-theme="dark"] {
  --g-sky: #0B0D0E;
  --g-chalk: #15191A;
  --g-paper: #1D2223;
  --g-ink: #F0F1EE;
  --g-ink-soft: #C3C7C3;
  --g-muted: #8D9491;
  --g-line: #303637;
  --g-field: #3A3F40;
  --g-field-soft: #24292A;
  --g-clay: #C48E55;
  --g-clay-soft: #30271F;
  --g-gold: #C6A064;
  --g-green: #6F8A78;
  --g-shadow: 0 22px 52px rgba(0, 0, 0, .34);

  --sky: #0B0D0E;
  --chalk: #15191A;
  --paper: #1D2223;
  --ink: #F0F1EE;
  --ink-soft: #C3C7C3;
  --muted: #8D9491;
  --muted-strong: #C3C7C3;
  --line: #303637;
  --line-strong: #4B5352;
  --field: #3A3F40;
  --field-soft: #24292A;
  --clay: #C48E55;
  --clay-soft: #30271F;
  --gold: #C6A064;
  --gold-soft: #30291F;
  --green: #6F8A78;
  --green-soft: #222B26;
  --spirit: #B09A7C;
  --spirit-soft: #2B2823;
  --spirit-line: #4D4438;
  --shadow-field: 0 22px 48px rgba(0, 0, 0, .32);
  --shadow-float: 0 20px 50px rgba(0, 0, 0, .42);
}

/* Keep the large card field neutral; team color stays in small accents. */
html body .player-field {
  background: var(--chalk) !important;
}

html body .player-field::before {
  border-color: var(--line) !important;
}

html body .field-stitch {
  border-color: color-mix(in srgb, var(--ink) 22%, transparent) !important;
}

html body .team-ghost {
  color: var(--team-color) !important;
  opacity: .16;
}

html body .orbit-rating {
  color: var(--muted) !important;
}

html body .orbit-rating strong {
  color: var(--muted) !important;
}

html body .orbit-visual .card-art img {
  filter: drop-shadow(0 15px 14px rgba(0, 0, 0, .30));
}

/* Runtime team colors are injected from TEAM_CONFIG; no legacy-hex identity inference. */

/* Series text colors resolve from data-derived family keys, not display labels. */
html body .orbit-series[data-series-family="regular"] { --series-color: var(--series-family-regular); }
html body .orbit-series[data-series-family="national"] { --series-color: var(--series-family-national); }
html body .orbit-series[data-series-family="monster"] { --series-color: var(--series-family-monster); }
html body .orbit-series[data-series-family="true"] { --series-color: var(--series-family-true); }
html body .orbit-series[data-series-family="batting-award"] { --series-color: var(--series-family-batting-award); }
html body .orbit-series[data-series-family="special-pitcher"] { --series-color: var(--series-family-batting-award); }
html body .orbit-series[data-series-family="rising"] { --series-color: var(--series-family-rising); }
html body .orbit-series[data-series-family="all-star"] { --series-color: var(--series-family-all-star); }