/* Home — moved from mockup A3 (a3-home.html). */

/* ── hero bento ───────────────────────────────────────────────────────── */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.t-banner { grid-column: span 7; grid-row: span 2; min-height: 340px; background: var(--ink); color: #fff; border: 0; overflow: hidden; }
.t-jump { grid-column: span 5; grid-row: span 2; overflow: hidden; }
.t-multi { grid-column: span 7; }
.t-rg { grid-column: span 5; }
@container (max-width: 900px) { .t-banner, .t-jump, .t-multi, .t-rg { grid-column: 1 / -1; grid-row: auto; } .t-banner { min-height: 340px; } }

.carousel { height: 100%; overflow: hidden; outline-offset: -3px; }
.carousel__track { display: flex; height: 100%; transition: transform 420ms var(--ease); touch-action: pan-y; }
.carousel__track > * { flex: 0 0 100%; }
.slide { position: relative; height: 100%; min-height: 340px; padding: 28px 30px 64px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.slide__bg { position: absolute; inset: 0; z-index: -2; }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14, 28, 39, .92) 0%, rgba(14, 28, 39, .74) 45%, rgba(14, 28, 39, .28) 100%),
  radial-gradient(380px 260px at 70% 100%, rgba(120, 219, 0, .28), transparent 70%); }
