/*
 * MWI site v5 — page layouts for every public page except home (lane V2). Built on base.css components (CODE-COMPONENTS.md).
 * Figma "MWI Site v5 — audit" 200:4076: Games 201:8817/8906, Game 201:8990/9175 + 201:9335/9517, Studio 201:11439/11582,
 * News 201:11687/11774, Articles 201:11843/11960 + 201:12066/12199. Desktop 1440 (content 1280), phone 390 (content 350).
 */

/* ---------- shared: sections, intro, features, rail, community ---------- */
.v5-sec { margin-top: var(--sec); }
.v5-sec .sh { margin-bottom: 2rem; }
.v5-intro { padding-top: 4rem; }
.v5-intro .eyebrow { margin-bottom: 0.5625rem; }
.v5-intro h1 { font-weight: 600; font-size: 2.75rem; line-height: 3.1875rem; }
.v5-intro .t-body { max-width: 40rem; margin-top: 0.75rem; }
.v5-lead { margin: -1.25rem 0 1.5rem; max-width: 40rem; font-size: 1rem; line-height: 1.4375rem; }
.v5-col { max-width: 45rem; }

.v5-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.5625rem; }
.v5-feats.n2, .v5-feats.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.5rem; }
.v5-feat { min-width: 0; }
.v5-shot { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--s1); cursor: zoom-in; }
.v5-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.v5-shot img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.v5-shot:hover img { transform: scale(1.02); }
.v5-zoom { position: absolute; right: 0.625rem; bottom: 0.625rem; height: 1.75rem; padding: 0 0.5625rem 0 0.5rem; border-radius: 0.5rem; background: rgba(0, 0, 0, .62);
  font-weight: 600; font-size: 0.8125rem; line-height: 1.75rem; color: var(--text); }
.v5-feat figcaption { margin-top: 1rem; }
.v5-feat h3 { margin-top: 0.1875rem; font-weight: 600; font-size: 1.25rem; line-height: 1.8125rem; }
.v5-feat p { margin-top: 0.375rem; font-size: 1rem; line-height: 1.4375rem; color: var(--text-2); }

.v5-citems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.625rem; }

/* card rail (More from MWI): 3 cards visible on desktop, swipe on phones; arrows sit left of "All games →" */
.v5-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.125rem) / 3); gap: 1.5625rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v5-rail::-webkit-scrollbar { display: none; }
.v5-rail > * { scroll-snap-align: start; }
.v5-rail-nav { display: flex; gap: 0.5rem; align-self: center; }
.v5-rail-nav:not(.over) { display: none; }
.v5-arrow { width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--s2) center / 1.125rem no-repeat; box-shadow: inset 0 0 0 1px var(--hair-2); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f1f4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  transition: background-color .2s, box-shadow .2s, opacity .2s; }
.v5-arrow.prev { transform: scaleX(-1); }
.v5-arrow:hover { background-color: var(--s3); box-shadow: inset 0 0 0 1px var(--outline); }
.v5-arrow:disabled { opacity: .35; cursor: default; }

/* ---------- /games/ catalog (D02/D20): 2 large + 3 medium, both rows exactly the content width ---------- */
.v5-intro + .v5-catalog { margin-top: 3rem; }
.v5-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3rem 1.5rem; }
.v5-grid > .gcard { grid-column: span 2; }
.v5-grid > .gcard.l { grid-column: span 3; }

/* ---------- game page hero (owner 02.12 = home hero language): approved art at hero height, flush right, left fade into
   the page, text gradient + bottom fade; copy in fixed slots on the left; facts row on the bottom fade. --fx = leftmost
   face x in the art: the art moves right (past the edge) only where a narrow screen would put a face under the text. ---------- */
.pg-game .gp5-hero { position: relative; display: flex; flex-direction: column; height: clamp(41.25rem, calc(100svh - var(--hdr)), 47.5rem); container-type: size; overflow: hidden; isolation: isolate; }
.pg-game .gp5-hero::before, .pg-game .gp5-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.pg-game .gp5-hero::before { top: 0; bottom: 0; left: 0; width: calc((100% - var(--wrap)) / 2 + 48.75rem);
  background: radial-gradient(60% 70% at 0 100%, color-mix(in srgb, var(--tint) 16%, transparent), transparent),
    linear-gradient(90deg, rgba(9, 7, 12, .96), rgba(9, 7, 12, .78) 55%, rgba(9, 7, 12, 0)); }
