.game.compact-game{padding:16px;min-width:0}
.history-comparison .history-record,.history-comparison .history-roi{display:flex;flex-direction:column}
.history-comparison .history-error,.history-win-rate{margin-top:12px;padding-top:10px;border-top:1px solid rgba(19,46,43,.15)}
.history-win-rate{border-color:rgba(255,255,255,.22)}
.history-results .history-error strong{font-size:21px;letter-spacing:0;line-height:1.3}
.history-results .history-win-rate strong{color:var(--green)}
.compact-game .game-top{font-size:13px;gap:10px;margin-bottom:12px;align-items:center}
.compact-game .badge{font-family:inherit;font-size:16px;line-height:1.25;font-weight:750;letter-spacing:.3px;padding:8px 12px;border-radius:6px;white-space:nowrap}
.compact-game .matchup{gap:8px}.compact-game .teams{font-size:25px}.compact-game .teams span{font-size:15px}
.compact-game .pick{margin-top:12px;padding:12px;border-radius:10px}
.compact-game .pick small{font-size:12px;font-weight:650;letter-spacing:0;margin-bottom:5px}
.compact-game .pick-value{font-size:25px;line-height:1.25;letter-spacing:-.3px}
.compact-game .tile-forecast{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.compact-game .tile-forecast small{display:block;font-size:13px;line-height:1.4;color:var(--muted);margin-bottom:4px;font-weight:500}
.compact-game .tile-forecast strong{display:block;font-size:20px;line-height:1.3;font-weight:750}
.compact-game .tile-forecast span{display:block;font-size:12px;line-height:1.4;color:var(--muted);margin-top:2px}
.compact-game .tile-wager{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;font-size:20px;font-weight:750;line-height:1.3;margin-top:12px}
.compact-game .tile-wager small{display:inline;color:var(--muted);font-weight:500;font-size:15px;margin-right:4px}
.compact-game .tile-details{margin-top:8px}.compact-game .tile-details summary{font-size:13px;font-weight:650;cursor:pointer;padding:10px 0;min-height:40px;color:var(--muted)}
.compact-game .tile-details-body{border-top:1px solid var(--line);padding-top:10px;font-size:13px;line-height:1.5;color:var(--muted)}
.compact-game .tile-details-body p{margin:0 0 10px}.compact-game .tile-details-body dl{margin:0 0 10px;display:grid;gap:7px}
.compact-game .tile-details-body dl>div{display:flex;justify-content:space-between;gap:12px;align-items:start}
.compact-game .tile-details-body dt{font-weight:450}.compact-game .tile-details-body dd{margin:0;text-align:right;color:var(--ink);font-weight:650}
@media(max-width:380px){.game.compact-game{padding:14px}.compact-game .pick-value{font-size:23px}.compact-game .tile-forecast strong{font-size:19px}}

.compact-game .tile-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}


