/* Home — carried over from the approved mockup (b2-kinetic-matchline). */

/* ── hero: live match carousel ────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; height: 560px; border-radius: var(--radius-l); overflow: hidden; background: var(--color-surface-1); border: 1px solid var(--color-border-soft); }
.hero__stage { position: absolute; inset: 0; }
.slide[hidden][hidden] { display: none !important; }
.slide { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.slide__ph { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.55); transform: scale(1.12); }
.slide.is-on .slide__ph img { animation: kb 11s linear forwards; }
.slide__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 20 18 / .55), rgb(11 20 18 / .2) 40%, rgb(11 20 18 / .92) 85%), radial-gradient(70% 80% at 0% 100%, rgb(11 20 18 / .95), transparent 70%); }
.slide__ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-duotone); mix-blend-mode: color; opacity: .55; }
.hero__bars { position: absolute; z-index: 5; top: 14px; left: 24px; right: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.hero__bars button { position: relative; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 3px; border-radius: 9px; background: rgb(242 246 243 / .2); }
.hero__bars i { position: absolute; left: 0; top: 12px; height: 3px; width: 0; border-radius: 9px; background: var(--color-brand); }
.hero__bars .done i { width: 100%; }
.hero__bars .run i { animation: bar var(--dur, 9s) linear forwards; }
.hero.is-paused .hero__bars .run i { animation-play-state: paused; }
.hero__nav { position: absolute; z-index: 5; right: 24px; top: 46px; display: flex; gap: 6px; }
.hero__nav button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); background: rgb(11 20 18 / .6); backdrop-filter: blur(6px); color: var(--color-text); cursor: pointer; transition: background var(--dur-base), border-color var(--dur-base); }
.hero__nav button:hover { background: var(--color-surface-3); border-color: var(--color-text-3); }
.hero__nav .icon { width: 18px; height: 18px; }
.slide__top { display: flex; align-items: center; gap: 12px; padding: 46px 24px 0; }
.slide__top .pill { text-decoration: none; backdrop-filter: blur(8px); }
.fresh { display: flex; align-items: center; gap: 8px; margin-right: 96px; margin-left: auto; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--color-text-2); }
.fresh i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); animation: pulse-ok 2s infinite; }
.fresh.is-stale i { background: var(--color-warm); animation: none; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(12px, 3vw, 40px); padding: 18px 24px 0; color: var(--color-text); text-decoration: none; }
.scoreline__t { font: 800 clamp(1.125rem, .8rem + 1.2vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.scoreline__t:first-child { text-align: right; }
.scoreline__t small { display: block; margin-top: 6px; font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0; color: var(--color-text-2); }
.scoreline__c { display: grid; justify-items: center; }
.board { display: flex; align-items: center; gap: .12em; font: 700 var(--fs-score)/.9 var(--font-mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.board i { font-style: normal; font-weight: 500; font-size: .5em; color: var(--color-text-3); }
.reel { position: relative; display: inline-grid; overflow: hidden; height: .9em; }
.reel span { grid-area: 1 / 1; transition: transform .6s var(--spring), opacity .4s; }
.reel span.out { transform: translateY(-100%); opacity: 0; visibility: hidden; }
.reel span.in { transform: translateY(100%); opacity: 0; }
.reel.flash span:last-child { animation: flash-score 1.4s var(--ease); }
.scoreline__clock { margin-top: 10px; font: 700 1rem/1 var(--font-mono); color: var(--color-error); }
.chart { position: absolute; left: 46%; right: 24px; bottom: 100px; height: 44%; z-index: -1; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart__area { fill: url(#g-area); opacity: 0; transition: opacity 1.2s; }
.slide.is-on .chart__area { opacity: 1; }
.chart__a { fill: none; stroke: var(--color-brand); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart__b { fill: none; stroke: rgb(242 246 243 / .45); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.chart__grid line { stroke: rgb(242 246 243 / .08); vector-effect: non-scaling-stroke; }
.now-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 6px rgb(216 243 92 / .18), 0 0 24px 4px rgb(216 243 92 / .45); opacity: 0; }
.now-dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid var(--color-brand); animation: ring 1.6s var(--ease) infinite; }
.now-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgb(241 107 107 / .6); opacity: 0; }
.mk { position: absolute; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: rgb(11 20 18 / .85); backdrop-filter: blur(6px); border: 1px solid var(--color-border); font: 600 var(--fs-2xs)/1 var(--font-mono); white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.6); transition: transform .5s var(--spring), opacity .3s; }
.mk::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 1px; height: 8px; background: var(--color-border); }
.mk.on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.mk.alt { transform: translate(-50%, calc(-100% - 46px)) scale(.6); }
.mk.alt.on { transform: translate(-50%, calc(-100% - 46px)) scale(1); }
.mk.alt::after { height: 40px; bottom: -41px; }
.mk.old { opacity: 0 !important; }
.mk.goal { background: var(--color-brand); color: var(--color-on-brand); border-color: var(--color-brand); font-weight: 700; }
.mk.goal.on { animation: mk-pop 1.2s var(--ease); }
@keyframes mk-pop { 0% { box-shadow: 0 0 0 0 rgb(216 243 92 / .7); } 100% { box-shadow: 0 0 0 22px transparent; } }
.slide__odds { position: absolute; right: 24px; bottom: 24px; display: grid; gap: 8px; justify-items: end; }
.slide__odds small { font: 600 var(--fs-xs)/1 var(--font-mono); color: var(--color-text-2); }
.slide__odds .odds { min-width: 240px; }
.slide__odds .odd { background: rgb(26 40 36 / .75); backdrop-filter: blur(6px); }
.hero__copy { position: absolute; z-index: 4; left: 24px; bottom: 24px; max-width: min(520px, 46%); }
.hero__copy h1 { font: 800 var(--fs-h1)/var(--lh-tight) var(--font-display); letter-spacing: var(--tracking-tight); }
.hero__copy h1 span { color: var(--color-brand); }
.hero__copy p { margin-top: 10px; max-width: 44ch; color: var(--color-text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ── live wire ────────────────────────────────────────────────────────── */
.wire { position: relative; display: flex; align-items: center; height: 44px; margin-top: 12px; border-radius: var(--radius-m); background: var(--color-surface-1); border: 1px solid var(--color-border-soft); overflow: hidden; }
.wire__l { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; background: var(--color-surface-2); font: 700 var(--fs-xs)/1 var(--font-mono); letter-spacing: .08em; color: var(--color-live-text); white-space: nowrap; box-shadow: 12px 0 16px var(--color-surface-1); }
.wire__belt { display: flex; gap: 36px; padding-left: 36px; white-space: nowrap; font-size: var(--fs-sm); color: var(--color-text-2); animation: belt 60s linear infinite; }
.wire:hover .wire__belt { animation-play-state: paused; }
.wire__belt > span { display: flex; align-items: center; gap: 8px; }
.wire__belt em { font: 600 var(--fs-xs)/1 var(--font-mono); font-style: normal; color: var(--color-text-3); }
.wire__belt strong { color: var(--color-text); }
.wire__belt .up { color: var(--color-success); }
.wire__belt .dn { color: var(--color-error); }
.home-chips { margin-top: 20px; }