.pg-game .gp5-hero::after { left: 0; right: 0; bottom: 0; height: calc(220 * 100cqh / 760); background: linear-gradient(rgba(9, 7, 12, 0), rgba(9, 7, 12, .86) 55%, var(--bg)); }
.pg-game .gp5-bg { position: absolute; inset: 0; z-index: -2; }
.pg-game .gp5-art { position: absolute; top: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 16 / 9;
  right: min(0px, 100% - (100% - var(--wrap)) / 2 - 34.5rem - (1 - var(--fx)) * 100cqh * 16 / 9);
  -webkit-mask: linear-gradient(90deg, transparent, #000 calc(260 * 100cqh / 760)); mask: linear-gradient(90deg, transparent, #000 calc(260 * 100cqh / 760)); }
.pg-game .gp5-copy { padding-top: clamp(1.5rem, 100cqh - 43rem, 4.5rem); }
.pg-game .gp5-copy > * { max-width: 33rem; }
.gp5-logo { display: flex; align-items: flex-end; height: 7.5rem; }
.gp5-logo img { zoom: var(--k); max-width: 17.5rem; height: auto; max-height: 7.5rem; object-fit: contain; object-position: left bottom; }
.gp5-hero h1 { margin-top: 1.75rem; }
.gp5-pitch { margin-top: 1rem; }
.gp5-actions { margin-top: 2rem; }
.gp5-actions:has(.btn-primary[hidden]) .btn-nutaku { background: var(--acc); box-shadow: none; }
.gp5-actions:has(.btn-primary[hidden]) .btn-nutaku:hover { background: var(--acc-hover); }
.gp5-actions:has(.btn-primary:not([hidden])) .v5-android { display: none; }
.gp5-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
.gp5-note img { width: 1.25rem; height: 1.25rem; }
.gp5-copy:has(.gp5-note-on:not([hidden])) .gp5-note-off { display: none; }
.pg-game .gp5-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.25rem; margin-top: auto; padding: 1.125rem 0 2rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.gp5-facts dt { font-weight: 600; font-size: 0.75rem; line-height: 1.125rem; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--tint) 45%, var(--text-3)); }
.gp5-facts dd { margin: 0.25rem 0 0; font-weight: 500; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text); }
.pg-game .gp5-thumbs button img { object-position: 50% 15%; }  /* portrait items (characters) keep their faces in the 16:9 thumb */

/* ---------- game page media (D04/D15/D18): stage, kind + caption + counter, arrows on the stage edges, thumbs ---------- */
.gp5-media .wrap { position: relative; }
.gp5-media .gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }  /* no-JS fallback */
.gp5-media .gallery-grid figcaption { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
.gp5-media .gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--s1); border-radius: 0.5rem; }
.gp5-stage { position: relative; height: 37.5rem; border-radius: 0.875rem; overflow: hidden; background: var(--s1); }
.gp5-stage > img, .gp5-stage > button > img, .gp5-stage video { width: 100%; height: 100%; object-fit: contain; }
.gp5-stage > button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gp5-stage > button.is-video { cursor: pointer; }
.gp5-chip { position: absolute; left: 0.75rem; bottom: 0.75rem; height: 1.625rem; padding: 0 0.625rem; border-radius: 0.375rem; background: rgba(0, 0, 0, .72); font-weight: 600; font-size: 0.8125rem; line-height: 1.625rem; color: var(--text); pointer-events: none; }
.is-video .gp5-chip { top: 0.75rem; bottom: auto; }
.gp5-play-disc { position: absolute; left: 50%; top: 50%; width: 4.75rem; height: 4.75rem; margin: -2.375rem 0 0 -2.375rem; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%2309070c'/%3E%3C/svg%3E") 56% 50% / 2.125rem no-repeat;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, .35); transition: transform .2s; }
.gp5-stage > button:hover .gp5-play-disc { transform: scale(1.06); }
.gp5-sw { position: relative; }
.gp5-stage-nav .v5-arrow { position: absolute; top: 50%; margin-top: -1.375rem; width: 2.75rem; height: 2.75rem; z-index: 2; }
.gp5-stage-nav .prev { left: -1.375rem; }
.gp5-stage-nav .next { right: -1.375rem; }
.gp5-under { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: start; margin-top: 1rem; }
.gp5-under .eyebrow { grid-column: 1; }
.gp5-cap { grid-column: 1; margin-top: 0.1875rem; font-size: 1rem; line-height: 1.4375rem; color: var(--text); }
.gp5-count { grid-column: 2; grid-row: 1; font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gp5-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * 0.75rem) / var(--n)); gap: 0.75rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; }
.gp5-thumbs::-webkit-scrollbar { display: none; }
.gp5-thumbs button { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 0.5rem; overflow: hidden; background: var(--s2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--hair-2); }
.gp5-thumbs button img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.gp5-thumbs button:hover img, .gp5-thumbs button[aria-current="true"] img { opacity: 1; }
.gp5-thumbs button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.gp5-thumbs button[aria-current="true"]::after { box-shadow: inset 0 0 0 2px var(--acc-hi); }
.gp5-thumbs .gp5-chip { left: 0.375rem; top: 0.375rem; bottom: auto; }
.gp5-thumbs .gp5-play-disc { width: 2rem; height: 2rem; margin: -1rem 0 0 -1rem; background-size: 0.875rem; }

