/* One grid for the whole landing on computers (owner, 14 Nov 2026: the blocks had different widths, 1240 to 2300 px
   on a wide screen, and the first screen ran to the window's edges).

   The grid is the one of the exchange and the cabinet: content 1304 px wide (their 1360 px frame less its sides). From
   1191 px up every block, the header and the first screen included, keeps its content in that column; under 1490 px it
   is 87.5% of the window, which is where the picture scenes have always placed their content, so their edges line up
   with the other blocks at every width.

   The picture scenes (economy, purchase, tokenomics, STEMX, migration, closing) are drawn for a window about 1490 px
   wide: their pictures are 1450 to 1670 px wide, and their coins, glass bars and podiums are placed against them in
   viewport units. On a wider screen the scene stays as at 1490 px (--vw stops growing there, see the stylesheets that
   use it) and stands in the middle of the page; the picture fades out at its sides into the page, as it already does at
   its top and bottom, so no block shows an edge.

   The joins between blocks are smoothed from 901 px (see below). Phones and tablets up to 900 px are not touched by
   this file: --vw equals 1vw there. */

:root { --vw: min(1vw, 14.9px); }

@media (min-width: 1191px) {
  .shell,
  .site-header .nav-shell,
  .arena-hero .hero-main,
  .economy-ledger__inner { width: min(1304px, 87.5%); }
  /* The figures under the first screen take the column's width, the coin keeps its place in the scene: centred at
     71% of a 1490 px stage, at most 56% of it wide, smaller on a low window. */
  .hero-metrics-wrap { left: calc(50% - min(652px, 43.75%)); right: calc(50% - min(652px, 43.75%)); }
  .arena-foreground { --art-w: min(56%, 834px, calc(var(--hero-height) * .88)); left: calc(50% + min(21%, 313px) - var(--art-w) / 2); }
  .live-ticker__label { padding-left: max(24px, calc(50% - min(652px, 43.75%))); }
  /* The share list stood 26 px past the column on the right. */
  .economy-ledger__allocation { width: 46%; }
  .stemx-future__inner { padding-inline: 6.25%; }
  .migration-gallery__intro { inset-inline: 6.25%; }
}

/* The blocks themselves stay as wide as the page: their light fields (transition-study.css) are drawn for the whole
   width and meet the next block's field at each join. Only the picture, the coins and the copy stand on the 1490 px
   stage, --gap being the free space on each side of it. */
@media (min-width: 1491px) {
  .economy-ledger,
  .round-lounge,
  #tokenomics.tokenomics-glass,
  .stemx-future,
  .migration-gallery,
  .closing-section {
    --gap: calc((100% - 1490px) / 2);
    /* The side fade grows with the free space beside the stage (twice as long, at most 200 px): on a window just over
       1490 px the picture still reaches the window's edges, and it never ends in a short steep step. It eases out like
       the top and bottom fades. */
    --side: clamp(0px, calc((100vw - 1490px) * 2), 200px);
    --side-fade: linear-gradient(90deg, transparent, #0000000f calc(var(--side) * .2), #00000040 calc(var(--side) * .4), #0000008c calc(var(--side) * .6), #000000d9 calc(var(--side) * .8), #000 var(--side),
      #000 calc(100% - var(--side)), #000000d9 calc(100% - var(--side) * .8), #0000008c calc(100% - var(--side) * .6), #00000040 calc(100% - var(--side) * .4), #0000000f calc(100% - var(--side) * .2), transparent);
  }
  .economy-ledger__background,
  .lounge-backdrop,
  .round-lounge::before,
  .stemx-future__background,
  .migration-gallery__scene,
  .closing-backdrop { left: var(--gap); right: var(--gap); }
  .tokenomics-glass__scene { max-width: 1490px; margin-inline: auto; }
  .round-lounge { padding-inline: calc(var(--gap) + 6.25 * var(--vw)); }
  .lounge-coin { left: calc(var(--gap) + 3.8 * var(--vw)); }
  .stemx-future__inner { padding-inline: calc(var(--gap) + 6.25 * var(--vw)); }
  .stemx-future__coin { left: calc(var(--gap) + 51 * var(--vw)); width: calc(43.5 * var(--vw)); }
  .migration-gallery__intro { inset-inline: calc(var(--gap) + 6.25 * var(--vw)); }
  .migration-gallery__controls { width: calc(80.8 * var(--vw)); }
  .economy-ledger__background.scene-blend,
  .lounge-backdrop.scene-blend,
  .round-lounge::before,
  .tokenomics-glass__background.scene-blend,
  .stemx-future__background.scene-blend,
  .closing-backdrop.scene-blend {
    -webkit-mask-image: var(--scene-fade), var(--side-fade);
    mask-image: var(--scene-fade), var(--side-fade);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .migration-gallery__scene { -webkit-mask-image: var(--side-fade); mask-image: var(--side-fade); }
}
/* The purchase block kept a 1 px transparent border at its top and bottom (participation-lounge.css). The light fields
   are laid out inside the border and repeat into it, so its bottom row showed the top field's brightest line: a thin
   light line at the join with the tokenomics. The border goes where the fields are drawn (from 901 px). */
@media (min-width: 901px) {
  .round-lounge { border-block-width: 0; }
}
/* Shadows that reach past a block's bottom (the player's card, the purchase card, the coin) were cut along the join:
   the purchase block clipped them, and every block painted its own solid page colour over the one above. The blocks
   now leave the page colour to <main> (the same #060c18) and keep only their light fields, so a shadow falls into the
   next block and fades there by itself. The purchase block clips its sides only. */
@media (min-width: 901px) {
  .arena-product, .arena-markets, .arena-story, .arena-inside, .money-flow, .economy-ledger, .round-lounge,
  #tokenomics.tokenomics-glass, .stemx-future, .migration-gallery, .closing-section { background-color: transparent; }
}
/* The purchase block also goes one layer up, so its card's and coin's shadows lie over the tokenomics' light field as
   they lie over its own (nothing of the tokenomics copy stands that high). */
@media (min-width: 951px) {
  .round-lounge { overflow: clip visible; z-index: 1; }
  /* The coin picture's own shadow ends in a straight edge just under the join: its lowest sixth (below the coin's rim)
     fades out. */
  .lounge-coin { -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
}
/* The supply shares had wider padding on screens from 1800 px; the scene no longer grows there, so they keep the
   padding they have at 1490 px (tokenomics-glass.css). */
@media (min-width: 1800px) {
  .supply-share { padding-left: calc(2 * var(--vw)); padding-right: 8px; }
}

/* Tablets (audit of 14 Nov 2026): the blocks' side gaps differed by block — 22, 24, 28 and 32 px at 768 px, and at
   1024 px the purchase, STEMX and migration blocks stood 20 to 32 px further in than the others. One gap per range,
   the one the header and the first screen already keep: 32 px from 701 to 1150 px, where the page column has it too
   (from 1191 px the grid above takes over; phones up to 700 px keep their 20 px). */
@media (min-width: 701px) and (max-width: 900px) {
  .shell { width: calc(100% - 64px); }
  .round-lounge, .stemx-future__inner, .migration-gallery__intro { padding-inline: 32px; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .round-lounge, .stemx-future__inner { padding-inline: 32px; }
  .migration-gallery__intro { inset-inline: 32px; }
}
