/* Clean UI v2 — safer compact polish */

/* controls spacing */
.pp-adv-controls{
  margin:16px 0 14px!important;
  display:grid!important;
  gap:10px!important;
}

/* view toggle */
.pp-viewbar{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin:0!important;
}

.pp-viewbtn{
  height:54px!important;
  min-height:54px!important;
  border-radius:18px!important;
  font-size:18px!important;
}

/* sort bar */
.sortbar{
  min-height:58px!important;
  padding:7px!important;
  border-radius:18px!important;
  box-shadow:none!important;
}

.sortbtn{
  height:44px!important;
  min-height:44px!important;
  border-radius:14px!important;
  font-size:14px!important;
}

/* keep filters full width, just cleaner */
.pp-filter-panel{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}

#ppSideFilter,
#ppMarketFilter,
#ppPlayerSearch,
#ppBookFilter{
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  border-radius:18px!important;
  font-size:17px!important;
  padding:0 18px!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
}

/* favorites */
.pp-chipbtn{
  height:48px!important;
  min-height:48px!important;
  border-radius:18px!important;
  box-shadow:none!important;
}

/* dark mode inputs */
body:not(.light) #ppSideFilter,
body:not(.light) #ppMarketFilter,
body:not(.light) #ppPlayerSearch,
body:not(.light) #ppBookFilter,
body:not(.light) .sortbar,
body:not(.light) .pp-chipbtn{
  background:rgba(18,22,26,.72)!important;
  color:#f4f4f7!important;
  border:1px solid rgba(255,255,255,.12)!important;
}

/* light mode fix */
body.light #ppSideFilter,
body.light #ppMarketFilter,
body.light #ppPlayerSearch,
body.light #ppBookFilter,
body.light .sortbar,
body.light .pp-chipbtn{
  background:#ffffff!important;
  color:#111217!important;
  border:1px solid rgba(0,0,0,.12)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.05)!important;
}

body.light .sortbtn{
  color:#6c6d75!important;
}

body.light .sortbtn.active,
body.light .pp-viewbtn.active{
  color:#fff!important;
}

/* softer card borders */
.card,
.pp-game-card{
  box-shadow:none!important;
}

/* Top 10 Edges premium treatment */
.pp-top-edges,
.pp-topplays,
.pp-top-plays{
  border-color:rgba(126,42,255,.32)!important;
  background:linear-gradient(135deg,rgba(126,42,255,.12),rgba(255,255,255,.92))!important;
}

body:not(.light) .pp-top-edges,
body:not(.light) .pp-topplays,
body:not(.light) .pp-top-plays{
  background:linear-gradient(135deg,rgba(126,42,255,.18),rgba(18,22,26,.70))!important;
}

/* Filter Menu v1 */
.pp-player-search-main{
  margin-top:0!important;
}

.pp-filters-btn{
  width:100%;
  height:54px;
  border-radius:20px;
  border:1px solid rgba(126,42,255,.28);
  background:linear-gradient(135deg,rgba(126,42,255,.18),rgba(18,22,26,.72));
  color:#f4f4f7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 22px;
  font-size:18px;
  font-weight:950;
  box-shadow:none;
}

.pp-filters-btn strong{
  color:#b98cff;
  font-size:15px;
}

body.light .pp-filters-btn{
  background:#fff;
  color:#111217;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

body.light .pp-filters-btn strong{
  color:#742cff;
}

.pp-filters-sheet{
  position:fixed;
  inset:0;
  z-index:9998;
  background:rgba(0,0,0,.55);
  display:grid;
  place-items:end center;
  padding:18px 12px;
}

.pp-filters-sheet[hidden]{
  display:none!important;
}

.pp-filters-sheet-card{
  width:min(560px,100%);
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:24px;
  padding:16px;
  display:grid;
  gap:12px;
  max-height:82vh;
  overflow:auto;
}

.pp-filters-sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  margin-bottom:4px;
}

.pp-filters-sheet-head strong{
  font-size:22px;
}

#ppFiltersClose{
  width:42px;
  height:42px;
  min-height:42px;
  border-radius:999px;
  background:var(--panel2);
  color:var(--text);
  border:1px solid var(--line);
  font-size:28px;
  line-height:1;
  box-shadow:none;
}

