.board-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.board-hero {
  margin-bottom: 18px;
  animation: board-rise 0.45s ease-out both;
}

.board-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-hero__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.board-hero__lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 36rem;
}

.board-perf {
  margin: 0 0 16px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  animation: board-rise 0.5s ease-out 0.04s both;
}

.board-perf[hidden] {
  display: none !important;
}

.board-perf__status {
  color: var(--muted);
  font-size: 0.95rem;
}

.board-perf .load-state {
  margin: 0;
}

.board-perf__status--error {
  color: var(--danger);
}

.board-perf__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.board-perf__kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.board-perf__kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-perf__kpi-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.board-perf__kpi-value.is-pos,
.board-perf__bar-roi.is-pos,
.board-perf__band-roi.is-pos {
  color: var(--accent);
}

.board-perf__kpi-value.is-neg,
.board-perf__bar-roi.is-neg,
.board-perf__band-roi.is-neg {
  color: var(--danger);
}

.board-perf__kpi-value.is-muted,
.board-perf__bar-roi.is-muted,
.board-perf__band-roi.is-muted {
  color: var(--muted);
}

.board-perf__callout {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.board-perf__callout strong {
  color: var(--text);
}

.board-perf__charts {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px 18px;
  align-items: stretch;
}

.board-perf__panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.board-perf__panel-title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.board-perf__panel-lede {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.board-perf__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.board-perf__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  min-height: 140px;
}

.board-perf__bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(96px, 120px);
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.board-perf__bar-row:hover {
  background: rgba(1, 243, 215, 0.1);
  border-color: rgba(1, 243, 215, 0.22);
}

.board-perf__bar-row.is-selected {
  background: rgba(1, 243, 215, 0.16);
  border-color: rgba(1, 243, 215, 0.4);
}

.board-perf__bar-row:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.board-perf__bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.board-perf__bar-track {
  display: flex;
  align-items: stretch;
  height: 14px;
  border-radius: 7px;
  background: rgba(1, 18, 35, 0.55);
  overflow: hidden;
  position: relative;
}

.board-perf__bar-half {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.board-perf__bar-half--neg {
  justify-content: flex-end;
}

.board-perf__bar-half--pos {
  justify-content: flex-start;
}

.board-perf__bar-zero {
  width: 1px;
  background: rgba(244, 247, 249, 0.35);
  flex-shrink: 0;
}

.board-perf__bar {
  height: 100%;
  border-radius: 3px;
  min-width: 3px;
  transition: width 0.45s ease-out;
}

.board-perf__bar.is-pos {
  background: var(--gradient);
}

.board-perf__bar.is-neg {
  background: linear-gradient(270deg, rgba(255, 143, 143, 0.55), rgba(255, 143, 143, 0.95));
}

.board-perf__bar.is-muted {
  background: rgba(143, 160, 176, 0.45);
}

.board-perf__bar-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.board-perf__bar-roi {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.board-perf__bar-sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-perf__bands {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  min-height: 140px;
  padding-top: 4px;
}

.board-perf__band {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.board-perf__band-col {
  width: 100%;
  height: 88px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 8px 8px 4px 4px;
  background: rgba(1, 18, 35, 0.45);
  padding: 0 10%;
  box-sizing: border-box;
}

.board-perf__band-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  transition: height 0.45s ease-out, opacity 0.3s ease;
}

.board-perf__band-fill.is-pos {
  background: var(--gradient);
}

.board-perf__band-fill.is-neg {
  background: linear-gradient(180deg, rgba(255, 143, 143, 0.95), rgba(255, 143, 143, 0.4));
}

.board-perf__band-fill.is-muted {
  background: rgba(143, 160, 176, 0.45);
}

.board-perf__band.is-thin .board-perf__band-col {
  background: repeating-linear-gradient(
    -45deg,
    rgba(1, 18, 35, 0.45),
    rgba(1, 18, 35, 0.45) 4px,
    rgba(1, 243, 215, 0.08) 4px,
    rgba(1, 243, 215, 0.08) 8px
  );
}

.board-perf__band.is-thin .board-perf__band-fill {
  filter: grayscale(0.55);
  opacity: 0.45 !important;
}

.board-perf__band.is-thin .board-perf__band-roi,
.board-perf__band.is-thin .board-perf__band-label,
.board-perf__band.is-thin .board-perf__band-count {
  color: var(--muted);
}

.board-perf__band-roi {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.board-perf__band-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-perf__band-count {
  font-size: 0.64rem;
  color: rgba(143, 160, 176, 0.85);
  text-align: center;
  line-height: 1.1;
}

.board-perf__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.board-perf__locked {
  text-align: center;
  padding: 8px 4px 4px;
}

.board-perf__locked-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 600;
}

.board-perf__locked-body {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.board-perf__locked-cta {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--signal);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(1, 18, 35, 0.45);
  border: 1px solid var(--border);
  animation: board-rise 0.5s ease-out 0.05s both;
  position: sticky;
  top: var(--nav-height);
  z-index: 20;
  backdrop-filter: blur(10px);
}

.board-toolbar [hidden] {
  display: none !important;
}

.board-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.board-toolbar__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
  min-height: 1.2em;
}

.board-toolbar input,
.board-toolbar select {
  border: 1px solid var(--border);
  background-color: var(--gray);
  color: var(--navy);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  min-width: 140px;
  height: 38px;
  color-scheme: light;
}

.board-toolbar select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23011223' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.board-toolbar input[type="date"] {
  position: relative;
  min-width: 160px;
  padding-right: 12px;
  cursor: pointer;
}

.board-toolbar input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  padding: 4px;
  margin-left: 4px;
}

