/* ==========================================================================
   /bets: the iOS app's Bets tab on the site (2026-11-22). Drawn from the
   app's views: BetsDeckView (the deck, Settings, the entry step), BetHeroCard
   and BetParlayCard (the cards), ParlaySlipBar and BuiltParlayPage (Create
   mode), ShareSlipPreview (posting), FormRow / SettlesRow / BetInfoWidgets
   (the stats under a bet), OffersPage (the offers).
   Builds on css/pages/app-kit.css. Script: js/app-bets.js.
   Colours are the site's tokens; text over a photo is white, as in the app.
   ========================================================================== */

.ab-page { --ab-gold: #e8b450; --ab-dock: 12px; }
.ab-main { position: relative; }
.ab-page button { font-family: var(--tl-font); }
/* The site drops every outline (base.css): the ink ring is a shadow, as in
   the TL components. A field shows focus on its own border. */
.ab-page :is(button, a):focus-visible { box-shadow: var(--tl-focus-ring); }
/* Pico's block spacing on section, article and list items. */
.ab-entry, .ab-built, .ab-page .ak-box { margin-bottom: 0; }
.ab-page .ab-legs li, .ab-page .ab-slip-leg { margin: 0; list-style: none; }

/* ---- Top bar: the mode switch (Bets | Create) and Settings ---- */
.ab-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.ab-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tl-fill-06); border: 1px solid var(--tl-line-08); }
.ab-mode button { height: 30px; min-height: 0; margin: 0; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; font: 700 14.5px/1 var(--tl-font); color: var(--tl-ink-50); cursor: pointer; }
.ab-mode button[aria-selected="true"] { background: var(--tl-line-12); color: var(--tl-ink); }
.ab-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--tl-ink); cursor: pointer; }
.ab-icon:hover, .ab-icon[aria-expanded="true"] { background: var(--tl-fill-06); }
.ab-icon svg { width: 20px; height: 20px; }

/* ---- Entry: the bet size, asked once ---- */
.ab-entry { padding: 18px 0 8px; }
.ab-entry-mark { display: block; width: 36px; height: 36px; color: var(--tl-ink); }
.ab-entry-title { margin: 10px 0 0; font: 750 30px/1.15 var(--tl-font); letter-spacing: -0.5px; color: var(--tl-ink); }
.ab-entry-lead { margin: 10px 0 0; font: 400 15px/1.45 var(--tl-font); color: var(--tl-ink-62); }
.ab-entry .ak-label { margin-top: 30px; }
.ab-fine { margin: 10px 0 0; font: 400 12px/1.45 var(--tl-font); color: var(--tl-ink-50); }
.ab-cta { min-height: 50px; margin-top: 24px; border-radius: 14px; font-size: 15px; }
.ab-quiet { display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; font: 500 13px/1 var(--tl-font); color: var(--tl-ink-55); cursor: pointer; }
.ab-quiet:hover { color: var(--tl-ink); }
.ab-age { margin: 0 0 10px; text-align: center; font: 400 11px/1.3 var(--tl-font); color: var(--tl-ink-40); }

/* The four presets and an Other amount field. */
.ab-stake-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ab-stake-btn { height: 46px; margin: 0; padding: 0; border-radius: 10px; border: 1px solid var(--tl-line-12); background: transparent; font: 650 15px/1 var(--tl-mono) !important; color: var(--tl-ink); cursor: pointer; }
.ab-stake-btn:hover { border-color: var(--tl-ink-50); }
.ab-stake-btn.is-on { background: var(--tl-ink); border-color: var(--tl-ink); color: var(--tl-on-ink); }
.ab-field { display: flex; align-items: center; gap: 8px; height: 46px; margin: 8px 0 0; padding: 0 14px; border-radius: 10px; border: 1px solid var(--tl-line-12); }
.ab-field:focus-within, .ab-field.is-on { border-color: var(--tl-ink); }
.ab-field > span { font: 650 15px/1 var(--tl-mono); color: var(--tl-ink-50); }
.ab-field input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0 !important; background: transparent; box-shadow: none; font: 600 15px/1 var(--tl-mono); color: var(--tl-ink); }
.ab-field input:focus, .ab-search-field input:focus { border: 0; box-shadow: none; }
.ab-field input::placeholder { color: var(--tl-ink-40); }