.pp-filter-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
  font-weight:900;
  margin-top:4px;
}

.pp-filters-sheet .pp-extra-filters{
  display:grid;
  gap:12px;
}

.pp-filters-sheet .pp-market-menu{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  margin-top:8px!important;
  z-index:1!important;
}

.pp-sheet-fav{
  width:100%;
  margin-top:4px;
}

/* Gradient Theme Polish v1 */

:root{
  --pp-glass: linear-gradient(135deg, rgba(126,42,255,.22), rgba(18,22,26,.78));
  --pp-glass-soft: linear-gradient(135deg, rgba(126,42,255,.14), rgba(18,22,26,.72));
  --pp-purple-border: rgba(154,104,255,.36);
}

/* replace flat purple buttons with glass gradient */
#refreshBtn,
.pp-parlay-launch,
.pp-viewbtn.active,
.sortbtn.active{
  background:var(--pp-glass)!important;
  border:1px solid var(--pp-purple-border)!important;
  box-shadow:0 12px 32px rgba(126,42,255,.16)!important;
}

/* Parlay button less neon / more premium */
.pp-parlay-launch{
  border-radius:22px!important;
}

/* Filters + Top Edges matching scheme */
.pp-filters-btn,
.pp-top-edges{
  background:var(--pp-glass-soft)!important;
  border:1px solid var(--pp-purple-border)!important;
  box-shadow:0 12px 30px rgba(126,42,255,.10)!important;
}

/* stat cards subtle purple outline */
.summary-grid .stat,
.stat{
  background:linear-gradient(135deg, rgba(18,22,26,.72), rgba(18,22,26,.56))!important;
  border:1px solid rgba(154,104,255,.20)!important;
  box-shadow:none!important;
}

/* game cards premium dark glass */
.card,
.pp-game-card{
  background:linear-gradient(135deg, rgba(18,22,26,.78), rgba(18,22,26,.60))!important;
  border:1px solid rgba(255,255,255,.11)!important;
  box-shadow:none!important;
}

/* search/input glass */
#ppPlayerSearch,
#ppBookFilter,
.pp-sport-select{
  background:rgba(18,22,26,.76)!important;
  border:1px solid rgba(255,255,255,.13)!important;
  box-shadow:none!important;
}

/* light mode softer matching */
body.light #refreshBtn,
body.light .pp-parlay-launch,
body.light .pp-viewbtn.active,
body.light .sortbtn.active,
body.light .pp-filters-btn,
body.light .pp-top-edges{
  background:linear-gradient(135deg, rgba(126,42,255,.92), rgba(72,18,185,.88))!important;
  color:#fff!important;
  border:1px solid rgba(126,42,255,.32)!important;
}

body.light .summary-grid .stat,
body.light .stat,
body.light .card,
body.light .pp-game-card{
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,242,255,.90))!important;
  border:1px solid rgba(126,42,255,.16)!important;
}

/* move whole main content up slightly */
#mainView{
  padding-top:max(4px, env(safe-area-inset-top))!important;
}

.topbar{
  margin-top:-12px!important;
}

/* tighten vertical spacing */
.controls{
  margin-top:12px!important;
  margin-bottom:14px!important;
}

.summary-grid{
  margin-bottom:18px!important;
}

.pp-adv-controls{
  margin-top:14px!important;
  gap:10px!important;
}

/* make top edge row match filters */
.pp-top-edges,
.pp-topplays,
.pp-top-plays{
  border-radius:22px!important;
}

/* Match active purple controls to Filters/Top Edges gradient */
#refreshBtn,
.pp-parlay-launch,
.pp-viewbtn.active,
.sortbtn.active{
  background:linear-gradient(135deg, rgba(126,42,255,.22), rgba(18,22,26,.76))!important;
  border:1px solid rgba(154,104,255,.38)!important;
  box-shadow:0 12px 28px rgba(126,42,255,.10)!important;
  color:#fff!important;
}

/* Keep inactive controls dark/glass */
.pp-viewbtn:not(.active),
.sortbtn:not(.active){
  background:rgba(18,22,26,.48)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:rgba(255,255,255,.62)!important;
}