.board-seg {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(1, 18, 35, 0.55);
  height: 38px;
  box-sizing: border-box;
}

.board-seg button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.board-seg button.is-active {
  background: rgba(4, 205, 102, 0.22);
  color: var(--text);
}

.board-toolbar__spacer {
  flex: 1;
  min-width: 8px;
}

.board-toolbar__field--link {
  margin-left: auto;
}

.board-toolbar__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.board-toolbar__link:hover {
  color: var(--text);
  background: rgba(1, 243, 215, 0.12);
}

.board-status {
  margin: 12px 0;
  color: var(--muted);
}

.board-status--error { color: var(--danger); }

.board-upgrade {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  animation: board-rise 0.45s ease-out both;
}

.board-upgrade h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.board-upgrade p {
  margin: 0 0 16px;
  color: var(--muted);
}

.board-upgrade a {
  display: inline-flex;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--signal);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.board-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(1, 243, 215, 0.25);
  border-radius: 14px;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-card {
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  animation: board-rise 0.55s ease-out both;
}

.game-card__matchup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.game-card__teams {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.game-card__scores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.game-card__pred--final {
  color: var(--cyan);
}

.game-card__pred--live {
  color: var(--text);
  font-weight: 600;
  white-space: normal;
}

.game-card__live-dot {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(4, 205, 102, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
  vertical-align: 0.05em;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(4, 205, 102, 0.55); }
  100% { box-shadow: 0 0 0 6px rgba(4, 205, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .game-card__live-dot { animation: none; }
}

.game-card__pred {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.game-card__updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.85;
  white-space: nowrap;
}

.game-analysis {
  margin: 0 0 12px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(1, 243, 215, 0.2);
  background: rgba(1, 18, 35, 0.28);
}

.game-analysis__headline {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.game-analysis__summary {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.game-analysis__drivers {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-analysis__driver {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0;
  line-height: 1.4;
}

.game-analysis__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent2);
}

.game-analysis__favors {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.game-analysis__text {
  flex: 1 1 12rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.game-analysis__method {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-row {
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(1, 243, 215, 0.16);
  background: rgba(1, 18, 35, 0.35);
}

.rec-row.is-bet {
  border-color: rgba(38, 242, 64, 0.35);
  background: rgba(38, 242, 64, 0.1);
}

.rec-row.is-won {
  border-color: rgba(38, 242, 64, 0.45);
  background: rgba(38, 242, 64, 0.14);
}

.rec-row.is-lost {
  border-color: rgba(255, 143, 143, 0.4);
  background: rgba(255, 143, 143, 0.1);
}

.rec-row.is-push {
  border-color: rgba(240, 201, 133, 0.35);
  background: rgba(240, 201, 133, 0.08);
}

.rec-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 6px;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rec-badge--bet {
  background: rgba(38, 242, 64, 0.18);
  color: var(--accent);
}

.rec-badge--skip {
  background: rgba(1, 243, 215, 0.1);
  color: var(--muted);
}

.rec-badge--won {
  background: rgba(38, 242, 64, 0.2);
  color: var(--accent);
}

.rec-badge--lost {
  background: rgba(255, 143, 143, 0.2);
  color: var(--danger);
}

.rec-badge--push {
  background: rgba(240, 201, 133, 0.18);
  color: var(--warn);
}

.rec-market {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rec-pick {
  font-weight: 700;
  font-size: 1.02rem;
}

.rec-why {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.rec-probs {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rec-probs strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rec-probs__sep {
  margin: 0 0.35em;
  opacity: 0.7;
}

.rec-advanced {
  margin-top: 8px;
}

.rec-advanced > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.rec-advanced__body {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.rec-advanced__body strong { color: var(--text); }

.rec-advanced__note {
  flex: 1 1 100%;
  margin: 0 0 2px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  line-height: 1.4;
}

.rec-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(1, 243, 215, 0.45);
  background: rgba(1, 243, 215, 0.1);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: var(--font);
  line-height: 1;
  cursor: pointer;
}

.rec-info-btn:hover,
.rec-info-btn:focus-visible {
  color: var(--text);
  border-color: rgba(1, 243, 215, 0.75);
  background: rgba(1, 243, 215, 0.18);
  outline: none;
}

body.board-modal-open {
  overflow: hidden;
}

.board-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.board-modal[hidden] {
  display: none !important;
}

.board-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
}

.board-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(80vh, 560px);
  overflow: auto;
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  animation: board-rise 0.28s ease-out both;
}

.board-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.board-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.board-modal__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.board-modal__close:hover,
.board-modal__close:focus-visible {
  color: var(--text);
  background: rgba(1, 243, 215, 0.1);
  outline: none;
}

.board-modal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.board-modal__body p {
  margin: 0;
}

@keyframes board-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .board-perf__charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .board-shell { padding: 16px 14px 48px; }
  .game-card__pred,
  .game-card__updated { white-space: normal; }
  .game-card__scores { align-items: flex-start; text-align: left; }
  .board-perf__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board-perf__bar-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .board-perf__bar-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .board-toolbar {
    top: var(--nav-height);
    flex-direction: column;
    align-items: stretch;
  }
  .board-toolbar__field,
  .board-toolbar input,
  .board-toolbar select,
  .board-seg { width: 100%; min-width: 0; }
  .board-toolbar__spacer { display: none; }
  .board-toolbar__field--link { display: none; }
  .rec-badge { min-width: 64px; padding: 6px 12px; font-size: 13px; }
}