/* ---- Settings: a panel in the page ---- */
.ab-settings { margin: 0 0 16px; padding: 20px 16px 6px; border-radius: 18px; border: 1px solid var(--tl-line-12); background: var(--tl-card-bg); }
.ab-settings-title { margin: 0; font: 750 20px/1.2 var(--tl-font); color: var(--tl-ink); }
.ab-settings-lead { margin: 4px 0 14px; font: 400 13.5px/1.4 var(--tl-font); color: var(--tl-ink-60); }
.ab-settings .ab-cta { min-height: 46px; margin-top: 20px; }
.ab-set-label { display: flex; align-items: center; gap: 2px; margin: 20px 0 8px; font: 650 10px/1 var(--tl-mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--tl-ink-90); }
.ab-set-label button { display: grid; place-items: center; width: 30px; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tl-ink-50); cursor: pointer; }
.ab-set-label button svg { width: 13px; height: 13px; }
.ab-chips { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
.ab-chips::-webkit-scrollbar { display: none; }
.ab-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 0; margin: 0; padding: 0 12px; border-radius: 8px; border: 1px solid var(--tl-line-10); background: transparent; font: 500 13px/1 var(--tl-font); color: var(--tl-ink-62); white-space: nowrap; cursor: pointer; }
.ab-chip:hover { color: var(--tl-ink); }
.ab-chip[aria-pressed="true"] { border-color: var(--tl-ink); background: var(--tl-control); font-weight: 650; color: var(--tl-ink); }
.ab-chip img { width: 16px; height: 16px; border-radius: 4px; opacity: 0.6; }
.ab-chip[aria-pressed="true"] img { opacity: 1; }
.ab-star { color: var(--ab-gold); font-size: 9px; line-height: 1; }
.ab-why { margin: 8px 0 0; font: 400 12.5px/1.45 var(--tl-font); color: var(--tl-ink-62); }

/* ---- The deck ---- */
.ab-stage { position: relative; min-height: 220px; }
.ab-skel-card { aspect-ratio: 1.02; max-height: 520px; border-radius: 22px; }
.ab-stage .ak-skel.is-line { height: 46px; margin: 12px 0 0; border-radius: 18px; }
.ab-msg { display: grid; justify-items: center; gap: 14px; padding: 72px 12px; text-align: center; }
.ab-msg p { margin: 0; font: 650 16px/1.35 var(--tl-font); color: var(--tl-ink); }

/* The card: BetHeroCard and BetParlayCard share the surface. */
.ab-card { position: relative; margin: 0; padding: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--tl-line-12); background: var(--tl-card-bg); box-shadow: 0 16px 24px -18px rgba(0, 0, 0, 0.35); touch-action: pan-y; transition: transform 0.22s var(--tl-ease), opacity 0.22s var(--tl-ease); }
.ab-card.is-drag { transition: none; }
.ab-card.is-in { animation: ab-in 0.22s var(--tl-ease); }
@keyframes ab-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