.slide__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.slide__tag .icon { width: 16px; height: 16px; }
.slide__h { margin-top: 14px; font-size: var(--fs-display); line-height: 1; font-weight: 800; letter-spacing: -.035em; max-width: 12ch; text-wrap: balance; }
.slide__h em { font-style: normal; color: var(--accent); }
.slide p { margin-top: 10px; color: rgba(255, 255, 255, .8); max-width: 40ch; }
.slide .btn { margin-top: 18px; align-self: flex-start; }
.slide__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--ghost-dark { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .16); }
.slide__vis { position: absolute; right: 22px; top: 22px; width: min(46%, 280px); padding: 12px; border-radius: 18px; background: rgba(14, 28, 39, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); font-size: 13px; }
.slide__vis > div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 8px; }
.slide__vis > div + div { border-top: 1px solid rgba(255, 255, 255, .1); }
.slide__vis span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide__vis b { min-width: 50px; text-align: center; padding: 3px 6px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.slide__ret { color: var(--accent); font-weight: 800; }
.slide__vis .gauge { display: block; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; margin: 8px 0 4px; padding: 0; border: 0; }
.slide__vis .gauge i { display: block; height: 100%; background: var(--accent); }
@container (max-width: 500px) { .slide__vis { display: none; } .slide { padding: 22px 20px 64px; } }
.b-ctrl { position: absolute; left: 30px; right: 22px; bottom: 16px; display: flex; align-items: center; gap: 6px; --dot: rgba(255, 255, 255, .4); --dot-on: #fff; }
.b-ctrl .dots { margin-right: auto; display: flex; gap: 2px; }
.dot { position: relative; width: 24px; height: 24px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; cursor: pointer; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--dot); transition: width var(--t2) var(--ease), background var(--t2); }
.dot[aria-current="true"]::before { width: 20px; background: var(--dot-on); }
.b-arrow { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background var(--t); }
.b-arrow:hover { background: rgba(255, 255, 255, .16); }
.b-arrow .icon { width: 18px; height: 18px; }
@container (max-width: 620px) { .b-ctrl { left: 20px; } }

/* next-to-jump tile */
.ph { position: relative; overflow: hidden; background: var(--surface-2); }
.ph picture, .ph img { display: block; width: 100%; height: 100%; }
.ph img { object-fit: cover; transition: transform 600ms var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 28, 39, 0) 30%, rgba(14, 28, 39, .7)); pointer-events: none; }
.t-jump .ph { height: 110px; margin: -18px -18px 14px; }
.t-jump .ph > span { position: absolute; left: 18px; bottom: 12px; z-index: 1; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 767px) { .t-jump .ph { margin: -14px -14px 12px; } }
.jump__race { display: flex; align-items: flex-start; gap: 12px; }
.jump__race h2 { font-size: 22px; line-height: 26px; font-weight: 800; }
.jump__race h2 a { position: relative; text-decoration: none; }
.jump__race h2 a:hover { color: var(--brand-ink); }
.jump__race p { font-size: 13px; color: var(--ink-2); }
.jump__clock { margin-left: auto; text-align: right; }
.jump__clock b { display: block; font-size: 34px; line-height: 36px; font-weight: 800; letter-spacing: -.03em; }
.jump__clock b.is-soon { color: #A65E00; }
.jump__clock small { font-size: 12px; color: var(--ink-2); }
.t-jump .fillbar { margin: 14px 0 6px; }
.runners li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.runners li + li { border-top: 1px solid var(--line); }
.runners .nm { flex: 1; min-width: 0; }
.runners .nm b { display: block; font-size: 15px; line-height: 19px; }
.runners .nm small { font-size: 12px; color: var(--ink-2); }

/* multi + limits tiles */
.multi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: stretch; }
.leg-chip { display: grid; align-content: start; gap: 2px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-2); font-size: 13px; line-height: 17px; text-decoration: none; transition: background var(--t); }
.leg-chip:hover { background: #E6ECF2; }
.leg-chip b { font-size: 15px; }
.leg-chip span { color: var(--ink-2); }
.multi__total { display: grid; align-content: center; justify-items: end; padding: 10px 14px; border-radius: var(--r-m); background: var(--ink); color: #fff; min-width: 130px; }
.multi__total small { font-size: 12px; opacity: .75; }
.multi__total b { font-size: 24px; color: var(--accent); }
@container (max-width: 640px) { .multi { grid-template-columns: 1fr; } .multi__total { justify-items: start; } }
.rg { display: flex; align-items: center; gap: 16px; }
.rg h2 { font-size: 16px; margin-bottom: 2px; font-weight: 800; }
.rg p { font-size: 14px; color: var(--ink-2); }
.ring { --p: 30; position: relative; width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-pressed) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: 16px; }

/* ── featured ─────────────────────────────────────────────────────────── */
.feat { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat-tabs { display: none; margin-bottom: 12px; }
.fcol { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); padding: 8px; box-shadow: var(--shadow-1); overflow: hidden; }
.fcol__ph { height: 92px; margin: -8px -8px 4px; }
.fcol__head { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 1; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px; }
.fcol__head .link { margin-left: auto; color: #fff; }
.fcol:hover .ph img { transform: scale(1.04); }
.rc { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-m); transition: background var(--t); }
.rc:hover { background: var(--surface-2); }
.rc + .rc { border-top: 1px solid var(--line); }
.rc__top { display: flex; align-items: center; gap: 8px; }
.rc__venue { position: relative; flex: 1; font-weight: 700; font-size: 15px; text-decoration: none; }
.rc__venue span { color: var(--ink-2); font-weight: 600; }
.rc__venue:hover { color: var(--brand-ink); }
.rc__run { display: flex; align-items: center; gap: 10px; }
.rc__run .nm { flex: 1; min-width: 0; font-size: 14px; line-height: 18px; }
.rc__run .nm b { display: block; }
.rc__run .nm small { color: var(--ink-2); font-size: 12px; }
@container (max-width: 700px) {
  .feat { grid-template-columns: 1fr; }
  .feat-tabs { display: flex; }
  .fcol:not(.is-active) { display: none; }
}

/* ── next to jump ─────────────────────────────────────────────────────── */
.ntj { overflow: hidden; }
.ntj__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; }
.ntj__head h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ntj__head h2 .icon { color: var(--brand); }
.ntj__f { margin-left: auto; }
.ntj ul { padding: 0 8px 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@container (max-width: 700px) { .ntj ul { grid-template-columns: 1fr; } .ntj__f { margin-left: 0; width: 100%; } }
.ntj li[hidden] { display: none; }
.ntj a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); text-decoration: none; background: var(--surface-2); transition: background var(--t), transform var(--t) var(--ease); }
.ntj a:hover { background: #E6ECF2; transform: translateY(-1px); }
.ntj .el-wrap { display: grid; }
.ntj .v { font-weight: 700; font-size: 15px; line-height: 19px; min-width: 0; }
.ntj .v .rn { display: inline-grid; place-items: center; min-width: 28px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.ntj .v small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-2); }
.ntj .t { text-align: right; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.ntj .t b { display: block; font-size: 17px; color: var(--ink); }
.ntj .t b.is-soon { color: #A65E00; }
.ntj .fx { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--success); }
.ntj .fx.no { color: var(--ink-2); }
.ntj .fillbar { grid-column: 1 / -1; height: 3px; }

/* ── sports bento ─────────────────────────────────────────────────────── */
.sgrid { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(120px, auto); }
.sp-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; box-shadow: var(--shadow-1); transition: transform var(--t2) var(--ease), box-shadow var(--t2), border-color var(--t); }
.sp-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.sp-tile .el { position: absolute; top: 12px; left: 12px; }
.sp-tile b { font-size: 16px; line-height: 20px; font-weight: 800; }
.sp-tile small { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* plain tiles: text starts below the element badge (two-line names used to run under it) and the competitions wrap instead of being cut */
.sp-tile:not(.is-photo) { padding-top: 54px; }
.sp-tile:not(.is-photo) small { white-space: normal; line-height: 16px; }
.sp-tile .cnt { position: absolute; top: 12px; right: 12px; min-width: 34px; height: 26px; display: grid; place-items: center; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 13px; font-weight: 800; }
.sp-tile.is-photo { grid-column: span 2; grid-row: span 2; color: #fff; border: 0; }
.sp-tile.is-photo picture { position: absolute; inset: 0; z-index: 0; }
.sp-tile.is-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.sp-tile.is-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(14, 28, 39, .05) 20%, rgba(14, 28, 39, .85)); }
.sp-tile.is-photo > b, .sp-tile.is-photo > small { position: relative; z-index: 1; }
.sp-tile.is-photo .el, .sp-tile.is-photo .cnt { z-index: 1; }
.sp-tile.is-photo .el { --c: #fff; background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); backdrop-filter: blur(6px); }
.sp-tile.is-photo .cnt { background: var(--accent); color: var(--accent-ink); }
.sp-tile.is-photo small { color: rgba(255, 255, 255, .85); }
.sp-tile.is-photo b { font-size: 22px; line-height: 26px; }
.sp-tile.is-photo:hover img { transform: scale(1.05); }
@container (max-width: 900px) { .sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 600px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(104px, auto); } }