/* Make stat cards subtly match the same palette */
.summary-grid .stat{
  background:linear-gradient(135deg, rgba(18,22,26,.72), rgba(18,22,26,.56))!important;
  border:1px solid rgba(154,104,255,.18)!important;
  box-shadow:none!important;
}

/* Move layout up slightly */
#mainView{
  padding-top:max(0px, env(safe-area-inset-top))!important;
}

.topbar{
  margin-top:-26px!important;
}

.controls{
  margin-top:10px!important;
}

.summary-grid{
  margin-top:12px!important;
  margin-bottom:14px!important;
}

.pp-adv-controls{
  margin-top:12px!important;
}

/* Light mode matching */
body.light #refreshBtn,
body.light .pp-parlay-launch,
body.light .pp-viewbtn.active,
body.light .sortbtn.active{
  background:linear-gradient(135deg, rgba(126,42,255,.92), rgba(76,24,190,.90))!important;
  color:#fff!important;
  border:1px solid rgba(126,42,255,.32)!important;
}

/* Fix Top 10 Edges contrast in light mode after gradient patch */
body.light .pp-top-edges,
body.light .pp-top-edges *,
body.light .pp-topplays,
body.light .pp-topplays *,
body.light .pp-top-plays,
body.light .pp-top-plays *{
  color:#ffffff!important;
}

body.light .pp-top-edges b,
body.light .pp-topplays b,
body.light .pp-top-plays b{
  color:#27d17f!important;
}

body.light .pp-top-edges small,
body.light .pp-topplays small,
body.light .pp-top-plays small{
  color:rgba(255,255,255,.78)!important;
}

body.light .pp-badge{
  color:#111217!important;
  background:rgba(255,255,255,.28)!important;
  border-color:rgba(255,255,255,.22)!important;
}

/* Light mode sport selector fix */
body.light .pp-sport-select{
  background:#ffffff!important;
  color:#111217!important;
  border:1px solid rgba(0,0,0,.12)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.05)!important;
}

body.light .pp-sport-label{
  color:#6c6d75!important;
}

body.light .pp-sport-select-wrap{
  color:#111217!important;
}

body.light .pp-sport-select option{
  background:#ffffff!important;
  color:#111217!important;
}


/* Make Parlay Builder match Filters / Top Edges gradient */
.pp-parlay-launch,
#ppParlayBuilderBtn,
#ppParlayBtn,
button.pp-parlay-launch{
  background:linear-gradient(135deg, rgba(126,42,255,.22), rgba(18,22,26,.76))!important;
  border:1px solid rgba(154,104,255,.38)!important;
  box-shadow:0 12px 28px rgba(126,42,255,.10)!important;
  color:#ffffff!important;
}

.pp-parlay-launch *,
#ppParlayBuilderBtn *,
#ppParlayBtn *{
  color:#ffffff!important;
}

/* Game Card Polish v1 */
.pp-polished-game-card{
  position:relative!important;
  overflow:hidden!important;
  background:
    linear-gradient(135deg, rgba(18,22,26,.88), rgba(12,14,18,.74)) padding-box,
    linear-gradient(135deg, rgba(154,104,255,.42), rgba(154,104,255,.10)) border-box!important;
  border:1px solid transparent!important;
  border-radius:24px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.18)!important;
}

.pp-game-polish-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.pp-game-league{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 11px;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(126,42,255,.40),rgba(18,22,26,.55));
  border:1px solid rgba(154,104,255,.28);
  font-size:13px;
  font-weight:950;
  color:#fff;
}

.pp-game-count{
  font-size:13px;
  font-weight:900;
  color:rgba(255,255,255,.72);
}

.pp-polished-game-card h2{
  margin-top:0!important;
  margin-bottom:12px!important;
  letter-spacing:-.035em!important;
}

.pp-best-edge-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0;
  padding:13px 14px;
  border-radius:18px;
  background:rgba(8,10,14,.42);
  border:1px solid rgba(255,255,255,.10);
}

.pp-best-edge-panel strong{
  display:block;
  color:#b98cff;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:4px;
}

.pp-best-edge-panel span{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.25;
}

.pp-best-edge-panel b{
  color:#25d77f;
  font-size:22px;
  white-space:nowrap;
}