.ab-photo { position: relative; aspect-ratio: 1.18; max-height: 420px; width: 100%; overflow: hidden; background: #23262e; color: #fff; }
.ab-photo > img.ab-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); }
.ab-photo > img.ab-bg.is-head { top: 40px; height: calc(100% - 40px); object-fit: contain; object-position: right bottom; filter: none; }
.ab-art { position: absolute; inset: 0 0 44px; display: flex; align-items: center; justify-content: center; }
.ab-art img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35)); background: transparent !important; }
.ab-art.is-both img { width: 94px; height: 94px; margin: 0 -12px; }
.ab-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.88) 100%); }
.ab-matchup { position: absolute; top: 16px; left: 18px; right: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.ab-matchup > i { font: 600 13px/1 var(--tl-font); font-style: normal; color: rgba(255, 255, 255, 0.6); }
.ab-side { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ab-side img { flex: none; width: 22px; height: 22px; object-fit: contain; background: transparent !important; }
.ab-side b { font: 700 12.5px/1 var(--tl-font); color: #fff; white-space: nowrap; }
.ab-side span { font: 500 11.5px/1 var(--tl-font); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.6); }
.ab-title { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 12px; }
.ab-title-logo { flex: none; display: flex; gap: 4px; }
.ab-title-logo img { width: 50px; height: 50px; object-fit: contain; background: transparent !important; }
.ab-title-logo.is-pair img { width: 40px; height: 40px; }
.ab-name { flex: 1; min-width: 0; color: #fff; text-decoration: none; }
.ab-name:hover { color: #fff; }
.ab-name b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 750 28px/1.12 var(--tl-font); letter-spacing: -0.6px; color: #fff; }
.ab-name small { display: flex; align-items: center; gap: 4px; margin-top: 6px; font: 650 11.5px/1.2 var(--tl-font); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; }
.ab-name small svg { flex: none; width: 9px; height: 9px; }
.ab-title .ak-av { width: 38px; height: 38px; border: 1.5px solid rgba(255, 255, 255, 0.6); }

/* PASS / BET (ADD, EDIT) while the card is dragged sideways. */
.ab-stamp { position: absolute; top: 84px; padding: 6px 12px; border: 3px solid currentColor; border-radius: 8px; font: 800 22px/1 var(--tl-mono); letter-spacing: 2px; opacity: 0; pointer-events: none; }
.ab-stamp.is-left { right: 26px; color: #fff; transform: rotate(12deg); }
.ab-stamp.is-right { left: 26px; color: #4ade80; transform: rotate(-12deg); }

.ab-pay { display: flex; align-items: baseline; gap: 8px; padding: 18px 18px 14px; font: 750 30px/1.1 var(--tl-font); font-variant-numeric: tabular-nums; letter-spacing: -0.6px; color: var(--tl-up); white-space: nowrap; overflow: hidden; }
.ab-pay .is-stake { color: var(--tl-ink-55); }
.ab-pay .is-arrow { color: var(--tl-ink-35); font-weight: 600; font-size: 0.7em; }
.ab-pay small { font: 700 17px/1 var(--tl-font); letter-spacing: 0; color: var(--tl-up); }
.ab-take { padding: 0 18px 14px; }
.ab-take p { margin: 0; font: 400 14.5px/1.45 var(--tl-font); color: var(--tl-ink-75); overflow-wrap: anywhere; }
.ab-take small { display: block; margin-top: 6px; font: 500 12px/1.3 var(--tl-font); color: var(--tl-ink-50); }
.ab-flip { display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); height: 40px; min-height: 0; margin: 0 10px 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--tl-line-14); background: transparent; font: 500 13.5px/1 var(--tl-font); color: var(--tl-ink-50); cursor: pointer; }
.ab-flip:hover { border-color: var(--tl-ink-50); }
.ab-flip svg { flex: none; width: 13px; height: 13px; }
.ab-flip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--tl-ink); }
.ab-flip i { font: 650 13px/1 var(--tl-font); font-style: normal; font-variant-numeric: tabular-nums; color: var(--tl-ink-55); }
.ab-place { display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); height: 50px; margin: 0 10px 10px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--tl-ink); font: 650 15px/1 var(--tl-font); color: var(--tl-on-ink); text-decoration: none; cursor: pointer; }
.ab-place:hover { background: var(--tl-ink-hover); color: var(--tl-on-ink); }
.ab-place img { flex: none; width: 20px; height: 20px; border-radius: 5px; }
.ab-place span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-place svg { flex: none; width: 14px; height: 14px; }
.ab-place[aria-disabled="true"] { pointer-events: none; }

/* The parlay card: its legs' pictures side by side, then the legs. */
.ab-pic { position: relative; aspect-ratio: 1.35; max-height: 400px; width: 100%; margin-bottom: 8px; overflow: hidden; color: #fff; }
.ab-slices { position: absolute; inset: 0; display: flex; gap: 2px; }
.ab-slices > i { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #23262e center / cover no-repeat; }
.ab-slices > i::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.ab-slices > i > .ab-ll { position: absolute; left: 50%; top: calc(50% - 20px); transform: translate(-50%, -50%); filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5)); }
.ab-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.88) 100%); pointer-events: none; }
.ab-pic-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.ab-pic-text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 750 28px/1.12 var(--tl-font); letter-spacing: -0.6px; color: #fff; }
.ab-pic-text small { display: block; margin-top: 6px; font: 650 11.5px/1.2 var(--tl-font); letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.7); }
.ab-phead { display: flex; align-items: center; gap: 12px; padding: 18px 18px 8px; }
.ab-phead-logos { display: flex; }
.ab-phead-logos .ab-ll + .ab-ll { margin-left: -6px; }
.ab-phead b { display: block; font: 750 24px/1.15 var(--tl-font); letter-spacing: -0.5px; color: var(--tl-ink); }
.ab-phead small { display: block; margin-top: 4px; font: 650 11.5px/1.2 var(--tl-font); letter-spacing: 0.05em; color: var(--tl-ink-50); white-space: nowrap; }

/* A leg's logo, or a total's two, in one square (LegLogos). */
.ab-ll { position: relative; flex: none; display: block; width: var(--s, 32px); height: var(--s, 32px); }
.ab-ll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent !important; }
.ab-ll.is-two img { width: 66%; height: 66%; top: 17%; }
.ab-ll.is-two img:first-child { left: -3%; }
.ab-ll.is-two img:last-child { left: 37%; }
.ab-ll.is-head img { border-radius: 50%; object-fit: cover; }