/* ── sports slider ────────────────────────────────────────────────────── */
.track--sports { grid-auto-columns: 200px; }
.sport { scroll-snap-align: start; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; height: 260px; padding: 16px; border-radius: var(--radius-l); border: 1px solid var(--color-border-soft); overflow: hidden; color: var(--color-text); text-decoration: none; }
.sport picture { position: absolute; inset: 0; z-index: -2; }
.sport img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.72); transition: transform .8s var(--ease), filter .6s; }
.sport::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgb(11 20 18 / .95)), linear-gradient(0deg, rgb(31 107 82 / .5), rgb(31 107 82 / .5)); }
.sport::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sport:hover img { transform: scale(1.08); filter: grayscale(.2) contrast(1.05) brightness(.75); }
.sport:hover::after, .sport:focus-visible::after { transform: none; }
.sport h3 { font: 800 1.25rem/1.2 var(--font-display); }
.sport p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font: 600 var(--fs-xs)/1.2 var(--font-mono); color: var(--color-text-2); }
.sport p > span { display: flex; align-items: center; gap: 6px; color: var(--color-live-text); }
.sport__go { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(11 20 18 / .6); backdrop-filter: blur(6px); opacity: 0; transform: rotate(-45deg) scale(.8); transition: all .4s var(--spring); }
.sport__go .icon { width: 16px; height: 16px; }
.sport:hover .sport__go { opacity: 1; transform: none; }

