:root {
  --bb90-navy: #11274E;
  --bb90-maize: #FFCB04;
  --bb90-charcoal: #272727;
  --bb90-gray: #646464;
  --bb90-border: #D9DEE7;
  --bb90-soft: #F4F6F9;
  --bb90-white: #FFFFFF;
  --bb90-red: #DB0000;
}

.bb90-gp {
  box-sizing: border-box;
  width: 100%;
  margin: 1.65rem 0;
  font-family: inherit;
  color: var(--bb90-charcoal);
}

.bb90-gp *, .bb90-gp *::before, .bb90-gp *::after { box-sizing: border-box; }

.bb90-gp-kicker {
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Dashboard */
.bb90-gp-dashboard {
  overflow: hidden;
  border: 1px solid rgba(17,39,78,.18);
  border-radius: 8px;
  background: var(--bb90-white);
  box-shadow: 0 8px 24px rgba(17,39,78,.08);
}

.bb90-gp-dashboard__mast {
  position: relative;
  padding: 28px 30px 24px;
  color: var(--bb90-white);
  background: var(--bb90-navy);
}

.bb90-gp-dashboard__mast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 5px;
  background: var(--bb90-maize);
}

.bb90-gp-dashboard__mast .bb90-gp-kicker { color: var(--bb90-maize); }
.bb90-gp-dashboard__title {
  margin: 8px 0 4px !important;
  color: var(--bb90-white) !important;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem) !important;
  line-height: 1 !important;
  letter-spacing: -.035em;
  font-weight: 900 !important;
}
.bb90-gp-dashboard__subhead {
  margin: 8px 0 0 !important;
  max-width: 760px;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
}

.bb90-gp-dashboard__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--bb90-border);
}
.bb90-gp-meta-item {
  min-height: 84px;
  padding: 17px 18px;
  border-right: 1px solid var(--bb90-border);
  border-top: 1px solid var(--bb90-border);
}
.bb90-gp-meta-item:nth-child(4n) { border-right: 0; }
.bb90-gp-meta-item__label,
.bb90-gp-insight__label,
.bb90-gp-scorecard__label,
.bb90-gp-scheme__label {
  display: block;
  margin-bottom: 6px;
  color: var(--bb90-gray);
  font-size: .68rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bb90-gp-meta-item__value {
  display: block;
  color: var(--bb90-navy);
  font-size: .94rem;
  line-height: 1.25;
}

.bb90-gp-dashboard__insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bb90-gp-insight {
  padding: 20px 22px 22px;
  border-right: 1px solid var(--bb90-border);
}
.bb90-gp-insight:last-child { border-right: 0; }
.bb90-gp-insight__label { color: var(--bb90-navy); }
.bb90-gp-insight__value {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
}
.bb90-gp-insight--question { background: var(--bb90-maize); }
.bb90-gp-insight--question .bb90-gp-insight__label,
.bb90-gp-insight--question .bb90-gp-insight__value { color: var(--bb90-navy); }

/* Shared module frame */
.bb90-gp-board,
.bb90-gp-scheme,
.bb90-gp-scorecard {
  border: 1px solid rgba(17,39,78,.18);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bb90-white);
}

.bb90-gp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  color: var(--bb90-white);
  background: var(--bb90-navy);
}
.bb90-gp-section-head .bb90-gp-kicker { color: var(--bb90-maize); }
.bb90-gp-section-head p,
.bb90-gp-section-head h3 { margin: 5px 0 0 !important; color: var(--bb90-white) !important; }
.bb90-gp-section-head p { font-size: .9rem; opacity: .72; }
.bb90-gp-section-head h3 { font-size: 1.4rem !important; line-height: 1.1 !important; }
.bb90-gp-section-head__mark {
  flex: 0 0 auto;
  color: rgba(255,255,255,.17);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .03em;
}