.ab-poster { display: flex; align-items: center; gap: 10px; padding: 10px 18px 4px; }
.ab-poster .ak-av { width: 32px; height: 32px; }
.ab-poster a { font: 700 14.5px/1.2 var(--tl-font); color: var(--tl-ink); text-decoration: none; }
.ab-poster .ak-verified { width: 18px; height: 18px; margin-left: auto; }
.ab-poster-take { margin: 0; padding: 2px 18px 4px; font: 400 14.5px/1.45 var(--tl-font); color: var(--tl-ink-90); white-space: pre-wrap; overflow-wrap: anywhere; }

.ab-legs { margin: 0; padding: 6px 18px 4px; list-style: none; }
.ab-leg { display: flex; align-items: center; gap: 12px; min-height: 60px; color: var(--tl-ink); text-decoration: none; }
a.ab-leg:hover { color: var(--tl-ink); }
.ab-leg-rail { position: relative; flex: none; align-self: stretch; width: 16px; }
.ab-leg-rail::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--tl-line-14); }
.ab-legs li:first-child .ab-leg-rail::before { top: 30px; }
.ab-legs li:last-child .ab-leg-rail::before { bottom: 30px; }
.ab-leg-rail > i { position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--tl-ink-40); box-shadow: 0 0 0 3px var(--tl-card); }
.ab-leg-rail > .ak-mark { position: absolute; left: -1px; top: 50%; margin-top: -9px; box-shadow: 0 0 0 2px var(--tl-card); }
.ab-leg-text { display: block; flex: 1; min-width: 0; }
.ab-leg-text b { display: block; font: 700 16px/1.2 var(--tl-font); color: var(--tl-ink); overflow-wrap: anywhere; }
.ab-leg-text small { display: block; margin-top: 3px; font: 600 11.5px/1.2 var(--tl-font); letter-spacing: 0.02em; color: var(--tl-ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-leg-pct { flex: none; font: 650 14px/1 var(--tl-font); font-variant-numeric: tabular-nums; color: var(--tl-ink-60); }
.ab-leg > svg { flex: none; width: 11px; height: 11px; color: var(--tl-ink-35); }
.ab-rule { height: 1px; margin: 10px 18px 0; background: var(--tl-line-08); }
.ab-card.is-parlay .ab-pay { padding: 14px 18px; }
.ab-card .ak-bet-foot { margin-top: 10px; }
/* The built parlay's legs are counted in, one after another. */
.ab-card.is-building .ab-leg, .ab-card.is-building .ab-slices > i { animation: ab-leg 0.36s var(--tl-ease) both; animation-delay: calc(var(--n, 0) * 0.3s + 0.2s); }
@keyframes ab-leg { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }

/* ---- Under the card: Pass and Bet, the draft pill, the actions ---- */
.ab-controls { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ab-controls .ak-btn { min-height: 50px; border-radius: 16px; font-size: 15.5px; font-weight: 700; }
.ab-controls .ab-pass { background: var(--tl-page); }
.ab-controls .ak-btn kbd { font: 600 11px/1 var(--tl-mono); opacity: 0.55; }
.ab-notice { margin: 12px auto 0; max-width: 420px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--tl-line-12); background: var(--tl-raised); text-align: center; font: 600 14px/1.4 var(--tl-font); color: var(--tl-ink); animation: ab-fade 0.2s var(--tl-ease); }
.ab-notice.is-out { opacity: 0; transition: opacity 0.2s var(--tl-ease); }
@keyframes ab-fade { from { opacity: 0; } to { opacity: 1; } }
.ab-draft { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; height: 44px; margin: 12px auto 0; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ab-gold) 45%, transparent); background: var(--tl-raised); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.25); text-decoration: none; white-space: nowrap; animation: ab-fade 0.22s var(--tl-ease); }
.ab-draft i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ab-gold); }
.ab-draft b { font: 650 13.5px/1 var(--tl-font); color: var(--tl-ink); }
.ab-draft span { font: 500 13.5px/1 var(--tl-font); color: var(--tl-ink-65); overflow: hidden; text-overflow: ellipsis; }
.ab-draft svg { flex: none; width: 10px; height: 10px; color: var(--tl-ink-50); }
.ab-acts { display: flex; align-items: center; gap: 4px; margin-top: 6px; padding: 0 6px; }
.ab-acts:empty { display: none; }
.ab-acts .ak-acts { flex: 1; }
.ab-linkbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-height: 0; margin: 0; padding: 0 4px; border: 0; background: transparent; font: 600 11px/1 var(--tl-mono) !important; color: var(--tl-ink-60); cursor: pointer; }
.ab-linkbtn:hover { color: var(--tl-ink); }
.ab-linkbtn svg { width: 13px; height: 13px; }