.pp-polished-game-card button,
.pp-polished-game-card a{
  border-radius:16px!important;
}

/* Light mode card polish */
body.light .pp-polished-game-card{
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,243,255,.93)) padding-box,
    linear-gradient(135deg, rgba(126,42,255,.28), rgba(126,42,255,.08)) border-box!important;
  box-shadow:0 12px 28px rgba(70,38,140,.08)!important;
}

body.light .pp-game-league{
  color:#fff!important;
}

body.light .pp-game-count{
  color:#5f6068!important;
}

body.light .pp-best-edge-panel{
  background:rgba(126,42,255,.07);
  border:1px solid rgba(126,42,255,.14);
}

body.light .pp-best-edge-panel strong{
  color:#742cff!important;
}

body.light .pp-best-edge-panel span{
  color:#53545c!important;
}

body.light .pp-best-edge-panel b{
  color:#16a765!important;
}

/* Game Polish v2 */
.pp-game-polish-card{
  position:relative!important;
  background:
    linear-gradient(135deg, rgba(18,22,26,.92), rgba(18,22,26,.68)) padding-box,
    linear-gradient(135deg, rgba(154,104,255,.42), rgba(154,104,255,.10)) border-box!important;
  border:1px solid transparent!important;
  border-radius:24px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.16)!important;
}

.pp-polish-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.pp-polish-league{
  display:inline-flex;
  padding:7px 12px;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(126,42,255,.42),rgba(18,22,26,.60));
  border:1px solid rgba(154,104,255,.30);
  color:#fff;
  font-size:13px;
  font-weight:950;
}

.pp-polish-count{
  color:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:900;
}

.pp-polish-edge{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0;
  padding:13px 14px;
  border-radius:18px;
  background:rgba(8,10,14,.46);
  border:1px solid rgba(255,255,255,.10);
}

.pp-polish-edge strong{
  display:block;
  color:#b98cff;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:4px;
}

.pp-polish-edge span{
  color:rgba(255,255,255,.72);
  font-size:13px;
}

.pp-polish-edge b{
  color:#25d77f;
  font-size:22px;
  white-space:nowrap;
}

body.light .pp-game-polish-card{
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,243,255,.93)) padding-box,
    linear-gradient(135deg, rgba(126,42,255,.28), rgba(126,42,255,.08)) border-box!important;
}

body.light .pp-polish-count{color:#5f6068!important;}
body.light .pp-polish-edge{background:rgba(126,42,255,.07);border-color:rgba(126,42,255,.14);}
body.light .pp-polish-edge strong{color:#742cff!important;}
body.light .pp-polish-edge span{color:#53545c!important;}

/* Direct Game Card Polish */
.pp-polished-game-card{
  position:relative!important;
  overflow:hidden!important;
  background:
    linear-gradient(135deg, rgba(18,22,26,.92), rgba(18,22,26,.68)) padding-box,
    linear-gradient(135deg, rgba(154,104,255,.42), rgba(154,104,255,.10)) border-box!important;
  border:1px solid transparent!important;
  border-radius:24px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.16)!important;
}

.pp-game-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.pp-game-league{
  display:inline-flex;
  padding:7px 12px;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(126,42,255,.42),rgba(18,22,26,.60));
  border:1px solid rgba(154,104,255,.30);
  color:#fff;
  font-size:13px;
  font-weight:950;
}

.pp-game-count{
  color:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:900;
}

.pp-polished-game-card .matchup{
  margin-bottom:12px!important;
  letter-spacing:-.035em!important;
}

.pp-polished-meta{
  margin-bottom:10px!important;
}

.pp-game-best{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0;
  padding:13px 14px;
  border-radius:18px;
  background:rgba(8,10,14,.46);
  border:1px solid rgba(255,255,255,.10);
}

.pp-game-best strong{
  display:block;
  color:#b98cff;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:4px;
}

.pp-game-best span{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.25;
}

.pp-game-best b{
  color:#25d77f;
  font-size:22px;
  white-space:nowrap;
}

.pp-polished-toggle{
  border-radius:16px!important;
  background:linear-gradient(135deg, rgba(126,42,255,.32), rgba(18,22,26,.72))!important;
  border:1px solid rgba(154,104,255,.38)!important;
  box-shadow:none!important;
}

/* light mode */
body.light .pp-polished-game-card{
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,243,255,.93)) padding-box,
    linear-gradient(135deg, rgba(126,42,255,.28), rgba(126,42,255,.08)) border-box!important;
  box-shadow:0 12px 28px rgba(70,38,140,.08)!important;
}