/* Matchup board */
.bb90-gp-board__row {
  display: grid;
  grid-template-columns: minmax(190px, 1.05fr) minmax(180px, .75fr) minmax(240px, 1.4fr);
  border-top: 1px solid var(--bb90-border);
}
.bb90-gp-board__row > div { padding: 15px 16px; }
.bb90-gp-board__row > div + div { border-left: 1px solid var(--bb90-border); }
.bb90-gp-board__row--head {
  border-top: 0;
  background: var(--bb90-soft);
  color: var(--bb90-gray);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .09em;
}
.bb90-gp-board__matchup { color: var(--bb90-navy); font-weight: 800; }
.bb90-gp-board__note { font-size: .9rem; line-height: 1.4; }
.bb90-gp-edge { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.bb90-gp-edge strong { color: var(--bb90-navy); font-size: .67rem; letter-spacing: .05em; }
.bb90-gp-edge__visual { display: flex; align-items: center; min-height: 10px; }
.bb90-gp-edge__bars { display: flex; gap: 4px; }
.bb90-gp-edge__bars i {
  display: block;
  width: 20px;
  height: 7px;
  border-radius: 1px;
  background: #E1E5EB;
}
.bb90-gp-edge--strong-michigan .bb90-gp-edge__bars i:nth-child(-n+3),
.bb90-gp-edge--michigan .bb90-gp-edge__bars i:nth-child(-n+2),
.bb90-gp-edge--slight-michigan .bb90-gp-edge__bars i:first-child { background: var(--bb90-maize); }
.bb90-gp-edge--strong-opponent .bb90-gp-edge__bars i:nth-child(-n+3),
.bb90-gp-edge--opponent .bb90-gp-edge__bars i:nth-child(-n+2),
.bb90-gp-edge--slight-opponent .bb90-gp-edge__bars i:first-child { background: #687383; }
.bb90-gp-edge__token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #C8CFD9;
  border-radius: 999px;
  color: var(--bb90-gray);
  background: var(--bb90-soft);
  font-size: .64rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .06em;
}
.bb90-gp-edge--wild-card .bb90-gp-edge__token {
  color: var(--bb90-navy);
  border-color: var(--bb90-maize);
  background: #FFF8D3;
}
.bb90-gp-spotlight {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  color: var(--bb90-white);
  background: var(--bb90-navy);
  border-top: 4px solid var(--bb90-maize);
}
.bb90-gp-spotlight span { color: var(--bb90-maize); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.bb90-gp-spotlight strong { font-size: 1rem; }

/* Scorecard */
.bb90-gp-scorecard__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bb90-gp-scorecard__item {
  position: relative;
  min-height: 158px;
  padding: 19px 18px 18px;
  border-right: 1px solid var(--bb90-border);
  border-top: 1px solid var(--bb90-border);
}
.bb90-gp-scorecard__item:nth-child(4n) { border-right: 0; }
.bb90-gp-scorecard__number {
  position: absolute;
  top: 11px;
  right: 13px;
  color: #E8EBF0;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.bb90-gp-scorecard__label { color: var(--bb90-gray); }
.bb90-gp-scorecard__item strong {
  display: block;
  max-width: 82%;
  color: var(--bb90-navy);
  font-size: 1.08rem;
  line-height: 1.1;
}
.bb90-gp-scorecard__item p { margin: 9px 0 0 !important; font-size: .86rem; line-height: 1.38; }

/* Scheme card */
.bb90-gp-scheme__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bb90-gp-scheme__step {
  padding: 18px;
  border-right: 1px solid var(--bb90-border);
}
.bb90-gp-scheme__step:last-child { border-right: 0; }
.bb90-gp-scheme__stage { position: relative; margin-bottom: 14px; }
.bb90-gp-scheme__stage > span {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--bb90-navy);
  background: var(--bb90-maize);
  font-size: .75rem;
  font-weight: 900;
}
.bb90-gp-scheme__mini {
  position: relative;
  height: 148px;
  overflow: hidden;
  border: 1px solid #D7DCE4;
  background: #F8F9FB;
}
.bb90-gp-scheme__mini--simple {
  background:
    linear-gradient(to right, transparent 49.7%, rgba(17,39,78,.1) 49.7%, rgba(17,39,78,.1) 50.3%, transparent 50.3%),
    linear-gradient(to bottom, #F8F9FB 0%, #F8F9FB 49%, #EDF0F4 49%, #EDF0F4 51%, #F8F9FB 51%, #F8F9FB 100%);
}
.bb90-gp-scheme__svg { display: block; width: 100%; height: 100%; }
.bb90-gp-scheme__svg .los { stroke: #C8CFD9; stroke-width: 2; stroke-dasharray: 5 5; }
.bb90-gp-scheme__svg .wm-line { stroke: #8B95A3; stroke-width: 3; stroke-linecap: round; }
.bb90-gp-scheme__svg .wm { fill: #5D6673; stroke: #FFFFFF; stroke-width: 2; }
.bb90-gp-scheme__svg .um { fill: var(--bb90-navy); stroke: var(--bb90-maize); stroke-width: 3; }
.bb90-gp-scheme__svg .read-key { fill: #FFFFFF; stroke: var(--bb90-red); stroke-width: 4; }
.bb90-gp-scheme__svg .path-wm { fill: none; stroke: #5D6673; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bb90-gp-scheme__svg .path-um { fill: none; stroke: var(--bb90-navy); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bb90-gp-scheme__svg .path-read { fill: none; stroke: var(--bb90-red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bb90-gp-scheme__svg text { font-family: inherit; font-weight: 900; }
.bb90-gp-scheme__svg .tiny { font-size: 10px; letter-spacing: .05em; }
.bb90-gp-scheme__svg .player-label { font-size: 9px; fill: #FFFFFF; text-anchor: middle; dominant-baseline: central; }
.bb90-gp-scheme__svg .read-label { fill: var(--bb90-red); font-size: 10px; }
.bb90-gp-scheme__svg .um-label { fill: var(--bb90-navy); font-size: 10px; }
.bb90-gp-scheme__legend {
  display: flex;
  gap: 14px;
  padding: 8px 10px 0;
  color: var(--bb90-gray);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bb90-gp-scheme__legend span { display: inline-flex; align-items: center; gap: 5px; }
.bb90-gp-scheme__legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bb90-gp-scheme__legend .wm { background: #5D6673; }
.bb90-gp-scheme__legend .um { background: var(--bb90-navy); border: 2px solid var(--bb90-maize); }
.bb90-gp-scheme__line { position: absolute; left: 16%; right: 16%; display: flex; justify-content: space-between; }
.bb90-gp-scheme__line--defense { top: 38px; }
.bb90-gp-scheme__line--offense { top: 82px; }
.bb90-gp-scheme__line i { width: 12px; height: 12px; border-radius: 50%; }
.bb90-gp-scheme__line--defense i { border: 2px solid var(--bb90-gray); background: var(--bb90-white); }
.bb90-gp-scheme__line--offense i { background: var(--bb90-navy); }
.bb90-gp-scheme__label { color: var(--bb90-navy); }
.bb90-gp-scheme__step p { margin: 0 !important; font-size: .9rem; line-height: 1.5; }
.bb90-gp-scheme__key {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  color: var(--bb90-navy);
  background: var(--bb90-maize);
}
.bb90-gp-scheme__key span { font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.bb90-gp-scheme__key strong { font-size: .95rem; line-height: 1.35; }

@media (max-width: 900px) {
  .bb90-gp-dashboard__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb90-gp-meta-item:nth-child(4n) { border-right: 1px solid var(--bb90-border); }
  .bb90-gp-meta-item:nth-child(2n) { border-right: 0; }
  .bb90-gp-board__row { grid-template-columns: 1fr 190px; }
  .bb90-gp-board__row > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--bb90-border); padding-top: 10px; }
  .bb90-gp-board__row--head > div:nth-child(3) { display: none; }
  .bb90-gp-scorecard__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb90-gp-scorecard__item:nth-child(4n) { border-right: 1px solid var(--bb90-border); }
  .bb90-gp-scorecard__item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 680px) {
  .bb90-gp { margin: 1.35rem 0; }
  .bb90-gp-dashboard,
  .bb90-gp-board,
  .bb90-gp-scorecard,
  .bb90-gp-scheme { border-radius: 0; margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
  .bb90-gp-dashboard__mast { padding: 23px 18px 20px; }
  .bb90-gp-dashboard__title { font-size: 1.85rem !important; }
  .bb90-gp-dashboard__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb90-gp-meta-item { min-height: 74px; padding: 14px 13px; }
  .bb90-gp-dashboard__insights { grid-template-columns: 1fr; }
  .bb90-gp-insight { border-right: 0; border-top: 1px solid var(--bb90-border); padding: 16px 18px; }
  .bb90-gp-section-head { align-items: flex-start; padding: 16px 18px; }
  .bb90-gp-section-head__mark { display: none; }
  .bb90-gp-board__row { grid-template-columns: 1fr; }
  .bb90-gp-board__row > div + div { border-left: 0; border-top: 1px solid var(--bb90-border); }
  .bb90-gp-board__row > div:nth-child(3) { grid-column: auto; }
  .bb90-gp-board__row--head { display: none; }
  .bb90-gp-board__row > div { padding: 13px 18px; }
  .bb90-gp-edge { background: var(--bb90-soft); }
  .bb90-gp-spotlight { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .bb90-gp-scorecard__grid { grid-template-columns: 1fr; }
  .bb90-gp-scorecard__item,
  .bb90-gp-scorecard__item:nth-child(4n),
  .bb90-gp-scorecard__item:nth-child(2n) { min-height: 0; border-right: 0; padding: 17px 18px; }
  .bb90-gp-scheme__grid { grid-template-columns: 1fr; }
  .bb90-gp-scheme__step { border-right: 0; border-top: 1px solid var(--bb90-border); padding: 16px 18px; }
  .bb90-gp-scheme__mini { height: 145px; }
  .bb90-gp-scheme__key { grid-template-columns: 1fr; gap: 5px; padding: 16px 18px; }
}
