/* =====================================================================
   PAGE STYLES — template pieces from isaiah30333.github.io (heading photo,
   segmented control, live pill, toast) plus the parlay builder + tracker.
   ===================================================================== */

/* status colors */
:root { --live: #b45309; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --live: #fbbf24; } }
:root[data-theme="dark"] { --live: #fbbf24; }

.small { font-size: .8rem; }
.strong { font-weight: 600; color: var(--text); }
.up { color: var(--up); }
.down { color: var(--down); }
.center { text-align: center; }
.pad { padding: 24px 4px; }
[hidden] { display: none !important; }

/* ---------- template: inner page heading over the photo ---------- */
.page { padding-top: clamp(40px, 7vw, 72px); padding-bottom: 72px; }
.page-head { margin-bottom: 32px; position: relative; isolation: isolate; }
.h-page { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.page-head::before {
  content: ""; position: absolute; z-index: -1; top: -160px; right: -10%;
  width: min(420px, 70vw); aspect-ratio: 1; border-radius: 50%; opacity: .8;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow-2) 22%, transparent), color-mix(in srgb, var(--glow-1) 8%, transparent) 45%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}
:root { --hero-scrim: linear-gradient(90deg, rgba(12,4,8,.66) 0%, rgba(12,4,8,.46) 45%, rgba(12,4,8,.14) 78%, rgba(12,4,8,0) 100%); }
:root.has-hero-img .page-head :is(h1, .lead, .muted) { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
:root.has-hero-img .page-head::before {
  top: calc(-1 * clamp(40px, 7vw, 72px)); bottom: 0; left: 50%; right: auto;
  width: 100vw; aspect-ratio: auto; transform: translateX(-50%);
  border-radius: 0; filter: none; opacity: 1;
  background: var(--hero-scrim), var(--hero-img) center 50% / cover no-repeat;
}
:root.has-hero-img .page-head { color: #fff; padding-bottom: calc(36px + var(--sheet-lift)); margin-bottom: 0; }
:root.has-hero-img .page-head .eyebrow { color: #5FF0B8; }
:root.has-hero-img .page-head .muted { color: rgba(255,255,255,.82); }
:root.has-hero-img .page-head :is(.seg, .live-pill) {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
:root.has-hero-img .page-head .seg button { color: rgba(255,255,255,.85); }
:root.has-hero-img .page-head .seg button[aria-selected="true"] { background: #fff; color: #064e3b; }
:root.has-hero-img .page-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
:root.has-hero-img .page-head .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.page-head .muted { max-width: 40em; }
.head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.head-btns { display: flex; gap: 8px; margin-left: auto; }

/* ---------- template: segmented control, live pill, toast ---------- */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-subtle); }
.seg button { border: 0; background: transparent; padding: 7px 18px; border-radius: 999px; font-size: .9rem; color: var(--text-muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 500; }
.seg-sm { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-sm::-webkit-scrollbar { display: none; }
.seg-sm button { padding: 6px 13px; font-size: .8rem; font-family: var(--font-mono); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); font-weight: 600; }

.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.live-pill[data-state="live"] .live-dot { background: var(--up); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 55%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .9rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .live-pill[data-state="live"] .live-dot { animation: none; } }

/* ---------- shared bits ---------- */
.input {
  font: inherit; font-size: .9rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0;
}
.input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 0; border-color: var(--accent); }
input[type="date"].input { color-scheme: inherit; }
.x { background: none; border: 0; color: var(--text-faint); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.x:hover { color: var(--down); background: var(--bg-subtle); }
.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: none; }

.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text-muted); white-space: nowrap; }
.pill.won { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, var(--border)); background: color-mix(in srgb, var(--up) 8%, var(--surface)); }
.pill.lost { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, var(--border)); background: color-mix(in srgb, var(--down) 8%, var(--surface)); }
.pill.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, var(--border)); background: color-mix(in srgb, var(--live) 8%, var(--surface)); }
.pill.oncourt { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--accent-soft); }
.txt-live { color: var(--live); font-weight: 600; }

/* ---------- build: board + slip ---------- */
.build { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }

.board-controls { display: grid; gap: 12px; margin-bottom: 16px; }
.sport-tabs { justify-self: start; }
@media (min-width: 761px) { .sport-tabs { flex-wrap: wrap; border-radius: 20px; } }
.board-sub { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.date-nav { display: flex; gap: 6px; align-items: center; }
.date-nav .icon-btn { font-size: 18px; }
#fieldSearch { flex: 1; min-width: 180px; }
.board-list { display: grid; gap: 12px; }

.event-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; }
.event-head h3 { margin: 0; }
.event-head.inside { margin: 0 0 8px; }

.match { padding: 16px 18px; }
.match.is-open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.match-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 10px; }
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 92px); gap: 6px 8px; align-items: center; }
.match-grid.two { grid-template-columns: minmax(0, 1fr) 110px; }
.mh { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); text-align: center; }
.mt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt .team-link img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.mt-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-rec { font-size: .75rem; color: var(--text-faint); font-family: var(--font-mono); }
.mt-score { margin-left: auto; font-family: var(--font-mono); }
.mt-sets { margin-left: auto; font-size: .85rem; color: var(--text-muted); }
.mk {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 46px; padding: 6px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-subtle); cursor: pointer; font-family: var(--font-mono); font-size: .88rem; font-weight: 600;
  transition: border-color .15s, background .15s, transform .15s;
}
.mk small { font-size: .72rem; font-weight: 500; color: var(--text-muted); }
.mk:hover { border-color: var(--accent); background: var(--hover-fill); transform: translateY(-1px); }
.match-more { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mk-text { flex-direction: row; min-height: 0; padding: 7px 14px; border-radius: 999px; font-family: var(--font-body); font-weight: 500; font-size: .85rem; }

@media (max-width: 560px) {
  .match { padding: 14px; }
  .match-grid { grid-template-columns: minmax(0, 1fr) repeat(3, 64px); gap: 6px; }
  .mt-rec { display: none; }
  .mk { font-size: .8rem; }
}

/* golf / racing field */
.entrants { display: grid; gap: 2px; max-height: 460px; overflow-y: auto; margin-top: 8px; }
.entrant { display: grid; grid-template-columns: 44px 1fr 56px 40px; gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; font-size: .9rem; }
.entrant:hover { background: var(--hover-fill); border-color: var(--border); }
.entrant.head { cursor: default; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.entrant.head:hover { background: none; border-color: transparent; }
.ent-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos { color: var(--text-muted); }

/* bet editor (opens inside a matchup card) */
.editor { margin-top: 14px; padding: 14px; border-radius: var(--radius); background: var(--bg-subtle); border: 1px solid var(--border); }
.editor-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fld { display: grid; gap: 4px; font-size: .75rem; color: var(--text-muted); }
.fld.wide { grid-column: span 2; }
.fld em { font-style: normal; color: var(--text-faint); }
.fld .input { width: 100%; }
@media (max-width: 420px) { .fld.wide { grid-column: auto; } .editor-row { grid-template-columns: 1fr; } }
.editor-foot { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 12px; }
.editor-foot > .muted { flex: 1 1 220px; }
.editor-err { color: var(--down); font-size: .8rem; }
.editor-btns { display: flex; gap: 8px; margin-left: auto; }

.stake { width: 96px; text-align: right; font-family: var(--font-mono); }

/* ---------- track ---------- */
.summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; border-left: 4px solid var(--border-strong); }
.summary h2 { font-size: 1.5rem; margin: 0 0 8px; }
.summary.is-won { border-left-color: var(--up); }
.summary.is-lost { border-left-color: var(--down); }
.summary.is-live { border-left-color: var(--live); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sum-odds { display: grid; justify-items: end; }
.sum-odds b { font-size: 1.6rem; }

.legs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: start; }
.leg-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong);
  border-radius: var(--radius); padding: 14px 18px 16px; position: relative; overflow: hidden; isolation: isolate;
  transition: box-shadow .2s, transform .2s;
}
.leg-card::after {
  content: ""; position: absolute; right: -25%; bottom: -60%; width: 65%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--glow-2), var(--glow-1) 55%, transparent 72%);
  filter: blur(38px); opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: -1;
}
.leg-card:hover { box-shadow: var(--shadow-lg); }
.leg-card:hover::after { opacity: var(--glow-strength); }
.leg-card.is-won { border-left-color: var(--up); }
.leg-card.is-lost { border-left-color: var(--down); }
.leg-card.is-live { border-left-color: var(--live); }
.leg-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.leg-top .x { margin-left: auto; }
.leg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.leg-head img.face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--bg-subtle); border: 1px solid var(--border); flex: none; }
.leg-head img.logo { width: 42px; height: 42px; object-fit: contain; flex: none; }
.leg-head img.flag-lg { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; flex: none; }
.leg-title { flex: 1; min-width: 0; }
.leg-title .name { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.leg-title .pick { color: var(--text-muted); font-size: .85rem; }
.leg-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.badge-slot { order: 3; width: 100%; padding-left: 66px; margin-top: -4px; }

.progress { margin: 14px 0 6px; }
.progress .bar { height: 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--live); border-radius: 99px; transition: width .4s; }
.is-won .progress .fill { background: var(--up); }
.is-lost .progress .fill { background: var(--down); }
.is-pending .progress .fill { background: var(--text-faint); }
.progress .nums { display: flex; justify-content: space-between; font-size: .85rem; margin-top: 6px; }
.progress .nums b { font-size: 1rem; }

.cat-title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 12px 0 0; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 8px; }
.stat { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 4px; text-align: center; }
.stat .k { font-family: var(--font-mono); font-size: .62rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-weight: 600; font-size: .95rem; }
.stat.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }

