.gtp-how {
  --gtp-how-ink: #101827;
  --gtp-how-line: #dbe3ee;
  /* One shared media-height system (owner 2026-10-13): the same token,
     the same values and the same contain/centre recipe in all three games. */
  --how-art-height: clamp(180px, 16vw, 245px);
  container-name: gtp-how;
  container-type: inline-size;
  width: 100%;
  margin-block: 28px 56px;
  padding: clamp(18px, 2vw, 28px);
  overflow: hidden;
  color: var(--gtp-how-ink);
  background: #fff;
  border: 1px solid var(--gtp-how-line);
  border-radius: 24px;
  box-shadow: 0 2px 5px rgb(15 23 42 / 10%);
}

.gtp-how__title {
  margin: 0 0 clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  font-family: var(--font-display);
  font-synthesis: none;
  letter-spacing: -0.02em;
}

.gtp-how__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 2.25vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gtp-how__step {
  display: grid;
  grid-template-rows: var(--how-art-height) auto;
  min-width: 0;
  margin: 0;
  text-align: center;
}

/* The equal-height media slot: artwork is vertically CENTRED, contain-
   fitted and never cropped; subtle per-step scales may exceed the slot. */
.gtp-how__visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: visible;
}

.gtp-how__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(var(--art-scale, 1));
}

.gtp-how__caption {
  min-height: 2.45em;
  margin: 18px 0 0;
  font-weight: 800;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.22;
  font-family: var(--font-body);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@container gtp-how (max-width: 919px) {
  .gtp-how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .gtp-how__step { --how-art-height: clamp(190px, 33vw, 270px); }
}

@container gtp-how (max-width: 559px) {
  .gtp-how { margin-block: 20px 40px; padding: 18px 16px 24px; border-radius: 20px; }
  .gtp-how__title { margin-bottom: 22px; }
  .gtp-how__steps { grid-template-columns: 1fr; row-gap: 34px; }
  .gtp-how__step { --how-art-height: clamp(190px, 66vw, 280px); }
  .gtp-how__caption { min-height: 0; margin-top: 12px; font-size: 18px; }
}

@supports not (container-type: inline-size) {
  @media (max-width: 920px) {
    .gtp-how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 560px) {
    .gtp-how__steps { grid-template-columns: 1fr; }
  }
}

/* Visible-art balancing (owner 2026-10-13): the tall phone canvases
   (864x717) carry ~30% taller visible art than the landscape ones
   (864x576) inside the equal slots. These SUBTLE scales (0.9-1.05,
   measured from each PNG alpha bounds) even the steps out; the approved
   artwork itself is never cropped, redrawn or edited. */
.gtp-how__step[data-step="1"] { --art-scale: 1.05; }
.gtp-how__step[data-step="2"] { --art-scale: 0.90; }
.gtp-how__step[data-step="3"] { --art-scale: 0.92; }
.gtp-how__step[data-step="4"] { --art-scale: 1.05; }