body.light .pp-game-count{color:#5f6068!important;}
body.light .pp-game-best{background:rgba(126,42,255,.07);border-color:rgba(126,42,255,.14);}
body.light .pp-game-best strong{color:#742cff!important;}
body.light .pp-game-best span{color:#53545c!important;}
body.light .pp-game-best b{color:#16a765!important;}

/* Safe Game Card Polish — CSS only, no JS/modal changes */

/* premium card shell */
.game{
  position:relative!important;
  overflow:hidden!important;
  background:
    linear-gradient(135deg, rgba(18,22,26,.92), rgba(18,22,26,.68)) padding-box,
    linear-gradient(135deg, rgba(154,104,255,.42), rgba(154,104,255,.10)) border-box!important;
  border:1px solid transparent!important;
  border-radius:24px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.16)!important;
}

/* subtle top glow strip */
.game::before{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  top:0;
  height:2px;
  background:linear-gradient(90deg, transparent, rgba(184,139,255,.75), transparent);
  pointer-events:none;
}

/* tighter header */
.game-head{
  padding:18px!important;
}

/* matchup cleaner */
.game .matchup{
  font-size:21px!important;
  line-height:1.15!important;
  letter-spacing:-.04em!important;
  margin-bottom:12px!important;
}

/* chips cleaner */
.game .meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-bottom:14px!important;
}

.game .pill{
  border-radius:999px!important;
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.09)!important;
  color:rgba(255,255,255,.76)!important;
  box-shadow:none!important;
}

/* make weather/hitter friendly pill pop if class exists */
.game .pill.weather-good,
.game .pill.hitter-friendly,
.game .pill[class*="good"]{
  background:rgba(37,215,127,.12)!important;
  border-color:rgba(37,215,127,.25)!important;
  color:#30e08a!important;
}

/* premium view button */
.game .toggle-btn{
  min-height:50px!important;
  border-radius:17px!important;
  background:linear-gradient(135deg, rgba(126,42,255,.30), rgba(18,22,26,.72))!important;
  border:1px solid rgba(154,104,255,.38)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-weight:950!important;
}

/* opened props area separation */
.game .props{
  border-top:1px solid rgba(255,255,255,.08)!important;
  background:rgba(0,0,0,.10)!important;
}

/* light mode */
body.light .game{
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,243,255,.93)) padding-box,
    linear-gradient(135deg, rgba(126,42,255,.28), rgba(126,42,255,.08)) border-box!important;
  box-shadow:0 12px 28px rgba(70,38,140,.08)!important;
}

body.light .game .pill{
  background:rgba(126,42,255,.055)!important;
  border-color:rgba(126,42,255,.12)!important;
  color:#555761!important;
}

body.light .game .pill.weather-good,
body.light .game .pill.hitter-friendly,
body.light .game .pill[class*="good"]{
  background:rgba(22,167,101,.10)!important;
  border-color:rgba(22,167,101,.22)!important;
  color:#128356!important;
}

body.light .game .toggle-btn{
  background:linear-gradient(135deg, rgba(126,42,255,.92), rgba(76,24,190,.90))!important;
  border:1px solid rgba(126,42,255,.32)!important;
  color:#fff!important;
}

body.light .game .props{
  background:rgba(126,42,255,.025)!important;
  border-top:1px solid rgba(126,42,255,.10)!important;
}

