/* The exchange chapter: one match played like a short video in a single player (screen, scene caption, timeline), the
   exchange set against a bookmaker in the form of match statistics, and a gallery of the real demo. Visitors who ask
   for reduced motion get still key frames and step through them; without the script the first scene stays open. */

/* ---------- Shared headings ---------- */
.arena-story__eyebrow { margin: 0 0 18px; color: #9aaaf3; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.arena-story h2, .arena-versus h2, .arena-inside h2 { font-size: clamp(34px, calc(3.6 * var(--vw, 1vw)), 56px); line-height: 1.08; letter-spacing: -1.3px; }
.arena-story h2 span, .arena-inside h2 span { background: linear-gradient(110deg, #f3f4ff, #a9b2ff); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- One match ---------- */
.arena-story { position: relative; padding: clamp(56px, calc(5 * var(--vw, 1vw)), 88px) 0 clamp(30px, calc(4 * var(--vw, 1vw)), 60px); }
.arena-story::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 40% at 30% 30%, #2c37a01f, transparent 70%), radial-gradient(40% 30% at 80% 70%, #2fd39a0d, transparent 70%); }
.arena-story__lead { max-width: 640px; margin-top: 18px; color: #b8c4df; font-size: clamp(16px, calc(1.3 * var(--vw, 1vw)), 19px); line-height: 1.6; }
.arena-story__body { margin-top: clamp(24px, calc(3 * var(--vw, 1vw)), 44px); }
/* One player: the screen and the scene caption side by side, the timeline under both. */
.story-player { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); grid-template-areas: "screen caption" "bar bar"; column-gap: clamp(28px, calc(3.6 * var(--vw, 1vw)), 60px); padding: clamp(12px, calc(1.4 * var(--vw, 1vw)), 20px); border-radius: 36px; background: radial-gradient(70% 60% at 100% 0%, #3b44c41f, transparent 70%), linear-gradient(165deg, #0e1531e6, #080d20f2); box-shadow: inset 0 0 0 1px #8f9cff24, inset 0 1px 0 #ffffff12, 0 60px 120px -60px #000; }
.arena-story__stage { grid-area: screen; min-width: 0; }
.arena-story__note { margin-top: 12px; color: #7f8bb0; font-size: 12px; text-align: center; }

/* The match screen */
.story-screen { position: relative; overflow: hidden; padding: 22px 24px 20px; border-radius: 28px; background: radial-gradient(90% 55% at 50% -10%, #3a46c438, transparent 70%), linear-gradient(165deg, #121b3e, #0a1127 72%); box-shadow: inset 0 0 0 1px #8f9cff2b, inset 0 1px 0 #ffffff1a, 0 40px 90px -40px #000e; }
.story-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #9aa6c8; font-size: 13px; }
.story-clock { display: inline-flex; align-items: center; gap: 8px; min-width: 96px; justify-content: center; padding: 5px 12px; border: 1px solid #ffffff1c; border-radius: 99px; background: #ffffff0d; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.story-clock i { width: 7px; height: 7px; border-radius: 50%; background: #8e98b8; }
.arena-story[data-scene="1"] .story-clock i, .arena-story[data-scene="2"] .story-clock i { background: #2fd39a; animation: story-live 1.6s ease-in-out infinite; }
.arena-story[data-scene="3"] .story-clock i { background: #ffb547; }
.arena-story[data-scene="4"] .story-clock i, .arena-story[data-scene="5"] .story-clock i { background: #a7b0ff; }
@keyframes story-live { 50% { box-shadow: 0 0 0 6px #2fd39a1f; } }
.story-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin: 14px 0 18px; }
.story-team { display: grid; justify-items: center; gap: 8px; }
.story-team img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 16px #0008); }
.story-team b { color: #eef1ff; font-size: 15px; font-weight: 600; }
.story-score { display: flex; align-items: center; gap: 14px; color: #fff; font: 700 clamp(46px, calc(4.4 * var(--vw, 1vw)), 64px)/1 var(--heading); font-variant-numeric: tabular-nums; perspective: 400px; }
.story-score i { color: #6f7cff; font-style: normal; }
.story-score span { display: inline-block; }
.story-score .is-flip { animation: story-flip .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes story-flip { 0% { transform: rotateX(90deg); opacity: 0; color: #2fd39a; } 60% { color: #2fd39a; } 100% { transform: none; opacity: 1; } }

/* Outcomes: the three prices that always add up to $1 */
.story-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.story-out { position: relative; display: grid; justify-items: start; gap: 4px; padding: 12px 14px 15px; overflow: hidden; border: 1px solid #8f9cff2e; border-radius: 16px; background: #0b1328cc; color: #aeb9d6; font-size: 13px; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .3s, background .3s, opacity .5s; }
.story-out:hover { border-color: #a7b0ff80; }
.story-out b { color: #fff; font: 700 24px/1.1 var(--heading); font-variant-numeric: tabular-nums; transition: color .3s; }
.story-out i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #5b6bff, #a7b0ff); transition: width .25s linear; }
.story-out[aria-pressed=true] { border-color: #a0aaffcc; background: #5b6bff2e; box-shadow: 0 10px 30px -14px #5b6bffcc; }
.story-out[aria-pressed=true]::after { content: ''; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #c9d0ff; box-shadow: 0 0 0 4px #8d98ff33; }
.story-out.is-up { animation: story-up 1s ease-out; }
.story-out.is-down { animation: story-down 1s ease-out; }
@keyframes story-up { 0% { background-color: #2fd39a40; } }
@keyframes story-down { 0% { background-color: #ff6b7a33; } }
.story-out.is-won { border-color: #2fd39a; background: #2fd39a1c; box-shadow: 0 0 34px -8px #2fd39a80; }
.story-out.is-won b { color: #5ff0bd; }
.story-out.is-won i { background: #2fd39a; }
.story-out.is-lost { opacity: .42; }

/* Panels that take turns under the outcomes */
.story-panels { position: relative; height: 236px; margin-top: 16px; }
.story-panel { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.arena-story:is([data-scene="0"], [data-scene="1"], [data-scene="2"], [data-scene="3"]) .story-panel--price,
.arena-story[data-scene="4"] .story-panel--reserves, .arena-story[data-scene="5"] .story-panel--season { opacity: 1; visibility: visible; transition: opacity .5s .1s; }
.story-panel figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #9aa6c8; font-size: 13px; }
.story-panel figcaption b { color: #fff; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.story-panel--price svg, .story-panel--season svg { display: block; width: 100%; height: 178px; margin-top: 8px; overflow: visible; }
.story-chart { position: relative; }
.story-grid line { stroke: #ffffff12; stroke-width: 1; vector-effect: non-scaling-stroke; }
.story-grid .story-kickoff { stroke: #ffffff30; stroke-dasharray: 3 5; }
#story-area-path, .story-liquid { stroke: none; }
.story-line { fill: none; stroke: #b4bbff; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px #7d86ffcc); }
#story-reveal-rect { transform-box: fill-box; transform-origin: 0 0; }
.story-axis { display: flex; justify-content: space-between; margin-top: 6px; color: #75809f; font-size: 11px; }
.story-panel--price .story-axis span:nth-child(2) { margin-left: -6%; }
.story-mark-dot { position: absolute; z-index: 1; translate: -50% -50%; pointer-events: none; }
.story-now { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #7d86ff; box-shadow: 0 0 0 6px #7d86ff33, 0 0 18px #7d86ff; }
.story-goal { padding: 3px 8px; border-radius: 99px; background: #2fd39a; color: #04241a; font-size: 11px; font-weight: 700; opacity: 0; scale: .6; transition: opacity .4s, scale .4s cubic-bezier(.3, 1.6, .5, 1); }
.story-goal.is-on { opacity: 1; scale: 1; }
.story-goal.is-away { background: #ff6b7a; color: #3a0710; }

/* Reserves: two capsules, one fills from the other */
.story-panel--reserves svg { display: block; width: 100%; height: 162px; overflow: visible; }
.story-cap { fill: #ffffff07; stroke: #a7b0ff66; stroke-width: 1.5; }
.story-liquid { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--lvl, .5)); transition: transform 1.6s cubic-bezier(.4, 0, .2, 1); }
.story-flow { fill: none; stroke: #d4d9ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 13; opacity: 0; filter: drop-shadow(0 0 4px #8d98ff); transition: opacity .4s; }
.arena-story[data-scene="4"] .story-flow { opacity: 1; animation: story-flow .8s linear infinite; }
@keyframes story-flow { to { stroke-dashoffset: -14; } }
.story-reserves { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4px; text-align: center; }
.story-reserves p { display: grid; justify-items: center; gap: 2px; margin: 0; }
.story-reserves small { color: #9aa6c8; font-size: 12px; }
.story-reserves b { color: #fff; font: 700 22px/1.2 var(--heading); font-variant-numeric: tabular-nums; }
.story-reserves span { font-size: 13px; font-weight: 600; }
:is(.story-reserves, .story-position) .is-up { color: #5ff0bd; } :is(.story-reserves, .story-position) .is-down { color: #ff8b97; }

/* Season */
/* Season candles: one per match, green after a win, red after a loss, grey after a draw; they grow in left to right. */
.story-candle { opacity: 0; transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .2s, transform 0s .2s; }
.arena-story[data-scene="5"] .story-candle { opacity: 1; transform: none; transition: opacity .35s calc(var(--i) * 45ms + .15s), transform .45s calc(var(--i) * 45ms + .15s) cubic-bezier(.3, 1.4, .5, 1); }
.story-candle line { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.story-candle rect { stroke: none; }
.story-candle.is-w line { stroke: #2fd39a; } .story-candle.is-w rect { fill: #2fd39a; }
.story-candle.is-l line { stroke: #ff6b7a; } .story-candle.is-l rect { fill: #ff6b7a; }
.story-candle.is-d line { stroke: #8e98b8; } .story-candle.is-d rect { fill: #8e98b8; }
.story-legend { display: inline-flex; gap: 12px; color: #9aa6c8; font-size: 12px; }
.story-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; vertical-align: 0; }

/* Footer: status and the visitor's position */
.story-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #ffffff12; }
.story-status { display: flex; align-items: center; gap: 9px; margin: 0; color: #aeb9d6; font-size: 13px; line-height: 1.45; }
.story-status i { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #2fd39a; }
.arena-story[data-scene="3"] .story-status i { background: #ffb547; }
.arena-story:is([data-scene="4"], [data-scene="5"]) .story-status i { background: #a7b0ff; }
.story-position { display: grid; justify-items: end; gap: 2px; margin: 0; padding: 8px 14px; border: 1px solid #ffffff14; border-radius: 14px; background: #ffffff08; text-align: right; }
.story-position small { color: #8f9bc0; font-size: 11px; }
.story-position b { color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.story-position span { color: #aeb9d6; font-size: 12px; font-variant-numeric: tabular-nums; }

/* Scene caption: all six stacked in one cell, so the player keeps one height; the current one rises in. */
.story-captions { grid-area: caption; display: grid; align-items: center; min-width: 0; padding: 24px 12px 24px 0; }
.story-caption { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 16px; transition: opacity .45s, translate .55s cubic-bezier(.2, .7, .2, 1), visibility 0s .45s; }
.story-caption.is-on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .55s .12s, translate .65s .12s cubic-bezier(.2, .7, .2, 1); }
.story-caption__count { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; color: #75809f; font-size: 13px; }
.story-caption__count b { color: #fff; font: 700 30px/1 var(--heading); letter-spacing: -.5px; }
.story-caption__count em { margin-left: 10px; padding: 5px 11px; border: 1px solid #8f9cff3d; border-radius: 99px; background: #5b6bff1f; color: #c9d0ff; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.story-caption h3 { color: #fff; font: 700 clamp(24px, calc(2.2 * var(--vw, 1vw)), 34px)/1.15 var(--heading); letter-spacing: -.4px; }
.story-caption__text { margin-top: 14px; color: #b8c4df; font-size: clamp(15px, calc(1.1 * var(--vw, 1vw)), 17px); line-height: 1.65; }
.story-caption__hint { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border: 1px dashed #8f9cff4d; border-radius: 14px; color: #c9d0ff; font-size: 14px; line-height: 1.45; }
.story-caption__hint svg { flex-shrink: 0; width: 22px; height: 22px; stroke-width: 1.6; color: #a7b0ff; }
.arena-story.has-picked .story-caption__hint { border-style: solid; border-color: #2fd39a4d; color: #8fe9c8; }
/* Before kick-off the outcomes invite a tap: a soft ring runs round them until one is picked. */
.arena-story[data-scene="0"]:not(.has-picked) .story-out:not([aria-pressed=true]) { animation: story-invite 2.4s ease-in-out infinite; }
.arena-story[data-scene="0"]:not(.has-picked) .story-out:nth-child(3) { animation-delay: .4s; }
@keyframes story-invite { 50% { border-color: #a7b0ff99; box-shadow: 0 0 0 4px #7d86ff1f; } }

/* Behind the captions: the stadium under its lights, fading into the panel. */
.story-captions { position: relative; isolation: isolate; }
.story-backdrop { position: absolute; z-index: -1; inset: -20px -20px auto -28px; height: 62%; border-radius: 0 24px 0 0; background: url('assets/story-stadium.webp') 50% 0 / cover no-repeat; opacity: .5; -webkit-mask-image: linear-gradient(#000 10%, transparent 92%), linear-gradient(90deg, transparent, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 10%, transparent 92%), linear-gradient(90deg, transparent, #000 22%); mask-composite: intersect; pointer-events: none; }
.story-backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, #2fd39a14, transparent 70%), linear-gradient(#0e153100, #0e1531); }

/* A small picture under each scene's text. Its parts play in when the scene opens. */
.story-viz { margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: #070d20cc; box-shadow: inset 0 0 0 1px #8f9cff24; }
.viz-title { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: #8f9bc0; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.story-caption .story-viz > * { opacity: 0; translate: 0 8px; }
.story-caption.is-on .story-viz > * { animation: viz-in .5s cubic-bezier(.2, .7, .2, 1) forwards; }
.story-caption.is-on .story-viz > :nth-child(2) { animation-delay: .1s; }
.story-caption.is-on .story-viz > :nth-child(3) { animation-delay: .2s; }
.story-caption.is-on .story-viz > :nth-child(4) { animation-delay: .3s; }
.story-caption.is-on .story-viz > :nth-child(5) { animation-delay: .4s; }
@keyframes viz-in { to { opacity: 1; translate: 0 0; } }

/* 0: $1 splits into the three outcomes */
.viz-set__row { display: flex; align-items: center; gap: 12px; }
.viz-coin { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9d0ff, #6f7cff 55%, #3a46c4); color: #fff; font: 700 17px/1 var(--heading); box-shadow: 0 0 0 4px #6f7cff26, 0 8px 22px -6px #6f7cffcc; }
.viz-arrow { flex-shrink: 0; width: 20px; height: 2px; background: linear-gradient(90deg, #6f7cff, #c9d0ff); }
.viz-split { display: flex; flex: 1; gap: 4px; min-width: 0; }
.viz-split span { display: grid; gap: 6px; flex: var(--w) 1 0; min-width: 0; }
.viz-split span::before { content: ''; height: 12px; border-radius: 4px; background: linear-gradient(90deg, #5b6bff, #8d98ff); transform: scaleX(0); transform-origin: 0 50%; }
.viz-split span:first-child::before { background: linear-gradient(90deg, #6f7cff, #b8c0ff); }
.story-caption.is-on .viz-split span::before { animation: viz-grow .7s cubic-bezier(.3, 1.2, .5, 1) forwards; animation-delay: calc(.2s + var(--i) * .15s); }
@keyframes viz-grow { to { transform: none; } }
.viz-split em { color: #fff; font-size: 15px; font-style: normal; font-weight: 700; }
.viz-split small { overflow: hidden; color: #8f9bc0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* 1–2: a small order book */
.viz-book ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.viz-book li { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; align-items: center; gap: 10px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.viz-book li i { height: 100%; border-radius: 4px; transform: scaleX(var(--v)); transform-origin: 100% 50%; }
.viz-book li span { font-weight: 700; }
.viz-book li em { color: #8f9bc0; font-style: normal; text-align: right; }
.viz-book .is-ask span { color: #ff8b97; } .viz-book .is-ask i { background: linear-gradient(90deg, transparent, #ff6b7a40); }
.viz-book .is-bid span { color: #5ff0bd; } .viz-book .is-bid i { background: linear-gradient(90deg, transparent, #2fd39a40); }
.story-caption.is-on .viz-book li i { animation: viz-depth 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.6s); }
@keyframes viz-depth { to { transform: scaleX(calc(var(--v) * .8)); } }
.viz-book .viz-spread { display: flex; justify-content: center; height: 26px; color: #c9d0ff; font-size: 12px; font-weight: 600; }
.viz-book .viz-spread span { padding: 3px 10px; border: 1px solid #8f9cff3d; border-radius: 99px; background: #5b6bff1f; font-weight: 600; }
.viz-book--moved .viz-spread span { border-color: #2fd39a59; background: #2fd39a14; color: #8fe9c8; }
.story-caption.is-on .viz-book--moved li:not(.viz-spread) { animation: viz-shift .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.3s + var(--i) * .07s); }
@keyframes viz-shift { from { translate: 0 18px; opacity: 0; } }

/* 3: two sources agree */
.viz-sources { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: 1fr 1fr; column-gap: 34px; row-gap: 10px; align-items: center; }
.viz-src { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; padding: 9px 12px; border-radius: 12px; background: #0b1328; box-shadow: inset 0 0 0 1px #8f9cff2e; }
.viz-src small { color: #8f9bc0; font-size: 11px; }
.viz-src b { grid-row: 2; color: #fff; font: 700 17px/1.2 var(--heading); }
.viz-src svg, .viz-result svg { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #2fd39a26; color: #5ff0bd; stroke-width: 2.6; }
.story-caption.is-on .viz-src svg { animation: viz-pop .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.6s + var(--i) * .5s); }
@keyframes viz-pop { from { scale: 0; opacity: 0; } }
.viz-links { position: absolute; left: calc(50% - 38px); width: 44px; top: 0; height: 100%; overflow: visible; }
.viz-links path { fill: none; stroke: #8d98ff; stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.story-caption.is-on .viz-links path { animation: viz-flow .9s linear infinite; }
@keyframes viz-flow { to { stroke-dashoffset: -14; } }
.viz-result { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #12382f, #0b1f22); box-shadow: inset 0 0 0 1px #2fd39a59, 0 0 30px -10px #2fd39a80; }
.viz-result svg { grid-column: 1; width: 34px; height: 34px; padding: 6px; }
.viz-result b { color: #fff; font-size: 14px; line-height: 1.3; }
.viz-result small { color: #8fe9c8; font-size: 12px; }
.story-caption.is-on .viz-result { animation: viz-in .5s cubic-bezier(.2, .7, .2, 1) 1.6s both; }

/* 4: payout */
.viz-payout ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.viz-payout li { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; background: #0b1328; box-shadow: inset 0 0 0 1px #8f9cff1f; color: #8f9bc0; font-size: 13px; }
.viz-payout li b { color: #75809f; font: 700 17px/1 var(--heading); }
.viz-payout li.is-won { background: linear-gradient(90deg, #2fd39a26, #2fd39a0a); box-shadow: inset 0 0 0 1px #2fd39a66; color: #e9fff6; }
.viz-payout li.is-won b { color: #5ff0bd; }
.story-caption.is-on .viz-payout li { animation: viz-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.25s + var(--i) * .12s); }
.viz-foot { margin: 10px 0 0; color: #75809f; font-size: 12px; line-height: 1.45; }

/* 5: team tokens */
.viz-teams ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.viz-teams li { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto 22px; column-gap: 10px; row-gap: 4px; align-items: center; padding: 9px 12px; border-radius: 12px; background: #0b1328; box-shadow: inset 0 0 0 1px #8f9cff1f; }
.viz-teams img { grid-row: 1 / 3; width: 28px; height: 28px; object-fit: contain; }
.viz-teams span { color: #e9edff; font-size: 13px; font-weight: 600; }
.viz-teams svg { width: 100%; height: 22px; overflow: visible; }
.viz-teams path { fill: none; stroke: #8d98ff; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 120; stroke-dashoffset: 120; }
.story-caption.is-on .viz-teams path { animation: viz-draw 1.1s ease-out forwards; animation-delay: calc(.35s + var(--i) * .15s); }
@keyframes viz-draw { to { stroke-dashoffset: 0; } }

/* Timeline: play button, a line with six scene marks and the playhead, the time. */
.story-bar { grid-area: bar; display: flex; align-items: center; gap: clamp(14px, calc(1.6 * var(--vw, 1vw)), 22px); margin-top: clamp(12px, calc(1.4 * var(--vw, 1vw)), 18px); padding: 12px clamp(14px, calc(1.6 * var(--vw, 1vw)), 22px) 12px 12px; border-radius: 24px; background: #050a18b3; box-shadow: inset 0 0 0 1px #8f9cff1f; }
.story-play { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #4b5cff, #6a5ff0); color: #fff; box-shadow: 0 10px 26px -10px #5b6bffcc, inset 0 1px 0 #ffffff33; cursor: pointer; transition: scale .2s, box-shadow .2s; }
.story-play:hover { scale: 1.06; box-shadow: 0 12px 30px -8px #5b6bffe6, inset 0 1px 0 #ffffff33; }
.story-play svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor; stroke: none; }
.story-play .is-replay { fill: none; stroke: currentColor; stroke-width: 2.2; }
.story-play :is(.is-play, .is-replay), .arena-story:not(.is-playing) .story-play .is-pause, .arena-story.is-ended .story-play .is-play { display: none; }
.arena-story:not(.is-playing):not(.is-ended) .story-play .is-play, .arena-story.is-ended .story-play .is-replay { display: block; }
/* While the match plays, a ring breathes round the button so it reads as a player. */
.arena-story.is-playing .story-play::after { content: ''; position: absolute; inset: -5px; border: 1px solid #8d98ff80; border-radius: 50%; animation: story-ring 1.8s ease-out infinite; }
@keyframes story-ring { to { inset: -12px; opacity: 0; } }
.story-track { position: relative; flex: 1; min-width: 0; height: 52px; cursor: pointer; }
.story-track__rail { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: #ffffff17; }
.story-track__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5b6bff, #8d98ff 75%, #b8c0ff); box-shadow: 0 0 12px #6f7cffa6; }
.story-track__fill::after { content: ''; position: absolute; right: -7px; top: 50%; z-index: 2; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #7d86ff59, 0 0 14px #8d98ff; }
.story-mark { position: absolute; top: 0; left: var(--at); display: grid; justify-items: start; gap: 9px; padding: 8px 6px 4px 0; border: 0; background: none; color: #75809f; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .25s; }
.story-mark i { width: 14px; height: 14px; margin-left: -7px; border: 2px solid #4a5480; border-radius: 50%; background: #0a1127; transition: border-color .25s, background .25s, box-shadow .25s; }
.story-mark span { margin-left: -7px; }
.story-mark:first-of-type i, .story-mark:first-of-type span { margin-left: 0; }
.story-mark:hover { color: #e9edff; }
.story-mark:hover i { border-color: #c9d0ff; }
.story-mark.is-done { color: #9aa6c8; }
.story-mark.is-done i { border-color: #8d98ff; background: #5b6bff; }
.story-mark.is-on { color: #fff; }
.story-mark.is-on i { border-color: #fff; background: #6f7cff; box-shadow: 0 0 0 4px #6f7cff40, 0 0 14px #6f7cff; }
.story-time { flex-shrink: 0; min-width: 76px; color: #75809f; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.story-time b { color: #e9edff; font-weight: 600; }
/* Parts made for phones only (see phone.css). */
.story-out__short, .story-caption__short, .versus-duel, .inside-phone { display: none; }

/* ---------- Exchange against bookmaker: a question per row, two answers, the exchange's column lit ---------- */
.arena-versus { position: relative; padding: clamp(40px, calc(5 * var(--vw, 1vw)), 80px) 0 clamp(60px, calc(7 * var(--vw, 1vw)), 120px); }
.arena-versus__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: clamp(28px, calc(4 * var(--vw, 1vw)), 80px); }
.arena-versus h2 span { background: linear-gradient(110deg, #f3f4ff, #a9b2ff); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.arena-versus__lead { max-width: 480px; margin: 0 0 6px; color: #b8c4df; font-size: clamp(16px, calc(1.3 * var(--vw, 1vw)), 19px); line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.versus-wrap { position: relative; margin-top: clamp(28px, calc(3.5 * var(--vw, 1vw)), 48px); padding: 12px clamp(10px, calc(1.4 * var(--vw, 1vw)), 20px); border-radius: 30px; background: linear-gradient(165deg, #0e1531e6, #080d20f2); box-shadow: inset 0 0 0 1px #8f9cff24, inset 0 1px 0 #ffffff12, 0 50px 110px -60px #000; }
.versus-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.versus-table col, .versus-table th, .versus-table td { text-align: left; vertical-align: middle; }
.versus-table thead th, .versus-table thead td { padding: 26px 22px 20px; }
.versus-table thead td { width: 34%; }
.versus-table thead .versus-old { width: 28%; }
.versus-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font: 700 clamp(17px, calc(1.5 * var(--vw, 1vw)), 21px)/1.2 var(--heading); letter-spacing: .2px; white-space: nowrap; }
.versus-brand img { width: 30px; height: auto; }
.versus-brand--old { color: #8e98b8; }
.versus-brand--old svg { width: 24px; height: 24px; stroke-width: 1.6; }
.versus-table tbody th, .versus-table tbody td { padding: 20px 22px; border-top: 1px solid #ffffff0f; }
.versus-q { display: flex; align-items: center; gap: 14px; color: #eef1ff; font-size: 16px; font-weight: 600; line-height: 1.35; }
.versus-q svg { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #5b6bff1f; box-shadow: inset 0 0 0 1px #8f9cff33; color: #b8c0ff; stroke-width: 1.6; }
.versus-table tbody .versus-old { color: #8e98b8; font-size: 15px; line-height: 1.5; }
/* The exchange's column: one lit glass strip from the header to the last row. */
.versus-table .versus-new { position: relative; background: linear-gradient(90deg, #5b6bff1a, #5b6bff0d); box-shadow: inset 1px 0 0 #a0aaff40, inset -1px 0 0 #a0aaff40; }
.versus-table thead .versus-new { border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #5b6bff3d, #5b6bff1a); box-shadow: inset 1px 0 0 #a0aaff40, inset -1px 0 0 #a0aaff40, inset 0 1px 0 #c9d0ff66; }
.versus-table tbody tr:last-child .versus-new { border-radius: 0 0 22px 22px; box-shadow: inset 1px 0 0 #a0aaff40, inset -1px 0 0 #a0aaff40, inset 0 -1px 0 #a0aaff40; }
.versus-table tbody tr:last-child :is(th, td) { padding-bottom: 26px; }
.versus-table tbody .versus-new { display: table-cell; color: #f2f4ff; font-size: 16px; font-weight: 600; line-height: 1.5; }
.versus-table tbody .versus-new span { display: block; padding-left: 38px; }
.versus-check { position: absolute; left: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; padding: 5px; border-radius: 50%; background: #2fd39a2e; color: #5ff0bd; stroke-width: 2.6; }
.versus-table tbody tr:hover :is(th, td) { background-color: #ffffff05; }
.versus-table tbody tr:hover .versus-new { background: linear-gradient(90deg, #5b6bff2e, #5b6bff14); }
/* Rows rise in one after another; the checks pop when their row arrives. */
.versus-table tbody tr { opacity: 0; translate: 0 14px; }
.versus-table.is-in tbody tr { animation: versus-row .55s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
.versus-table.is-in .versus-check { animation: versus-check .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.45s + var(--i) * .09s); }
@keyframes versus-row { to { opacity: 1; translate: 0 0; } }
@keyframes versus-check { from { scale: 0; opacity: 0; } }

/* ---------- Inside the exchange ---------- */
.arena-inside { position: relative; padding: clamp(30px, calc(4 * var(--vw, 1vw)), 60px) 0 clamp(80px, calc(8 * var(--vw, 1vw)), 140px); }
.arena-inside__head { margin-bottom: clamp(28px, calc(3.5 * var(--vw, 1vw)), 48px); }
.arena-inside .arena-ready { margin-top: clamp(36px, calc(4 * var(--vw, 1vw)), 60px); }
.inside-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.inside-tile { position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden; border-radius: 22px; background: linear-gradient(165deg, #10183a, #0a1127 75%); box-shadow: 0 30px 70px -40px #000d; transition: translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
/* The frame is drawn over the tile, so the recordings at the top sit inside it instead of covering it. */
.inside-tile::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px #8f9cff33, inset 0 1px 0 #ffffff1f; pointer-events: none; transition: box-shadow .35s; }
.inside-tile:hover { translate: 0 -4px; box-shadow: 0 34px 70px -34px #5b6bff73; }
.inside-tile:hover::after { box-shadow: inset 0 0 0 1px #a0aaff73, inset 0 1px 0 #ffffff2e; }
.inside-tile--wide { grid-column: 1 / -1; }
.inside-tile--half { grid-column: span 2; }
.inside-media { position: relative; height: 300px; overflow: hidden; background: #0a1022; }
.inside-tile--wide .inside-media { height: auto; aspect-ratio: 1320 / 554; }
.inside-media video, .inside-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.inside-tile--still .inside-media img { object-position: 0 0; }
.inside-media::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, #0b1229); pointer-events: none; }
.inside-live { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 9px; border: 1px solid #2fd39a40; border-radius: 99px; background: #2fd39a14; color: #8fe9c8; font: 600 11px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; vertical-align: 3px; white-space: nowrap; }
.inside-live i { width: 6px; height: 6px; border-radius: 50%; background: #2fd39a; box-shadow: 0 0 0 3px #2fd39a2e; }
.inside-tile figcaption { display: grid; gap: 6px; padding: 16px 22px 22px; }
.inside-tile figcaption b { color: #fff; font: 700 20px/1.2 var(--heading); letter-spacing: .1px; }
.inside-tile figcaption span { color: #a3aecd; font-size: 14px; line-height: 1.55; }
.inside-tile--wide figcaption { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 24px; }
.inside-cta { margin-top: 28px; text-align: center; }
.inside-cta .button { color: #fff; }
.inside-cta .button { min-height: 54px; }
@media (max-width: 1000px) {
  .inside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inside-tile--half { grid-column: 1 / -1; }
  .inside-tile--wide figcaption { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}


/* Low laptop screens: the screen gives up some height so the whole player, timeline included, fits the window. */
@media (min-width: 901px) and (max-height: 860px) {
  .story-screen { padding: 16px 20px 14px; }
  .story-board { margin: 6px 0 12px; }
  .story-team img { width: 50px; height: 50px; }
  .story-score { font-size: clamp(40px, calc(3.6 * var(--vw, 1vw)), 52px); }
  .story-out { padding: 10px 12px 12px; }
  .story-out b { font-size: 21px; }
  .story-panels { height: 178px; margin-top: 12px; }
  .story-panel--price svg, .story-panel--season svg { height: 122px; }
  .story-panel--reserves svg { height: 112px; }
  .story-foot { margin-top: 10px; padding-top: 10px; }
}
@media (min-width: 901px) and (max-height: 740px) {
  .story-panels { height: 160px; }
  .story-captions { padding-block: 6px; }
  .story-caption__count { margin-bottom: 12px; }
  .story-viz { margin-top: 14px; padding: 12px 14px; }
  .story-panel--price svg, .story-panel--season svg { height: 106px; }
  .story-panel--reserves svg { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-score .is-flip, .story-out.is-up, .story-out.is-down, .arena-story[data-scene="4"] .story-flow, .story-clock i, .story-out, .arena-story.is-playing .story-play::after { animation: none !important; }
  .story-out i, .story-liquid, .story-goal, .story-panel, .story-caption, .story-caption.is-on, .inside-tile, .story-play { transition: none !important; }
  .versus-table tbody tr, .versus-table.is-in tbody tr, .versus-table.is-in .versus-check { animation: none !important; opacity: 1; translate: none; }
  .versus-duel dl > div, .versus-duel.is-in dl > div { animation: none !important; opacity: 1; translate: none; }
  .story-caption .story-viz *, .story-caption .story-viz > *, .story-caption.is-on .story-viz *, .story-caption.is-on .story-viz > * { animation: none !important; opacity: 1; translate: none; transform: none; stroke-dashoffset: 0; }
  .viz-book li i { transform: scaleX(var(--v)) !important; }
  .viz-split span::before { animation: none !important; transform: none; }
  .story-candle, .arena-story[data-scene="5"] .story-candle { transition: none; }
}
