.game-hero {
  --game-bg: #1e2528;
  --game-ink: #fff8e7;
  --game-muted: #eadbc2;
  --game-button: #ffcf83;
  --game-button-ink: #261607;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  margin-block: 22px clamp(34px, 5vw, 72px);
  min-height: 510px;
  color: var(--game-ink);
  background: var(--game-bg);
  overflow: hidden;
}

.game-intro { z-index: 1; min-width: 0; }
.game-intro .release-badges { margin-bottom: 12px; }
.game-intro .platform-badge:focus-visible { outline-color: var(--game-ink); }
.game-intro h1 { font-size: clamp(48px, 6.3vw, 107px); font-weight: 700; line-height: 1.04; letter-spacing: -.085em; margin-block: 8px 15px; text-wrap: balance; }
.game-intro .eyebrow, .game-intro .intro-copy { color: var(--game-muted); }
.game-intro .eyebrow { display: block; }
.game-intro .intro-copy { max-width: 360px; margin-top: 12px; }
.game-intro .primary { background: var(--game-button); border-color: var(--game-button); color: var(--game-button-ink); }
.game-intro .primary:focus-visible { outline-color: var(--game-ink); }
.game-preview { border-top: 1px solid var(--line); padding-block: 28px 60px; }
.game-preview figure { display: grid; justify-items: center; padding: clamp(14px, 3.8vw, 48px); background: var(--capture-bg); border-radius: var(--capture-radius, 2px); border: 1px solid var(--capture-border); }
.game-preview figure img { width: auto; max-height: min(75vh, 660px); object-fit: contain; }

