/* Game Arena promo - ASCII hero stage.
 *
 * Concept 15's first screen. A character field fills the viewport, the claim
 * sits over it, and the bottom edge fades into the page's paper ground so the
 * scroll into the light section is not a hard cut.
 */

.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #06090f;
  /* the field is dark; the paper ground below starts at the fade */
  isolation: isolate;
}

/* The canvas is the field. Kept at low opacity in CSS as well as in the
   renderer, so the headline stays readable even if a bright frame lands. */
.stage__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: var(--field-opacity, 1);
}

/* The scrim is the only thing protecting the headline now.
 *
 * Glyph opacity was raised to 0.85 so the field shows real colour, and the
 * per-channel brightness cap was removed with it. That leaves white text over
 * the brightest cells at roughly 2.3:1 on its own, so the shade has to do the
 * work instead of the field.
 *
 * It is deliberately local: near-opaque over the lower-left where the copy
 * sits, fading out by three quarters across, so the right and upper areas of
 * the frame stay vivid.
 *
 * Measured against the brightest cells a frame can produce, white text clears
 * AA everywhere it can land. At the gradient's centre it runs 16.5:1 to 18.2:1
 * even over a white track line or an orange car; at the 0.55 falloff the copy
 * still sits at 5.7:1 worst case. Re-measure if these stops are edited.
 */
.stage__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      118% 96% at 10% 80%,
      #06090feb 0%,
      #06090fd9 26%,
      #06090f8c 46%,
      #06090f1f 64%,
      #06090f00 76%
    );
  pointer-events: none;
}

/* Bottom fade into the page ground, so the section after this one begins
   without a seam. */
.stage__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 22vh;
  background: linear-gradient(180deg, #06090f00, #f4f6f8);
  pointer-events: none;
}

.stage__body {
  position: relative;
  width: min(1400px, 100% - 48px);
  margin-inline: auto;
  padding: 0 0 clamp(56px, 9vh, 104px);
}

@media (max-width: 767px) {
  .stage__body { width: min(100% - 32px, 1400px); padding-bottom: 44px; }
}

.stage__body h1 {
  color: #f6f8fa;
  font-size: clamp(32px, 5.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.036em;
  font-weight: 660;
  max-width: 20ch;
  text-shadow: 0 2px 30px #06090fcc;
}

.stage__body h1 em {
  font-style: normal;
  color: #9dc0ff;
}

.stage__body p {
  color: #cbd5e0;
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.6;
}

.stage__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

/* The field needs a frame counter somewhere unobtrusive; this is that. */
.stage__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8a97a6;
}

/* Reduced motion: the field is a still image, and the stage keeps the same
   shape so the layout does not shift. */
.stage--static .stage__field { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .stage__body h1,
  .stage__body p { text-shadow: none; }
}