/* Create mode's search (BetSearchSheet), a panel in the page. */
.ab-search { margin-top: 10px; border-radius: 18px; border: 1px solid var(--tl-line-12); background: var(--tl-card-bg); overflow: hidden; }
.ab-search-field { display: flex; align-items: center; gap: 8px; height: 42px; margin: 14px 14px 0; padding: 0 12px; border-radius: 12px; background: var(--tl-fill-06); }
.ab-search-field svg { flex: none; width: 15px; height: 15px; color: var(--tl-ink-45); }
.ab-search-field input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0 !important; background: transparent; box-shadow: none; font: 400 15px/1 var(--tl-font); color: var(--tl-ink); }
.ab-search-field button { margin: 0; padding: 4px; border: 0; background: transparent; font: 600 12px/1 var(--tl-font); color: var(--tl-ink-55); cursor: pointer; }
.ab-kinds { display: flex; gap: 6px; padding: 12px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--tl-line-08); }
.ab-kinds::-webkit-scrollbar { display: none; }
.ab-kinds button { flex: none; height: 30px; min-height: 0; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: var(--tl-fill-06); font: 600 12.5px/1 var(--tl-font); color: var(--tl-ink-65); cursor: pointer; }
.ab-kinds button[aria-pressed="true"] { background: var(--tl-ink); color: var(--tl-on-ink); }
.ab-found { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.ab-found-row { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 11px 14px; border: 0; border-radius: 0; border-bottom: 1px solid var(--tl-line-06); background: transparent; text-align: left; cursor: pointer; }
.ab-found-row:hover { background: var(--tl-fill-03); }
.ab-found-logo { flex: none; display: flex; justify-content: center; gap: 2px; width: 44px; }
.ab-found-logo img { width: 30px; height: 30px; object-fit: contain; background: transparent !important; }
.ab-found-logo.is-pair img { width: 20px; height: 20px; }
.ab-found-logo.is-head img { border-radius: 50%; object-fit: cover; }
.ab-found-text { flex: 1; min-width: 0; }
.ab-found-text b { display: block; font: 650 14.5px/1.2 var(--tl-font); color: var(--tl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-found-text small { display: block; margin-top: 3px; font: 500 10px/1.2 var(--tl-mono); color: var(--tl-ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-found-row > i { flex: none; font: 650 14px/1 var(--tl-font); font-style: normal; color: var(--tl-up); }
.ab-found-row > svg { flex: none; width: 18px; height: 18px; color: var(--tl-ink-40); }
.ab-search-empty { padding: 44px 32px; text-align: center; }
.ab-search-empty b { display: block; font: 600 14px/1.3 var(--tl-font); color: var(--tl-ink); }
.ab-search-empty span { display: block; margin-top: 6px; font: 400 12.5px/1.4 var(--tl-font); color: var(--tl-ink-50); }

/* ---- The stats under a bet (BetSurface widgets) ---- */
.ab-widgets { display: grid; gap: 12px; margin-top: 12px; }
.ab-widgets:empty { display: none; }
.ab-w { border-radius: 18px; border: 1px solid var(--tl-line-12); background: var(--tl-card-bg); padding: 12px 16px; }
.ab-w.is-pad { padding: 18px; }
.ab-fold { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.ab-fold > img { flex: none; width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.ab-fold > img.is-head { border-radius: 50%; object-fit: cover; }
.ab-fold > b { flex: 1; min-width: 0; font: 600 13.5px/1.2 var(--tl-font); color: var(--tl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-fold > svg { flex: none; width: 12px; height: 12px; margin-left: 4px; color: var(--tl-ink-40); transition: transform 0.2s var(--tl-ease); }
.ab-fold[aria-expanded="true"] > svg { transform: rotate(90deg); }
.ab-marks { flex: none; display: flex; gap: 4px; }
.ab-marks i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 750 11px/1 var(--tl-mono); font-style: normal; }
.ab-marks i.is-hit { color: var(--tl-up); background: var(--tl-up-bg); }
.ab-marks i.is-miss { color: var(--tl-down); background: var(--tl-down-bg); }
.ab-rules { margin: 12px 0 0; font: 400 13px/1.5 var(--tl-font); color: var(--tl-ink-70); overflow-wrap: anywhere; }
/* Every game this season as bars from a centre line; five fit, more scroll. */
.ab-bars { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ab-bars::-webkit-scrollbar { display: none; }
.ab-bar { flex: 0 0 calc((100% - 40px) / 5); min-width: 54px; display: flex; flex-direction: column; align-items: center; }
.ab-bar-up, .ab-bar-down { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ab-bar-up { justify-content: flex-end; }
.ab-bar-down { justify-content: flex-start; }
.ab-bar-mid { width: 100%; height: 1px; background: var(--tl-line-14); }
.ab-bar em { height: 14px; font: 700 11.5px/14px var(--tl-font); font-style: normal; font-variant-numeric: tabular-nums; }
.ab-bar u { display: block; width: 26px; border-radius: 4px; opacity: 0.85; text-decoration: none; }
.ab-bar.is-hit em { color: var(--tl-up); }
.ab-bar.is-hit u { background: var(--tl-up); }
.ab-bar.is-miss em { color: var(--tl-down); }
.ab-bar.is-miss u { background: var(--tl-down); }
.ab-bar > img { width: 24px; height: 24px; margin-top: 10px; object-fit: contain; }
.ab-bar > span { width: 24px; height: 24px; margin-top: 10px; }
/* Team stats: the better side bright, the other dimmed. */
.ab-stats-head { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; font: 700 13px/1 var(--tl-font); color: var(--tl-ink); }
.ab-stats-head img { width: 20px; height: 20px; object-fit: contain; }
.ab-stats-head span { flex: 1; }
.ab-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.ab-stat b { flex: 0 0 72px; font: 450 15px/1.2 var(--tl-font); font-variant-numeric: tabular-nums; color: var(--tl-ink-40); }
.ab-stat b:last-child { text-align: right; }
.ab-stat b.is-best { font-weight: 700; color: var(--tl-ink); }
.ab-stat span { flex: 1; text-align: center; font: 400 13px/1.2 var(--tl-font); color: var(--tl-ink-50); }
.ab-leader + .ab-leader { margin-top: 14px; }
.ab-leader > small { display: block; text-align: center; font: 600 12px/1.2 var(--tl-font); color: var(--tl-ink-45); }
.ab-leader-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ab-leader-row img { flex: none; width: 18px; height: 18px; object-fit: contain; }
.ab-leader-row div { flex: 1; min-width: 0; }
.ab-leader-row div:last-of-type { text-align: right; }
.ab-leader-row b { display: block; font: 650 14px/1.2 var(--tl-font); color: var(--tl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-leader-row span { display: block; margin-top: 2px; font: 500 12.5px/1.2 var(--tl-font); font-variant-numeric: tabular-nums; color: var(--tl-ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-w .ak-skel.is-line { height: 22px; margin: 8px 0; border-radius: 6px; }

/* ---- Create mode's slip, docked (ParlaySlipBar) ---- */
.ab-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.35); animation: ab-fade 0.2s var(--tl-ease); }
.ab-slip { position: sticky; z-index: 31; bottom: var(--ab-dock); margin-top: 16px; padding: 0 18px 8px; border-radius: 22px; border: 1px solid var(--tl-line-18); background: var(--tl-card); box-shadow: 0 -4px 22px -8px rgba(0, 0, 0, 0.35); }
.ab-slip.is-open { padding-bottom: 12px; }
.ab-slip-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.ab-slip-grab { display: block; width: 36px; height: 4px; margin: 8px auto; border-radius: 999px; background: var(--tl-line-20); }
.ab-slip-head > svg { flex: none; width: 16px; height: 16px; color: var(--tl-ink-55); }
.ab-slip-head > svg.is-chev { width: 14px; height: 14px; margin-left: auto; color: var(--tl-ink-50); }
.ab-slip-name b { display: block; font: 750 15.5px/1.2 var(--tl-font); color: var(--tl-ink); white-space: nowrap; }
.ab-slip.is-open .ab-slip-name b { font-size: 18px; }
.ab-slip-name small { display: block; margin-top: 1px; font: 500 12px/1.2 var(--tl-font); color: var(--tl-ink-50); }
.ab-slip-logos { flex: none; display: flex; }
.ab-slip-logos .ab-ll + .ab-ll { margin-left: -7px; }
.ab-slip-pays { min-width: 0; font: 700 14px/1 var(--tl-font); font-variant-numeric: tabular-nums; color: var(--tl-up); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-slip-single { font: 600 13px/1 var(--tl-font); color: var(--tl-ink-50); white-space: nowrap; }
.ab-slip-top { display: flex; align-items: center; gap: 10px; }
.ab-slip-top .ab-slip-head { flex: 1; width: auto; min-width: 0; }
.ab-slip-clear { flex: none; margin: 0; padding: 6px 2px; border: 0; background: transparent; font: 600 13px/1 var(--tl-font); color: var(--tl-ink-55); cursor: pointer; }
.ab-slip-clear:hover { color: var(--tl-ink); }
.ab-xchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--tl-fill-045); font: 600 10px/1 var(--tl-mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--tl-ink); }
.ab-xchip img { width: 14px; height: 14px; border-radius: 3px; }
.ab-slip-legs { max-height: 250px; margin: 8px 0 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.ab-slip-leg { display: flex; align-items: center; gap: 10px; min-height: 50px; }
.ab-slip-leg div { flex: 1; min-width: 0; }
.ab-slip-leg b { display: block; font: 650 14.5px/1.2 var(--tl-font); color: var(--tl-ink); overflow-wrap: anywhere; }
.ab-slip-leg small { display: block; margin-top: 2px; font: 600 11px/1.2 var(--tl-font); color: var(--tl-ink-45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-slip-leg > span { flex: none; font: 650 13.5px/1 var(--tl-font); font-variant-numeric: tabular-nums; color: var(--tl-ink-60); }
.ab-slip-leg > button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tl-ink-45); cursor: pointer; }
.ab-slip-leg > button:hover { color: var(--tl-ink); }
.ab-slip-leg > button svg { width: 12px; height: 12px; }
.ab-slip-note { margin: 2px 0 0; font: 400 11.5px/1.4 var(--tl-font); color: var(--tl-ink-45); }
.ab-slip-rule { height: 1px; margin: 10px 0; background: var(--tl-line-08); }
.ab-slip-pay { display: flex; align-items: baseline; gap: 8px; font: 750 24px/1.1 var(--tl-font); font-variant-numeric: tabular-nums; letter-spacing: -0.4px; color: var(--tl-up); white-space: nowrap; overflow: hidden; }
.ab-slip-pay .is-stake { color: var(--tl-ink-55); }
.ab-slip-pay .is-arrow { color: var(--tl-ink-35); font-size: 0.7em; font-weight: 600; }
.ab-slip-pay small { font: 700 15px/1 var(--tl-font); letter-spacing: 0; }
.ab-build { width: 100%; margin: 12px 0 0; }
.ab-issue { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 2px; font: 500 12.5px/1.4 var(--tl-font); color: var(--tl-ink-60); }
.ab-issue.is-bad { margin: 6px 0 0; color: var(--tl-down); }
.ab-issue svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }

/* ---- The built parlay and the share step ---- */
.ab-built-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.ab-back { display: inline-flex; align-items: center; gap: 2px; height: 40px; min-height: 0; margin: 0 0 0 -8px; padding: 0 10px 0 4px; border: 0; background: transparent; font: 650 16px/1 var(--tl-font); color: var(--tl-ink); cursor: pointer; }
.ab-back svg { width: 18px; height: 18px; color: var(--tl-ink-70); }
.ab-built-title { font: 650 10px/1 var(--tl-mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--tl-ink-90); }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ab-two .ak-btn { min-height: 46px; border-radius: 14px; background: var(--tl-card-bg); }
.ab-two .ak-btn svg { width: 15px; height: 15px; }
.ab-built-note { margin: 12px 6px 0; font: 500 12.5px/1.4 var(--tl-font); color: var(--tl-ink-65); }
.ab-built-note a { color: var(--tl-ink); font-weight: 650; }
.ab-built-hint { margin: 12px 0 0; text-align: center; font: 400 12px/1.4 var(--tl-font); color: var(--tl-ink-45); }
.ab-post .ak-label { margin: 20px 0 8px; color: var(--tl-ink-55); }
.ab-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 32px; margin: 0; padding: 0; border: 0; background: transparent; font: 600 14.5px/1.2 var(--tl-font); color: var(--tl-ink); text-align: left; cursor: pointer; }
.ab-switch i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--tl-line-20); transition: background 0.15s var(--tl-ease); }
.ab-switch i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s var(--tl-ease); }
.ab-switch[aria-checked="true"] i { background: var(--tl-live-strong); }
.ab-switch[aria-checked="true"] i::after { transform: translateX(18px); }
.ab-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 10px; background: var(--tl-fill-05); }
.ab-seg button { height: 34px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; font: 600 13.5px/1 var(--tl-font); color: var(--tl-ink-55); cursor: pointer; }
.ab-seg button[aria-pressed="true"] { background: var(--tl-seg-on); color: var(--tl-ink); box-shadow: var(--tl-seg-on-shadow); }
.ab-seg-note { margin: 8px 0 0; font: 400 12.5px/1.4 var(--tl-font); color: var(--tl-ink-55); }
.ab-takebox { display: block; width: 100%; min-height: 84px; margin: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--tl-line-10); background: var(--tl-fill-04); font: 400 15px/1.45 var(--tl-font); color: var(--tl-ink); resize: vertical; }
.ab-takebox:focus { border-color: var(--tl-ink-35); box-shadow: none; }
.ab-takebox::placeholder { color: var(--tl-ink-40); }
.ab-post .ak-error { margin: 12px 0 0; }
.ab-post .ab-cta { margin-top: 16px; }
.ab-done { display: grid; justify-items: center; gap: 18px; padding: 64px 12px 24px; text-align: center; }
.ab-done-ring { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: var(--tl-up-bg); animation: ab-pop 0.4s var(--tl-ease); }
.ab-done-ring svg { width: 96px; height: 96px; color: var(--tl-up); }
@keyframes ab-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ab-done b { font: 750 22px/1.2 var(--tl-font); color: var(--tl-ink); }
.ab-done .ab-two { width: 100%; max-width: 420px; margin-top: 6px; }

/* ---- Offers and My bets (the rail; under the deck on a phone) ---- */
.ab-below { margin-top: 28px; }
.ab-below > div + div:not(:empty), .ab-rail > div + div:not(:empty) { margin-top: 14px; }
@media (min-width: 1100px) { .ab-below { display: none; } }
.ab-box-lead { margin: 0 0 12px; font: 400 14px/1.45 var(--tl-font); color: var(--tl-ink-62); }
.ab-offer { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--tl-line-15); }
.ab-offer + .ab-offer { margin-top: 10px; }
.ab-offer-row { display: flex; align-items: center; gap: 12px; }
.ab-offer-row > img { flex: none; width: 34px; height: 34px; border-radius: 8px; }
.ab-offer-row > div { flex: 1; min-width: 0; }
.ab-offer-row b { display: block; font: 700 15px/1.25 var(--tl-font); color: var(--tl-ink); }
.ab-offer-row small { display: block; margin-top: 2px; font: 500 12.5px/1.3 var(--tl-font); color: var(--tl-ink-62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-claim { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--tl-ink); font: 650 13.5px/1 var(--tl-font); color: var(--tl-on-ink); text-decoration: none; }
.ab-claim:hover { background: var(--tl-ink-hover); color: var(--tl-on-ink); }
.ab-code { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tl-line-08); }
.ab-code div { flex: 1; min-width: 0; }
.ab-code small { display: block; font: 600 9.5px/1 var(--tl-mono); letter-spacing: 0.1em; color: var(--tl-ink-50); }
.ab-code b { display: block; margin-top: 4px; font: 700 15px/1.1 var(--tl-mono); letter-spacing: 0.08em; color: var(--tl-ink); overflow: hidden; text-overflow: ellipsis; }
.ab-box-foot { margin: 12px 0 0; font: 400 11.5px/1.4 var(--tl-font); color: var(--tl-ink-45); }
.ab-box-empty { margin: 0; padding: 28px 0; text-align: center; font: 400 14px/1.4 var(--tl-font); color: var(--tl-ink-50); }
.ab-mine { display: flex; align-items: center; gap: 12px; color: var(--tl-ink); text-decoration: none; }
a.ab-mine:hover { color: var(--tl-ink); }
.ab-mine > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ab-gold); }
.ab-mine > i.is-none { background: var(--tl-line-20); }
.ab-mine > div { flex: 1; min-width: 0; }
.ab-mine b { display: block; font: 700 15px/1.25 var(--tl-font); }
.ab-mine small { display: block; margin-top: 2px; font: 500 12.5px/1.3 var(--tl-font); color: var(--tl-ink-62); }
.ab-mine > svg { flex: none; width: 12px; height: 12px; color: var(--tl-ink-45); }

/* ---- Phones: the app. The controls and the slip stay above the tab bar ---- */
@media (max-width: 720px) {
  .ab-page { --ab-dock: calc(82px + env(safe-area-inset-bottom)); }
  .ab-photo { max-height: none; }
  .ab-pic { max-height: none; }
  .ab-name b, .ab-pic-text b { font-size: 26px; }
  .ab-pay { font-size: clamp(21px, 7.400vw, 30px); }
  .ab-pay small { font-size: 0.58em; }
  .ab-controls { position: sticky; bottom: var(--ab-dock); padding: 6px 0 2px; }
  .ab-controls::before { content: ''; position: absolute; z-index: -1; inset: -10px -14px -8px; background: linear-gradient(180deg, transparent, var(--tl-page) 38%); pointer-events: none; }
  .ab-main.is-building .ab-controls { bottom: calc(var(--ab-dock) + 66px); }
  .ab-main.is-building .ab-controls::before { bottom: -70px; }
  .ab-slip { margin-left: -4px; margin-right: -4px; }
  .ab-slip-legs { max-height: 34vh; }
  .ab-found { max-height: 50vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-card, .ab-card.is-in, .ab-card.is-building .ab-leg, .ab-card.is-building .ab-slices > i, .ab-notice, .ab-draft, .ab-done-ring, .ab-scrim { animation: none; transition: none; }
}
