/* the sportsbook shell */
body.book { background: #06080b; }
.bk-top { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; gap: 22px; padding: 0 18px; background: rgba(9, 12, 16, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bk-nav { display: flex; gap: 4px; }
.bk-nav a { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.bk-nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.bk-nav a.on { color: var(--text); background: var(--card2); }
.bk-nav .ti { display: none; }
.bk-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.acct-chip { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 6px 12px; position: relative; overflow: hidden; }
.ac-main { display: flex; flex-direction: column; line-height: 1.15; }
.ac-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; white-space: nowrap; }
.ac-main b { font-size: 15px; }
.ac-pl { font-size: 12px; font-weight: 700; }
.ac-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.ac-prog div { height: 100%; background: var(--accent); }
.acct-switch select { margin: 0; width: auto; padding: 8px 10px; font-size: 13px; background: var(--card); }
.menu { position: relative; border: 0; padding: 0; }
.menu summary { padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; }
.menu summary::after { display: none; }
.menu summary:hover { color: var(--text); background: var(--card); }
.menu-pop { position: absolute; right: 0; top: 110%; background: var(--card2); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; min-width: 180px; display: grid; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); z-index: 50; }
.menu-pop a, .menu-pop .link { color: var(--text); padding: 9px 12px; border-radius: 8px; font-size: 14px; text-align: left; width: 100%; }
.menu-pop a:hover, .menu-pop .link:hover { background: var(--card); text-decoration: none; }

.bk-shell { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 1560px; margin: 0 auto; min-height: calc(100vh - 60px); }
.bk-shell.has-rail { grid-template-columns: 230px minmax(0, 1fr); }
.bk-shell.has-rail.has-slip { grid-template-columns: 230px minmax(0, 1fr) 350px; }
.bk-shell.has-slip:not(.has-rail) { grid-template-columns: minmax(0, 1fr) 350px; }
.bk-main { padding: 20px 22px 80px; min-width: 0; }
.bk-shell:not(.has-rail):not(.has-slip):not(.wide) .bk-main { max-width: 1100px; width: 100%; margin: 0 auto; }
/* bigger screens get a wider page instead of wide empty margins */
@media (min-width: 1680px) { .bk-shell:not(.has-rail):not(.has-slip):not(.wide) .bk-main { max-width: 1320px; } }
@media (min-width: 2200px) { .bk-shell:not(.has-rail):not(.has-slip):not(.wide) .bk-main { max-width: 1560px; } }

/* left rail */
.bk-rail { position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; border-right: 1px solid var(--line); padding: 16px 10px; background: #080b0f; }
.rail-h { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 16px 10px 6px; }
.rail-sec { display: grid; gap: 2px; }
.rail-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: 14px; font-weight: 500; }
.rail-link span { width: 20px; text-align: center; }
.rail-link em { margin-left: auto; font-style: normal; font: 600 11px var(--mono); color: var(--muted); background: var(--card); padding: 2px 7px; border-radius: 99px; }
.rail-link:hover { background: var(--card); text-decoration: none; }
.rail-link.on { background: var(--card2); box-shadow: inset 3px 0 0 var(--accent); }
.rail-seg { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin: 4px 6px; }
.rail-seg button { flex: 1; background: none; border: 0; color: var(--muted); font: 600 12px Inter; padding: 8px 4px; border-radius: 7px; cursor: pointer; }
.rail-seg button.on { background: var(--card2); color: var(--text); }
.rail-rules { display: block; font-size: 13px; padding: 18px 10px; }

/* page bits */
.bk-h { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.bk-sub { font-size: 16px; margin: 26px 0 10px; }
.bk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
.bk-bar:first-child { margin-top: 0; }
.ev-search { width: 240px; margin: 0; padding: 9px 12px; font-size: 14px; background: var(--card); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -22px 12px; padding: 0 22px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.has-rail .chips.scroll { display: none; }
.back { display: inline-block; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(61, 255, 154, 0.13), rgba(61, 255, 154, 0.03)); border: 1px solid rgba(61, 255, 154, 0.25); margin-bottom: 16px; font-size: 14px; }

/* objectives strip, the prop firm layer on top of the book */
.obj-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; color: var(--text); }
.obj-strip:hover { text-decoration: none; border-color: var(--line2); }
.os-t { background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.os-t span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-t b { font-size: 18px; }
.os-t small { font-size: 12px; color: var(--muted); }
.os-bar { height: 4px; background: #1b222c; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.os-bar div { height: 100%; background: var(--accent); border-radius: 99px; }
.os-bar.bad div { background: linear-gradient(90deg, var(--warn), var(--neg)); }

/* live strip and featured */
.live-strip { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; color: var(--text); font-size: 13px; overflow: hidden; white-space: nowrap; }
.live-strip:hover { text-decoration: none; border-color: var(--line2); }
.ls-g { font-family: var(--mono); font-weight: 600; }
.ls-g small { font-family: Inter; color: var(--muted); font-weight: 500; margin-left: 4px; }
.live-strip .muted { margin-left: auto; }
.feat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 6px; }
.feat-card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.fc-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.fc-top:hover { text-decoration: none; color: var(--text); }
.fc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0; text-align: center; }
.fc-teams div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.fc-teams img { width: 40px; height: 40px; object-fit: contain; }
.fc-teams b { font-size: 15px; }
.fc-teams small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-at { color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.fc-px { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fc-px.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 1280px) { .feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* event rows */
.ev-list { display: grid; gap: 0; }
.grp-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px 8px; font-weight: 700; font-size: 14px; position: sticky; top: 60px; background: #06080b; z-index: 2; }
.grp-h .muted { font-weight: 600; font-size: 12px; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) 330px 28px; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px 10px 14px; margin-bottom: 6px; }
.ev:hover { border-color: var(--line2); }
.ev-info { display: grid; gap: 6px; color: var(--text); min-width: 0; }
.ev-info:hover { text-decoration: none; }
.ev-time { font-size: 11px; color: var(--muted); font-weight: 600; }
.ev-team { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; min-width: 0; height: 22px; }
.ev-team img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.ev-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-mk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ev-mk.three { grid-template-columns: repeat(3, 1fr); }
.mk-h { font-size: 11px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.ev-more { color: var(--muted); font-size: 22px; text-align: center; }
.ev-more:hover { color: var(--text); text-decoration: none; }
.px { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 4px; color: var(--text); cursor: pointer; font: 12px Inter; min-height: 44px; transition: background 0.12s, border-color 0.12s; }
.px span { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.px b { font: 700 14px var(--mono); color: var(--text); }
.px:hover { border-color: var(--line2); background: #121821; }
.px.sel { background: var(--accent); border-color: var(--accent); }
.px.sel b, .px.sel span { color: var(--accent-ink); }
.px.off { cursor: default; color: var(--line2); background: transparent; border-style: dashed; }
.px.locked { opacity: 0.35; cursor: not-allowed; }
.px.flash-up { animation: fu 0.8s; }

/* event page */
.ev-hero { padding: 24px; text-align: center; }
.evh-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 16px; }
.evh-teams div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.evh-teams img { width: 64px; height: 64px; object-fit: contain; }
.evh-teams b { font-size: 17px; }
.evh-score { font: 800 34px var(--mono); }
.mkt h3 { font-size: 15px; margin-bottom: 12px; }
.mkt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkt-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.mkt-opt { display: grid; gap: 6px; }
.mkt-opt .px { min-height: 52px; }

/* live */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 12px 0 24px; }
.live-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); display: grid; gap: 6px; }
.live-row:hover { text-decoration: none; border-color: var(--line2); }
.lr-l { display: flex; justify-content: space-between; align-items: center; }
.lr-st { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.lr-st.in { color: var(--neg); }
.lr-st.post { color: var(--muted); }
.lr-t { display: flex; justify-content: space-between; font-weight: 600; }
.lr-t b { font: 700 16px var(--mono); }

/* bet slip */
.slip { position: sticky; top: 60px; height: calc(100vh - 60px); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #080b0f; padding: 16px; overflow-y: auto; margin: 0; border-radius: 0; }
.slip-head { display: flex; align-items: center; gap: 10px; }
.slip-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.slip-head .link { margin-left: auto; }
.slip-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 800 12px var(--mono); }
.slip-close { display: none; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.slip-modes { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin: 14px 0 12px; }
.slip-modes button { flex: 1; background: none; border: 0; color: var(--muted); font: 700 13px Inter; padding: 9px; border-radius: 8px; cursor: pointer; }
.slip-modes button.on { background: var(--card2); color: var(--text); }
.slip-modes button:disabled { opacity: 0.4; cursor: not-allowed; }
.slip-legs { display: grid; gap: 8px; }
.sl { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: grid; gap: 6px; }
.sl-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.sl-top b { font-size: 14px; }
.sl-top .mono { color: var(--accent); font-weight: 700; }
.sl-x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 2px; line-height: 1; }
.sl-ev { font-size: 12px; color: var(--muted); }
.sl-row { display: flex; align-items: center; gap: 8px; }
.sl-row input { margin: 0; padding: 8px 10px; font: 600 15px var(--mono); }
.sl-row small { white-space: nowrap; color: var(--muted); font-size: 12px; }
.sl.err { border-color: rgba(255, 93, 108, 0.5); }
.sl .sl-msg { font-size: 12px; color: var(--neg); }
.slip-empty { text-align: center; padding: 40px 10px; }
.slip-empty-ic { font-size: 34px; margin-bottom: 8px; }
.slip-empty p { margin: 4px 0 0; }
.slip-foot { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.parlay-stake label { margin-bottom: 8px; }
.parlay-stake input { font: 600 16px var(--mono); }
.chips-q { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.chips-q button { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 4px; font: 700 12px Inter; cursor: pointer; }
.chips-q button:hover { border-color: var(--accent); }
.slip-sum { display: flex; justify-content: space-between; margin: 6px 0; font-size: 14px; color: var(--muted); }
.slip-sum b { font-family: var(--mono); color: var(--text); }
.slip-sum.big { font-size: 16px; color: var(--text); margin: 10px 0; }
.slip-sum.big b { color: var(--accent); font-size: 18px; }
#slip-msg { margin: 8px 0; min-height: 18px; }
#slip-msg.e { color: var(--neg); }
#slip-msg.s { color: var(--accent); }
.slip-rules { margin-top: 10px; text-align: center; }
.slip-scrim { display: none; }

/* tickets (my bets) */
.seg-tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 14px; max-width: 360px; }
.seg-tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 14px; }
.seg-tabs a.on { background: var(--card2); color: var(--text); }
.seg-tabs a:hover { text-decoration: none; color: var(--text); }
.seg-tabs em { font-style: normal; font-family: var(--mono); color: var(--accent); margin-left: 4px; }
.tk-list { display: grid; gap: 10px; }
.tk { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tk.won { border-color: rgba(61, 255, 154, 0.35); }
.tk.lost { opacity: 0.85; }
.tk-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--bg2); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tk-leg { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tk-leg .dot { width: 9px; height: 9px; border-radius: 50%; background: #8db4ff; margin-top: 6px; flex: none; }
.tk-leg.won .dot { background: var(--accent); }
.tk-leg.lost .dot { background: var(--neg); }
.tk-leg.push .dot, .tk-leg.void .dot { background: var(--warn); }
.tk-l { flex: 1; min-width: 0; }
.tk-foot { display: flex; gap: 20px; padding: 10px 14px; align-items: center; flex-wrap: wrap; }
.tk-foot div { display: flex; flex-direction: column; }
.tk-foot span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.tk-foot div:nth-child(3) { margin-left: auto; text-align: right; }
.admin-leg { display: flex; gap: 6px; margin-left: auto; }
.admin-leg select { width: auto; margin: 0; padding: 4px 6px; font-size: 12px; }

/* account pages */
.accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.acct-top { display: flex; justify-content: space-between; align-items: flex-start; }
.acct-phase { font-weight: 800; font-size: 17px; }
.acct-bal { font-size: 30px; font-weight: 700; margin: 14px 0 0; letter-spacing: -0.02em; }
.acct .os-bar { margin: 14px 0 6px; }
.phase-track { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.phase-track div { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font-weight: 600; font-size: 14px; }
.phase-track i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); font: 700 12px var(--mono); font-style: normal; }
.phase-track .now { color: var(--text); border-color: rgba(61, 255, 154, 0.5); }
.phase-track .now i { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.phase-track .done i { background: rgba(61, 255, 154, 0.15); color: var(--accent); border-color: transparent; }
.st { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 6px; }
.st.ok { background: rgba(61, 255, 154, 0.12); color: var(--accent); }
.st.on { background: rgba(80, 140, 255, 0.14); color: #8db4ff; }
.st.bad { background: rgba(255, 93, 108, 0.14); color: var(--neg); }
.limits { margin-top: 14px; display: grid; gap: 4px; }
.payout-box { background: var(--bg); border: 1px solid rgba(61, 255, 154, 0.3); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.pb-amt { font-size: 30px; font-weight: 800; color: var(--accent); margin: 4px 0 10px; }
.chart { width: 100%; height: 200px; display: block; }
.empty-chart { display: grid; place-items: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line2); border-radius: 10px; }
.chart .base { stroke: var(--line2); stroke-dasharray: 4 4; }
.chart .tgt { stroke: rgba(61, 255, 154, 0.45); stroke-dasharray: 6 4; }
.chart .line { fill: none; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.chart .line.up { stroke: var(--accent); }
.chart .line.down { stroke: var(--neg); }
.chart .area.up { fill: rgba(61, 255, 154, 0.08); }
.chart .area.down { fill: rgba(255, 93, 108, 0.08); }

.bk-tabs { display: none; }

/* tablet: rail collapses into chips */
@media (max-width: 1180px) {
  .bk-shell.has-rail { grid-template-columns: minmax(0, 1fr); }
  .bk-shell.has-rail.has-slip { grid-template-columns: minmax(0, 1fr) 330px; }
  .bk-rail { display: none; }
  .has-rail .chips.scroll { display: flex; }
}

/* phone: bottom tabs, slip becomes a sheet */
@media (max-width: 860px) {
  .bk-top { height: 56px; padding: 0 14px; gap: 10px; }
  .bk-top .logo span { display: none; }
  .bk-nav, .acct-switch, .menu { display: none; }
  .acct-chip { padding: 5px 10px; gap: 8px; }
  .bk-shell, .bk-shell.has-rail, .bk-shell.has-slip, .bk-shell.has-rail.has-slip { grid-template-columns: minmax(0, 1fr); }
  .bk-main { padding: 14px 14px 100px; }
  .chips.scroll { margin: 0 -14px 10px; padding: 0 14px; }
  .grp-h { top: 56px; }
  .ev { grid-template-columns: minmax(0, 1fr) 210px; padding: 10px 8px 10px 12px; gap: 8px; }
  .ev-more { display: none; }
  .ev-team { font-size: 13px; }
  .ev-team img { width: 18px; height: 18px; }
  .px { min-height: 42px; }
  .px b { font-size: 13px; }
  .feat-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; margin: 10px -14px; padding: 0 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .feat-row::-webkit-scrollbar { display: none; }
  .feat-card { scroll-snap-align: start; }
  .obj-strip { grid-template-columns: repeat(2, 1fr); }
  .ev-search { width: 100%; }
  .bk-bar { flex-direction: column; align-items: stretch; }
  .bk-bar .btn { align-self: flex-start; }

  .slip { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; max-height: 86vh; z-index: 60; border: 1px solid var(--line2); border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); padding-bottom: calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6); }
  .slip.open { transform: none; }
  .slip-close { display: block; }
  .slip-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .slip.open + .slip-scrim { opacity: 1; pointer-events: auto; }

  .bk-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(9, 12, 16, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bk-tabs a, .bk-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font: 600 11px Inter; background: none; border: 0; padding: 4px 0; cursor: pointer; }
  .bk-tabs a.on { color: var(--accent); }
  .bk-tabs a:hover { text-decoration: none; }
  .bk-tabs .ti svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bk-tabs .slip-n { min-width: 16px; height: 16px; font-size: 11px; padding: 0 4px; }
  .slip-tab { color: var(--text) !important; }
}
@media (max-width: 400px) {
  .ev { grid-template-columns: minmax(0, 1fr) 186px; }
  .ac-pl { display: none; }
}

/* ================= X style scores board ================= */
/* palette measured from X's scores screens (see the Pick1 build): black ground,
   #141414 cards with a #222 hairline, #232323 pills, #8B8B8B secondary text */
body.book { --xg: #000; --xc: #141414; --xe: #222; --xpill: #232323; --xmute: #8b8b8b; --xrule: #2a2a2a; background: var(--xg); }
body.book .bk-top, body.book .bk-rail, body.book .slip, body.book .bk-tabs { background: #000; }
body.book .bk-top { border-color: var(--xe); }
body.book .bk-rail, body.book .slip { border-color: var(--xe); }
body.book .card, body.book .obj-strip .os-t, body.book .tk, body.book .sl, body.book .acct-chip { background: var(--xc); border-color: var(--xe); }
body.book .obj-strip { background: var(--xe); border-color: var(--xe); }
body.book .muted { color: var(--xmute); }

.xhead { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.xhead h1 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.xlive-n { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--neg); }
.xleagues { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px 12px; padding: 0 22px; }
.xleagues::-webkit-scrollbar { display: none; }
.xleagues a { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid #363636; color: #e7e7e7; font-size: 14px; font-weight: 600; }
.xleagues a:hover { text-decoration: none; border-color: #5a5a5a; }
.xleagues a.on { background: #fff; color: #000; border-color: #fff; }
.xsub { display: flex; gap: 28px; border-bottom: 1px solid var(--xe); margin: 4px 0 14px; }
.xsub a { padding: 10px 2px 12px; color: var(--xmute); font-weight: 700; font-size: 15px; position: relative; }
.xsub a:hover { color: #fff; text-decoration: none; }
.xsub a.on { color: #fff; }
.xsub a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; border-radius: 99px; background: var(--accent); }
.xdays { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px 14px; padding: 2px 22px; }
.xdays::-webkit-scrollbar { display: none; }
.xdays a { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 8px 12px; border-radius: 12px; border: 1px solid #363636; color: #fff; line-height: 1.2; }
.xdays a small { color: var(--xmute); font-size: 11px; margin-top: 2px; }
.xdays a b { font-size: 13px; }
.xdays a:hover { text-decoration: none; border-color: #5a5a5a; }
.xdays a.on { background: var(--xpill); border-color: #5a5a5a; }
.xdays a.on b { color: var(--accent); }
body.book .ev-search { width: 100%; max-width: 320px; margin: 0 0 14px; background: var(--xc); border-color: var(--xe); border-radius: 99px; padding: 10px 16px; }

.xgroup { margin-bottom: 22px; }
.xgroup-h { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 800; font-size: 16px; padding: 6px 2px 10px; }
.xgroup-h:hover { text-decoration: none; }
.xgroup-h .muted { font-size: 13px; font-weight: 600; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.xcell[hidden] { display: none; }

.xg { background: var(--xc); border: 1px solid var(--xe); border-radius: 16px; padding: 14px 14px 12px; display: grid; gap: 10px; transition: border-color 0.15s, transform 0.15s; }
.xg:hover { border-color: #333; }
.xg.in { border-color: rgba(255, 93, 108, 0.35); }
.xstat { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--xmute); }
.xstat:hover { text-decoration: none; color: #cfcfcf; }
.xs-l { display: inline-flex; align-items: center; gap: 7px; }
.xs-l.live { color: var(--neg); font-weight: 700; }
.xs-r { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xrule { height: 1px; background: repeating-linear-gradient(90deg, var(--xrule) 0 3px, transparent 3px 6px); }
.xt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.xt-id { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.xt-id:hover { text-decoration: none; }
.xt-id:hover b { text-decoration: underline; }
.xt-id img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.xt-id b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.xt-id small { color: var(--xmute); font-size: 12px; font-weight: 500; }
.xt.lost .xt-id b, .xt.lost .xt-sc { color: var(--xmute); }
.xt-sc { font: 600 22px Inter; font-variant-numeric: tabular-nums; color: #fff; }
.xt-sc.lead { font-weight: 800; }
.xt-sc.bump { animation: bump 0.9s; }
@keyframes bump { 0% { color: var(--accent); transform: scale(1.25); } 100% { color: inherit; transform: none; } }
.xt-px { display: flex; gap: 6px; }

/* price buttons in X pills */
.xp { background: var(--xpill); border: 1px solid transparent; border-radius: 10px; min-width: 66px; min-height: 42px; padding: 4px 8px; }
.xp span { color: var(--xmute); font-size: 11px; }
.xp b { font-size: 14px; }
.xp:hover { background: #2c2c2c; border-color: #3a3a3a; }
.xp.sel { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 255, 154, 0.15); }
.xp.sel span, .xp.sel b { color: var(--accent-ink); }
.xp.pill { flex: 1; flex-direction: row; gap: 6px; border-radius: 99px; min-height: 36px; }
.xp.pill span { font-size: 12px; color: #cfcfcf; }
.xp.big { min-height: 56px; width: 100%; }
.xp.big b { font-size: 17px; }
.xp.off { display: grid; place-items: center; color: #333; background: transparent; border: 1px dashed #2a2a2a; }
.xg-foot { display: flex; gap: 6px; align-items: center; }
.xpill { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--xpill); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.xpill:hover { text-decoration: none; background: #2c2c2c; }
.xpill.more { flex: 0 0 auto; }
.xlead { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--xmute); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xlead img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #222; flex: none; }
.xlead b { color: #fff; font-weight: 600; }

.xprob { display: grid; gap: 5px; }
.xprob-bar { display: flex; height: 5px; border-radius: 99px; overflow: hidden; gap: 2px; background: #1b1b1b; }
.xprob-bar.big { height: 10px; }
.xprob-bar i { display: block; height: 100%; }
.xprob-t { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #cfcfcf; font-variant-numeric: tabular-nums; }
.xprob-t em { font-style: normal; font-weight: 500; color: var(--xmute); }

/* game page header in team colours */
.xgh { position: relative; border-radius: 20px; padding: 18px 18px 16px; margin-bottom: 12px; overflow: hidden; background: linear-gradient(100deg, color-mix(in srgb, var(--ca) 55%, #000) 0%, #0b0b0b 50%, color-mix(in srgb, var(--ch) 55%, #000) 100%); border: 1px solid var(--xe); }
.xgh-back { color: rgba(255, 255, 255, 0.8); font-weight: 600; font-size: 14px; }
.xgh-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0 10px; }
.xgh-t { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-align: center; }
.xgh-t:hover { text-decoration: none; }
.xgh-t img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.xgh-t b { font-size: 18px; font-weight: 800; }
.xgh-t small { color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.xgh-mid { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.xgh-mid small { color: rgba(255, 255, 255, 0.75); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.xgh-mid small.live { color: #fff; font-weight: 700; }
.xgh-time { font: 800 30px Inter; letter-spacing: -0.02em; }
.xgh-score { display: flex; align-items: center; gap: 12px; font: 800 46px Inter; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.xgh-score i { font-style: normal; color: rgba(255, 255, 255, 0.4); font-weight: 400; font-size: 30px; }
.xgh-score .dim { color: rgba(255, 255, 255, 0.55); }
.xgh-prob { max-width: 520px; margin: 6px auto 0; }
.xgh-meta { text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 12px; margin-top: 10px; }
.xtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--xe); margin: 0 0 14px; }
.xtabs::-webkit-scrollbar { display: none; }
.xtabs button { flex: none; background: none; border: 0; color: var(--xmute); font: 700 15px Inter; padding: 12px 14px 14px; cursor: pointer; position: relative; }
.xtabs button:hover { color: #fff; }
.xtabs button.on { color: #fff; }
.xtabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 4px; border-radius: 99px; background: var(--accent); }
.xmk h3 { font-size: 15px; }
.xmk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xmk-grid.three { grid-template-columns: repeat(3, 1fr); }
.xmk-o { display: grid; gap: 6px; }
.xmk-o > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the game page sections: one full width card per row, one under the other */
.xg2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.xg2 > .card { margin: 0 0 12px; }
.table-wrap.flat { border: 0; border-radius: 0; }
.xls { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.xls th, .xls td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--xe); font-size: 14px; }
.xls th { color: var(--xmute); font-weight: 600; font-size: 12px; }
.xls td:first-child { text-align: left; font-weight: 700; white-space: nowrap; }
.xls td:first-child img { width: 20px; height: 20px; vertical-align: -5px; margin-right: 8px; }
.xls tr:last-child td { border-bottom: 0; }
.xleaders { display: grid; max-width: 820px; margin: 0 auto; }
/* a leader row: face, name and value on each side, the stat centered between them; every row the same grid */
.xl-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--xe); }
.xl-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.xl-cat { text-align: center; color: var(--xmute); font-size: 11px; font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.06em; }
.xl-p { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; }
.xl-p.r { grid-template-columns: auto minmax(0, 1fr) 40px; text-align: right; }
.xl-av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #232326; }
.xl-av i { font-style: normal; font-size: 13px; font-weight: 700; color: #a1a1aa; }
.xl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xl-who { display: flex; flex-direction: column; min-width: 0; }
.xl-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-who small { color: var(--xmute); font-size: 12px; white-space: nowrap; }
.xl-p strong { font: 700 20px/1 Inter; font-variant-numeric: tabular-nums; color: #fff; min-width: 2ch; }
.xl-row:last-child { border-bottom: 0; }
.xstats { display: grid; gap: 12px; }
.xst-h { display: flex; justify-content: space-between; font-weight: 800; }
.xst-h img { width: 20px; height: 20px; vertical-align: -5px; margin: 0 6px; }
/* a stat: both values in fixed columns so every label sits on the same center line; the bar keeps a track even at 0 to 0 */
.xst-t { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.xst-t span { color: var(--xmute); text-align: center; }
.xst-t b { font-size: 14px; font-variant-numeric: tabular-nums; }
.xst-t b:last-child { text-align: right; }
.xst-bar { display: flex; gap: 3px; height: 6px; border-radius: 99px; background: #232326; overflow: hidden; }
.xst-bar i { display: block; border-radius: 99px; }
.xform { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
.xform-t { width: 70px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.xform-t img { width: 20px; height: 20px; }
.xf { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 800 12px Inter; background: #222; color: var(--xmute); }
.xf.w { background: rgba(61, 255, 154, 0.15); color: var(--accent); }
.xf.l { background: rgba(255, 93, 108, 0.15); color: var(--neg); }
.xinj { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xinj-t { font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.xinj-t img { width: 20px; height: 20px; }
.xinj-r { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--xe); }
.xinj-r em { font-style: normal; color: var(--warn); font-weight: 700; font-size: 12px; white-space: nowrap; }
.xinj-r em.out { color: var(--neg); }
.xwp-h { display: flex; justify-content: space-between; align-items: baseline; }
.xwp { width: 100%; height: 140px; display: block; background: linear-gradient(180deg, color-mix(in srgb, var(--ch) 14%, transparent), transparent 50%, color-mix(in srgb, var(--ca) 14%, transparent)); border-radius: 10px; }
.xwp .mid { stroke: #333; stroke-dasharray: 4 4; }
.xwp-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--xmute); margin-top: 6px; }
.h3-logo { width: 22px; height: 22px; vertical-align: -5px; margin-right: 8px; }
.xbs { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.xbs th, .xbs td { padding: 8px 8px; border-bottom: 1px solid var(--xe); text-align: center; white-space: nowrap; }
.xbs th { color: var(--xmute); font-size: 11px; font-weight: 700; }
.xbs th:first-child, .xbs td:first-child { text-align: left; position: sticky; left: 0; background: var(--xc); z-index: 1; }
.xbs-p { display: flex; align-items: center; gap: 8px; }
.xbs-p img, .xbs-p i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #1d1d1d; flex: none; }
.xbs-p span { display: flex; flex-direction: column; line-height: 1.2; }
.xbs-p small { color: var(--xmute); font-size: 11px; }
.xbs tr.st td:first-child b { color: #fff; }
.xplays { display: grid; }
.xplay { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--xe); font-size: 14px; }
.xplay img, .xplay i { width: 24px; height: 24px; object-fit: contain; }
.xplay.sc > div > div { font-weight: 600; }
.xplay .mono { font-weight: 700; }

/* standings */
.xst-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.xst-table th, .xst-table td { padding: 10px 8px; border-bottom: 1px solid var(--xe); text-align: center; white-space: nowrap; }
.xst-table th { color: var(--xmute); font-size: 12px; font-weight: 700; }
.xst-table th:nth-child(2), .xst-table td:nth-child(2) { text-align: left; width: 100%; }
.xst-table tr:last-child td { border-bottom: 0; }
.xst-table tr.hl td { background: rgba(61, 255, 154, 0.06); }
.xst-table tr:hover td { background: #191919; }
.xst-team { display: flex; align-items: center; gap: 10px; color: #fff; }
.xst-team:hover { text-decoration: none; }
.xst-team img { width: 24px; height: 24px; object-fit: contain; }
.xst-team span { color: var(--xmute); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.xst-team em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent); background: rgba(61, 255, 154, 0.12); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) { .xst-team span { display: none; } }

/* team page */
.xteam-h { border-radius: 20px; padding: 18px; margin-bottom: 16px; background: linear-gradient(110deg, color-mix(in srgb, var(--tc) 60%, #000), #0a0a0a 75%); border: 1px solid var(--xe); }
.xteam-row { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.xteam-row img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.xteam-row h1 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 34px); }
.xsec { margin: 22px 0 12px; }
.xunit { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--xmute); margin: 18px 0 10px; }
.xroster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.xpl { display: flex; align-items: center; gap: 12px; background: var(--xc); border: 1px solid var(--xe); border-radius: 14px; padding: 10px 12px; }
.xpl img, .xpl-ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #1d1d1d; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--xmute); }
.xpl-i { display: flex; flex-direction: column; min-width: 0; }
.xpl-i b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpl-i small { color: var(--xmute); font-size: 12px; }
.xpl-i em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--warn); }

/* toast + mobile slip bar: every add confirms itself and offers the next step */
.xtoast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: #fff; color: #000; border-radius: 99px; padding: 11px 18px; font-weight: 700; font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transition: opacity 0.2s, transform 0.2s; z-index: 70; pointer-events: none; white-space: nowrap; }
.xtoast.on { opacity: 1; transform: translate(-50%, 0); }
.slipbar { display: none; }
@media (max-width: 860px) {
  .xleagues, .xdays { margin: 0 -14px 12px; padding: 2px 14px; }
  .xgrid { grid-template-columns: 1fr; }
  .xgh-t img { width: 56px; height: 56px; }
  .xgh-t b { font-size: 15px; }
  .xgh-score { font-size: 36px; }
  .xmk-grid.three { grid-template-columns: 1fr 1fr 1fr; }
  .xinj { grid-template-columns: 1fr; }
  .xtoast { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .slipbar { position: fixed; left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 49; display: flex; align-items: center; gap: 12px; background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 12px 16px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); border: 0; font-family: Inter; font-size: 15px; cursor: pointer; transform: translateY(150%); transition: transform 0.25s; }
  .slipbar.on { transform: none; }
  .slipbar .sb-n { background: var(--accent-ink); color: var(--accent); border-radius: 99px; min-width: 26px; height: 26px; display: grid; place-items: center; font: 800 13px var(--mono); }
  .slipbar .sb-r { margin-left: auto; font-family: var(--mono); }
  body.book .bk-main { padding-bottom: 170px; }
}

.xwp-wrap { position: relative; }
.xwp-top, .xwp-bot { position: absolute; left: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #cfcfcf; }
.xwp-top { top: 6px; }
.xwp-bot { bottom: 6px; }
.xwp-top img, .xwp-bot img { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .obj-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; border-radius: 12px; }
  .os-t { padding: 8px 8px 7px; }
  .os-t span { font-size: 9px; letter-spacing: 0.04em; }
  .os-t b { font-size: 13px; }
  .os-t small { display: none; }
  .os-bar { margin-top: 5px; height: 3px; }
  .xhead h1 { font-size: 22px; }
}

.bk-nav a { white-space: nowrap; }
.phase-track .now.funded { background: linear-gradient(90deg, rgba(61, 255, 154, 0.14), var(--xc)); }

/* mid widths (860 to 1280): the header holds nav, switcher, chip and menu without pushing the page sideways */
@media (max-width: 1280px) and (min-width: 861px) {
  .bk-top { gap: 14px; }
  .bk-top .logo span { display: none; }
  .bk-nav a { padding: 8px 9px; font-size: 13px; }
  .ac-pl { display: none; }
  .acct-switch select { max-width: 150px; }
}
.bk-top { min-width: 0; }
.bk-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bk-nav::-webkit-scrollbar { display: none; }

/* a picked price: a clean green fill the same size as its neighbours, a soft glow instead of a ring */
.xp.sel, .px.sel, .xp.sel:hover, .px.sel:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 18px rgba(61, 255, 154, 0.22); outline: 0; }
.xp.sel:focus-visible, .px.sel:focus-visible { outline: 2px solid #3cf09a; outline-offset: 2px; }

/* a price outside the allowed odds: same strength as the others, a small lock says why it cannot be picked */
.px.locked { opacity: 1; cursor: not-allowed; }
.px.locked b { color: #a1a1aa; }
.px.locked .lk { width: 10px; height: 10px; margin-left: 2px; }
.px.locked:not(:has(.lk))::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e98' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* plain words over the prices: which column is the spread and which is the straight win */
.xt-hd { display: flex; justify-content: flex-end; gap: 6px; margin: -2px 0 -8px; }
.xt-hd span { width: 66px; text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--xmute); }
.xg-foot .xp.pill { flex-direction: column; gap: 0; border-radius: 10px; min-height: 42px; min-width: 0; padding: 4px 6px; }
.xg-foot .xp.pill span { font-size: 11px; color: var(--xmute); }
.xg-foot .xpill.more { padding: 0 12px; min-height: 42px; border-radius: 10px; font-size: 18px; }
.sl-hint { margin-top: 4px; font-size: 12px; color: #a1a1aa; }
.sl-hint::before { content: '✓ '; color: var(--accent); font-weight: 700; }
@media (max-width: 420px) { .xt-hd span { width: 58px; } }

/* ---------- prediction markets ---------- */
.mode-sw { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 99px; background: var(--xc, #151515); border: 1px solid var(--xe, #262626); }
.mode-sw a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; color: #cfcfcf; font-size: 14px; font-weight: 700; white-space: nowrap; }
.mode-sw a:hover { text-decoration: none; color: #fff; }
.mode-sw a.on { background: #fff; color: #000; }
.mode-sw em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.sb-n.new { background: var(--accent); color: var(--accent-ink); }
.pm-lede { color: var(--muted); margin: -6px 0 14px; max-width: 640px; font-size: 14px; }
.pm-lede b { color: #fff; }
.pm-cats em { font-style: normal; font-size: 11px; opacity: 0.6; }
/* a market card is a sportsbook game card (.xg): status line, dotted rules, rows like team rows, the same price buttons */
.pm-ev { grid-template-rows: auto auto auto 1fr auto auto; }
.pm-match { color: var(--accent); font-weight: 700; font-size: 13px; }
.pm-hd { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pm-hd h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.pm-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: cover; background: #222; display: block; }
.pm-ic.sm { width: 34px; height: 34px; border-radius: 9px; }
.pm-rows { display: grid; gap: 8px; align-content: start; }
.pm-rest { display: grid; gap: 8px; }
.pm-rest[hidden] { display: none; }
.pm-rl { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pm-rl b { font-size: 15px; font-weight: 600; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.pm-rl small { color: var(--xmute); font-size: 12px; font-weight: 500; }
.pmb { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; color: #fff; cursor: pointer; }
.pmb span { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmb.locked { cursor: not-allowed; }
.pmb.locked b { color: #a1a1aa; }
.pmb.locked .lk { width: 10px; height: 10px; margin-left: 2px; }
.pmb.off { display: grid; place-items: center; color: #333; background: transparent; border: 1px dashed #2a2a2a; cursor: default; }
.pm-vol { flex: 1; color: var(--xmute); font-size: 13px; font-weight: 500; }
.pm-ev .xg-foot .xpill.more { font-size: 13px; border: 0; cursor: pointer; font-family: inherit; }
.pm-sort a { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid #363636; color: #e7e7e7; font-size: 14px; font-weight: 600; }
.pm-sort a:hover { text-decoration: none; border-color: #5a5a5a; }
.pm-sort a.on { background: #fff; color: #000; border-color: #fff; }
.pm-ic.sm { width: 34px; height: 34px; border-radius: 9px; }
.pm-mine { margin: 0 0 18px; }
.pm-mine h2, .pm-rules h3 { font-size: 16px; margin: 0 0 10px; }
.pm-pos { display: flex; gap: 10px; align-items: center; padding: 12px; margin-bottom: 8px; background: var(--xc, #151515); border: 1px solid var(--xe, #262626); border-radius: 14px; }
.pm-pl { flex: 1; min-width: 0; }
.pm-pl b { display: block; font-size: 14px; }
.pm-pl small { display: block; color: var(--xmute, #8e8e98); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-pn { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #cfcfcf; font: 500 12px var(--mono); margin-top: 2px; }
.pm-pr { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; text-align: right; }
.pm-pr b { font-size: 15px; }
.pm-pr small { font: 600 12px var(--mono); }
.pm-lock { font-size: 11px; color: var(--xmute, #8e8e98); max-width: 110px; }
[data-sell].confirm { background: #ff7a7a; border-color: #ff7a7a; color: #1a0505; }
[data-sell].done { background: var(--accent); }
.pm-rules { margin-top: 18px; }
.pm-rules ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; }
.tk2-sell { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; }
/* the buy sheet: a bottom sheet on phones, a centered card on desktop */
.pm-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0); transition: background 0.2s; }
.pm-sheet[hidden] { display: none; }
.pm-sheet.on { background: rgba(0, 0, 0, 0.6); }
.pm-card { position: relative; overflow: hidden; width: 100%; max-width: 420px; display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: #141416; border: 1px solid #2a2a2e; transform: translateY(24px); opacity: 0; transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.05), opacity 0.2s; }
.pm-sheet.on .pm-card { transform: none; opacity: 1; }
.pm-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 99px; border: 0; background: #222; color: #fff; font-size: 20px; cursor: pointer; z-index: 11; }
.pm-top { display: flex; gap: 10px; align-items: center; padding-right: 36px; }
.pm-top small { color: #cfcfcf; font-size: 13px; line-height: 1.35; }
.pm-o { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pm-o span { color: var(--muted); font-size: 13px; }
.pm-o b { font-size: 22px; letter-spacing: -0.02em; }
.pm-o em { font-style: normal; font: 700 15px var(--mono); color: var(--accent); }
.pm-amt { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pm-amt div { display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 12px; background: #0c0c0e; border: 1px solid #2a2a2e; }
.pm-amt i { font-style: normal; color: var(--muted); font-size: 20px; }
.pm-amt input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 700 24px var(--mono); padding: 12px 0; outline: none; }
.pm-quick { display: flex; gap: 6px; }
.pm-quick button { flex: 1; padding: 9px 0; border-radius: 99px; border: 1px solid #333; background: #1b1b1e; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.pm-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pm-sum div { padding: 10px; border-radius: 12px; background: #1b1b1e; min-width: 0; }
.pm-sum span { display: block; color: var(--muted); font-size: 11px; }
.pm-sum b { font: 700 15px var(--mono); overflow-wrap: anywhere; }
.pm-err { margin: 0; color: #ff9b9b; font-size: 13px; }
.pm-note { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.pm-card .btn.block { width: 100%; min-height: 50px; font-size: 16px; }
.pm-card .btn:disabled { opacity: 0.45; }
.pm-done { border-radius: 20px; }
body.pm-open { overflow: hidden; }
@media (max-width: 700px) {
  .mode-sw { display: flex; width: 100%; }
  .mode-sw a { flex: 1; justify-content: center; padding: 9px 8px; font-size: 13.5px; }
  .pm-sheet { align-items: flex-end; padding: 0; }
  .pm-card { max-width: none; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .pm-done { border-radius: 22px 22px 0 0; }
}
/* which exchange a market's price comes from */
.pm-src { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; padding: 1px 7px; border-radius: 99px; background: rgba(46, 92, 255, 0.16); color: #93b4ff; vertical-align: 1px; }
.pm-src.kalshi { background: rgba(0, 210, 140, 0.14); color: #4ee6b0; }

/* exchange marks on market cards */
.pm-src { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; }
.pm-src .ex-logo { width: 13px; height: 13px; border-radius: 4px; display: block; }
/* markets: search over the whole tab, sort, and the show more button */
.pm-find { margin: 0; }
.pm-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; font-size: 13px; }
.pm-sort > span { margin-left: auto; }
.pm-sort > span a { padding: 0; border: 0; min-height: 0; display: inline; color: var(--sport2); }
.pm-more-btn { margin: 14px 0 6px; }
@media (max-width: 640px) {
  .xl-row { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 8px; }
  /* on a phone the name gets its own line under the face and the number */
  .xl-p { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "av val" "who who"; gap: 6px 8px; }
  .xl-p.r { grid-template-columns: minmax(0, 1fr) 32px; grid-template-areas: "val av" "who who"; }
  .xl-av { grid-area: av; width: 32px; height: 32px; }
  .xl-av i { font-size: 11px; }
  .xl-who { grid-area: who; }
  .xl-p strong { grid-area: val; font-size: 18px; text-align: right; }
  .xl-p.r strong { text-align: left; }
  .xl-who b { font-size: 13px; }
  .xl-who small { font-size: 11px; }
  .xl-cat { font-size: 9.5px; letter-spacing: 0.04em; }
}

/* My bets: one chip per account, ended ones included, and why an account ended */
.mb-accts { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.mb-accts a { white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: 13px; }
.mb-accts a.on { color: var(--text, #fff); border-color: var(--accent, #c8ff3d); }
.mb-accts small { font-weight: 600; opacity: .7; }
.mb-accts em { font-style: normal; opacity: .6; margin-left: 2px; }
.mb-ended { border-color: rgba(255, 93, 108, 0.4); margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.mb-ended a { font-weight: 700; }