/* Selection state belongs to the team bar; strength is independent. */
.compact-game .game-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.compact-game .game-top>span:first-child{min-width:0}
.compact-game .tile-badges{justify-self:end;flex-wrap:nowrap;margin-left:auto}
.compact-game .selection-badge{display:inline-block;background:#e8eef5;color:#425c77}
.compact-game .pick-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:5px}
.compact-game .pick-heading small{margin-bottom:0;min-width:0}
.compact-game .pick-status{flex:none;font-size:16px;line-height:1.25;font-weight:800;white-space:nowrap}
.compact-game .pick.pick-pass{background:#eceeec;border-color:#d1d6d2}
.compact-game .pick.pick-pending{background:#e8eef5;border-color:#c4d0de}
.compact-game .pick.pick-win{background:#edf5df;border-color:#d7e5bf}
.compact-game .pick.pick-loss{background:#fae8e5;border-color:#e8bfba}
.compact-game .pick.pick-neutral{background:#fff3c9;border-color:#e4d28f}
.compact-game .pick.pick-pass .pick-heading{color:#53605a}
.compact-game .pick.pick-pending .pick-heading{color:#425c77}
.compact-game .pick.pick-win .pick-heading{color:#324b27}
.compact-game .pick.pick-loss .pick-heading{color:#8c3832}
.compact-game .pick.pick-neutral .pick-heading{color:#756017}
.compact-game .pick-heading small{color:inherit}

/* Badge color describes selection strength, independently of outcome. */
.game.compact-game .badge.selection-badge{background:#132e2b;color:#cde975;box-shadow:none}
.game.compact-game .badge.selection-badge.pass{background:#eceeec;color:#53605a}
.game.compact-game .badge.selection-badge.best{background:#cde975;color:#132e2b}
.game.compact-game .badge.selection-badge.best.strong{background:#f9b328;color:#132e2b}

/* Saturated result text stays distinct from neutral typography. */
.game.compact-game .pick.pick-win .pick-status{color:#16783c}
.game.compact-game .pick.pick-neutral .pick-status{color:#946300}

/* Clearer outer boundaries without changing result and strength accents. */
.game.compact-game{border-top-width:1.5px;border-right-width:1.5px;border-bottom-width:1.5px;border-top-color:#a7b7ac;border-right-color:#a7b7ac;border-bottom-color:#a7b7ac}
.game.compact-game.pick-state-pass,.game.compact-game.pass{border-left-color:#a7b7ac}
.parlays .panel.parlay-kind,.parlay-ticket.parlay-kind,.compact-parlays .parlay-stat-card.parlay-kind{border-right:1.5px solid color-mix(in srgb,var(--parlay-accent) 55%,#75836c);border-bottom:1.5px solid color-mix(in srgb,var(--parlay-accent) 55%,#75836c);border-left:1.5px solid color-mix(in srgb,var(--parlay-accent) 55%,#75836c)}

/* Keep record, pending count, and stats aligned across bet-type tiles. */
.bet-performance .bet-tier .parlay-record-row{flex-direction:row;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin-bottom:8px;padding-bottom:8px}
.bet-performance .bet-tier .parlay-record-row>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
.bet-performance .bet-tier .parlay-record-row>div>strong{margin:0}
.bet-performance .bet-tier h4{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 10px;margin-bottom:8px;padding-block:8px}
.bet-performance .tier-stake{font-size:14px;font-weight:500}
.bet-performance .bet-tier .parlay-stat-grid{row-gap:8px}
.season-performance-details{margin:10px 0}
.bet-performance .bet-tier .parlay-record-row>span{display:block;white-space:nowrap}

/* Match the outer accent to the visible selection-strength badge. */
.game.compact-game:has(.game-top .badge.best){border-left-color:#cde975}
.game.compact-game:has(.game-top .badge.best.strong){border-left-color:#f9b328}

.compact-game .teams .team-score{font-size:.72em;font-weight:550;color:var(--ink);margin:0;letter-spacing:0}

/* Scores and final total share one centered matchup line. */
.compact-game .matchup{--matchup-score-size:18px;align-items:center;flex-wrap:nowrap}
.compact-game .matchup .teams{display:flex;align-items:center;gap:5px;white-space:nowrap;line-height:1.2}
.compact-game .matchup .teams>span{margin:0}
.compact-game .matchup .teams .team-score,.compact-game .totals-matchup>.score{font-size:var(--matchup-score-size);font-weight:550;line-height:1.2;letter-spacing:0}
.compact-game .totals-matchup>.score{flex:none;white-space:nowrap}
@media(max-width:380px){.compact-game .matchup{--matchup-score-size:16px;gap:6px}.compact-game .matchup .teams{font-size:22px;gap:4px}}
@media(max-width:360px){.compact-game .matchup{--matchup-score-size:15px}.compact-game .matchup .teams{font-size:20px;gap:3px}}

.compact-game .pick-heading[data-market-label-omitted], .compact-game .pick-heading:has(> .pick-status:only-child){justify-content:flex-end}
.compact-game .pick-heading:empty{display:none}
.record-sample{display:block;font-size:14px;line-height:1.4;margin-top:4px}

/* Reduce vertical spacing while preserving type sizes and the Details tap target. */
.game.compact-game{padding-block:12px}
.compact-game .game-top{margin-bottom:8px}
.compact-game .pick{margin-top:8px;padding-block:8px}
.compact-game .pick:has(> .pick-heading > .pick-status:only-child){display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px}
.compact-game .pick:has(> .pick-heading > .pick-status:only-child) > .pick-value{order:-1;min-width:0;max-width:100%}
.compact-game .pick-heading:has(> .pick-status:only-child){margin:0 0 0 auto}
@media(max-width:480px){
  .compact-game .pick.pick-pending:has(> .pick-heading > .pick-status:only-child){
    flex-wrap:nowrap;
    column-gap:8px;
  }
  .compact-game .pick.pick-pending:has(> .pick-heading > .pick-status:only-child) > .pick-value{
    font-size:clamp(.875rem, 3.9vw, 1.25rem);
  }
}

.compact-game .tile-forecast{margin-top:8px;padding-bottom:8px}
.compact-game .tile-wager{margin-top:8px}
.compact-game .tile-details{margin-top:2px}
.compact-game .tile-details summary{min-height:44px}

.compact-game .tile-edge-value strong,.compact-game .tile-edge-value span{display:inline;white-space:nowrap}

.compact-game .matchup:has(> .matchup-wager){align-items:baseline;flex-wrap:wrap;row-gap:4px}
.compact-game .matchup > .matchup-wager{display:inline-block;margin:0 0 0 auto;text-align:right}
.compact-game .tile-net-return{justify-content:flex-end}

.history-card > .history-error{display:grid;gap:4px}
.history-card > .history-error strong{font-size:21px;line-height:1.3}

@media (max-width: 600px) {
  .game.compact-game:has(.tile-details:not([open])) {
    padding-bottom: 6px;
  }
}

.game .matchup-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-inline-end: 4px;
  vertical-align: -.12em;
}
@media (width < 980px) {
  .game .matchup-team-logo { width: 28px; height: 28px; vertical-align: -.18em; }
}
@media (max-width: 380px) {
  .game .matchup-team-logo { width: 24px; height: 24px; }
}
@media (min-width: 980px) {
  .game .matchup-team-logo { width: 18px; height: 18px; }
}