/* lightbox (zoom of screens / banners / gallery items) */
.v5-box { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 7, 12, .94); color: var(--text); }
.v5-box::backdrop { background: rgba(0, 0, 0, .6); }
.v5-box img, .v5-box video { position: absolute; inset: 3.5rem 4.5rem; width: calc(100% - 9rem); height: calc(100% - 7rem); object-fit: contain; }
.v5-box .v5-arrow { position: absolute; top: 50%; margin-top: -1.375rem; width: 2.75rem; height: 2.75rem; }
.v5-box .prev { left: 1rem; } .v5-box .next { right: 1rem; }
.v5-box-x { position: absolute; right: 1rem; top: 0.75rem; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--s2); color: var(--text); font-size: 1.375rem; line-height: 2.5rem; cursor: pointer; }
.v5-box-cap { position: absolute; left: 4.5rem; right: 4.5rem; bottom: 1rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-2); text-align: center; }

/* ---------- play anywhere tiles, FAQ, more ---------- */
.gp5-tiles { display: flex; gap: 1.5rem; }
.gp5-tile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; min-height: 10.5rem; padding: 1.25rem; border-radius: var(--r-card); background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair); }
.gp5-tile[hidden] { display: none; }
.gp5-tile h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.5625rem; }
.gp5-tile p { margin: 0.1875rem 0 1rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); }
.gp5-tile > a { margin-top: auto; }
.gp5-faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 52.5rem); gap: 2.5rem; }
.gp5-faq h2 { font-weight: 600; font-size: 2.25rem; line-height: 2.5625rem; }
.gp5-faq h2 + p { margin-top: 0.6875rem; }
.gp5-qs { box-shadow: inset 0 1px 0 var(--hair); }
.gp5-qs details { box-shadow: inset 0 -1px 0 var(--hair); }
.gp5-qs summary { position: relative; display: block; padding: 1.125rem 2.5rem 1.125rem 0; font-weight: 600; font-size: 1rem; line-height: 1.4375rem; cursor: pointer; list-style: none; }
.gp5-qs summary::-webkit-details-marker { display: none; }
.gp5-qs summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9375rem; font-weight: 500; font-size: 1.25rem; line-height: 1.8125rem; color: var(--text-2); }
.gp5-qs details[open] summary { padding-bottom: 0.75rem; }
.gp5-qs details[open] summary::after { content: "−"; }
.gp5-qs details p { max-width: 42.5rem; padding-bottom: 1.125rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); }
.gp5-more .sh { align-items: center; }
.gp5-more .sh h2 { flex: 1 1 0; }