/* ── this weekend ─────────────────────────────────────────────────────── */
.feat { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.fcard { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 20px; border-radius: var(--radius-l); border: 1px solid var(--color-border-soft); overflow: hidden; color: var(--color-text); text-decoration: none; }
.fcard--big { grid-row: span 2; min-height: 452px; padding: 24px; }
.fcard picture { position: absolute; inset: 0; z-index: -2; }
.fcard img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.62); transition: transform 1s var(--ease), filter .6s; }
.fcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 20 18 / .1), rgb(11 20 18 / .94) 75%), linear-gradient(0deg, rgb(31 107 82 / .4), rgb(31 107 82 / .4)); }
.fcard:hover img { transform: scale(1.05); filter: grayscale(.3) contrast(1.05) brightness(.62); }
.fcard__tag { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; margin-bottom: auto; border-radius: var(--radius-pill); background: rgb(11 20 18 / .7); backdrop-filter: blur(6px); font: 600 var(--fs-2xs)/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-2); }
.fcard h3 { margin-top: 14px; font: 800 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; }
.fcard--big h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); max-width: 16ch; }
.fcard p { margin-top: 8px; max-width: 46ch; font-size: var(--fs-sm); color: var(--color-text-2); }
.fcard__f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 16px; }
.fcard__cd { font: 700 var(--fs-sm)/1 var(--font-mono); }
.fcard__lnk { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-brand); }
.fcard__lnk .icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--spring); }
.fcard:hover .fcard__lnk .icon { transform: translateX(4px); }

/* ── competitions ─────────────────────────────────────────────────────── */
.track--narrow { grid-auto-columns: minmax(220px, 1fr); }
.comp { scroll-snap-align: start; display: grid; gap: 10px; padding: 18px; border-radius: var(--radius-l); background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface-1)); border: 1px solid var(--color-border-soft); color: var(--color-text); text-decoration: none; transition: transform var(--dur-slow) var(--ease), border-color var(--dur-base); }
.comp:hover { transform: translateY(-4px); border-color: var(--color-border); }
.comp small { display: flex; align-items: center; gap: 8px; font: 600 var(--fs-xs)/1.2 var(--font-mono); color: var(--color-text-3); }
.comp h3 { font: 800 var(--fs-h3)/1.25 var(--font-display); }
.comp__spark { width: 100%; height: 36px; }
.comp__spark path { fill: none; stroke: var(--color-brand); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 0; }
.js .rv:not(.in) .comp__spark path { stroke-dashoffset: 300; }
.js .rv.in .comp__spark path { animation: draw-in 1.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); --len: 300; }
.comp b { font: 700 1.5rem/1 var(--font-mono); }
.comp b span { margin-left: 6px; font: 600 var(--fs-xs)/1 var(--font-body); color: var(--color-text-2); }

/* ── how a bet works ──────────────────────────────────────────────────── */
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.how__steps li { position: relative; padding: 20px; border-radius: var(--radius-l); background: var(--color-surface-1); border: 1px solid var(--color-border-soft); overflow: hidden; }
.how__steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--color-surface-3); }
.how__steps li:first-child::before { background: var(--color-brand); }
.how__steps b { font: 700 var(--fs-xs)/1 var(--font-mono); color: var(--color-text-3); }
.how__steps h3 { margin: 10px 0 8px; font: 800 1.125rem/1.25 var(--font-display); }
.how__steps p { font-size: var(--fs-sm); color: var(--color-text-2); }
.how__chg { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 10px; border-radius: var(--radius-s); background: var(--color-bg); font: 600 var(--fs-sm)/1 var(--font-mono); }
.how__chg s { color: var(--color-text-3); }
.how__chg b { color: var(--color-warm); font-size: inherit; }
.how__chg .icon { width: 14px; height: 14px; }