/* Ironwake */
.game-page.ironwake { --capture-bg: #152224; --capture-border: #374b49; }
.ironwake .game-hero { grid-template-columns: minmax(0, .99fr) minmax(0, .81fr); min-height: clamp(480px, 44vw, 610px); border: 1px solid #46504b; }
.ironwake .game-hero::after { content: ''; position: absolute; z-index: 2; inset: 11px; border: 1px solid #f8e6be46; pointer-events: none; }
.ironwake .game-intro { grid-column: 2; padding: clamp(19px, 4vw, 68px) clamp(24px, 4.5vw, 70px) clamp(19px, 4vw, 68px) 0; }
.ironwake .game-intro h1 { font-size: clamp(44px, 6.65vw, 104px); text-transform: uppercase; letter-spacing: -.076em; }
.ironwake .game-intro .eyebrow { color: #ffcf83; }
.ironwake .game-intro .intro-copy { max-width: 370px; }
.ironwake-landscape { position: absolute; inset: 0; overflow: hidden; }
.ironwake-landscape img { width: 100%; height: 100%; object-fit: cover; object-position: 33% 64%; animation: landscape-arrive 1.35s var(--ease) both; }
.ironwake-landscape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 33%, #191d22d9 56%, #152125 100%); }
@keyframes landscape-arrive { from { transform: scale(1.075); filter: saturate(.72); } to { transform: none; filter: none; } }

/* World Game */
.game-page.world-game { --capture-bg: #253e36; --capture-border: #3d5d4f; --capture-radius: 18px; }
.world-game .game-hero { --game-bg: #f2ecda; --game-ink: #214136; --game-muted: #43594e; --game-button: #234e3e; --game-button-ink: #fff4d7; padding: clamp(23px, 4.9vw, 72px); gap: clamp(24px, 4.5vw, 64px); grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); border-radius: 20px; }
.world-game .game-intro h1 { font-size: clamp(49px, 6.9vw, 102px); }
.world-game .game-intro .primary { border-radius: 12px; }
.barik-board { display: grid; place-items: center; position: relative; isolation: isolate; min-height: 280px; aspect-ratio: 1.42; border-radius: 16px; background: #214739; border: 1px solid #182e25; box-shadow: inset 0 0 40px #132a1ebd, 6px 8px 0 #c5c9aa; }
.barik-board::before { content: ''; position: absolute; inset: 15px; border: 1px solid #ced5a64d; border-radius: 10px; }
.barik-grid { position: absolute; z-index: -1; inset: 0; background: radial-gradient(#c5daa16e 1px, transparent 1px) 0 0 / 16px 16px; mask-image: radial-gradient(ellipse, #000 0%, transparent 80%); }
.barik-tiles { display: flex; align-items: center; justify-content: center; gap: clamp(7px, 1.2vw, 17px); width: calc(100% - 36px); }
.barik-tiles span { --tile-turn: -6deg; width: min(28%, 124px); aspect-ratio: 1.02; display: grid; place-items: center; border-radius: 13%; background: #f3dfad; color: #234333; box-shadow: 0 6px 0 #b59562, 0 14px 26px #102919a6; font-size: clamp(25px, 4.7vw, 69px); font-weight: 800; letter-spacing: -.09em; transform: rotate(var(--tile-turn)); animation: tile-arrive .75s var(--ease) both; }
.barik-tiles span:nth-child(2) { --tile-turn: 4deg; --tile-lift: -12px; background: #dceab7; box-shadow: 0 6px 0 #94a56d, 0 14px 26px #102919a6; animation-delay: .13s; }
.barik-tiles span:nth-child(3) { --tile-turn: 9deg; --tile-lift: 8px; background: #f8bd91; box-shadow: 0 6px 0 #aa7553, 0 14px 26px #102919a6; animation-delay: .24s; }
@keyframes tile-arrive { from { opacity: 0; transform: translateY(24px) rotate(calc(var(--tile-turn) - 13deg)) scale(.92); } to { opacity: 1; transform: translateY(var(--tile-lift, 0px)) rotate(var(--tile-turn)); } }

/* OMS */
.game-page.oms { --capture-bg: #251c3d; --capture-border: #433565; --capture-radius: 25px; }
.oms .game-hero { --game-bg: #eee7ff; --game-ink: #231642; --game-muted: #46385f; --game-button: #5a34c5; --game-button-ink: #fff; grid-template-columns: minmax(0, 1fr); gap: 17px; justify-items: center; padding: clamp(23px, 4.1vw, 55px) clamp(15px, 4vw, 53px) 15px; border-radius: 28px; background: radial-gradient(ellipse at center 100%, #e0d0ff 0%, #eee7ff 60%); }
.oms .game-intro { text-align: center; }
.oms .release-badges { justify-content: center; }
.oms .game-intro h1 { font-size: clamp(36px, 6.4vw, 93px); }
.oms .game-intro .intro-copy { max-width: 440px; margin-inline: auto; }
.oms .game-intro .primary { border-radius: 30px; }
.ov-deck { width: min(100%, 550px); min-height: clamp(122px, 15.5vw, 218px); display: grid; place-items: center; isolation: isolate; }
.ov-card { --deal-x: 0%; --deal-turn: 0deg; grid-area: 1 / 1; width: min(31%, 158px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 15%; border: 1px solid #3c265e; box-shadow: 0 9px 0 #9772d842, 0 11px 27px #553c742b; transform: translateX(var(--deal-x)) rotate(var(--deal-turn)); animation: deck-deal .8s var(--ease) both; }
.ov-question { --deal-x: -84%; --deal-turn: -16deg; background: #6e44d2; color: #fff7e8; font-size: clamp(46px, 8vw, 106px); font-weight: 700; line-height: 1; animation-delay: .12s; }
.ov-front { height: auto; object-fit: cover; z-index: 1; }
.ov-pattern { --deal-x: 84%; --deal-turn: 16deg; background: radial-gradient(#602f9a80 2px, transparent 2px) 0 0 / 15px 15px, #f9ce95; animation-delay: .21s; }
@keyframes deck-deal { from { opacity: .45; transform: translateY(12px) scale(.87); } to { opacity: 1; transform: translateX(var(--deal-x)) rotate(var(--deal-turn)); } }

/* Echo: Light */
.game-page.echo-light { --capture-bg: #071a23; --capture-border: #225259; }
.echo-light .game-hero { --game-bg: #070e19; --game-ink: #e4fcf7; --game-muted: #b7d9d7; --game-button: #63e6d5; --game-button-ink: #061c22; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: clamp(24px, 5.3vw, 78px); border: 1px solid #20434a; background: radial-gradient(ellipse at 76% 50%, #113643, #070e19 57%); }
.echo-light .game-intro h1 { letter-spacing: -.075em; }
.echo-signal { display: grid; place-items: center; position: relative; isolation: isolate; width: min(94%, 395px); aspect-ratio: 1; justify-self: center; }
.echo-signal::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: 50%; background: radial-gradient(circle, #4be4cf2d, transparent 61%); }
.echo-signal img { width: 38%; height: auto; filter: drop-shadow(0 0 18px #fff5a863); }
.echo-wave { position: absolute; z-index: -1; inset: 12%; border: 1px solid #57e6ed52; border-radius: 50%; box-shadow: 0 0 17px #24d4d01a, inset 0 0 14px #24d4d014; }
.echo-wave:nth-child(2) { inset: 21%; border-color: #57e6ed70; }
.echo-wave:nth-child(3) { inset: 31%; border-color: #57e6eda0; }
.game-hero .echo-wave, .game-card.enter-view .echo-wave { animation: echo-wave-arrive 1.5s var(--ease) both; }
.game-hero .echo-wave:nth-child(1), .game-card.enter-view .echo-wave:nth-child(1) { animation-delay: .23s; }
.game-hero .echo-wave:nth-child(2), .game-card.enter-view .echo-wave:nth-child(2) { animation-delay: .12s; }
@keyframes echo-wave-arrive { from { opacity: 0; transform: scale(.34); } 35% { opacity: .95; } to { opacity: 1; transform: scale(1); } }

/* Echo Garden */
.game-page.echo-garden { --capture-bg: #334036; --capture-border: #536351; --capture-radius: 19px; }
.echo-garden .game-hero { --game-bg: #f5ecda; --game-ink: #254434; --game-muted: #4b5e4e; --game-button: #315c44; --game-button-ink: #fffdf3; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 45px); padding: clamp(23px, 5vw, 67px); background: linear-gradient(140deg, #fff8e9 0%, #eae2ce 100%); border-radius: 21px; }
.echo-garden .game-intro h1 { font-size: clamp(48px, 6.6vw, 102px); }
.echo-garden .game-intro .primary { border-radius: 28px; }
.garden-study { position: relative; align-self: center; justify-self: center; width: min(95%, 510px); aspect-ratio: 1.39; z-index: 0; }
.garden-study img { position: absolute; height: auto; }
.garden-tray { inset: 0; width: 100%; filter: drop-shadow(0 10px 14px #674f3b44); }
.garden-sprout { width: 22%; top: 10%; left: 32%; transform-origin: 50% 78%; }
.garden-blossom { width: 22%; top: 37%; right: 20%; }
.garden-water { width: 21%; top: 55%; left: 29%; }
.game-hero .garden-sprout, .game-hero .garden-blossom { animation: garden-unfold 1.15s var(--ease) both; }
.game-hero .garden-blossom { animation-delay: .17s; }
@keyframes garden-unfold { from { opacity: .5; transform: scale(.7) rotate(-7deg); } to { opacity: 1; transform: none; } }

/* DigIt */
.game-page.digit { --capture-bg: #2b211c; --capture-border: #674333; }
.digit .game-hero { --game-bg: #31231c; --game-ink: #fff2de; --game-muted: #e7cfb9; --game-button: #efac63; --game-button-ink: #311a0e; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); min-height: clamp(450px, 43vw, 610px); border: 1px solid #79513a; background: linear-gradient(135deg, #241c19 10%, #473022 100%); }
.digit .game-intro { padding: clamp(24px, 5.5vw, 81px); }
.digit .game-intro h1 { font-size: clamp(61px, 8.3vw, 125px); }
.digit .game-intro .eyebrow { color: #f1b583; }
.digit-rig { position: relative; width: 100%; height: 100%; min-height: 300px; overflow: hidden; }
.digit-rig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; }
.game-hero .digit-rig { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.game-hero .digit-rig img { animation: rig-arrive 1.1s var(--ease) both; }
@keyframes rig-arrive { from { opacity: .68; transform: translateY(-13px) scale(1.07); } to { opacity: 1; transform: none; } }

@media (max-width: 780px) {
  .game-hero { min-height: 0; }
  .ironwake .game-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ironwake-landscape { position: relative; grid-area: 1 / 1; min-height: 180px; aspect-ratio: 1.95; }
  .ironwake-landscape img { position: absolute; object-position: 20% 64%; }
  .ironwake-landscape::after { background: linear-gradient(180deg, transparent 45%, #1e2528 100%); }
  .ironwake .game-intro { grid-area: 2 / 1; padding: 2px 23px 25px; }
  .ironwake .game-hero::after { inset: 7px; }
  .world-game .game-hero { grid-template-columns: minmax(0, 1fr); }
  .barik-board { width: min(100%, 425px); min-height: 0; justify-self: center; }
  .barik-tiles span { font-size: clamp(29px, 8vw, 59px); }
  .oms .game-hero { min-height: 0; margin-bottom: 36px; }
  .echo-light .game-hero, .echo-garden .game-hero, .digit .game-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; }
  .echo-signal { width: min(78%, 300px); }
  .garden-study { width: min(92%, 380px); }
  .game-hero .digit-rig { min-height: 0; aspect-ratio: 1.38; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .digit .game-intro { padding-bottom: 0; }
}