.gamestrip { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .9rem; }
.gamestrip .score { display: flex; align-items: center; gap: 7px; }
.gamestrip .score img { width: 22px; height: 22px; object-fit: contain; }
.gamestrip .situation { flex-basis: 100%; }
.clock { font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.clock.in { color: var(--live); }
.situation { font-size: .85rem; color: var(--text-muted); margin: 8px 0 0; text-align: center; }
.gamestrip .situation { text-align: left; margin: 0; }

.bigscore { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; text-align: center; }
.bigscore .team img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 4px; }
.bigscore .abbr { font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono); }
.bigscore .pts { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
.bigscore .team.mine .abbr { color: var(--accent); font-weight: 600; }

.linescore { overflow-x: auto; margin-top: 12px; }
.linescore table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.linescore th, .linescore td { padding: 4px 6px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.linescore thead th { color: var(--text-faint); font-weight: 500; }
.linescore tbody th { text-align: left; font-weight: 600; }
.linescore .tot { font-weight: 700; }
.linescore .sets th { font-family: var(--font-body); display: flex; align-items: center; gap: 8px; }
.linescore .sets td { font-size: 1rem; width: 36px; }
.linescore .sets tr.mine th { color: var(--accent); }
.linescore sup { font-size: .6rem; color: var(--text-muted); }

.floor { margin-top: 12px; font-size: .82rem; color: var(--text-muted); display: grid; gap: 2px; }
.floor b { color: var(--text); font-weight: 600; }

.vs { display: grid; gap: 6px; margin-top: 12px; }
.vs-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.vs-row.mine { border-color: var(--accent); background: var(--accent-soft); }
.vs-name { font-weight: 600; }
.vs-row b { margin-left: auto; font-size: .8rem; }

.mini-board { display: grid; gap: 2px; margin-top: 12px; font-size: .85rem; }
.mini-board > div { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; padding: 4px 8px; border-radius: 6px; }
.mini-board > div.mine { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.track-empty { text-align: center; padding: 48px 16px; }
.track-empty p { max-width: 420px; margin: 0 auto 20px; }

/* ---------- logo navigation (sport + league) ---------- */
.league-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: .85rem; cursor: pointer; color: var(--text-muted);
}
.lg-chip:not(:has(.chip-img)) { padding-left: 14px; }
.chip-img { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 1px solid var(--border); }
.chip-img img { width: 18px; height: 18px; object-fit: contain; }
.lg-chip:hover { border-color: var(--accent); }
.lg-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; background: var(--accent-soft); }

/* clickable logos */
.team-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 2px; margin: -2px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 6px; }
.team-link:hover .mt-name, .team-link:hover > span { color: var(--accent); }
.team-link img { transition: transform .15s; }
.team-link:hover img { transform: scale(1.1); }
.bigscore .team.team-link { display: block; text-align: center; margin: 0; padding: 4px; }
.bigscore .team.team-link:hover .abbr { color: var(--accent); }
.logo-btn { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; transition: transform .15s; }
.logo-btn:hover { transform: scale(1.15); }
.card-links { margin-top: 10px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 500; font-size: .85rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* "last 10" strip in the bet editor */
.recent { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.recent:empty { display: none; }
.recent-k { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.chips { display: flex; gap: 3px; flex-wrap: wrap; }
.chip { min-width: 26px; padding: 2px 4px; border-radius: 5px; text-align: center; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; background: var(--bg-subtle); border: 1px solid var(--border); }
.chip.over { background: color-mix(in srgb, var(--up) 14%, var(--surface)); border-color: color-mix(in srgb, var(--up) 45%, var(--border)); }
.chip.under { background: color-mix(in srgb, var(--down) 10%, var(--surface)); border-color: color-mix(in srgb, var(--down) 35%, var(--border)); }
.recent .link-btn { margin-left: auto; }

/* ---------- teams: standings grid ---------- */
.teams { display: grid; gap: 12px; }
.teams-hint { margin: 4px 0 0; }
.conf { margin-top: 8px; }
.conf-name { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 18px 0 10px; }
.conf-name .muted { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.team-tile {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; overflow: hidden; isolation: isolate;
}
.team-tile::after {
  content: ""; position: absolute; right: -25%; bottom: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--glow-2), var(--glow-1) 55%, transparent 72%);
  filter: blur(30px); opacity: 0; transition: opacity .35s; pointer-events: none; z-index: -1;
}
.team-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); background: var(--hover-fill); }
.team-tile:hover::after { opacity: var(--glow-strength); }
.tile-rank { position: absolute; top: 8px; left: 10px; font-size: .68rem; color: var(--text-faint); }
.tile-logo { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.tile-logo img { width: 46px; height: 46px; object-fit: contain; }
.tile-name { font-weight: 600; font-size: .9rem; text-align: center; line-height: 1.25; }
.tile-rec { font-size: .75rem; color: var(--text-muted); }
@media (max-width: 480px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tile-logo { width: 52px; height: 52px; } .tile-logo img { width: 36px; height: 36px; } .tile-name { font-size: .78rem; } }

/* ---------- team + player pages ---------- */
.crumb { justify-self: start; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: .85rem; cursor: pointer; }
.crumb:hover { border-color: var(--accent); color: var(--accent); }
.team-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 8px 0 4px; }
.team-head h2 { margin: 0 0 4px; }
.team-head p { margin: 0; }
.th-logo { width: 84px; height: 84px; object-fit: contain; }
.th-face { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: var(--bg-subtle); border: 1px solid var(--border); }
.th-team { margin-left: auto; }
.th-team img { width: 56px; height: 56px; object-fit: contain; }
.form-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.form-row .muted { margin-right: 6px; }
.form { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text-muted); }
.form.res-W { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, var(--border)); background: color-mix(in srgb, var(--up) 10%, var(--surface)); }
.form.res-L { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, var(--border)); background: color-mix(in srgb, var(--down) 8%, var(--surface)); }
.res { font-family: var(--font-mono); }
.res-W { color: var(--up); }
.res-L { color: var(--down); }
.res-D, .res-T { color: var(--text-muted); }
.team .seg, .teams > .seg { justify-self: start; }

.sched { padding: 4px 16px; }
.sched-row { display: grid; grid-template-columns: 110px 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.sched-row:last-child { border-bottom: 0; }
.sched-row.is-next .sched-date, .sched-row.is-now .sched-date { color: var(--accent); font-weight: 600; }
.sched-date { color: var(--text-muted); font-size: .85rem; }
.sched-opp img { width: 26px; height: 26px; object-fit: contain; }
.sched-opp span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-res { display: flex; align-items: center; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.mk-sm { padding: 4px 12px; font-size: .8rem; }
@media (max-width: 520px) {
  .sched { padding: 2px 12px; }
  .sched-row { grid-template-columns: 64px 22px minmax(0, 1fr) auto; gap: 6px; font-size: .82rem; }
  .sched-date { font-size: .74rem; }
}

.roster-list { padding: 4px 0; overflow: hidden; }
.player-row {
  width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 76px 16px; align-items: center; gap: 14px;
  padding: 10px 16px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background .15s;
}
.player-row:last-child { border-bottom: 0; }
.player-row:hover { background: var(--hover-fill); }
.player-row:hover .pt-name, .player-row:hover .pt-go { color: var(--accent); }
.pt-cols { display: flex; gap: 18px; font-size: .85rem; }
.pt-col { display: grid; justify-items: center; min-width: 34px; }
.pt-col em { font-style: normal; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.pt-go { font-size: 1.3rem; color: var(--text-faint); transition: color .15s, transform .15s; }
.player-row:hover .pt-go { transform: translateX(3px); }
.pt-stats { display: flex; gap: 14px; min-width: 300px; padding-left: 16px; margin-left: 2px; border-left: 1px solid var(--border); }
.pt-none { font-family: var(--font-body); font-size: .8rem; align-self: center; }
@media (max-width: 600px) {
  .player-row {
    grid-template-columns: 42px minmax(0, 1fr) 12px; grid-template-areas: "img text go" "img cols go";
    gap: 4px 12px; padding: 10px 12px;
  }
  .player-row .pt-img { grid-area: img; align-self: start; }
  .player-row .pt-text { grid-area: text; }
  .player-row .pt-cols { grid-area: cols; gap: 10px; flex-wrap: wrap; }
  .player-row .pt-go { grid-area: go; }
  .player-row > .pill, .player-row > span:empty { display: none; }
  .pt-stats { gap: 10px; padding-left: 10px; }
  .pt-col { min-width: 28px; }
}
.pt-img { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; background: var(--bg-subtle); border: 1px solid var(--border); display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.pt-img img { width: 100%; height: 100%; object-fit: cover; }
.pt-text { display: grid; min-width: 0; flex: 1; }
.pt-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-meta { font-size: .72rem; color: var(--text-muted); }

.player-controls { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.pl-line-k { font-size: .8rem; font-weight: 600; color: var(--text-muted); }

/* ---------- tap buttons instead of drop-downs (choiceHTML), and a − / + line box ---------- */
.choice { display: flex; gap: 6px; flex-wrap: wrap; }
.choice-b { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 500; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.choice-b:hover { border-color: var(--accent); color: var(--accent); }
.choice-b[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
/* a long row scrolls sideways instead of wrapping, like a sportsbook's tabs */
.choice.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.choice.tabs::-webkit-scrollbar { display: none; }
.choice.tabs .choice-b { scroll-snap-align: start; }
/* a segmented control: joined buttons */
.choice.seg { gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; width: max-content; max-width: 100%; background: var(--surface); }
.choice.seg::-webkit-scrollbar { display: none; }
.choice.seg .choice-b { border: 0; background: none; padding: 7px 14px; }
.choice.seg .choice-b[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper .input { width: 84px; border: 0; border-radius: 0; text-align: center; font-family: var(--font-mono); font-weight: 600; background: none; box-shadow: none; }
.step-b { width: 40px; border: 0; background: var(--bg-subtle); color: var(--text); font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.step-b:hover { background: var(--hover-fill); color: var(--accent); }
.fld .choice, .fld .stepper { margin-top: 2px; }
.editor-row .fld { min-width: 0; }
.editor-row .fld.wide { grid-column: 1 / -1; }
/* a builder form shows every choice at once (no hidden ones off to the side) */
.editor .choice.tabs, .tk-edit .choice.tabs { flex-wrap: wrap; overflow: visible; mask-image: none; }
.tk-edit .fld.wide { grid-column: 1 / -1; flex-basis: 100%; min-width: 0; }

/* ---------- player page: stat tabs, place it, ranges, splits, every stat ---------- */
.pl-tabs { margin-top: 16px; }
.pl-place { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; }
.pl-next { display: grid; gap: 2px; }
.pl-next b { display: inline-flex; align-items: center; gap: 6px; }
.pl-next img { width: 20px; height: 20px; object-fit: contain; }
.pl-sides { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-side { display: grid; justify-items: center; gap: 0; min-width: 104px; padding: 8px 16px; line-height: 1.2; }
.pl-side span { font-size: .76rem; font-weight: 500; opacity: .85; }
.pl-side b { font-size: 1.02rem; }
.pl-nonext { margin: 14px 0 0; }
.pl-ranges { margin-top: 16px; }
.stat-tile.is-good .st-v { color: var(--up); }
.stat-tile.is-bad .st-v { color: var(--down); }
.bar-v { position: absolute; left: 0; right: 0; text-align: center; font-size: .68rem; color: var(--text-muted); padding-bottom: 3px; pointer-events: none; z-index: 1; }
#teamsView { grid-template-columns: minmax(0, 1fr); }
.stepper .input::placeholder { color: var(--text); opacity: 1; }
.plot { overflow: visible; }
.chart-card.is-dense .bar-v { display: none; }
.chart-card.is-dense .bar-x { font-size: .56rem; overflow: hidden; }
.sp-card { margin-top: 12px; padding: 14px 18px; display: grid; gap: 10px; }
.sp-card h3 { margin: 0 0 2px; font-size: 1rem; }
.sp-card h3 .muted, .chart-head .muted { font-weight: 400; margin-left: 6px; }
.sp-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: .86rem; }
.sp-k { color: var(--text-muted); }
.sp-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--down) 35%, transparent); overflow: hidden; }
.sp-bar i { display: block; height: 100%; border-radius: 4px; background: var(--up); }
.sp-v { font-size: .8rem; white-space: nowrap; }
.pl-h { margin: 22px 0 10px; font-size: 1rem; }
.pl-h .muted { font-weight: 400; margin-left: 4px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gl { display: grid; gap: 2px; padding: 12px 14px 10px; text-align: left; color: var(--text); cursor: pointer; font: inherit; }
.gl:hover { border-color: var(--accent); }
.gl[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.gl-k { font-size: .78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-v { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.gl-sub { display: flex; gap: 6px; align-items: baseline; font-size: .72rem; }
.gl-tr { font-weight: 600; }
.gl-tr.up { color: var(--up); }
.gl-tr.down { color: var(--down); }
.gl-spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 6px; }
.gl-spark i { flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.gl[aria-pressed="true"] .gl-spark i { background: var(--accent); }
@media (max-width: 560px) { .pl-place { padding: 10px 12px; } .pl-sides { width: 100%; } .pl-side { flex: 1; } .sp-row { grid-template-columns: 70px minmax(0, 1fr) auto; } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-tile { padding: 14px 16px; display: grid; gap: 2px; }
.st-k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.st-v { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; line-height: 1.15; }

.chart-card { margin-top: 12px; padding: 18px 18px 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-head h3 { margin: 0; font-size: 1rem; }
.chart-key { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.chart-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.chart-key .k-over { background: var(--up); }
.chart-key .k-under { background: var(--down); }
.chart { display: grid; column-gap: 0; }
.bar-col { position: relative; display: grid; gap: 6px; outline: none; cursor: default; }
.plot { position: relative; height: 170px; border-bottom: 1px solid var(--border-strong); }
.plot .bar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(62%, 34px); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.plot .bar.over { background: var(--up); }
.plot .bar.under { background: var(--down); }
.plot .bar.push { background: var(--text-faint); }
.bline { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--text-muted); pointer-events: none; }
.bar-x { text-align: center; font-size: .68rem; color: var(--text-muted); }
.chart:hover .bar { opacity: .55; }
.chart .bar-col:hover .bar, .chart .bar-col:focus .bar { opacity: 1; }
.bar-col:hover::after, .bar-col:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% - 6px); left: 50%; transform: translateX(-50%);
  padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: .75rem; white-space: nowrap; z-index: 5; box-shadow: var(--shadow-lg); pointer-events: none;
}
.bar-col:first-child:hover::after, .bar-col:first-child:focus::after { left: 0; transform: none; }
.bar-col:last-child:hover::after, .bar-col:last-child:focus::after { left: auto; right: 0; transform: none; }

.log-card { margin-top: 12px; padding: 8px 0 12px; display: grid; gap: 10px; justify-items: center; }
.log-wrap { width: 100%; overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: .82rem; }
.log th { position: sticky; top: 0; background: var(--surface); font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.log td { padding: 7px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.log tr:last-child td { border-bottom: 0; }
.log tbody tr:hover td { background: var(--hover-fill); }
.nowrap { white-space: nowrap; }
.log-opp img { width: 18px; height: 18px; object-fit: contain; }
.log-opp { gap: 5px; font-size: .82rem; }
.player-row > .pill { justify-self: end; }
@media (max-width: 600px) { .pt-stats { min-width: 0; } }

/* ---------- prop player picker + stat buttons ---------- */
.ed-label { font-size: .75rem; color: var(--text-muted); margin: 12px 0 6px; }
.picker { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pk-search { width: calc(100% - 16px); margin: 8px; }
.pk-list { max-height: 360px; overflow-y: auto; border-top: 1px solid var(--border); }
.pk-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border); font-weight: 600; font-size: .82rem;
}
.pk-head img { width: 20px; height: 20px; object-fit: contain; }
.pk-kind { margin-left: auto; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pk-row {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 7px 12px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; cursor: pointer;
}
.pk-row:last-child { border-bottom: 0; }
.pk-row:hover { background: var(--hover-fill); }
.pk-row:hover .pk-name { color: var(--accent); }
.pk-img { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bg-subtle); border: 1px solid var(--border); font-size: .72rem; font-weight: 600; color: var(--text-muted); flex: none; }
.pk-img img { width: 100%; height: 100%; object-fit: cover; }
.pk-text { display: grid; min-width: 0; }
.pk-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-meta { font-size: .75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-pos { font-size: .75rem; color: var(--text-muted); min-width: 28px; text-align: right; }
.picker.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-color: var(--accent); background: var(--accent-soft); }
.picker.picked .pk-text { flex: 1; }
.stat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .85rem; cursor: pointer; transition: border-color .15s, background .15s; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.editor > .editor-row + .editor-row { margin-top: 12px; }
.editor .picker + .editor-row, .editor .stat-chips + .editor-row { margin-top: 14px; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.empty-board { display: grid; justify-items: start; gap: 8px; }
.empty-board p { margin: 0; }

.danger-link { color: var(--down); }

/* ---------- bet form ---------- */
.replace-banner { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); font-size: .85rem; }
.pk-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pk-quick-k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-right: 4px; }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: .8rem; }
.pk-chip .pk-img { width: 26px; height: 26px; font-size: .6rem; }
.pk-chip em { font-style: normal; font-family: var(--font-mono); font-size: .64rem; color: var(--text-faint); }
.pk-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- My Parlays: one ticket per parlay ---------- */
.tickets { display: grid; gap: 28px; }
.ticket { padding: 0; overflow: hidden; border-left: 4px solid var(--border-strong); }
.ticket.is-won { border-left-color: var(--up); }
.ticket.is-lost { border-left-color: var(--down); }
.ticket.is-live { border-left-color: var(--live); }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.tk-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-title h3 { margin: 0; font-size: 1.15rem; }
.tk-pay { display: grid; justify-items: end; }
.tk-pay b { font-size: 1.35rem; }
.tk-legs { list-style: none; margin: 0; padding: 0; }
.tk-leg { border-bottom: 1px solid var(--border); }
.tk-row {
  width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 14px; gap: 14px; align-items: center;
  padding: 12px 18px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
}
.tk-row:hover { background: var(--hover-fill); }
.tk-main { display: grid; gap: 2px; min-width: 0; }
.tk-pick { font-weight: 600; font-size: .95rem; }
.tk-pick .pill { margin-left: 4px; vertical-align: 1px; }
.tk-sub { font-size: .78rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-mini { font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono); }
.tk-bar { display: block; height: 5px; max-width: 260px; margin-top: 4px; border-radius: 99px; background: var(--bg-subtle); border: 1px solid var(--border); overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: var(--live); }
.is-won .tk-bar i { background: var(--up); }
.is-lost .tk-bar i { background: var(--down); }
.is-pending .tk-bar i { background: var(--text-faint); }
.tk-right { display: grid; justify-items: end; gap: 3px; }
.tk-odds { font-size: .95rem; font-weight: 600; }
.tk-note { font-size: .7rem; color: var(--text-faint); max-width: 180px; text-align: right; }
.tk-chev { color: var(--text-faint); font-size: 1.2rem; transition: transform .2s; }
.tk-leg.open .tk-chev { transform: rotate(90deg); }
.tk-detail { padding: 0 18px 16px 42px; }
.tk-detail .leg-card { border: 0; padding: 0; background: none; box-shadow: none; }
.tk-detail .leg-card::after { display: none; }
.tk-detail .leg-top { display: none; }
.inj-banner { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .85rem; background: color-mix(in srgb, var(--live) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--live) 35%, var(--border)); }
.tk-edit { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 4px 18px 14px 42px; }
.tk-edit .fld { min-width: 110px; }
.tk-edit-btns { display: flex; gap: 8px; margin-left: auto; }
.tk-empty { padding: 16px 18px; margin: 0; }
.tk-foot { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 18px; }
.tk-stake { display: flex; align-items: center; gap: 8px; }
.tk-spacer { flex: 1; }
.new-ticket { padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: none; color: var(--accent); font-weight: 500; cursor: pointer; }
.new-ticket:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 600px) {
  .tk-row { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 12px 14px; gap: 10px; }
  .tk-chev { display: none; }
  .tk-detail, .tk-edit { padding-left: 14px; padding-right: 14px; }
  .tk-note { max-width: 120px; }
  .tk-edit-btns { margin-left: 0; width: 100%; }
}

/* ---------- News + injuries ---------- */
.news { display: grid; gap: 14px; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.news-grid.single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-headrow, .inj-headrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.news-headrow h3, .inj-headrow h3 { margin: 0; }
.news-col { display: grid; gap: 4px; }
.news-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: var(--radius); transition: background .15s; }
.news-item:hover { background: var(--hover-fill); }
.news-item:hover h4 { color: var(--accent); }
.news-item img, .news-noimg { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-subtle); }
.news-item h4 { margin: 0 0 4px; font-size: .98rem; line-height: 1.3; }
.news-item p { margin: 0 0 4px; font-size: .84rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .news-item { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; } .news-item img, .news-noimg { width: 86px; } }
.inj-col { padding: 14px 16px; max-height: 900px; overflow-y: auto; }
.inj-col .input { min-width: 0; flex: 1; }
.inj-team + .inj-team { margin-top: 12px; }
.inj-teamname { position: sticky; top: -14px; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 6px 0; background: var(--surface); font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--border); }
.inj-teamname img { width: 20px; height: 20px; object-fit: contain; }
.inj-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.inj-row:last-child { border-bottom: 0; }
.inj-name { font-weight: 600; font-size: .88rem; }
.inj-note { font-size: .8rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tk-leg.is-pending .tk-bar { display: none; }

/* ---------- injury impact badges (signal bars + label, never color alone) ---------- */
.imp { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text-muted); vertical-align: 1px; }
.imp-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.imp-bars b { display: block; width: 3px; border-radius: 1px; background: var(--border-strong); }
.imp-bars b:nth-child(1) { height: 4px; }
.imp-bars b:nth-child(2) { height: 7px; }
.imp-bars b:nth-child(3) { height: 11px; }
.imp-low .imp-bars b:nth-child(1),
.imp-med .imp-bars b:nth-child(-n+2),
.imp-high .imp-bars b { background: currentColor; }
.imp-high { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, var(--border)); background: color-mix(in srgb, var(--down) 9%, var(--surface)); }
.imp-med { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, var(--border)); background: color-mix(in srgb, var(--live) 9%, var(--surface)); }
.inj-role { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 3px 0 2px; font-size: .78rem; color: var(--text); }
.imp-sum { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--down); }
.imp-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; cursor: pointer; }
.tk-pick .imp { margin-left: 4px; }

/* =====================================================================
   TWO-TIER HEADER & SPORTS RAIL (tabs.js) + EDITORIAL TYPOGRAPHY
   ===================================================================== */
:root { --tape-h: 62px; }                       /* height of the sports rail: anchors stop below it */
.menu-btn { display: none !important; }         /* no menu: the two-tier header is the navigation */
.header-inner { gap: 14px; }
.header-actions { margin-left: auto; }
.ws-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.ws-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  transition: color .15s, background .15s;
}
.ws-tab svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ws-tab:hover { color: var(--text); background: var(--bg-subtle); }
.ws-tab[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.ws-n {
  min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; line-height: 1;
}
.ws-fb { margin-left: 2px; }

.tabbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-subtle) 55%, var(--bg)); }
.tabbar-in { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; position: relative; max-width: 1200px; }
.tabbar-in::-webkit-scrollbar { display: none; }
.tab-grp {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint); padding: 0 6px 0 2px; white-space: nowrap; flex: none;
}
.tab-sep { width: 1px; height: 26px; background: var(--border-strong); margin: 0 6px; flex: none; }
.tabbar .tab { flex: 0 0 auto; min-width: 52px; height: 60px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 0 6px; border-bottom: 3px solid transparent; transition: background .15s; }
.tabbar .tab:hover { background: var(--hover-fill); }
.tabbar .tab-img { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--border); }
.tabbar .tab-img img { width: 22px; height: 22px; object-fit: contain; }
.tabbar .tab-label { font-size: .68rem; line-height: 1; color: var(--text-muted); white-space: nowrap; }
.tabbar .tab[aria-current="page"] { border-bottom-color: var(--accent); }
.tabbar .tab[aria-current="page"] .tab-label { color: var(--text); font-weight: 600; }

