/* Phone versions of the exchange chapter, the purchase card and the page frame, laid out for a phone from scratch rather
   than squeezed from the wide layout. Loaded last.
   Rules: the screen to fit is a phone browser with its bars showing (390 × 664 on an iPhone in Safari), less the 60px
   header and the 68px buy bar — about 536px; body text 15–16px, captions 12–14px, nothing under 12px; everything a
   finger presses is at least 44px tall; one 20px side gutter; spacing on a 4px grid. */

.for-phone { display: none; }

/* ---------- Page frame on phones: a slimmer header that tucks away, a full-screen menu, one buy bar ---------- */
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .for-wide { display: none; }
  .for-phone { display: inline; }
  .site-header .nav-shell { height: 60px; }
  .arena-hero { margin-top: -60px; padding-top: 60px; }
  /* The header slides up while reading down the page and comes back on the way up (landing-live.mjs). */
  .site-header { transition: translate .3s cubic-bezier(.2, .7, .2, 1), background .3s; }
  .site-header.is-tucked { translate: 0 -100%; }

  /* Menu: the whole screen under the header, large rows, one buy button at the bottom; the page under it stays still. */
  .site-header nav { top: 59px; height: calc(100dvh - 59px); max-height: none; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior-y: contain; border: 0; box-shadow: none; }
  .site-header nav a { flex-shrink: 0; }
  .menu-button { width: 44px; height: 44px; flex-shrink: 0; }
  .site-header nav a:not(.nav-cta) { display: flex; align-items: center; min-height: 56px; padding: 0; border-bottom: 1px solid #ffffff12; color: #eef1ff; font-size: 20px; font-weight: 600; }
  .site-header nav.is-open .nav-cta { width: 100%; min-height: 54px; margin-top: auto; justify-content: center; gap: 10px; font-size: 16px; }
  body.menu-open { overflow: hidden; }

  /* The buy bar steps aside while another buy button is in view, and under the open menu (landing-live.mjs). */
  .mobile-buy { transition: translate .3s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  .mobile-buy.is-away, .menu-open .mobile-buy { translate: 0 calc(100% + 2px); visibility: hidden; transition: translate .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; }
}

/* ---------- One match: a single card — the scene's words, the match screen, the timeline ---------- */
@media (max-width: 900px) {
  .arena-story__body { margin-top: 24px; }
  .story-player { grid-template-columns: minmax(0, 1fr); grid-template-areas: "caption" "bar" "screen"; column-gap: 0; row-gap: 10px; max-width: 560px; margin-inline: auto; padding: 14px 12px 12px; border-radius: 28px; }

  /* The scene: its number and name, a title and two or three lines written for the phone. All six share one cell, so
     the card keeps its height from scene to scene. */
  .story-captions { align-items: start; padding: 0 4px; }
  .story-backdrop, .story-viz, .story-caption__hint, .story-caption__text { display: none; }
  .story-caption__count { align-items: center; gap: 5px; margin: 0 0 6px; font-size: 13px; }
  .story-caption__count b { color: #fff; font: 700 13px/1 var(--font); letter-spacing: 0; }
  .story-caption__count span { color: #75809f; }
  .story-caption__count em { margin-left: 6px; padding: 0; border: 0; background: none; color: #a9b2ff; font-size: 12px; letter-spacing: .08em; }
  .story-caption h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.2px; }
  .story-caption__short { display: block; margin: 6px 0 0; color: #c3cce6; font-size: 15px; line-height: 1.45; }

  /* The screen: crests and score with the clock under it, three outcome prices, one panel. The league line and the
     position line are left to wide screens. */
  .story-screen { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "home score away" "home clock away" "out out out" "panels panels panels"; align-items: center; padding: 12px 12px 10px; border-radius: 22px; }
  .story-top, .story-board { display: contents; }
  .story-top > span:first-child, .story-foot { display: none; }
  .story-board > .story-team:first-child { grid-area: home; }
  .story-board > .story-team:last-child { grid-area: away; }
  .story-team { gap: 4px; }
  .story-team img { width: 34px; height: 34px; }
  .story-team b { font-size: 13px; }
  .story-score { grid-area: score; justify-content: center; gap: 8px; font-size: 34px; }
  .story-clock { grid-area: clock; justify-self: center; min-width: 0; margin-top: 6px; padding: 3px 10px; font-size: 12px; }
  .story-outcomes { grid-area: out; gap: 6px; margin-top: 10px; }
  .story-out { gap: 1px; padding: 8px 4px 10px; border-radius: 14px; }
  .story-out > span:first-child { display: none; }
  .story-out__short { display: block; color: #aeb9d6; font-size: 12px; }
  .story-out b { font-size: clamp(16px, 4.7vw, 19px); white-space: nowrap; }
  .story-out[aria-pressed=true]::after { display: none; }
  .story-panels { grid-area: panels; height: 116px; margin-top: 10px; }
  .story-panel figcaption { font-size: 12px; }
  .story-panel figcaption b { font-size: 14px; }
  .story-panel--price svg { height: 70px; margin-top: 4px; }
  .story-axis { margin-top: 2px; font-size: 12px; line-height: 1.3; }
  .story-goal { padding: 2px 7px; font-size: 12px; }
  .story-panel--reserves svg { height: 44px; }
  .story-reserves { margin-top: 2px; }
  .story-reserves small { font-size: 12px; }
  .story-reserves b { font-size: 17px; }
  .story-reserves span { font-size: 12px; line-height: 1.25; }
  .story-reserves small { line-height: 1.3; }
  .story-panel--season figcaption { flex-wrap: wrap; row-gap: 0; line-height: 1.35; }
  .story-panel--season .story-legend { gap: 12px; width: 100%; font-size: 12px; }
  .story-panel--season svg { height: 52px; margin-top: 4px; }

  /* The timeline: the play button and one line cut into the six scenes. A scene is one tap on its stretch of the line;
     a swipe across the screen moves to the next or previous scene. */
  .story-bar { gap: 12px; margin: 0; padding: 0 4px; border-radius: 0; background: none; box-shadow: none; scroll-margin-top: 76px; }
  .story-play { width: 48px; height: 48px; }
  .story-time { display: none; }
  .story-track { height: 48px; }
  .story-track__rail { top: 22px; height: 4px; -webkit-mask: var(--scene-gaps); mask: var(--scene-gaps);
    --scene-gaps: linear-gradient(90deg, #000 calc(16% - 3px), #0000 0 16%, #000 0 calc(30% - 3px), #0000 0 30%, #000 0 calc(52% - 3px), #0000 0 52%, #000 0 calc(66% - 3px), #0000 0 66%, #000 0 calc(84% - 3px), #0000 0 84%, #000 0); }
  .story-track__fill::after { display: none; }
  .story-mark { top: 0; width: var(--w); height: 48px; padding: 0; }
  .story-mark i, .story-mark span { display: none; }
  .arena-story__note { margin-top: 10px; font-size: 12px; }
}

/* ---------- Exchange against bookmaker: a head-to-head list; in each row the exchange's answer sits in a lit cell ---------- */
@media (max-width: 900px) {
  .arena-versus__head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .versus-wrap { max-width: 600px; margin: 24px auto 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .versus-table { display: none; }
  .versus-duel { position: relative; display: block; overflow: hidden; border-radius: 24px; background: linear-gradient(165deg, #10183a, #0a1127 80%); box-shadow: inset 0 0 0 1px #8f9cff2b, inset 0 1px 0 #ffffff14, 0 40px 80px -50px #000; }
  .versus-duel__head { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) 0 minmax(0, 1fr); column-gap: 5px; align-items: center; margin: 0; padding: 14px 12px; border-bottom: 1px solid #ffffff14; }
  .versus-duel__team { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding-left: 14px; color: #9aa4c6; font-size: 15px; font-weight: 700; line-height: 1.2; }
  .versus-duel__team.is-new { padding-left: 12px; color: #fff; }
  .versus-duel__team img { width: 24px; height: auto; }
  .versus-duel__vs { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: #0a1127; box-shadow: inset 0 0 0 1px #8f9cff4d; color: #a9b2ff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .versus-duel dl { position: relative; margin: 0; }
  .versus-duel dl > div { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "q q" "new old"; column-gap: 10px; align-items: stretch; padding: 8px 12px 10px; }
  .versus-duel dl > div + div { border-top: 1px solid #ffffff0f; }
  .versus-duel dt { grid-area: q; margin: 0 4px 5px; color: #9aa6e8; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .versus-duel dd { margin: 0; }
  .versus-duel dd.is-new { grid-area: new; display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(135deg, #5b6bff3d, #5b6bff14); box-shadow: inset 0 0 0 1px #a0aaff33; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; }
  .versus-duel dd:not(.is-new) { grid-area: old; align-self: center; padding: 0 4px; color: #a3add0; font-size: 14px; line-height: 1.4; }
  .versus-duel .versus-check { position: static; flex-shrink: 0; width: 20px; height: 20px; margin: 0; padding: 4px; }
  /* Rows rise in one after another, as the table's rows do. */
  .versus-duel dl > div { opacity: 0; translate: 0 12px; }
  .versus-duel.is-in dl > div { animation: versus-row .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.1s + var(--i) * .07s); }
  .versus-duel.is-in .versus-check { animation: versus-check .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.35s + var(--i) * .07s); }
}

/* ---------- Phones: headings, the demo gallery as a swipe row, the purchase ---------- */
@media (max-width: 700px) {
  .arena-story__eyebrow { margin-bottom: 12px; }
  .arena-story h2, .arena-versus h2, .arena-inside h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.6px; }
  .arena-story__lead, .arena-versus__lead { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .arena-story { padding: 56px 0 24px; }
  .arena-versus { padding: 32px 0 56px; }
  .arena-inside { padding: 24px 0 32px; }
  .arena-inside__head { margin-bottom: 20px; }

  /* Demo gallery: three recordings of the exchange on a phone, one card at a time with the next peeking in. */
  .inside-grid { display: none; }
  .inside-phone { display: block; margin-inline: calc((100% - 100vw) / 2); }
  .inside-phone__track { position: relative; display: flex; gap: 12px; margin: 0; padding: 4px 20px 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; list-style: none; }
  .inside-phone__track::-webkit-scrollbar { display: none; }
  .inside-phone__card { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
  .inside-phone__screen { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 26px; background: #070c1c; box-shadow: 0 30px 60px -36px #000; }
  .inside-phone__screen::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #8f9cff40, inset 0 1px 0 #ffffff26; pointer-events: none; }
  .inside-phone__screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  .inside-phone__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 4px 0; color: #fff; font: 700 18px/1.25 var(--heading); letter-spacing: .1px; }
  .inside-phone__title .inside-live { display: none; }
  .inside-phone__note { display: flex; align-items: center; gap: 10px; margin: 0 20px 12px; color: #a9b4d2; font-size: 14px; }
  .inside-phone__note .inside-live { margin-left: 0; font-size: 12px; vertical-align: 0; }
  .inside-phone__text { margin: 6px 4px 0; color: #a9b4d2; font-size: 15px; line-height: 1.45; }
  .inside-phone__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; }
  .inside-phone__dots { display: flex; justify-content: center; }
  .inside-phone__dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
  .inside-phone__dots button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: #ffffff38; transition: width .3s, margin .3s, background .3s; }
  .inside-phone__dots button[aria-current]::before { width: 22px; margin-left: -11px; background: #a7b0ff; }
  .inside-cta { margin-top: 12px; }

  /* Done so far and the next step. */
  .arena-ready ul li span { font-size: 15px; line-height: 1.5; }

  /* Purchase: the title, what the round is for and its figures, the CORE coin beside the goal; then the order form. */
  .round-lounge { padding: 32px 20px 40px; }
  .round-lounge .lounge-copy { min-height: 0; }
  .round-lounge .lounge-coin { display: none; }
  .lounge-copy h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.6px; }
  .lounge-purpose { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .lounge-figures { --coin-space: clamp(72px, 22vw, 110px); margin-top: 20px; padding-right: var(--coin-space); background: url('assets/core-participation-mobile.webp') right -10px top -6px / clamp(92px, 26vw, 128px) no-repeat; }
  .lounge-goal-label { font-size: 14px; }
  .round-lounge .round-goal { margin-top: 2px; font-size: clamp(32px, 9vw, 44px); letter-spacing: -.8px; white-space: nowrap; }
  .round-progress { margin-top: 12px; margin-right: calc(-1 * var(--coin-space)); }
  .round-tiers { max-width: none; margin-right: calc(-1 * var(--coin-space)); }
  .round-progress p { font-size: 14px; }
  .round-lounge .round-offer { margin-top: 10px; margin-right: calc(-1 * var(--coin-space)); font-size: 16px; }
  .round-lounge .launch-status { margin-top: 8px; font-size: 14px; }
  .round-lounge .lounge-layout { gap: 24px; }

  /* Keep the terms in their own row so payment status can wrap at narrow widths. */
  .round-lounge .lounge-layout { gap: 84px; }
  .round-lounge .calculator.core-buy { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "pay" "err" "panel" "meta"; width: 100%; max-width: 520px; margin-inline: auto; padding: 14px 14px 0; border-radius: 24px; }
  .core-buy__head { position: absolute; left: 4px; right: 0; bottom: calc(100% + 12px); margin: 0; }
  .core-buy__title img { width: 30px; height: 30px; }
  .core-buy__title strong { font-size: 18px; }
  .core-buy__title small { margin-top: 3px; }
  .core-buy__meta { grid-area: meta; display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 0; }
  .core-buy__meta > span { display: none; }
  .core-buy__tabs { grid-area: tabs; margin: 0 0 10px; border-radius: 14px; }
  .core-buy__tabs button { min-height: 44px; font-size: 15px; }
  .core-buy__pay { grid-area: pay; }
  #investment-error { grid-area: err; }
  #buy-panel, #income-panel { grid-area: panel; min-width: 0; }
  .core-buy__account { gap: 1px; min-height: 46px; padding: 4px 12px; }
  .core-buy__account small { font-size: 12px; }
  .core-buy__meta .purchase-text-button { position: static; min-height: 44px; padding: 0 6px; font-size: 14px; }

  .core-buy__field { padding: 12px 14px 14px; border-radius: 18px; }
  .core-buy__field-top { font-size: 14px; }
  .core-buy__amount { margin-top: 2px; }
  .core-buy__amount > span { font-size: 26px; }
  .core-buy__amount input { min-height: 42px; font-size: 30px; }
  .core-buy__presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .core-buy__presets button { min-height: 44px; padding: 0 4px; border-radius: 12px; font-size: 14px; white-space: nowrap; }

  /* Give the token amount its own line, including the largest valid purchase on narrow phones. */
  .core-buy__arrow, .core-buy__summary, .core-buy__rate { display: none; }
  .core-buy__get { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; row-gap: 6px; margin-top: 12px; padding: 0 4px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .core-buy__get .core-buy__field-top { color: #c0c9e4; font-size: 15px; }
  .core-buy__core { justify-self: start; gap: 6px; margin: 0; font-size: 28px; line-height: 1.2; white-space: nowrap; }
  .core-buy__core > span { font-size: 16px; }
  .core-buy__core img { width: 22px; height: 22px; margin-left: 2px; }
  .core-buy__share { grid-column: 1 / -1; margin-top: 4px; font-size: 13px; }

  /* Currency and network: two segmented switches. */
  .core-buy__options { gap: 8px; margin-top: 12px; }
  .core-buy__option { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
  .core-buy__option > span { font-size: 14px; }
  .core-buy__option > div { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 2px; padding: 3px; border: 1px solid #8f9cff26; border-radius: 14px; background: #060c1c99; }
  .core-buy__chip { justify-content: center; min-height: 44px; padding: 0 6px; gap: 6px; border: 0; border-radius: 11px; background: none; font-size: 14px; }
  .core-buy__chip[aria-pressed=true] { background: #5b6bff40; box-shadow: inset 0 0 0 1px #a0aaff73; }
  .core-buy__chip img { width: 18px; height: 18px; }
  .chip-more { display: none; }

  .round-lounge .core-buy__cta { margin-top: 12px; }
  .core-buy__demo { justify-content: center; min-height: 44px; margin: 4px 0 0; padding: 0 4px; font-size: 12px; line-height: 1.4; }

  /* Keep the return to purchase next to the result, even when the tabs have scrolled out of view. */
  .core-buy:has(#income-tab[aria-selected=true]) .core-buy__presets { display: none; }
  .core-buy__profit { margin-top: 10px; }
  .core-buy input[type=range] { height: 28px; margin: 6px 0 0; }
  .core-buy__range { font-size: 12px; }
  .core-buy__note { margin-top: 8px; padding: 0 4px; font-size: 13px; line-height: 1.5; }
}
/* Narrow phones: the network switch drops its icons and the tabs their side padding, so the names keep their size. */
@media (max-width: 370px) {
  .lounge-copy #round-title, .tokenomics-glass__heading #tokenomics-title { font-size: 26px; }
  .core-buy__option [data-pay-network] img { display: none; }
  .core-buy__presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-buy__tabs button { padding-inline: 2px; font-size: 14px; white-space: nowrap; }
}
/* Low phone screens: the match chart gives up some height, so the timeline stays on screen with the scene. */
@media (max-width: 900px) and (max-height: 640px) {
  .story-player { row-gap: 8px; }
  .story-panels { height: 94px; }
  .story-panel--price svg { height: 48px; }
  .story-panel--reserves svg { height: 20px; }
  .story-panel--season svg { height: 30px; }
  .story-caption h3 { font-size: 19px; }
  .core-buy__get { margin-top: 8px; }
  .core-buy__options { margin-top: 10px; }
}

/* ---------- Phones: one primary button, one heading size, nothing under 12px ---------- */
@media (max-width: 700px) {
  /* Primary buttons: the full width of their block, 54px tall, a 16px label in the middle; the buy bar keeps a compact
     48px one. The violet is a shade deeper than on wide screens, so the white labels keep 4.5:1. */
  .button, .site-header .header-cta, .arena-hero .button, .migration-gallery__calculator .button, .round-lounge .calculator-cta, .economy-ledger__cta { background: linear-gradient(135deg, #4757f5, #5f55e6); }
  .arena-hero .hero-actions .button, .closing-content .hero-actions .button, .arena-product__lead .button, .inside-cta .button, .arena-next__cta, .economy-ledger__cta, .round-lounge .core-buy__cta, .migration-gallery__calculator .button, .site-header nav.is-open .nav-cta {
    width: 100%; min-width: 0; min-height: 54px; padding: 14px 20px; justify-content: center; gap: 10px; border-radius: 14px; font-size: 16px; white-space: normal; }
  .arena-hero .hero-actions .button svg, .closing-content .hero-actions .button svg, .arena-product__lead .button svg, .inside-cta .button svg, .arena-next__cta svg, .economy-ledger__cta svg, .migration-gallery__calculator .button svg { width: 18px; height: 18px; }
  .arena-hero .hero-actions { width: 100%; }

  /* Section titles: one size on every block. */
  #product-title, #story-title, #versus-title, #inside-title, #flow-title, #economy-title, #round-title, #tokenomics-title, #stemx-title, #migration-title, #faq-title, #closing-title { font-size: 30px; line-height: 1.12; letter-spacing: -.6px; }
  #migration-title span { margin-top: 0; font-size: inherit; line-height: inherit; }

  /* The smallest text on the page is 12px. */
  .arena-hero .hero-metrics dt, .arena-product__eyebrow, .arena-product__shot figcaption, .live-ticker__label, .purchase-dialog .purchase-demo-line, .checkout-steps { font-size: 12px; }
  /* The violet «%» beside the large shares, a shade lighter so it keeps 3:1 on the dark page. */
  .economy-ledger__percent span, .stemx-future__percent span { color: #8c96ff; }

  /* Footer: the links as a list of finger-sized rows, the small print at 13px. */
  .footer-top > div { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; width: 100%; gap: 0; }
  .footer-top a:not(.brand) { justify-content: space-between; min-height: 48px; border-bottom: 1px solid #ffffff12; color: #c3cce6; font-size: 15px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 24px; }
  .footer-bottom p, .footer-bottom p:last-child { font-size: 13px; line-height: 1.5; text-align: left; }
}

/* ---------- Phones: tokenomics as a compact list, the bar in the same colours ---------- */
@media (max-width: 700px) {
  /* Each share is one row: its colour, its name and amount, the share on the right. Nothing dims while the bar lights its
     blocks in turn; the row of the lit block gets a soft glow instead. */
  .supply-shares { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .supply-share, .supply-share:nth-child(odd), .supply-share:nth-child(3n + 1) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name share" "amount share"; align-items: center; column-gap: 12px; padding: 10px 8px; border: 0; border-top: 1px solid #476a9c40; border-radius: 0; }
  .supply-share:first-child { border-top: 0; }
  .supply-share dt { grid-area: name; min-height: 0; padding: 0 0 0 22px; font-size: 15px; }
  .supply-share dt::before { top: 50%; width: 10px; height: 10px; margin-top: -5px; }
  .supply-share__percent { grid-area: share; margin: 0; font-size: 26px; text-align: right; }
  .supply-share__amount { grid-area: amount; margin: 2px 0 0 22px; color: #aebbe0; font-size: 13px; }
  .supply-shares.has-active .supply-share:not(.is-on) > * { opacity: 1; }
  .supply-share.is-on { background: linear-gradient(90deg, #5b6bff29, transparent 85%); }
  /* The glass blocks of the bar take the colours of their rows, so each share can be found on the bar. */
  .tokenomics-glass__glow i, .tokenomics-glass__glow.has-active i:not(.is-on) { opacity: .5; background: var(--tint); mix-blend-mode: screen; }
  .tokenomics-glass__glow i:nth-child(1) { --tint: #456dff; }
  .tokenomics-glass__glow i:nth-child(2) { --tint: #2bb9ff; }
  .tokenomics-glass__glow i:nth-child(3) { --tint: #7761ec; }
  .tokenomics-glass__glow i:nth-child(4) { --tint: #a692f5; }
  .tokenomics-glass__glow i:nth-child(5) { --tint: #a4c6ff; }
  .tokenomics-glass__glow i:nth-child(6) { --tint: #d7e5ff; }
}

/* ---------- Phones: money flow as close as its text allows ---------- */
@media (max-width: 700px) {
  /* Rows stay equal (the comet's stops are worked out from the list's height), but the shares fit one line, so a row is
     as tall as its text; the gap is 16px and the stops below use it. */
  .money-steps { gap: 16px; margin-top: 28px; }
  .money-steps::before { top: calc((100% - 48px) / 8); bottom: calc((100% - 48px) / 8); }
  .money-steps::after { top: calc((100% - 48px) / 8); height: 100px; }
  @keyframes flow-comet-down {
    0% { top: calc((100% - 48px) / 8); height: 0; opacity: 0; } 4% { opacity: 1; } 16% { height: 100px; }
    22%, 30% { top: calc((100% - 48px) * 3 / 8 + 16px); } 52%, 60% { top: calc((100% - 48px) * 5 / 8 + 32px); }
    82% { top: calc((100% - 48px) * 7 / 8 + 48px); opacity: 1; } 90%, 100% { top: calc((100% - 48px) * 7 / 8 + 48px); opacity: 0; }
  }
  .money-split { gap: 4px; }
  .money-split i { padding: 3px 6px; }
}

/* ---------- Phones: even spacing between blocks; the closing words read from the left ---------- */
@media (max-width: 700px) {
  .arena-product { padding-bottom: 32px; }
  .money-flow { padding: 56px 0 32px; }
  .faq-section.section { padding-bottom: 40px; }
  .closing-section { min-height: 0; padding: 48px 0 56px; text-align: left; }
  .closing-content > p { margin: 16px 0 0; }
  .closing-content .hero-actions { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; margin-top: 24px; }
}
@media (max-width: 600px) {
  .migration-gallery__intro { padding-inline: 20px; text-align: left; }
  .migration-gallery__intro p { margin: 12px 0 0; max-width: none; }
  .migration-gallery__ratio { justify-content: flex-start; margin: 16px 20px 24px; }
  .migration-gallery__label { text-align: left; }
  .migration-gallery__controls { width: calc(100% - 40px); }
}

/* ---------- Phones: dialogs are sheets that rise from the bottom edge ---------- */
@media (max-width: 700px) {
  dialog, dialog.purchase-dialog, dialog#allocation-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px #000a; }
  dialog, dialog.purchase-dialog { padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); }
  dialog:not(.purchase-dialog) { --sheet: #0d1328; background: linear-gradient(#151d39, #0d1328 45%); }
  dialog.purchase-dialog { --sheet: #0b1222; }
  dialog#allocation-dialog { padding: 0 0 env(safe-area-inset-bottom); }
  dialog[open] { animation: sheet-rise .34s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-rise { from { translate: 0 100%; } }
  /* A grip at the top edge: the sheet can be pulled down to close. */
  dialog::before { content: ''; position: absolute; z-index: 3; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #ffffff3d; }
  /* Keep closing available while the content and actions scroll in reading order. */
  dialog:not(#allocation-dialog) > .dialog-close { position: sticky; top: -12px; right: auto; z-index: 2; display: grid; margin: -12px -6px -32px auto; }
  dialog > .button, .purchase-dialog [data-purchase-stage] > .button, .allocation-dialog__body > .button { position: relative; width: 100%; min-height: 54px; font-size: 16px; }
  .purchase-dialog .checkout-consent { margin: 14px 0 8px; padding: 6px 0; }

  /* Purchase: tighter, so the first step shows its figures, the terms and the button together. */
  .purchase-dialog .purchase-demo-line { margin: 0 56px 14px 0; }
  .purchase-dialog h2 { margin: 16px 0 14px; font-size: 24px; }
  .checkout-allocation { padding: 14px 16px; }
  .checkout-allocation p { margin-top: 6px; font-size: 26px; }
  .checkout-summary { margin: 14px 0; }
  .checkout-summary > div { margin: 8px 0; }
  .checkout-use { padding: 12px 0; font-size: 13px; line-height: 1.55; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .site-header, .mobile-buy, .mobile-buy.is-away, .menu-open .mobile-buy { transition: none; }
  dialog[open] { animation: none; }
}

/* ---------- Phones: compact and even (owner, 2026-11-06) ---------- */
@media (max-width: 700px) {
  /* About 72px between the last line of one block and the first line of the next. */
  .arena-product { padding-top: 42px; padding-bottom: 24px; }
  .arena-markets { padding: 40px 0 32px; }
  .arena-story { padding-top: 40px; }
  .arena-inside { padding: 48px 0 14px; }
  .round-lounge { padding-top: 12px; padding-bottom: 28px; }
  .tokenomics-glass__scene { padding-bottom: 28px; }
  .migration-gallery { padding-top: 24px; }
  .team-story { padding-top: 30px; }
  #markets-title { font-size: 30px; line-height: 1.12; letter-spacing: -.6px; }
  /* The coins are decoration: smaller on a phone, so the figures follow the words sooner. */
  .economy-ledger__coin { width: min(300px, 78%); margin: -10px auto -30px; transform: none; }
  .stemx-future__coin { width: min(290px, 76%); margin: 4px auto -6px; }
  .stemx-future__buyback { margin-top: 18px; }
  /* «Уже сделано» and the next-step card, tighter. */
  .arena-inside .arena-ready { margin-top: 28px; padding-top: 24px; row-gap: 18px; }
  .arena-ready ul { gap: 16px; }
  .arena-next { gap: 22px; padding: 22px 18px 20px; }
  .arena-next h3 { font-size: 21px; }
  /* History: shorter rows. */
  .team-timeline li { padding: 14px 16px 14px 18px; }
}
@media (max-width: 400px) {
  .team-timeline li { grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; padding: 14px 14px 14px 16px; }
  .team-timeline li time { font-size: 17px; letter-spacing: -.3px; }
}
/* Narrow phones (320–360 px): the label sits above its switch, so «Polygon» and long labels (de «Netzwerk») fit (2026-11-07). */
@media (max-width: 360px) { .core-buy__option { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