/* ---------- studio (D13): portfolio wall, what we make, how we work ---------- */
.st-intro-in { display: grid; grid-template-columns: minmax(0, 32.5rem) minmax(0, 42.5rem); justify-content: space-between; gap: 2.5rem; }
.st-intro .actions { margin-top: 1.75rem; }
.st-intro .t-body { margin-top: 1rem; }
.st-wall { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.st-wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); background: var(--s1); }
.st-wall .st-key { grid-column: 1 / -1; aspect-ratio: 680 / 298; border-radius: 0.875rem; }
/* content pass 02.12: the wall is one real game screen (16:9, whole UI); emptied 4:5 slots disappear */
.st-wall .st-key[src*="/shot-"] { aspect-ratio: 16 / 9; }
.st-wall img[src=""] { display: none; }
.st-badge { position: absolute; left: 1rem; top: 1rem; height: 2.25rem; padding: 0 0.75rem; border-radius: 0.625rem; background: rgba(9, 7, 12, .86); font-weight: 600; font-size: 0.8125rem; line-height: 2.25rem; }
.st-rows { box-shadow: inset 0 1px 0 var(--hair); }
.st-row { display: grid; grid-template-columns: 18rem minmax(0, 1fr) 21.25rem; column-gap: 2rem; padding: 1.5rem 0; box-shadow: inset 0 -1px 0 var(--hair); }
.st-art { display: block; border-radius: 0.625rem; overflow: hidden; }
.st-art img { width: 100%; aspect-ratio: 1200 / 628; }
.st-main h3 { margin-top: 0.1875rem; font-weight: 600; font-size: 1.375rem; line-height: 2rem; }
.st-main p { margin-top: 0.25rem; font-size: 1rem; line-height: 1.4375rem; color: var(--text-2); }
.st-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-top: 1.5rem; }
.st-side .st-genre { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-2); }
.st-side .st-status { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
.st-side .link { margin-top: auto; min-height: 0; }
.st-work .v5-shot img { aspect-ratio: 16 / 9; object-fit: contain; }

/* ---------- legal / plain text ---------- */
.v5-text { margin-top: 2.5rem; }
.v5-text h2 { font-weight: 600; font-size: 1.625rem; line-height: 2.375rem; }
.v5-text p { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.5625rem; color: var(--text-2); }

/* ---------- /news/ index (D19) ---------- */
.nw-intro { max-width: 40rem; margin-top: 0.75rem; }
.nw-intro > * + * { margin-top: 0.75rem; }
.nw-feature { display: grid; grid-template-columns: minmax(0, 47.5rem) minmax(0, 29.5rem); grid-template-rows: auto auto auto 1fr; column-gap: 3rem; margin-top: 2.5rem; }
.nw-feature .ncard-cover { grid-row: 1 / -1; }
.nw-feature .ncard-meta { grid-column: 2; margin-top: 1.5rem; }
.nw-feature .ncard-title { grid-column: 2; margin-top: 0.5rem; font-size: 2rem; line-height: 2.3125rem; }
.nw-feature .ncard-excerpt { grid-column: 2; margin-top: 0.875rem; font-size: 1.0625rem; line-height: 1.5625rem; }
.nw-feature::after { content: "Read the story →"; grid-column: 2; align-self: start; margin-top: 1.25rem; font-weight: 600; font-size: 1rem; line-height: 1.4375rem; transition: color .2s; }
.nw-feature:hover::after { color: var(--acc-hi); }
.nw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 1.5rem; margin-top: 3.5rem; }

/* ---------- article (D01/D14): 720 column, typed cover, whole images with zoom, CTA panel ---------- */
.ar { width: min(45rem, 100% - 2 * var(--gut)); margin: 3rem auto 0; }
.ar-crumb { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-2); }
.ar-crumb a:hover { color: var(--text); }
.ar-crumb i { font-style: normal; margin: 0 0.5rem; color: var(--text-3); }
.ar h1 { margin-top: 1rem; font-weight: 600; font-size: 2.5rem; line-height: 2.875rem; }
.ar .article-date { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-3); }
.ar .ar-cover { display: block; margin-top: 2rem; }
.ar-body { margin-top: 1.75rem; }
.ar-body > p, .ar-body > ul, .ar-body > blockquote { font-size: 1.0625rem; line-height: 1.5625rem; color: var(--text-2); }
.ar-body > * + * { margin-top: 1rem; }
.ar-body > h2 { margin-top: 2rem; font-weight: 600; font-size: 1.625rem; line-height: 2.375rem; color: var(--text); }
.ar-body > h3 { margin-top: 1.75rem; font-weight: 600; font-size: 1.25rem; line-height: 1.8125rem; color: var(--text); }
.ar-body > h2 + *, .ar-body > h3 + * { margin-top: 0.75rem; }
.ar-body strong { color: var(--text); font-weight: 600; }
.ar-body p a:not(.btn) { color: var(--acc-hi); text-decoration: underline; text-underline-offset: 0.1875rem; }
.ar-body ul li { position: relative; padding-left: 1.25rem; }
.ar-body ul li + li { margin-top: 0.625rem; }
.ar-body ul li::before { content: ""; position: absolute; left: 0; top: 0.625rem; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--acc-hi); }
.ar-body blockquote { margin: 1.5rem 0 0; padding-left: 1.25rem; box-shadow: inset 2px 0 0 var(--acc-hi); color: var(--text); }
.ar-body hr { margin: 2rem 0 0; border: 0; height: 1px; background: var(--hair); }
.ar-body figure { margin-top: 1.5rem; }
.ar-body figure a { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--s1); cursor: zoom-in; }
.ar-body figure a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.ar-body figure img, .ar-body figure video { width: 100%; height: auto; border-radius: var(--r-card); }  /* D01: original aspect, never stretched */
.ar-body figcaption { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-2); }
.ar-body figcaption:empty { display: none; }
.ar-body figcaption b { display: block; margin-bottom: 1px; font-weight: 600; font-size: 0.8125rem; line-height: 1.1875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ar-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2rem; padding: 1.5rem; border-radius: 0.875rem; background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair); }
.ar-cta .btn:first-child { background: var(--acc); box-shadow: none; }
.ar-cta .btn:first-child:hover { background: var(--acc-hover); }
.ar-more { margin-top: var(--sec); }
.ar-more .ncards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