/* editorial typography hierarchy + tabular numbers */
.h-page { font-weight: 700; letter-spacing: -0.03em; }
.an-h { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.mono, .mk, .st-v, .td-v, .sum-odds b, .tk-pay b, .gm-score, .mn-hero b { font-variant-numeric: tabular-nums; }

/* ---------- slim page head: logo, name, the sport's own tabs ---------- */
.page:has(.page-head--slim) { padding-top: 26px; }
:root.has-hero-img .page-head--slim { padding-bottom: calc(20px + var(--sheet-lift)); min-height: 178px; }
:root.has-hero-img .page-head--slim::before { top: -26px; }
.page-head--slim .h-page { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.page-head--slim .head-row { margin-top: 16px; }
.ph-row { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.ph-logo { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.ph-logo img { width: 38px; height: 38px; object-fit: contain; }
.ph-new, .ph-refresh { margin-left: auto; }
:root.has-hero-img .page-head .ph-refresh { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.page-head--slim .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.page-head--slim .seg::-webkit-scrollbar { display: none; }
.page-head--slim .seg button { white-space: nowrap; }
@media (max-width: 560px) { .page-head--slim .seg button { padding: 7px 13px; font-size: .85rem; } .page-head--slim .head-row { margin-inline: -4px; } }
#leagueBar:not(:empty) { margin-bottom: 18px; }
@media (max-width: 700px) {
  .league-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .league-nav::-webkit-scrollbar { display: none; }
  .lg-chip { flex: none; }
}

/* ---------- player photos ---------- */
.face { --f: 40px; position: relative; flex: none; width: var(--f); height: var(--f); display: inline-block; }
.ent-name { padding: 4px 0; }
.face-sm { --f: 32px; } .face-lg { --f: 56px; } .face-xl { --f: 78px; }
.face-img { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--bg-subtle); border: 1px solid var(--border); font-size: calc(var(--f) * .3); font-weight: 600; color: var(--text-muted); }
.face-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.face-logo .face-img { background: #fff; }
.face-logo .face-img img { width: 76%; height: 76%; object-fit: contain; }
.face-badge { position: absolute; right: -5px; bottom: -3px; width: 46%; height: 46%; min-width: 17px; min-height: 17px; object-fit: contain; padding: 2px; border-radius: 50%; background: #fff; border: 1px solid var(--border); }
.face-pair { display: flex; align-items: center; width: 48px; }
.face-pair img { width: 28px; height: 28px; object-fit: contain; }
.face-pair img + img { margin-left: -8px; }

/* ---------- games ---------- */
.board-sub { margin-bottom: 14px; }
.date-pick { position: relative; min-width: 150px; text-align: center; cursor: pointer; }
.date-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.date-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.date-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mk[aria-pressed="true"], .mk[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mk[aria-pressed="true"] small { color: inherit; }
.mk-main { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip-btn b { margin-left: 3px; font-weight: 600; opacity: .75; }

/* ---------- hot players ---------- */
.tab-chips { margin-bottom: 16px; }
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.hot-card { display: grid; gap: 14px; align-content: start; padding: 16px; text-align: left; cursor: pointer; }
.hot-card:not(.sk):hover, .tp-card:hover { border-color: var(--accent); }
.hot-card.sk { min-height: 178px; cursor: default; background: linear-gradient(100deg, var(--surface) 40%, var(--bg-subtle) 50%, var(--surface) 60%) 0 0 / 300% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hot-card.sk { animation: none; } }
.hot-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hot-id { display: grid; gap: 1px; justify-items: start; flex: 1; min-width: 0; font-size: .8rem; color: var(--text-muted); }
.hot-id b { font-size: .98rem; line-height: 1.25; color: var(--text); }
.hot-up { color: var(--up); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.hot-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 4px; height: 48px; }
.hot-bars i { border-radius: 3px 3px 0 0; background: var(--border-strong); }
.hot-bars i.on { background: var(--accent); }
.hot-chips { display: flex; gap: 4px; }
.hot-chips i { flex: 1 1 0; max-width: 30px; height: 26px; display: grid; place-items: center; border-radius: 6px; font: 600 .74rem var(--font-mono); color: var(--text-muted); background: var(--bg-subtle); border: 1px solid var(--border); opacity: .6; }
.hot-chips i.on { opacity: 1; }
.hot-chips i.w { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, var(--border)); }
.hot-chips i.l { color: var(--down); }
.hot-nums { display: flex; gap: 28px; }
.hot-nums em { display: block; font-style: normal; font-size: .74rem; color: var(--text-muted); }
.hot-nums b { font-size: 1.35rem; line-height: 1.2; }
.hot-nums .dim { color: var(--text-muted); font-weight: 500; }
.more-btn { display: flex; margin: 18px auto 0; }

/* ---------- top props ---------- */
.game-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding: 1px; }
.game-chips::-webkit-scrollbar { display: none; }
.game-chip { flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .88rem; cursor: pointer; }
.game-chip img { width: 27px; height: 27px; object-fit: contain; }
.game-chip:hover { border-color: var(--accent); }
.game-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.tp-note { margin: 0 0 14px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; align-items: start; }
.tp-card { padding: 14px 16px; }
.tp-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 0 0 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.tp-head:hover b { color: var(--accent); }
.tp-n { display: grid; justify-items: center; font-size: .7rem; line-height: 1.2; color: var(--text-muted); }
.tp-n b { font-size: 1.1rem; color: var(--text); }
.tp-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.tp-stat { flex: 1; min-width: 0; display: grid; font-size: .9rem; line-height: 1.35; }
.tp-hit { font-size: .75rem; color: var(--text-muted); }
.tp-hit.good { color: var(--up); font-weight: 600; }
.mk-side { width: 66px; min-height: 42px; font-family: var(--font-body); font-size: .82rem; }
.mk-side small { font-family: var(--font-mono); }
.mk-side:disabled { opacity: .5; }

/* ---------- leaders + rankings: photo tiles ---------- */
.face-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.face-tile { position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 18px 10px 14px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s; }
button.face-tile { cursor: pointer; }
:is(a, button).face-tile:hover { border-color: var(--accent); }
.face-tile .face { margin-bottom: 7px; }
.face-tile > b { font-size: .9rem; line-height: 1.25; }
.face-sub { font-size: .75rem; color: var(--text-muted); }
.face-val { font-size: .78rem; color: var(--text-muted); }
.face-val b { font-size: 1.05rem; color: var(--text); }
.team-search { width: min(100%, 320px); }
@media (max-width: 480px) { .face-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- picks tray: the parlay you're building, at the bottom while you pick (app.js renderTray) ---------- */
.slip-bar { position: fixed; z-index: 40; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(560px, calc(100% - 20px)); display: flex; flex-direction: column;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow-lg); overflow: hidden; }
.slip-bar[hidden] { display: none; }
body:has(.slip-bar:not([hidden])) .site-footer { padding-bottom: 104px; }
.pt-bar { display: flex; align-items: center; gap: 10px; padding-right: 14px; }
.pt-sum { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 6px 11px 14px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pt-n { flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #04130d; font-weight: 800; font-size: .95rem; }
.pt-txt { flex: 1; min-width: 0; display: grid; font-size: .84rem; color: var(--text-muted); }
.pt-txt b, .pt-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-txt b { color: var(--text); font-size: .95rem; }
.pt-chev { color: var(--text-muted); font-size: .9rem; }
.pt-panel { border-bottom: 1px solid var(--border); max-height: min(55vh, 440px); display: flex; flex-direction: column; }
.pt-legs { list-style: none; margin: 0; padding: 6px 8px 6px 14px; overflow-y: auto; }
.pt-legs li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pt-legs li:last-child { border-bottom: 0; }
.pt-leg { flex: 1; min-width: 0; display: grid; }
.pt-leg b, .pt-leg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-legs .x { flex: none; }
.pt-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: var(--bg-subtle); }
.tk-sec { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 22px 0 10px; }
.tk-sec:first-child, .tk-clear + .tk-sec { margin-top: 0; }
.tk-sec .muted { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.toast.has-undo.show { pointer-events: auto; }
.toast button { margin-left: 14px; padding: 0; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- my parlays ---------- */
.tk-group { margin: 12px 0 -10px; font-size: 1.1rem; color: var(--text-muted); }
.tk-pic { display: grid; place-items: center; }
.tk-pic .face { --f: 44px; }
.empty-sports { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-width: 820px; margin: 0 auto; }
.sport-tile { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: #222; font-size: .85rem; font-weight: 600; }
.sport-tile img { width: 48px; height: 48px; object-fit: contain; }
.sport-tile:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* =====================================================================
   SEARCH, HOME, ANSWERS, GAME, STORY (search.js)
   ===================================================================== */
.ask { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); }
.ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.ask > svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; }
.ask input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 16px; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask-big { padding: 5px 6px 5px 18px; box-shadow: var(--shadow-lg); }
.ask-big > svg { width: 20px; height: 20px; }
.ask-big input { height: 48px; font-size: 1.05rem; }
.ask-drop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); text-shadow: none; }
.ask-drop a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .95rem; }
.ask-drop a:hover, .ask-drop a:focus { background: var(--bg-subtle); outline: 0; }
.ask-drop a b { display: block; font-weight: 600; line-height: 1.3; }
.ask-drop em { font-style: normal; font-size: .8rem; color: var(--text-muted); }
.ask-go span { color: var(--text-muted); }
.head-search { flex: 1 1 140px; max-width: 260px; margin-left: auto; }
.head-search + .header-actions { margin-left: 0; }
.no-hsearch .head-search { visibility: hidden; }
@media (max-width: 1060px) {
  .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .ws-nav { order: 10; flex: 0 0 100%; overflow-x: auto; scrollbar-width: none; padding-top: 8px; border-top: 1px solid var(--border); }
  .ws-nav::-webkit-scrollbar { display: none; }
  .head-search { max-width: none; }
  .no-hsearch .head-search { display: none; }
  .no-hsearch .header-actions { margin-left: auto; }
}
@media (max-width: 560px) { .site-header .brand-name { display: none; } .no-hsearch .site-header .brand-name { display: block; } .ws-tab { padding: 6px 9px; font-size: .82rem; } }
.hm-hero { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 22px 0 14px; text-align: center; }
.hm-hero .h-page { margin: 0 0 20px !important; }
.hm-hero .ask { text-align: left; }
.page-head--slim:has(.hm-hero) { isolation: auto; z-index: auto; }   /* the suggestions open over the sheet */
main.page { position: relative; z-index: 0; }

.an-h { margin: 34px 0 14px; font-size: 1.25rem; }
.hm-main > .an-h:first-child { margin-top: 0; }
.hm-main > .ex-bar + .an-h { margin-top: 22px; }

/* the live panel: newest posts from everyone, beside the page like a stream's chat */
#homeView.has-live { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
#homeView[hidden] { display: none; }
.hm-main { min-width: 0; }
.hm-live { position: sticky; top: calc(var(--header-h) + var(--tape-h, 0px) + 12px); display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - var(--tape-h, 0px) - 28px); max-height: 760px; min-height: 360px; padding: 0; overflow: hidden; }
.lv-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.lv-head h2 { margin: 0; font-size: .95rem; }
.lv-head .live-dot { flex: none; background: var(--up); animation: pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .lv-head .live-dot { animation: none; } }
.lv-all { margin-left: auto; font-size: .8rem; }
.lv-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lv-list { list-style: none; margin: 0; padding: 4px 0; }
.lv-item + .lv-item { border-top: 1px solid var(--border); }
.lv-a { display: flex; gap: 10px; padding: 10px 14px; color: var(--text); text-decoration: none; }
.lv-a:hover { background: var(--hover-fill); }
.lv-a .so-av { flex: none; margin-top: 2px; }
.lv-body { display: grid; gap: 3px; min-width: 0; font-size: .84rem; line-height: 1.35; }
.lv-top { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; min-width: 0; font-size: .8rem; }
.lv-ago { margin-left: auto; flex: none; font-size: .74rem; }
.lv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-topic { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; color: var(--accent); }
.lv-cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lv-slip { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; }
.lv-n { color: var(--text-muted); }
.lv-slip .pill { font-size: .66rem; padding: 1px 7px; }
.lv-legs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--text-muted); }
.lv-note { padding: 16px 14px; font-size: .86rem; }
.lv-post { margin: 10px 14px 12px; justify-content: center; }
.lv-item.is-new { animation: lv-in .5s ease-out; }
.lv-item.is-new .lv-a { animation: lv-glow 2.4s ease-out; }
@keyframes lv-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes lv-glow { from { background: color-mix(in srgb, var(--accent) 14%, transparent); } }
/* locked until you have an account: blurred placeholder shapes (never real posts) under a sign-up button */
.lk { position: relative; overflow: hidden; }
.lk-fake { padding: 4px 14px; filter: blur(4px); opacity: .5; pointer-events: none; user-select: none; }
.lk-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.lk-row > span { flex: 1; min-width: 0; }
.lk-row i { display: block; height: 9px; margin: 5px 0 9px; border-radius: 5px; background: var(--text-faint); }
.lk-row i.lk-av { flex: none; width: 30px; height: 30px; margin: 0; border-radius: 50%; background: var(--accent); opacity: .7; }
.lk-row i.lk-box { width: 100%; height: 54px; margin-top: 12px; border-radius: 10px; opacity: .45; }
.lk-card { padding: 16px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; }
.lk-brow { align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.lk-brow i { margin: 0; }
.lk-brow i.lk-num { flex: none; width: 18px; }
.lk-brow i.lk-end { flex: none; width: 54px; margin-left: auto; background: var(--up); }
.lk-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--surface) 94%, transparent) 35%, color-mix(in srgb, var(--surface) 40%, transparent) 80%); }
.lk-cta > * { flex: none; }
.lk-cta svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.lk-cta b { font-size: 1.02rem; }
.lk-cta p { max-width: 34ch; margin: 0 0 6px; font-size: .86rem; color: var(--text-muted); }
.lk-social { min-height: 460px; }
.lk-board { min-height: 380px; }
.hm-live.is-locked .lv-scroll { display: flex; overflow: hidden; }
.lk-rail { flex: 1; min-height: 300px; }
.lk-rail .lk-cta { justify-content: flex-start; padding-top: 64px; }
.lk-chat { height: 100%; min-height: 240px; }
.lv-msgs:has(.lk) { overflow: hidden; padding: 0; }
.hm-live.is-locked .lv-post { display: none; }
@media (max-width: 1000px) { .lk-rail { min-height: 260px; } .lk-rail .lk-cta { justify-content: center; padding-top: 18px; } .lk-rail .lk-fake { display: flex; gap: 16px; } .lk-rail .lk-row { flex: 0 0 240px; } .hm-live.is-locked .lv-scroll { overflow: hidden; } }
.so-post.so-flash { animation: so-flash 2.2s ease-out; }
@keyframes so-flash { 0%, 30% { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .lv-item.is-new, .lv-item.is-new .lv-a, .so-post.so-flash { animation: none; } }
/* narrower screens: the panel moves above the games as a row of cards to swipe */
@media (max-width: 1000px) {
  #homeView.has-live { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hm-live { order: -1; position: static; height: auto; min-height: 0; max-height: none; margin-bottom: 22px; }
  /* signed out it is only a sign-up ask: show the games first */
  .hm-live.is-locked { order: 1; margin: 22px 0 0; }
  .lv-head { padding: 10px 12px; }
  .lv-scroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .lv-list { display: flex; gap: 0; padding: 0; }
  .lv-item { flex: 0 0 min(78%, 270px); scroll-snap-align: start; }
  .lv-item + .lv-item { border-top: 0; border-left: 1px solid var(--border); }
  .lv-a { height: 100%; padding: 10px 12px; }
  .lv-cap { -webkit-line-clamp: 2; }
  .lv-post { display: none; }
}
.ex-bar { display: flex; align-items: flex-start; gap: 10px 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.ex-bar-k { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 8px; white-space: nowrap; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.ex-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px 5px 6px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--text); line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
}
.ex-chip:hover { border-color: var(--accent); background: var(--hover-fill); color: var(--accent); }
.ex-chip-pics { display: inline-flex; align-items: center; flex: none; }
.ex-chip-pics img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: center top; border: 1px solid var(--border); background: var(--bg-subtle); }
.ex-chip-pics img.ex-logo { object-fit: contain; padding: 2px; background: #fff; }
.ex-chip-pics img + img { margin-left: -6px; }
@media (max-width: 560px) { .ex-chip { border-radius: 16px; } .ex-bar { flex-direction: column; gap: 8px; } .ex-bar-k { padding-top: 0; } .ex-chips { width: 100%; } }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ex { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.ex:hover, .story:hover, a.gcard:hover { border-color: var(--accent); transform: none; }
.ex-pics { display: flex; flex: none; }
.ex-pics .face + .face { margin-left: -16px; }
.ex-pics .face-img { background: var(--bg-subtle); }
.ex-pics .face-logo .face-img { background: #fff; }
.ex-t { min-width: 0; }
.ex-t em { display: block; font-style: normal; font-size: .78rem; color: var(--text-muted); }
.ex-t b { font-size: .98rem; line-height: 1.3; }

.hm-games { display: flex; flex-wrap: wrap; gap: 20px 30px; }
.hm-lg { min-width: 0; max-width: 100%; }
.hm-lgh { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; }
.hm-lgh img { width: 24px; height: 24px; object-fit: contain; padding: 2px; border-radius: 50%; background: #fff; }
.hm-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.hm-row .gcard { flex: 0 0 176px; scroll-snap-align: start; }
.hm-row { scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.hm-n { margin-left: 4px; font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.hm-lgh:hover .hm-n { color: var(--accent); }
.hm-all { align-content: center; justify-items: start; color: var(--text); text-decoration: none; }
.hm-all b { font-size: 1rem; }
.hm-all span { font-size: .8rem; color: var(--accent); }
@media (max-width: 560px) {
  .hm-lg { flex: 0 0 100%; }
  .hm-row { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .hm-row .gcard { flex-basis: 152px; }
}
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gcard { display: grid; gap: 7px; padding: 12px 14px; }
.gcard-top { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-t { display: flex; align-items: center; gap: 9px; min-width: 0; }
.gcard-t img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.gcard-t b { flex: 1; min-width: 0; font-weight: 600; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-t em { font-style: normal; font-weight: 700; }
.gcard-t small { color: var(--text-muted); font-size: .74rem; }
.gcard-t.dim b, .gcard-t.dim em { color: var(--text-muted); font-weight: 500; }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.story { display: grid; align-content: start; padding: 0; overflow: hidden; }
.story > img, .story-no { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-subtle); }
.story-t { display: grid; gap: 5px; padding: 12px 14px 14px; }
.story-t em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--accent); }
.story-t b { line-height: 1.32; }

/* answers */
.an-hero { display: flex; align-items: flex-start; justify-content: center; gap: clamp(16px, 6vw, 64px); }
.an-who { flex: 0 1 220px; display: grid; justify-items: center; gap: 3px; min-width: 0; text-align: center; }
.an-who b { margin-top: 10px; font-size: 1.1rem; line-height: 1.2; }
.an-who > span:last-child { font-size: .85rem; color: var(--text-muted); }
a.an-who:hover b { color: var(--accent); }
.face-hero { --f: clamp(96px, 24vw, 148px); }
.face-hero .face-badge { width: 34%; height: 34%; padding: 5px; right: 0; bottom: 0; }
.an-vs { align-self: center; color: var(--text-muted); font-weight: 600; }
.an-say { max-width: 780px; margin: 26px auto 24px; text-align: center; }
.an-big { margin: 0 0 8px; font-family: var(--font-heading); font-size: clamp(1.25rem, 3.2vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.an-big b { color: var(--accent); }
.an-sub { margin: 0; color: var(--text-muted); text-wrap: balance; }
.an-miss { text-align: center; color: var(--text-muted); }
.an-wait { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 0; color: var(--text-muted); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.an-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.an-seg button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.an-seg img { width: 20px; height: 20px; object-fit: contain; }
.duel { padding: 6px 20px 12px; }
.duel-row { display: grid; grid-template-columns: minmax(96px, 1.1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.duel-row:last-child { border-bottom: 0; }
.duel-row > span:first-child { font-size: .9rem; color: var(--text-muted); }
.duel-head b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.duel-v b { font-size: 1.1rem; font-weight: 500; }
.duel-v.best b { font-weight: 700; }
.duel-v i { display: block; height: 5px; min-width: 2px; margin-top: 3px; border-radius: 3px; background: var(--border-strong); }
.duel-v.best i { background: var(--accent); }
@media (max-width: 560px) { .duel { padding-inline: 14px; } .duel-row { gap: 12px; grid-template-columns: minmax(84px, 1fr); } }
.an-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.an-nums .card { display: grid; gap: 2px; padding: 14px 16px; }
.an-nums b { font-size: 1.3rem; line-height: 1.25; }
.an-nums span { font-size: .84rem; color: var(--text-muted); }
.an-log tr[data-href] { cursor: pointer; }
.an-chart { padding: 16px 18px; margin-bottom: 14px; }
.an-chart h3 { margin: 0 0 12px; font-size: 1rem; }
.an-bars { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 170px; }
.an-bar { display: grid; grid-template-rows: 20px 1fr 22px; justify-items: center; min-width: 0; }
.an-bar em { font-style: normal; font-size: .82rem; font-weight: 600; }
.an-bar small { align-self: end; font-size: .7rem; color: var(--text-muted); }
.an-col { width: 100%; max-width: 46px; display: flex; align-items: flex-end; }
.an-col i { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); }
.an-col i.over { background: var(--up); } .an-col i.under { background: var(--border-strong); }
.an-bars u { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--text-muted); pointer-events: none; }
.an-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 760px) { .an-two { grid-template-columns: minmax(0, 1fr); } }
.an-inj { padding: 8px 16px; }
.an-inj h3 { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: 1rem; }
.an-inj h3 img { width: 24px; height: 24px; object-fit: contain; }
.an-results { padding: 4px 16px; }
.an-res { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.an-res:last-child { border-bottom: 0; }
.an-resn { display: flex; align-items: center; gap: 12px; }
.an-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.an-also a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 5px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; }
.an-also a:hover { border-color: var(--accent); }

/* game page */
.gm-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 22px 16px; }
.gm-team { display: grid; justify-items: center; gap: 4px; border: 0; background: none; cursor: pointer; text-align: center; }
.gm-team img { width: clamp(56px, 14vw, 92px); height: clamp(56px, 14vw, 92px); object-fit: contain; }
.gm-team b { font-size: clamp(.92rem, 2.4vw, 1.15rem); line-height: 1.2; }
.gm-team:hover b { color: var(--accent); }
.gm-team span { font-size: .8rem; color: var(--text-muted); }
.gm-team.dim b { color: var(--text-muted); }
.gm-mid { display: grid; justify-items: center; gap: 4px; font-size: .88rem; text-align: center; }
.gm-score { font-size: clamp(1.7rem, 7vw, 3rem); line-height: 1.05; white-space: nowrap; }
.gm-score i { margin: 0 .12em; font-style: normal; color: var(--text-faint); }
.gm-when { font-size: 1.1rem; }
.gm-line .log td, .gm-line .log th { text-align: center; }
.gm-line .log td:first-child { text-align: left; }
.gm-recap p { max-width: 70ch; margin: 0 0 8px; font-size: 1.05rem; }
.gm-bet { margin: 18px 0 0; text-align: center; }
.gm-lead { display: grid; gap: 12px; padding: 14px 16px; }
.gm-lead a { display: flex; align-items: center; gap: 16px; }
.gm-lead em { display: block; font-style: normal; font-size: .78rem; color: var(--text-muted); }
.gm-lead b { display: block; line-height: 1.25; }
.gm-lead a > span:last-child > span { font-size: .88rem; color: var(--text-muted); }
.gm-lead a:hover b { color: var(--accent); }
.tug { padding: 8px 20px 12px; }
.tug-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 14px; padding: 8px 0; }
.tug-row > :last-child { justify-self: end; }
.tug-row > b { font-weight: 500; color: var(--text-muted); }
.tug-row > b.best { font-weight: 700; color: var(--text); }
.tug-head img { width: 34px; height: 34px; object-fit: contain; }
.tug-mid { text-align: center; }
.tug-mid em { font-style: normal; font-size: .84rem; color: var(--text-muted); }
.tug-bar { display: flex; gap: 3px; margin-top: 3px; }
.tug-bar i { height: 6px; border-radius: 3px; background: var(--border-strong); }
.tug-bar i.best { background: var(--accent); }
.gm-plays { padding: 4px 16px; }
.gm-plays > div { display: grid; grid-template-columns: 26px 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; line-height: 1.4; }
.gm-plays > div:last-child { border-bottom: 0; }
.gm-plays img { width: 26px; height: 26px; object-fit: contain; }
.bx-h { margin: 16px 0 8px; font-size: 1rem; }
.bx-p { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; }
.bx-p:hover { color: var(--accent); }
.box td:first-child, .box th:first-child { position: sticky; left: 0; background: var(--surface); }
@media (max-width: 560px) { .gm-plays > div { grid-template-columns: 24px 56px minmax(0, 1fr) auto; gap: 9px; } .bx-p .face { display: none; } }
.sched-open:hover { color: var(--accent); }
a.mk { text-decoration: none; }

/* story page */
.st { max-width: 760px; margin: 0 auto; }
.st h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.st figure { margin: 16px 0; }
.st figure img { width: 100%; border-radius: var(--radius); }
.st figcaption { margin-top: 6px; font-size: .78rem; color: var(--text-muted); }
.st-lead { font-size: 1.12rem; }
.st-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.an-log .log-opp, .gm-line .log-opp { display: inline-flex; align-items: center; gap: 6px; }
.an-log .log-opp img, .gm-line .log-opp img { width: 22px; height: 22px; }

/* ---------- match hub ---------- */
.can-open { cursor: pointer; }
.can-open:hover { border-color: var(--border-strong); }
.match-meta a { color: var(--accent); font-family: var(--font-body); font-weight: 600; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.flags span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); font-size: .78rem; font-weight: 500; }
.flags img { width: 16px; height: 16px; object-fit: contain; }
.gm-tabs { margin: 18px 0; }
.gm-line { margin-bottom: 14px; }
.gm-bets { padding: 14px 18px; margin-bottom: 14px; }
.gm-bets .gm-bl { width: 32px; height: 32px; object-fit: contain; }
.gm-hist { margin-top: 26px; }
.our { padding: 20px; text-align: center; }
.our-nums { display: flex; justify-content: center; gap: clamp(28px, 10vw, 80px); }
.our-nums em { display: block; font-style: normal; font-size: .84rem; color: var(--text-muted); }
.our-nums b { font-size: clamp(1.3rem, 5vw, 1.9rem); line-height: 1.25; }
.our-nums span:first-child b { color: var(--accent); }
.our p { max-width: 60ch; margin: 10px auto 14px; text-wrap: balance; }
.our-parts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--border); font-size: .86rem; }
.our-parts span { margin-right: 8px; color: var(--text-muted); }
.our-win { margin: 14px 0 0; text-align: center; color: var(--text-muted); }
.our-win b { color: var(--text); }
.an-hrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 34px 0 14px; }
.an-hrow .an-h { margin: 0; }
.an-hrow .muted { font-size: .88rem; }
.eg { padding: 8px 20px; }
.eg-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); text-align: center; }
.eg-row:last-child { border-bottom: 0; }
.eg-row em { font-style: normal; font-size: .88rem; color: var(--text-muted); }
.eg-row span b { display: inline-block; padding: 1px 10px; border-radius: 999px; font-weight: 500; }
.eg-row small { display: block; font-size: .74rem; color: var(--text-faint); }
.eg-row .best b { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.eg-head img { width: 38px; height: 38px; object-fit: contain; margin: 0 auto; }
.sp { padding: 14px 18px; }
.sp h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; }
.sp h3 img { width: 24px; height: 24px; object-fit: contain; }
.sp p { margin: 0; font-size: .9rem; }
.why-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; font-size: .86rem; line-height: 1.4; }
.why-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.why-list i { font-style: normal; font-size: .72rem; line-height: 1.7; color: var(--text-faint); }
.why-list .up i { color: var(--up); } .why-list .down i { color: var(--down); }
.why-list b { display: block; font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.tp-card .why-list { padding: 4px 0 14px; }
.why { justify-self: start; padding: 0; border: 0; background: none; font-size: .78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; text-align: left; }
.why::after { content: " ▾"; } .why[aria-expanded="true"]::after { content: " ▴"; }
.why.up { color: var(--up); } .why.down { color: var(--down); }
.hot-up.cold { color: var(--down); }
.inj-pts { color: var(--down); font-weight: 700; }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.spot { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.spot:hover { border-color: var(--accent); transform: none; }
.spot b { display: block; line-height: 1.3; font-size: .94rem; }
.spot em { font-style: normal; font-size: .8rem; color: var(--text-muted); }
.tk-clear { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; }
.sheet .seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
:root.has-hero-img .page-head--slim:not(:has(.head-row, .hm-hero)) { min-height: 0; }
.why-list li.up, .why-list li.down { color: var(--text); }

/* =====================================================================
   MONEY (money.js)
   ===================================================================== */
.tabbar-in { max-width: 1200px; }
.mn-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mn-btns { display: flex; gap: 8px; }
.track-empty .mn-btns { justify-content: center; }
.mn-hero { display: grid; justify-items: center; gap: 2px; padding: 24px 16px; text-align: center; }
.mn-hero span, .mn-hero em { font-style: normal; color: var(--text-muted); }
.mn-hero b { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.15; }
.mn-budget { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; margin-bottom: 14px; }
.mn-budget > div { flex: 1 1 260px; }
.mn-budget div span { display: block; font-size: .88rem; color: var(--text-muted); }
.mn-bar { flex: 1 1 160px; height: 8px; border-radius: 4px; background: var(--bg-subtle); border: 1px solid var(--border); overflow: hidden; }
.mn-bar i { display: block; height: 100%; background: var(--accent); }
.mn-bar.warn i { background: var(--live); } .mn-bar.bad i { background: var(--down); }
.mn-chart, .mn-cal, .mn-group { padding: 18px; margin-bottom: 14px; }
.mn-chart h2, .mn-cal h2, .mn-group h2 { margin: 0 0 14px; font-size: 1.05rem; }
.mn-plot { position: relative; height: 240px; padding-left: 62px; }
.mn-tick { position: absolute; left: 62px; right: 0; border-top: 1px solid var(--border); }
.mn-tick.zero { border-color: var(--text-faint); }
.mn-tick em { position: absolute; right: calc(100% + 10px); top: -.75em; font-style: normal; font-size: .74rem; color: var(--text-muted); }
.mn-area { position: relative; height: 100%; margin-right: 8px; }
.mn-area svg { width: 100%; height: 100%; overflow: visible; }
.mn-area polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mn-end, .mn-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.mn-cross { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--text-faint); }
.mn-tip { position: absolute; top: -8px; display: grid; padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-lg); font-size: .8rem; white-space: nowrap; pointer-events: none; }
.mn-tip span { color: var(--text-muted); }
.mn-x { display: flex; justify-content: space-between; margin: 8px 8px 0 62px; font-size: .76rem; color: var(--text-muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h2 { margin: 0; text-align: center; } .cal-head h2 span { margin-left: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-grid > i { font-style: normal; font-size: .74rem; text-align: center; color: var(--text-muted); }
.cal-d { min-height: 54px; display: grid; align-content: space-between; padding: 5px 7px; border: 1px solid var(--border); border-radius: 8px; }
.cal-d em { font-style: normal; font-size: .74rem; color: var(--text-muted); }
.cal-d b { font-size: .8rem; overflow: hidden; }
.cal-d.up { background: color-mix(in srgb, var(--up) 12%, var(--surface)); border-color: color-mix(in srgb, var(--up) 35%, var(--border)); }
.cal-d.down { background: color-mix(in srgb, var(--down) 11%, var(--surface)); border-color: color-mix(in srgb, var(--down) 35%, var(--border)); }
.cal-d.today { outline: 2px solid var(--accent); outline-offset: -1px; }
@media (max-width: 560px) { .cal-grid { gap: 3px; } .cal-d { padding: 4px; min-height: 48px; } .cal-d b { font-size: .6rem; letter-spacing: -.04em; } }
.mn-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; align-items: start; }
.mn-group table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mn-group th { padding: 0 0 6px; text-align: right; font-size: .76rem; font-weight: 500; color: var(--text-muted); }
.mn-group td { padding: 7px 0 7px 10px; border-top: 1px solid var(--border); text-align: right; }
.mn-group td:first-child { padding-left: 0; text-align: left; overflow-wrap: anywhere; }
.mn-find { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-list { padding: 4px 18px; }
.mn-bet { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mn-bet:last-child { border-bottom: 0; }
.bk { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .82rem; }
.mn-what { flex: 1; min-width: 0; }
.mn-what b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; font-size: .94rem; }
.mn-what span { font-size: .8rem; color: var(--text-muted); }
.mn-amt { display: grid; justify-items: end; white-space: nowrap; }
.mn-amt span { font-size: .76rem; color: var(--text-muted); }
.mn-file { margin-top: 16px; text-align: center; }
.mn-note { max-width: 72ch; }
.mn-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.mn-book { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.mn-book h3 { display: flex; align-items: center; gap: 12px; margin: 0; }
.mn-book p, .mn-book dl { margin: 0; flex: 1; }
.mn-book dl div { display: flex; justify-content: space-between; padding: 3px 0; font-size: .92rem; }
.mn-book dt { color: var(--text-muted); } .mn-book dd { margin: 0; }
.mn-bkbtns { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mn-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.mn-dlg::backdrop { background: rgba(8, 10, 18, .6); }
.mn-dlg form { padding: 20px; }
.mn-dlg header, .mn-dlg footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mn-dlg footer { justify-content: flex-end; }
.mn-dlg h2 { margin: 0; font-size: 1.25rem; }
.mn-fields, .mn-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 6px; align-items: end; }
.mn-fields .wide { grid-column: 1 / -1; }
.mn-fields .input { width: 100%; font-size: 16px; }
.mn-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.mn-fields > .link-btn { justify-self: start; }
.mn-help { margin: 0; }
.mn-err { min-height: 1.4em; margin: 4px 0 8px; color: var(--down); font-size: .9rem; }
.mn-step > b { display: block; margin-bottom: 6px; }
.mn-legs { list-style: none; margin: 0 0 10px; padding: 0; }
.mn-legs li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.mn-legs a { flex: none; }
.mn-mini { padding: 0; }
.mn-dlg details { margin-bottom: 10px; } .mn-dlg summary { cursor: pointer; font-weight: 600; }
@media (max-width: 560px) { .mn-bet { gap: 10px; } .mn-list { padding: 4px 12px; } }
@media (max-width: 560px) { #moneyView .an-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- copy a slip in (slipin.js) ---------- */
span.ph-new { display: flex; gap: 8px; }
@media (max-width: 560px) { .ph-row:has(span.ph-new) { flex-wrap: wrap; } span.ph-new { margin-left: 0; } }
.si-file { position: relative; justify-self: start; white-space: nowrap; }
.si-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.si-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.mn-fields textarea { resize: vertical; font-family: var(--font-mono); font-size: 14px !important; }
.mn-fields [data-si-read] { justify-self: start; }
.si-legs, .si-miss { list-style: none; margin: 8px 0 16px; padding: 0; }
.si-legs label { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.si-legs label > span:nth-of-type(2) { flex: 1; min-width: 0; }
.si-legs b { display: block; line-height: 1.3; }
.si-legs em, .si-miss em { display: block; font-style: normal; font-size: .82rem; color: var(--text-muted); }
.si-miss li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }

.mn-move { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 18px; }
.mn-move p { flex: 1 1 320px; margin: 0; }

/* no grab handle: the sheet does not drag */
.sheet::before { display: none; }
.sheet--page { padding-top: 30px; }

/* ---------- prices by sportsbook (prices.js) ---------- */
.px { padding: 4px 18px; margin-bottom: 14px; }
.px table, .px-mini { width: 100%; border-collapse: collapse; }
.px th, .px td { padding: 8px 4px; border-bottom: 1px solid var(--border); text-align: center; }
.px tr:last-child > * { border-bottom: 0; }
.px thead th { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.px tbody th { text-align: left; font-weight: 600; font-size: .94rem; }
.px td a, .px td span { display: inline-grid; justify-items: center; min-width: 74px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-mono); line-height: 1.3; }
.px td a:hover { border-color: var(--accent); }
.px small { font-size: .74rem; color: var(--text-muted); }
.px em { font: 600 .68rem var(--font-body); color: var(--accent); }
.px .best a, .px .best span { border-color: var(--accent); background: var(--accent-soft); }
.px-note { align-self: center; margin-left: auto; font-size: .86rem; }
.tab-chips [data-px-props] { margin-left: auto; }
.px-best { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 0 0 10px; font-size: .8rem; color: var(--text-muted); }
.px-best em { font-style: normal; font-weight: 600; color: var(--accent); }
.px-best b { color: var(--text); } .px-best a:hover { color: var(--accent); }
.px-mini { margin: 0 0 12px; font-size: .84rem; }
.px-mini th { font-size: .74rem; font-weight: 500; color: var(--text-muted); text-align: right; }
.px-mini td { padding: 5px 0; border-top: 1px solid var(--border); text-align: right; font-family: var(--font-mono); }
.px-mini :is(th, td):first-child { text-align: left; font-family: var(--font-body); }
.px-mini .diff { color: var(--live); font-weight: 700; }
.px-mini a { color: var(--accent); }
.mn-legs li { flex-wrap: wrap; }
.mn-more { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }

.px-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: .86rem; color: var(--text-muted); }

/* ---------- our number: logos and the plain-words guide ---------- */
.our-nums b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.our-nums img { width: 40px; height: 40px; object-fit: contain; }
.our-parts b { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.our-parts img { width: 18px; height: 18px; object-fit: contain; }
.our-info { margin-top: 8px; }
.our-guide { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-subtle); text-align: left; }
.our-guide ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 24px; margin: 0 0 12px; padding: 0; }
.our-guide li { display: flex; gap: 12px; font-size: .92rem; line-height: 1.45; }
.our-guide img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.our-guide li b { display: block; font-family: var(--font-mono); }
.our .our-guide p { max-width: none; margin: 0; font-size: .92rem; text-wrap: wrap; }

/* ---------- intro tour ---------- */
.hm-tour { margin-top: 14px; padding: 4px 8px; border: 0; background: none; color: #fff; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.tour { position: fixed; inset: 0; z-index: 200; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(6, 4, 6, .78), 0 0 0 2px var(--accent); pointer-events: none; }
.tour-moving .tour-hole { transition: left .38s cubic-bezier(.2,.8,.2,1), top .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1), height .38s cubic-bezier(.2,.8,.2,1); }
.tour-moving .tour-box { transition: left .38s cubic-bezier(.2,.8,.2,1), top .38s cubic-bezier(.2,.8,.2,1); }
.tour-box { position: fixed; width: min(400px, calc(100vw - 24px)); padding: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.tour-box:empty { opacity: 0; }
.tour-in { animation: tour-in .22s ease-out; }
@keyframes tour-in { from { opacity: 0; transform: translateY(4px); } }
.is-wait .tour-in { opacity: .75; }
.tour-box h2 { margin: 0 0 8px; font-size: 1.3rem; }
.tour-box p { margin: 0 0 16px; }
.tour-bar { height: 4px; border-radius: 2px; background: var(--bg-subtle); overflow: hidden; }
.tour-bar i { display: block; height: 100%; background: var(--accent); }
.tour-btns { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tour-btns span { margin-left: auto; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .tour-moving .tour-hole, .tour-moving .tour-box { transition: none; } .tour-in { animation: none; } }

/* ---------- my betting apps ---------- */
.mn-first { margin-top: 0; }
.mn-book h3 span { flex: 1; }
.mn-book h3 > span.bk { flex: none; }
.mn-how { list-style: none; margin: 0; padding: 0; }
.mn-how li { padding: 7px 0; border-top: 1px solid var(--border); }
.mn-how span { display: block; font-size: .78rem; color: var(--text-muted); }
.mn-how b { font-weight: 600; font-size: .9rem; }
.mn-how b.lv2 { color: var(--up); }
.mn-add { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.mn-add .card { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; cursor: pointer; }
.mn-add .card:hover { border-color: var(--accent); }
.mn-add .card > span:last-child { font-size: .86rem; font-weight: 600; color: var(--accent); }
.mn-note { margin-top: 16px; }

/* =====================================================================
   BRAND: shield icon, navy banner with the stadium art on the right
   ===================================================================== */
.brand-mark--img { --mark-zoom: 1; width: 40px; height: 40px; border-radius: 10px; background: #0a111f; }
:root.has-hero-img .page-head::before {
  background: linear-gradient(90deg, #080f1d 0%, #080f1d 8%, rgba(8,15,29,.35) 55%, rgba(8,15,29,0) 100%) right / min(720px, 100%) 100% no-repeat,
    var(--hero-img) right 14% / min(720px, 100%) auto no-repeat, #080f1d;
}

/* ---------- brand colors: logo green on navy (the accent itself is in config.js) ---------- */
:root { --bg-subtle: #f3f6f9; --border: #e0e6ed; --border-strong: #c6d0dc; --glow-1: #047857; --glow-2: #38bdf8; --text: #0a1220; --text-muted: #526074; --text-faint: #7d8a9c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --accent-ink: #04140d; --bg: #070c16; --bg-subtle: #101828; --surface: #0f1725; --border: #1f2a3d; --border-strong: #31405a;
  --glow-1: #0e9f6e; --glow-2: #38bdf8; --text: #f1f5fb; --text-muted: #a3afc2; --text-faint: #74829a;
} }
:root[data-theme="dark"] {
  --accent-ink: #04140d; --bg: #070c16; --bg-subtle: #101828; --surface: #0f1725; --border: #1f2a3d; --border-strong: #31405a;
  --glow-1: #0e9f6e; --glow-2: #38bdf8; --text: #f1f5fb; --text-muted: #a3afc2; --text-faint: #74829a;
}

/* ---------- account: sign-in button, face menu, dialogs (account.js) ---------- */
.acct-box { position: relative; }
.header-actions .acct-signin { display: inline-flex; white-space: nowrap; }   /* base.css hides header buttons on phones */
.acct-face { width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--accent-soft); color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.acct-face:hover { border-color: var(--accent); }
.acct-face img, .acct-who img { width: 100%; height: 100%; object-fit: cover; }
.acct-face b { font-size: .95rem; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 12px; display: grid; gap: 2px; box-shadow: var(--shadow-lg); }
.acct-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct-who > img, .acct-who > b { width: 40px; height: 40px; flex: none; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.acct-who > span { display: grid; min-width: 0; } .acct-who > span > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu p { margin: 8px 0 6px; }
.acct-menu button, .acct-menu a { display: block; text-decoration: none; text-align: left; padding: 8px 10px; margin: 0 -10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; }
.acct-menu button:hover, .acct-menu a:hover { background: var(--bg-subtle); }
.acct-menu .acct-danger-link { color: var(--down); }
.acct-dlg .acct-in { padding: 20px; display: grid; gap: 12px; }
.acct-dlg header, .acct-dlg footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-dlg footer { justify-content: flex-end; }
.acct-dlg p { margin: 0; }
.acct-dlg .mn-err:empty { display: none; }
.acct-google { min-height: 44px; display: flex; justify-content: center; }
.acct-form { display: grid; gap: 12px; }
.acct-form .input { font-size: 16px; }
.acct-hint.acct-bad { color: var(--down); }
.acct-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.acct-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.acct-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-pick .card { display: grid; gap: 4px; text-align: left; padding: 14px; font: inherit; color: var(--text); cursor: pointer; }
.acct-pick .card:hover { border-color: var(--accent); }
.acct-danger { background: var(--down); border-color: var(--down); color: #fff; }
/* phones: the search box gives up room so logo, Sign in and the light/dark button all fit */
.head-search { min-width: 0; }
.site-header .brand, .header-actions { flex: none; }
@media (max-width: 560px) { .header-inner { gap: 8px; } .header-actions { gap: 6px; } }
@media (max-width: 480px) { .acct-pick { grid-template-columns: 1fr; } .header-actions .acct-signin { padding-inline: 11px; } }

/* ---------- feedback page (feedback.js) ---------- */
.fb-card { max-width: 640px; padding: 20px; display: grid; gap: 14px; }
.fb-card textarea { resize: vertical; font-size: 16px; line-height: 1.5; }
.fb-card .input[type="email"] { font-size: 16px; }
.fb-card p { margin: 0; }
.fb-card .mn-err:empty { display: none; }
.fb-kinds { justify-self: start; max-width: 100%; overflow-x: auto; }
.fb-kinds button { white-space: nowrap; }
.fb-done h2 { margin: 0; }

/* ---------- privacy and terms pages ---------- */
.legal { max-width: 720px; padding: 8px 0 24px; line-height: 1.65; }
.legal h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.legal p, .legal ul { margin: 0 0 12px; color: var(--text); }
.legal ul { padding-left: 1.2em; } .legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal-links { margin-top: 28px !important; color: var(--text-muted) !important; }
.footer-links .legal-foot { color: inherit; }

/* ---------- social (social.js) ---------- */
.so-list { display: grid; gap: 14px; max-width: 680px; }
.so-post { padding: 14px 16px; display: grid; gap: 10px; }
.so-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.so-who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.so-top > .muted { white-space: nowrap; }
.so-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-who:hover b { text-decoration: underline; }
.so-spacer { flex: 1; }
.so-av { --h: 160; width: 34px; height: 34px; flex: none; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 55% 28%); }
:root[data-theme="dark"] .so-av { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 70% 78%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-av { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 70% 78%); } }
.so-av-sm { width: 28px; height: 28px; font-size: .8rem; }
.so-av-xl { width: 64px; height: 64px; font-size: 1.6rem; border: 2px solid rgba(255,255,255,.6); }
.so-cap { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.so-slip { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 10px 6px; background: var(--bg-subtle); }
.so-slip-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 0 4px; }
.so-slip .tk-legs { margin: 0; }
.so-leg { color: inherit; text-decoration: none; }
.so-foot { display: flex; align-items: center; gap: 4px; }
.so-act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: var(--text-muted); font: inherit; font-size: .9rem; cursor: pointer; }
.so-act:hover { background: var(--bg-subtle); color: var(--text); }
.so-act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.so-act.on { color: #e5484d; } .so-act.on svg { fill: currentColor; }
.so-more { position: relative; }
.so-dots { width: 30px; height: 30px; font-size: 18px; line-height: 1; border-color: transparent; background: none; color: var(--text-muted); }
.so-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; padding: 6px; min-width: 190px; box-shadow: var(--shadow-lg); }
.so-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.so-menu button:hover { background: var(--bg-subtle); }
.so-cms { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 10px; }
.so-cms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.so-cms li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.so-cmain { min-width: 0; display: grid; gap: 3px; }
.so-cbubble { position: relative; justify-self: start; max-width: calc(100% - 12px); min-width: 0; padding: 7px 12px 8px; border-radius: 16px; background: var(--bg-subtle); }
.so-cbubble .so-cname { font-size: .86rem; }
.so-cbubble .so-cbody { font-size: .94rem; }
.so-clikes { position: absolute; right: -8px; bottom: -10px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .74rem; color: var(--text-muted); }
.so-clikes svg { width: 13px; height: 13px; fill: #e5484d; }
.so-cbar { display: flex; align-items: center; gap: 12px; padding-left: 12px; font-size: .78rem; }
.so-cbtn { padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-weight: 700; cursor: pointer; }
.so-cbtn:hover { text-decoration: underline; color: var(--text); }
.so-cbtn.on { color: #e5484d; }
.so-cms .so-replies { margin-top: 8px; gap: 8px; }
.so-rform { margin-top: 6px; align-items: center; flex-wrap: wrap; }
.so-rform .input { flex: 1 1 160px; }
.so-cms li p { margin: 0; }
.so-cname { font-weight: 600; color: var(--text); }
.so-cbody { white-space: pre-wrap; overflow-wrap: anywhere; }
.so-cform { display: flex; gap: 8px; } .so-cform .input { flex: 1; min-width: 0; font-size: 16px; }
.so-empty { max-width: 560px; padding: 24px 0; }
.so-feed { display: grid; gap: 14px; }
.so-fol { font-size: .86rem; font-weight: 600; white-space: nowrap; }
.so-sugg { max-width: 680px; padding: 12px 16px; }
.so-sugg h2 { font-size: 1rem; margin: 0 0 8px; }
.so-sugg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.so-sugg li { display: flex; align-items: center; gap: 10px; }
.so-sugg li .so-who { flex: 1; }
.so-sugg-none { max-width: 680px; margin: 0; }
.ph-row .so-mine + .btn { margin-left: 0; }
.so-new { max-width: 680px; padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 14px; }
.so-new textarea { resize: vertical; min-height: 72px; font-size: 16px; }
.so-new-row { display: flex; gap: 8px; flex-wrap: wrap; }
.so-new-row .input { flex: 1 1 180px; min-width: 0; font-size: 16px; }
.so-new-row .btn { flex: none; }
.so-new .mn-err:empty, .so-new .so-stake[hidden] { display: none; }
.so-new-out p { margin: 0; }
.so-body { font-size: 1.02rem; line-height: 1.5; }
.so-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); text-decoration: none; white-space: nowrap; }
.so-chip:hover { text-decoration: underline; }
.so-chip em { font-style: normal; font-weight: 500; opacity: .75; }
.so-tag { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.so-mission { max-width: 640px; margin: 4px 0 12px; line-height: 1.5; }
:root.has-hero-img .page-head .so-mission { color: rgba(255,255,255,.9); }
.so-trend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.so-trend > span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-right: 2px; }
:root.has-hero-img .page-head .so-trend .so-chip { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.so-topic-h span { opacity: .6; margin-right: 2px; }
.so-morebox { max-width: 680px; display: flex; justify-content: center; padding: 16px 0; }
.so-prof { align-items: center; gap: 16px; flex-wrap: wrap; }
.so-counts { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 0; font-size: .92rem; }
:root.has-hero-img .page-head .so-counts { color: rgba(255,255,255,.88); }
.so-follow { margin-left: auto; }
.so-rank { margin: 6px 0 2px; font-size: .86rem; line-height: 1.7; }
.so-rank .pill { margin-left: 2px; vertical-align: 1px; }
.so-rank a { color: var(--accent); font-weight: 600; }
.so-bnav { max-width: 680px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.so-bnav b { min-width: 104px; text-align: center; }
.so-mineb { max-width: 680px; margin: 0 0 12px; font-size: .92rem; color: var(--text-muted); }
.so-board { max-width: 680px; padding: 4px 0; overflow-x: auto; }
.so-board table { width: 100%; border-collapse: collapse; }
.so-board th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--text-muted); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.so-board td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.so-board tr:last-child td { border-bottom: 0; }
.so-board th:last-child, .so-board td:last-child { text-align: right; }
.so-board td:first-child { width: 2.5em; color: var(--text-muted); }
.so-board tr.me td { background: var(--accent-soft); }
.so-board .up { color: var(--up); font-weight: 600; } .so-board .down { color: var(--down); }
.so-how { max-width: 680px; margin-top: 16px; font-size: .9rem; color: var(--text-muted); }
.so-how summary { cursor: pointer; color: var(--text); font-weight: 600; }
.so-how p { margin: 8px 0 0; }
@media (max-width: 560px) { .so-board th, .so-board td { padding: 8px 8px; } .so-bnav .seg { width: 100%; } .so-bnav .seg button { flex: 1; } }
.bk-img { padding: 0; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
/* money: bankroll card and parlay legs (money.js) */
.mn-bank { padding: 14px 16px; display: grid; gap: 10px; }
.mn-bank h2 { margin: 0; font-size: 1rem; }
.mn-bank-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.mn-bank-row div { display: grid; gap: 2px; }
.mn-bank-row b { font-size: 1.15rem; }
.mn-bank-row span { font-size: .8rem; color: var(--text-muted); }
.mn-bank p { margin: 0; }
.mn-bank .mono.up { color: var(--up); } .mn-bank .mono.down { color: var(--down); }
.mn-amt .muted { font-size: .78rem; }
.mn-legs2 { padding: 0 16px 10px 64px; font-size: .88rem; }
.mn-legs2 summary { cursor: pointer; color: var(--text-muted); }
.mn-legs2.bust summary { color: var(--down); }
.mn-legs2 summary span { font-weight: 600; }
.mn-legs2 ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.mn-legs2 li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; }
.mn-legs2 li .pill { justify-self: start; }
.mn-legs2 li.is-lost .mn-leg b { color: var(--down); }
.mn-leg { display: grid; min-width: 0; } .mn-leg b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mn-leg span { font-size: .8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .mn-legs2 { padding-left: 16px; } .mn-legs2 li { grid-template-columns: 84px 1fr auto; gap: 8px; } }
.mn-bank > .link-btn { justify-self: start; }
/* ---------- admin (admin.js) ---------- */
.ad { display: grid; gap: 18px; }
.ad .an-h { margin: 6px 0 10px; }
.ad-msg { max-width: 560px; padding: 20px; } .ad-msg h2 { margin: 0 0 6px; } .ad-msg p { margin: 0 0 14px; }
.ad-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ad-tiles-sm { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ad-tile { padding: 14px 16px; display: grid; gap: 2px; }
.ad-tile b { font-size: 1.6rem; } .ad-tiles-sm .ad-tile b { font-size: 1.2rem; }
.ad-tile span { font-size: .88rem; } .ad-tile em { font-style: normal; font-size: .78rem; color: var(--text-muted); }
.ad-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.ad-chart { margin: 0; padding: 14px 16px; display: grid; gap: 8px; }
.ad-chart figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.ad-plot { position: relative; height: 120px; padding-left: 28px; }
.ad-y, .ad-y0 { position: absolute; left: 0; font-size: .7rem; color: var(--text-muted); }
.ad-y { top: -2px; } .ad-y0 { bottom: -2px; }
.ad-bars { height: 100%; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--border); background: linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 100% no-repeat; }
.ad-bars i { flex: 1; min-width: 0; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; }
.ad-bars i:hover { filter: brightness(1.15); }
.ad-x { display: flex; justify-content: space-between; padding-left: 28px; font-size: .72rem; color: var(--text-muted); }
.ad-chart details summary { cursor: pointer; font-size: .78rem; color: var(--text-muted); }
.ad-tip { position: fixed; z-index: 300; pointer-events: none; padding: 5px 9px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: .8rem; white-space: nowrap; }
.ad-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ad-list { max-height: 460px; overflow: auto; }
.ad-ev { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.ad-ev time { font-size: .8rem; white-space: nowrap; }
.ad-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--text-faint); }
.ad-signup .ad-dot { background: var(--accent); } .ad-signin .ad-dot { background: var(--up); } .ad-delete .ad-dot { background: var(--down); }
.ad-fb { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ad-fb .pill { justify-self: start; } .ad-fb p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-fb a, .ad-people a { color: var(--accent); }
.ad-people { overflow-x: auto; }
.ad-t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ad-t th { text-align: left; font-size: .76rem; color: var(--text-muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ad-t td { padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ad-note { margin: 0; }
@media (max-width: 760px) { .ad-two { grid-template-columns: 1fr; } }

/* ---------- share window (share.js) ---------- */
.sh-dlg .sh-msg { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 190px; overflow: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-subtle); color: var(--text-muted); user-select: text; }
.sh-link { margin-top: -6px !important; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.sh-opt { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; text-align: center; }
.sh-opt:hover, .sh-opt:focus-visible { background: var(--bg-subtle); }
.sh-ico { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; overflow: hidden; }
.sh-ico svg { width: 24px; height: 24px; }
.sh-img { background: #fff; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.mn-bet.is-new { background: var(--accent-soft); box-shadow: -12px 0 0 var(--accent-soft), 12px 0 0 var(--accent-soft); border-radius: 6px; transition: background 1s, box-shadow 1s; }

/* Build a bet from props cards and the player page */
.tp-statbtn { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-statbtn:hover b, .tp-statbtn:focus-visible b { color: var(--accent); }
.tp-go { color: var(--accent); font-weight: 700; }
.tp-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.tp-card .why-build { margin: 0 0 14px; }
.pl-build { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 0 0 18px; }
.pl-build span { display: inline-flex; align-items: center; gap: 6px; }
.pl-build img { width: 18px; height: 18px; object-fit: contain; }

/* The case for each leg, and the data check for the parlay */
.tk-case { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: .76rem; font-weight: 500; color: var(--text-muted); }
.tk-case i { font-style: normal; font-size: .66rem; }
.tk-case.up, .tk-check .up { color: var(--up); }
.tk-case.down, .tk-check .down { color: var(--down); }
.tk-case.wait { color: var(--text-faint); font-weight: 400; }
.tk-check { display: grid; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.tk-check-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; font-weight: 600; }
.tk-check-k { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.tk-check .even { color: var(--text-muted); }
.tk-weak { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin: 0; font-size: .84rem; color: var(--text-muted); }
.tk-weak b { color: var(--text); }
.tk-fair { font-weight: 500; color: var(--text-muted); cursor: help; }
.tk-fair b { color: var(--text); }
.tk-fair b { color: var(--text); }
.lc { display: grid; gap: 12px; margin: 4px 0 16px; }
.lc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.lc-tiles div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--border); min-width: 0; }
.lc-tiles span { font-size: .7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tiles b { font-size: 1.05rem; }
.lc-tiles small { font-size: .7rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-why { padding: 0; }
.lc-news { display: grid; gap: 6px; }
.lc-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.lc-news a { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--text); text-decoration: none; }
.lc-news a:hover b { color: var(--accent); }
.lc-news a b { font-weight: 500; }
.lc-news a span { flex: none; font-size: .74rem; color: var(--text-faint); }
.lc-wait { margin: 4px 0 12px; }
@media (max-width: 560px) { .tk-check { padding: 12px 14px; } .lc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A won parlay: how much, and one tap to share it */
.tk-win { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--text); font: inherit; cursor: pointer; }
.tk-win span { font-size: .95rem; font-weight: 600; }
.tk-win b { color: var(--up); font-size: 1.1rem; }
.tk-win em { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--up); }
.tk-win:hover { background: color-mix(in srgb, var(--up) 22%, transparent); }
.sh-prev { display: block; width: min(100%, 300px); margin: 0 auto 14px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: none; cursor: pointer; box-shadow: var(--shadow-lg); }
.sh-prev img { display: block; width: 100%; aspect-ratio: 4 / 5; }
.sh-prev.sticker { width: min(100%, 260px); padding: 18px 14px; background: repeating-conic-gradient(#2b3543 0 25%, #222a35 0 50%) 0 0 / 22px 22px; }
.sh-prev.sticker img { aspect-ratio: auto; }
.sh-looks { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 12px; padding: 3px; border-radius: 999px; background: var(--bg-subtle); }
.sh-looks button { border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; opacity: .7; }
.sh-looks button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.sh-pics { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sh-tip { text-align: center; margin: 8px auto 14px !important; max-width: 340px; }

/* Live: play-by-play, X, and the chat on game and fight pages */
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.lv-x { display: inline-flex; align-items: center; gap: 8px; }
.lv-x img { width: 16px; height: 16px; border-radius: 4px; }
.lv-dot { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; }
.lv-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: lv-pulse 1.6s ease-in-out infinite; }
@keyframes lv-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .lv-dot::before { animation: none; } }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.lv-grid > .lv-chat { position: sticky; top: calc(var(--header-h) + var(--tape-h, 0px) + 14px); margin-top: 44px; }
.lv-card { padding: 4px 0; }
.lv-plays { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.lv-plays li { display: grid; grid-template-columns: 74px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: .88rem; }
.lv-plays li:first-child { border-top: 0; }
.lv-plays img { width: 22px; height: 22px; object-fit: contain; }
.lv-t { font-size: .74rem; color: var(--text-muted); }
.lv-plays .is-score .lv-txt { font-weight: 600; }
.lv-plays b { font-size: .82rem; }
.lv-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0; overflow: hidden; height: 520px; }
.lv-chat header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.lv-chat h3 { margin: 0; font-size: 1rem; }
.lv-msgs { overflow-y: auto; padding: 8px 16px; display: grid; align-content: start; gap: 10px; }
.lv-m p { margin: 2px 0 0; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.lv-mh { display: flex; align-items: baseline; gap: 8px; font-size: .8rem; }
.lv-mh a { color: var(--text); text-decoration: none; }
.lv-m.mine .lv-mh b { color: var(--accent); }
.lv-mh time { color: var(--text-faint); font-size: .72rem; }
.lv-act { margin-left: auto; padding: 0; border: 0; background: none; color: var(--text-faint); font: inherit; font-size: .72rem; cursor: pointer; opacity: 0; }
.lv-m:hover .lv-act, .lv-act:focus-visible { opacity: 1; }
@media (hover: none) { .lv-act { opacity: 1; } }
.lv-empty { margin: auto 0; text-align: center; padding: 30px 0; }
.lv-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--border); }
.lv-form { display: flex; gap: 8px; flex: 1; min-width: 0; }
.lv-form .input { flex: 1; min-width: 0; }
@media (max-width: 860px) {
  .lv-grid { grid-template-columns: minmax(0, 1fr); }
  .lv-grid > .lv-chat { position: static; margin-top: 0; order: -1; height: 420px; }
  .lv-plays { max-height: none; }
  .lv-plays li { grid-template-columns: 58px 20px minmax(0, 1fr) auto; padding: 9px 12px; gap: 8px; }
}

/* Fighters: how each fight ended, and the tale of the tape */
.an-resn > span { display: grid; min-width: 0; }
.an-how { display: block; font-size: .74rem; color: var(--text-muted); font-weight: 400; }
.res-D { color: var(--text-muted); }
.an-facts { margin: 4px 0 14px; }
.an-facts .card { display: grid; gap: 4px; padding: 12px 16px; }
.an-facts span { font-size: .84rem; color: var(--text-muted); }

/* ---- Place it: each leg's chance and its most important numbers */
.pc .tk-check { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.pc-all { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--border); }
.pc-all span { font-size: .84rem; color: var(--text-muted); }
.pc-all b { font-size: 1.35rem; }
.pc-all small { margin-left: auto; color: var(--text-muted); }
.pc-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc-leg { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: 10px; }
.pc-leg.is-up { border-left-color: var(--up); }
.pc-leg.is-down { border-left-color: var(--down); }
.pc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-pic { flex: none; }
.pc-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.pc-main b { font-size: .95rem; overflow-wrap: anywhere; }
.pc-main small { color: var(--text-muted); font-size: .78rem; }
.pc-ch { flex: none; display: grid; justify-items: end; line-height: 1.1; }
.pc-ch b { font-size: 1.25rem; }
.pc-ch small { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.pc .lc-why { margin: 0; }
.pc-note { margin: 8px 0 0 !important; }
.mn-det { margin-top: 6px; }
.mn-det > summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--accent); }
.mn-det .mn-fields { margin-top: 10px; }
.pc .lc-tiles { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
.pc .lc-tiles div { padding: 8px 10px; }

/* ---- Social: find people by username */
.so-find { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 14px; }
.so-find > svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.so-find .input { flex: 1; border: 0; background: none; box-shadow: none; padding: 8px 0; font-size: 16px; min-width: 0; }
.so-find .input:focus { outline: none; }
.so-find:focus-within { border-color: var(--accent); }
.so-find-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg, 0 8px 30px rgba(0,0,0,.25)); max-height: 360px; overflow: auto; }
.so-find-res li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.so-find-res li:hover { background: var(--hover-fill); }
.so-find-res .so-who { flex: 1; min-width: 0; }
.so-find-res .so-find-none { display: block; }
.so-find-go a { font-size: .9rem; }

/* links to the Terms and Privacy policy in the account windows */
.acct-form a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- pick proof: stats the poster chose, under each leg of a post, and the picker that chooses them ---------- */
.so-proof { list-style: none; margin: -4px 0 0; padding: 0 14px 10px 56px; display: grid; gap: 3px; font-size: .8rem; color: var(--text-muted); }
.so-proof li { position: relative; padding-left: 16px; line-height: 1.35; }
.so-proof li::before { content: "•"; position: absolute; left: 2px; color: var(--text-faint); }
.so-proof li.up::before { content: "▲"; font-size: .62rem; top: 2px; color: var(--up); }
.so-proof li.down::before { content: "▼"; font-size: .62rem; top: 2px; color: var(--down); }
.pp { margin: 4px 0 6px; }
.pp-h { margin: 0 0 8px; font-size: .86rem; }
.pp-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pp-leg { display: block; font-size: .84rem; margin-bottom: 6px; }
.pp-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-opt { text-align: left; padding: 6px 11px 6px 24px; position: relative; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .78rem; line-height: 1.3; cursor: pointer; }
.pp-opt::before { content: "•"; position: absolute; left: 10px; color: var(--text-faint); }
.pp-opt.up::before { content: "▲"; font-size: .6rem; top: 8px; color: var(--up); }
.pp-opt.down::before { content: "▼"; font-size: .6rem; top: 8px; color: var(--down); }
.pp-opt:hover { border-color: var(--accent); }
.pp-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: 0 0 0 1px var(--accent) inset; }
@media (max-width: 560px) { .so-proof { padding-left: 14px; } }

/* ---------- My Parlays: rarely used actions behind ⋯ ---------- */
.tk-more { position: relative; }
.tk-more > summary { list-style: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--text-muted); }
.tk-more > summary::-webkit-details-marker { display: none; }
.tk-more > summary:hover, .tk-more[open] > summary { background: var(--hover-fill); color: var(--text); }
.tk-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; min-width: 190px; padding: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.tk-menu button { text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.tk-menu button:hover { background: var(--hover-fill); }
.tk-menu .danger-link { color: var(--down); }
