/* Stage 7 — approved game showcase (Figma 94:2410, 128:2447,
   143:2531, 143:2744, 150:2616, 150:2830). Shared RU/EN layout. */
.worlds {
  --reflection-width: 748.8px;
  --reflection-height: 468px;
  --worlds-end-space: 52px;
  position: relative;
  isolation: isolate;
  background: var(--color-background);
  min-block-size: var(--worlds-min-height);
  padding-block: var(--game-card-inset) var(--worlds-end-space);
}
.worlds__atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.worlds__reflection {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  inline-size: max(100%, var(--reflection-width));
  block-size: var(--reflection-height);
  overflow: hidden;
}
.worlds__mirror {
  position: absolute;
  inset: 0;
  transform: scaleY(-1);
}
.worlds__reflection-image {
  display: block;
  inline-size: 100%;
  max-inline-size: none;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center bottom;
}
.worlds__reflection::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(16 13 37 / 0%) 0%, rgb(16 13 37 / 53.3%) 10%, rgb(16 13 37 / 96.1%) 30%, var(--color-background) 44% 100%);
}
.worlds > .container { position: relative; z-index: 1; }
.worlds .game-card {
  --card-top: 46px;
  --logo-width: 280.8px;
  --logo-gap: 35px;
  --genre-gap: 24.5px;
  --tagline-gap: 24px;
  --tagline-min: 52.44px;
  --cta-gap: 49.56px;
  --card-bottom: 62px;
  --card-gutter: 20px;
  --genre-max: 310px;
  --tagline-max: 306px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--card-top) var(--card-gutter) var(--card-bottom);
}
.game-card__art, .game-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.game-card__art {
  display: block;
  inline-size: 100%;
  max-inline-size: none;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}
.game-card__shade {
  background: linear-gradient(90deg, rgb(17 23 34 / 15.7%) 0%, rgb(17 23 34 / 50.2%) 22%, rgb(17 23 34 / 78.8%) 43% 57%, rgb(17 23 34 / 50.2%) 78%, rgb(17 23 34 / 15.7%) 100%);
}
.game-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-block-size: 35px;
  min-inline-size: min(137px, 100%);
  padding: 8px 13px;
  border: 1px solid rgb(212 181 130 / 21.2%);
  border-radius: 30px;
  background: rgb(212 181 130 / 9.4%);
}
html:lang(en) .game-card__status { min-inline-size: min(148px, 100%); }
.game-card__status-dot {
  flex: 0 0 6px;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: #d4b582;
}
/* The original exported SVG includes 8.25px of upper overflow outside
   the 390×243.75 design frame. Preserve its aspect ratio, offset the
   image, and reserve the exact frame height in the normal flow. */
.game-card__logo {
  position: relative;
  inline-size: min(100%, var(--logo-width));
  aspect-ratio: 390 / 243.75;
  margin-block-start: var(--logo-gap);
}
.game-card__logo img {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: block;
  inline-size: 100%;
  block-size: auto;
}
.game-card__genre {
  inline-size: min(100%, var(--genre-max));
  margin-block-start: var(--genre-gap);
  overflow-wrap: anywhere;
}
.game-card__tagline {
  inline-size: min(100%, var(--tagline-max));
  margin-block-start: var(--tagline-gap);
  min-block-size: var(--tagline-min);
  overflow-wrap: anywhere;
}
.game-card .button--game {
  margin-block-start: var(--cta-gap);
  gap: 22px;
  padding-inline: min(31px, var(--button-padding));
}
.game-card .button__icon { inline-size: 14px; line-height: 1.22; }
.game-card .button--game > span:first-child { min-inline-size: 0; overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .worlds {
    --reflection-width: 1152px;
    --reflection-height: 720px;
    --worlds-end-space: 99px;
  }
  .worlds .game-card {
    --card-top: 60px;
    --logo-width: 390px;
    --logo-gap: 21px;
    --genre-gap: 26.25px;
    --tagline-gap: 22px;
    --tagline-min: 26.4px;
    --cta-gap: 61.6px;
    --card-bottom: 100px;
    --card-gutter: 32px;
    --genre-max: 706px;
    --tagline-max: 706px;
  }
}
@media (min-width: 1200px) {
  .worlds {
    --reflection-width: 100%;
    --reflection-height: var(--hero-min-height);
    --worlds-end-space: 168px;
  }
  @supports (height: 100svh) {
    .worlds { --reflection-height: max(100svh, 620px); }
  }
  /* JS optionally matches the actual hero height if text zoom expands it. */
  .worlds__reflection { block-size: var(--actual-hero-height, var(--reflection-height)); }
  .worlds .game-card {
    --card-top: 64px;
    --genre-gap: 28.25px;
    --tagline-gap: 16px;
    --tagline-min: 28.8px;
    --cta-gap: 57.2px;
    --genre-max: 800px;
    --tagline-max: 880px;
  }
}
/* The same finite animation and origin as the hero, reflected as a group,
   so the shared image edges stay aligned during the first 4.8 seconds. */
@media (prefers-reduced-motion: no-preference) {
  .worlds__reflection-image { animation: dream-spark-breathe 4.8s ease-in-out 1; }
}
@media (prefers-reduced-motion: reduce) {
  .worlds__reflection-image { animation: none; transform: none; }
}
/* Temporary accessible detail window until the dedicated game page exists.
   This is not a new approved Figma screen or a production game route. */
.game-details {
  inline-size: min(calc(100% - 40px), 480px);
  max-block-size: calc(100% - 40px);
  overflow: auto;
  border: 1px solid var(--color-outline);
  border-radius: var(--game-radius);
  padding: var(--space-8);
  background: var(--color-game);
  color: var(--color-text);
  text-align: center;
}
.game-details::backdrop { background: rgb(13 10 30 / 80%); }
.game-details[open] { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.game-details h2 { font-size: var(--size-policy-heading); }
.game-details p { overflow-wrap: anywhere; }
.game-details__note { font-size: .875rem; color: var(--color-muted); }
.game-details form { max-inline-size: 100%; margin: 0; }