/* ---------- 1100: tablet ---------- */
@media (max-width: 1100px) {
  .st-intro-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gp5-stage { height: auto; aspect-ratio: 16 / 9; }
  .gp5-stage-nav .prev { left: 0.75rem; }
  .gp5-stage-nav .next { right: 0.75rem; }
  .gp5-faq-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .st-row { grid-template-columns: 13.75rem minmax(0, 1fr); }
  .st-side { grid-column: 2; align-items: flex-start; text-align: left; padding-top: 0.5rem; }
  .st-side .link { margin-top: 0.5rem; }
  .v5-citems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .nw-feature { grid-template-columns: 1fr; grid-template-rows: none; }
  .nw-feature .ncard-cover { grid-row: auto; }
  .nw-feature > .ncard-meta, .nw-feature > .ncard-title, .nw-feature > .ncard-excerpt, .nw-feature::after { grid-column: 1; }
}

/* ---------- 1080: stacked game hero (home D05): art zone on top, logo overlapping its bottom ---------- */
@media (max-width: 1080px) {
  .pg-game .gp5-hero { display: block; height: auto; container-type: normal; overflow: visible; }
  .pg-game .gp5-hero::before, .pg-game .gp5-hero::after { display: none; }
  .pg-game .gp5-bg { position: relative; z-index: 0; height: 27.5rem; overflow: hidden; }
  .pg-game .gp5-bg::before, .pg-game .gp5-bg::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
  .pg-game .gp5-bg::before { left: 0; top: 0; bottom: 0; width: 12.5rem; background: linear-gradient(90deg, rgba(9, 7, 12, .55), rgba(9, 7, 12, 0)); }
  .pg-game .gp5-bg::after { left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(rgba(9, 7, 12, 0), var(--bg)); }
  .pg-game .gp5-art { position: static; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--mpos); -webkit-mask: none; mask: none; }
  .pg-game .gp5-copy { position: relative; z-index: 1; margin-top: -4.75rem; padding-top: 0; }
  .pg-game .gp5-copy > * { max-width: 32.5rem; }
  .pg-game .gp5-facts { margin-top: 2rem; padding-bottom: 0; }
}
@media (max-width: 760px) { .pg-game .gp5-bg { height: 18.75rem; } }