/* Best Edge Game Card Panel */
.game .pp-game-best{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 14px;
  padding:15px 16px;
  border-radius:18px;
  background:rgba(8,10,14,.52);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.game .pp-game-best strong{
  display:block;
  color:#c58cff;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
  font-weight:950;
}

.game .pp-game-best span{
  display:block;
  color:rgba(255,255,255,.76);
  font-size:14px;
  line-height:1.25;
}

.game .pp-game-best b{
  color:#2ee58b;
  font-size:24px;
  white-space:nowrap;
  font-weight:950;
}

body.light .game .pp-game-best{
  background:rgba(126,42,255,.07);
  border-color:rgba(126,42,255,.14);
}

body.light .game .pp-game-best strong{
  color:#742cff!important;
}

body.light .game .pp-game-best span{
  color:#53545c!important;
}

body.light .game .pp-game-best b{
  color:#16a765!important;
}

/* Light mode Parlay Builder */
body.light .parlay-builder-btn,
body.light .pp-parlay-builder,
body.light button[data-parlay-builder],
body.light .parlay-btn{
  background:
    linear-gradient(
      135deg,
      rgba(126,42,255,.16),
      rgba(126,42,255,.08),
      rgba(255,255,255,.95)
    ) !important;

  border:1px solid rgba(126,42,255,.22)!important;
  color:#2b2d33!important;
  box-shadow:
    0 10px 24px rgba(126,42,255,.08)!important;
}

body.light .parlay-builder-btn *,
body.light .pp-parlay-builder *,
body.light button[data-parlay-builder] *,
body.light .parlay-btn *{
  color:#2b2d33!important;
}


/* Exact Light Mode Parlay Builder Fix */
body.light #ppParlayBtn.pp-parlay-open,
body.light #ppParlayBtn{
  background:
    linear-gradient(
      135deg,
      rgba(126,42,255,.92),
      rgba(96,31,220,.86)
    ) !important;
  color:#ffffff!important;
  border:1px solid rgba(126,42,255,.32)!important;
  box-shadow:0 12px 28px rgba(126,42,255,.16)!important;
}

body.light #ppParlayBtn.pp-parlay-open *,
body.light #ppParlayBtn *{
  color:#ffffff!important;
}

body:not(.light) #ppParlayBtn.pp-parlay-open,
body:not(.light) #ppParlayBtn{
  background:
    linear-gradient(
      135deg,
      rgba(126,42,255,.22),
      rgba(18,22,26,.76)
    ) !important;
  color:#ffffff!important;
  border:1px solid rgba(154,104,255,.38)!important;
  box-shadow:0 12px 28px rgba(126,42,255,.10)!important;
}

/* Compact Game Cards — reduce vertical height */
.game{
  border-radius:22px!important;
}

.game-head{
  padding:14px!important;
}

.game .matchup{
  font-size:20px!important;
  line-height:1.12!important;
  margin-bottom:9px!important;
}

.game .meta{
  gap:6px!important;
  margin-bottom:10px!important;
}

.game .pill{
  padding:5px 10px!important;
  font-size:14px!important;
  line-height:1.1!important;
}

/* compact best edge panel */
.game .pp-game-best{
  margin:10px 0 10px!important;
  padding:10px 12px!important;
  border-radius:16px!important;
}

.game .pp-game-best strong{
  font-size:11px!important;
  margin-bottom:3px!important;
  letter-spacing:.07em!important;
}

.game .pp-game-best span{
  font-size:13px!important;
  line-height:1.15!important;
}

.game .pp-game-best b{
  font-size:21px!important;
}

/* compact button */
.game .toggle-btn{
  min-height:44px!important;
  height:44px!important;
  border-radius:15px!important;
  font-size:16px!important;
  margin-top:8px!important;
}

/* reduce card spacing between games */
#games .game{
  margin-bottom:14px!important;
}

/* when props are expanded, keep prop rows compact too */
.game .props .pp-prop-shell{
  min-height:unset!important;
}

.game .props .prop{
  padding-top:10px!important;
  padding-bottom:10px!important;
}

/* mobile extra tightening */
@media(max-width:560px){
  .game-head{
    padding:13px!important;
  }

  .game .matchup{
    font-size:19px!important;
    margin-bottom:8px!important;
  }

  .game .pill{
    font-size:13px!important;
    padding:5px 9px!important;
  }

  .game .pp-game-best{
    margin:9px 0 9px!important;
    padding:9px 11px!important;
  }

  .game .pp-game-best b{
    font-size:20px!important;
  }

  .game .toggle-btn{
    min-height:42px!important;
    height:42px!important;
  }
}