/* ── limits band ──────────────────────────────────────────────────────── */
.band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 40px; padding: 28px; border-radius: var(--radius-l); background: radial-gradient(80% 120% at 100% 0%, rgb(216 243 92 / .07), transparent 60%), var(--color-surface-1); border: 1px solid var(--color-border-soft); }
.band h2 { font: 800 var(--fs-h2)/1.2 var(--font-display); letter-spacing: var(--tracking-tight); }
.band > div > p { margin-top: 8px; max-width: 52ch; font-size: var(--fs-sm); color: var(--color-text-2); }
.band__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.band__links .icon { width: 16px; height: 16px; }
.band__meters { display: grid; gap: 16px; align-content: center; }
.band__note { font-size: var(--fs-xs); color: var(--color-text-3); }
.faq__more { margin-top: 14px; font-size: var(--fs-sm); }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .how__steps { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .fcard--big { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
}
@media (max-width: 767px) {
  .hero { height: auto; border-radius: 18px; display: flex; flex-direction: column; }
  .hero__stage { position: relative; height: 430px; }
  .hero__bars { left: 14px; right: 14px; }
  .hero__nav, .fresh { display: none; }
  .slide__top { padding: 44px 14px 0; }
  .scoreline { padding: 22px 14px 0; gap: 10px; }
  .scoreline__t { font-size: 1rem; }
  .chart { left: 0; right: 0; bottom: 84px; height: 40%; }
  .slide__odds { left: 14px; right: 14px; bottom: 14px; justify-items: stretch; }
  .slide__odds .odds { min-width: 0; }
  .hero__copy { position: static; max-width: none; padding: 18px 16px; border-top: 1px solid var(--color-border-soft); }
  .home-chips { margin: 16px -16px 0; padding: 2px 16px; }
  .wire__l span:last-child { display: none; }
  .track--sports { grid-auto-columns: 44%; }
  .sport { height: 220px; }
  .track--narrow { grid-auto-columns: 62%; }
  .feat { grid-template-columns: 1fr; }
  .fcard--big { min-height: 340px; }
  .band { grid-template-columns: 1fr; padding: 20px; }
}

.slide .pill:focus-visible, .scoreline:focus-visible, .slide__odds .odd:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

/* earlier goals: a dot on the momentum line instead of a label */
.mk.goal.old { opacity: 1 !important; width: 12px; height: 12px; padding: 0; gap: 0; font-size: 0; border-radius: 50%; border: 2px solid var(--color-bg); box-shadow: 0 0 0 3px rgb(216 243 92 / .25); transform: translate(-50%, -50%) scale(1) !important; animation: none; }
.mk.goal.old::after { display: none; }

/* pause controls (WCAG 2.2.2) */
.hero__pause { position: absolute; z-index: 6; left: 24px; bottom: auto; top: 46px; display: none; }
.hero__pause, .wire__pause { place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); background: rgb(11 20 18 / .6); backdrop-filter: blur(6px); color: var(--color-text); cursor: pointer; transition: background var(--dur-base), border-color var(--dur-base); }
.hero__pause:hover, .wire__pause:hover { background: var(--color-surface-3); border-color: var(--color-text-3); }
.hero__pause .icon, .wire__pause .icon { width: 16px; height: 16px; }
.hero__pause[aria-pressed="true"], .wire__pause[aria-pressed="true"] { border-color: var(--color-brand); color: var(--color-brand); }
.hero__nav { align-items: center; }
.hero__nav .hero__pause { position: static; display: grid; }
.wire__pause { position: relative; z-index: 2; display: grid; flex: none; margin: 0 4px 0 auto; order: 3; background: var(--color-surface-2); }
.wire.is-paused .wire__belt { animation-play-state: paused; }
@media (max-width: 767px) { .hero__nav { display: flex; top: 40px; right: 14px; } .hero__nav [data-hero-prev], .hero__nav [data-hero-next] { display: none; } }