/* ---------- 760: phone (Figma 390) ---------- */
@media (max-width: 760px) {
  .v5-intro { padding-top: 2rem; }
  .v5-intro .eyebrow { margin-bottom: 0.5625rem; }
  .v5-intro h1 { font-size: 2.125rem; line-height: 2.4375rem; }
  .v5-intro .t-body { font-size: 1rem; line-height: 1.4375rem; }
  .v5-intro + .v5-catalog { margin-top: 1.75rem; }
  .v5-sec .sh { margin-bottom: 1.25rem; }
  .v5-lead { margin: -0.5rem 0 1.25rem; font-size: 0.9375rem; line-height: 1.375rem; }
  .v5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .v5-grid > .gcard, .v5-grid > .gcard.l { grid-column: span 1; }
  .v5-grid > .gcard:first-child { grid-column: 1 / -1; }
  .v5-citems { grid-template-columns: 1fr; gap: 0.75rem; }
  .v5-feats, .v5-feats.n2, .v5-feats.n4 { grid-template-columns: 1fr; gap: 2rem; }
  .v5-feat figcaption { margin-top: 1rem; }
  .v5-feat h3 { font-size: 1.125rem; line-height: 1.625rem; }
  .v5-feat p { font-size: 0.9375rem; line-height: 1.375rem; }
  .v5-rail { grid-auto-columns: 10.4375rem; gap: 1rem; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .v5-rail-nav { display: none !important; }

  .gp5-logo { height: 4.75rem; }
  .gp5-logo img { max-width: 12.5rem; max-height: 4.75rem; }
  .gp5-hero h1 { margin-top: 0.75rem; font-size: 1.625rem; line-height: 2rem; }
  .gp5-pitch { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.375rem; }
  .gp5-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.125rem; }
  .gp5-actions .btn { padding: 0 0.75rem; }
  .gp5-actions .link { grid-column: 1 / -1; justify-self: start; }
  .gp5-actions:not(:has(.v5-android)) .btn-nutaku, .gp5-actions:has(.btn-primary:not([hidden])) .btn-nutaku:last-of-type { grid-column: 1 / -1; }
  .gp5-note { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.1875rem; }
  .pg-game .gp5-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.875rem; margin-top: 1.5rem; padding: 1rem 0 0; }
  .gp5-facts dd { font-size: 0.875rem; line-height: 1.25rem; }

  .gp5-stage { border-radius: 0.625rem; }
  .gp5-stage-nav { position: absolute; right: 0; top: calc(100% + 1rem); display: flex; gap: 0.75rem; }
  .gp5-stage-nav .v5-arrow { position: static; margin: 0; width: 2.5rem; height: 2.5rem; }
  .gp5-under { grid-template-columns: minmax(0, 1fr); padding-right: 9.375rem; position: relative; }
  .gp5-count { position: absolute; right: 6.5rem; top: 0.625rem; }
  .gp5-cap { font-size: 0.9375rem; line-height: 1.375rem; }
  .gp5-thumbs { grid-auto-columns: 6.875rem; gap: 0.5rem; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .gp5-play-disc { width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; background-size: 1.625rem; }
  .gp5-tiles { flex-direction: column; gap: 0.75rem; }
  .gp5-faq h2 { font-size: 1.75rem; line-height: 2rem; }
  .gp5-qs summary { padding-right: 2rem; }

  .st-intro-in { display: flex; flex-direction: column; gap: 2rem; }
  .st-intro h1 { font-size: 2.125rem; line-height: 2.4375rem; }
  .st-wall { gap: 0.5rem; }
  .st-wall .st-key { border-radius: var(--r-card); }
  .st-wall img { border-radius: 0.5rem; }
  .st-badge { left: 0.625rem; top: 0.625rem; height: 1.875rem; line-height: 1.875rem; padding: 0 0.625rem; }
  .st-row { grid-template-columns: 8rem minmax(0, 1fr); column-gap: 1rem; padding: 1rem 0; }
  .st-main h3 { font-size: 1.125rem; line-height: 1.625rem; }
  .st-main p { font-size: 0.9375rem; line-height: 1.375rem; }
  .st-side { grid-column: 1 / -1; }

  .nw-feature { margin-top: 1.5rem; }
  .nw-feature .ncard-meta { margin-top: 1rem; }
  .nw-feature .ncard-title { font-size: 1.5rem; line-height: 2.1875rem; }
  .nw-feature .ncard-excerpt { font-size: 0.9375rem; line-height: 1.375rem; margin-top: 0.5rem; }
  .nw-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }

  .ar { margin-top: 1.5rem; }
  .ar h1 { font-size: 1.75rem; line-height: 2.0625rem; }
  .ar .ar-cover { margin-top: 1.5rem; }
  .ar-body > p, .ar-body > ul { font-size: 1rem; line-height: 1.5rem; }
  .ar-body > h2 { font-size: 1.375rem; line-height: 1.875rem; }
  .ar-cta { padding: 1.25rem; }
  .ar-cta .btn { flex: 1 1 100%; }
  .ar-more .ncards { grid-template-columns: 1fr; gap: 2rem; }

  .v5-box img, .v5-box video { inset: 3.5rem 0; width: 100%; height: calc(100% - 7rem); }
  .v5-box .v5-arrow { top: auto; bottom: 0.75rem; margin: 0; }
  .v5-box-cap { left: 4.5rem; right: 4.5rem; bottom: 1.375rem; }
}