/* ── popular matches ──────────────────────────────────────────────────── */
.sports { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (max-width: 900px) { .sports { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 560px) { .sports { grid-template-columns: 1fr; } }
.sc { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform var(--t2) var(--ease), box-shadow var(--t2); }
.sc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.sc__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.sc__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc__meta b { color: var(--ink); }
.sc__teams { position: relative; font-size: 17px; line-height: 22px; font-weight: 800; text-decoration: none; }
.sc__teams span { display: block; }
.sc__teams:hover { color: var(--brand-ink); }
.sc__row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-2); }
.sc__row a { position: relative; font-weight: 700; color: var(--ink); text-decoration: none; }
.sc__row a:hover { color: var(--brand-ink); }
.sc .kick { letter-spacing: .06em; }
.sc__out { display: grid; gap: 8px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); margin-top: auto; }
.sc__out .odds { width: 100%; min-width: 0; }
/* three outcomes in a narrow card: a long team name takes a second line instead of "Riverside Al…" */
.sc__out .odds small { white-space: normal; overflow-wrap: anywhere; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }

/* banner tile is its own container: the product screen and the copy never overlap */
.t-banner { container-type: inline-size; }
.slide > :not(.slide__bg):not(.slide__vis) { max-width: 52cqi; position: relative; }
.slide__vis { width: 40cqi; max-width: 280px; }
@container (max-width: 500px) { .slide > :not(.slide__bg):not(.slide__vis) { max-width: none; } }
@container (max-width: 500px) { .slide__vis { display: none; } }  /* A3: the price screen stays on the banner at 1280–1440 */
.slide[aria-hidden="true"] { visibility: hidden; transition: visibility 0s linear 420ms; }
.slide[aria-hidden="false"] { visibility: visible; }
.t-jump .ph img { object-position: center 30%; }

/* carousel: slides stack; the current one fades in, the others leave layout and focus order */
.carousel__track { position: relative; transform: none !important; }
.carousel__track > .slide { position: absolute; inset: 0; min-height: 0; }  /* the tile sets the height; a taller slide was clipped under the dots */
.slide[aria-hidden="true"] { display: none; }
.is-ready .slide[aria-hidden="false"] { animation: slideIn 420ms var(--ease); }  /* not on first paint: the first slide is the LCP */
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
/* Next to Jump fill level drawn by the row itself (one grid row, no extra child) */
.ntj a { position: relative; overflow: hidden; }
.ntj a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #C9F28F, var(--accent)); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform 1s linear; }
.sgrid { grid-auto-flow: dense; }
