:root {
  --paper: #eee6d2;
  --paper-light: #f8f2e5;
  --paper-dark: #d5c7aa;
  --ink: #201d17;
  --muted: #665e50;
  --accent: #a43a2d;
  --accent-dark: #69261e;
  --blue: #2e5360;
  --rule: #2b2720;
  --shadow: 5px 5px 0 var(--ink);
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --space-1: 0.4rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
  --space-6: 5.5rem;
  --content: 72rem;
  --header-height: 84px;
  --header-offset: calc(var(--header-height) + 1rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); line-height: 1.85; overflow-wrap: anywhere; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.3; z-index: -1; background-image: repeating-linear-gradient(0deg, rgba(32,29,23,.035) 0, rgba(32,29,23,.035) 1px, transparent 1px, transparent 4px), radial-gradient(circle at 20% 10%, rgba(255,255,255,.5), transparent 30%); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[id] { scroll-margin-top: 0; }
code { padding: .12em .3em; background: rgba(32,29,23,.1); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }

.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 1000; padding: .7rem 1rem; background: var(--ink); color: var(--paper-light); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--rule); background: var(--paper-light); }
.site-header__inner { width: min(calc(100% - 2rem), var(--content)); min-height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--rule); color: var(--paper-light); background: var(--accent); font-size: 18px; }
.brand strong { display: block; font-family: var(--font-mono); font-size: clamp(15px, 2vw, 19px); letter-spacing: .08em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.global-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.global-nav a { min-height: 44px; padding-block: 6px; display: inline-flex; align-items: center; text-decoration: none; border-bottom: 2px solid transparent; }
.global-nav a[aria-current="page"] { color: var(--ink); background: transparent; border-bottom-color: var(--accent); }
.global-nav .global-nav__archive { color: var(--accent); }

.hero, .section, .ad-area, .subpage, .detail-page { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.hero { min-height: 34rem; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(17rem, .7fr); gap: clamp(2rem, 8vw, 7rem); align-items: center; padding-block: clamp(4rem, 10vw, 8rem); border-bottom: 4px double var(--rule); }
.hero--single { grid-template-columns: minmax(0, 1fr); }
.hero--single .hero__copy { max-width: 64rem; }
.hero__copy { position: relative; }
.hero__copy::before { content: none; }
.eyebrow { margin: 0 0 .6rem; color: var(--accent); font-family: var(--font-display); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); line-height: 1.14; }
h1 { font-size: clamp(2.7rem, 8vw, 6.2rem); letter-spacing: -.04em; }
.hero h1::after { content: ""; display: block; width: min(280px, 48vw); height: 12px; margin-top: 28px; background: var(--accent); border: 2px solid var(--rule); }
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
.hero__lead, .lead-copy { max-width: 38rem; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 2; }
.hero__note { padding: 1.5rem; border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.stamp { width: fit-content; margin: 0 0 1rem; padding: .25rem .6rem; color: var(--accent); border: 3px double var(--accent); font-family: var(--font-display); font-size: .8rem; font-weight: 900; letter-spacing: .12em; transform: rotate(-2deg); }
.spec-list, .spec-sheet dl { margin: 0; }
.spec-list div, .spec-sheet dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted var(--rule); }
dt { color: var(--muted); font-family: var(--font-display); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
dd { margin: 0; font-size: .88rem; font-weight: 700; }
.small-note { color: var(--muted); font-size: .78rem; line-height: 1.65; }

.button { min-height: 46px; padding: .72rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ink); background: var(--paper-light); border: 2px solid var(--rule); box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-mono); font-size: .82rem; font-weight: 900; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--ink); background: var(--paper-light); transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.button:active { transform: translate(3px,3px); box-shadow: none; }
.button--primary { color: var(--paper-light); background: var(--accent); border-color: var(--rule); }
.button--primary:hover { color: var(--paper-light); background: var(--accent); }
.button--large { min-height: 56px; padding-inline: 2rem; font-size: .95rem; }
.button--quiet { box-shadow: none; border-style: dashed; }

.section { padding-block: var(--space-6); }
#games { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-heading { display: grid; grid-template-columns: 12rem 1fr; align-items: end; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 3px solid var(--rule); }
.section-heading p { margin: 0; color: var(--accent); font-family: var(--font-display); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.section-heading h2 { margin: 0; }
.section-heading--compact { grid-template-columns: 9rem 1fr; }
.game-entry { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(19rem, .95fr); border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.game-entry__visual { position: relative; min-height: 28rem; display: grid; place-items: center; padding: 2rem; overflow: hidden; background: var(--ink); text-decoration: none; isolation: isolate; }
.game-entry__visual::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .38; background-position: center; background-size: cover; filter: grayscale(.25) contrast(1.15); }
.game-entry__visual--prisma::after { background-image: url("./assets/game-pages/GAME01_prisma-abyss/prisma-abyss-keyart.webp"); }
.game-entry__visual--kanji::after { opacity: .5; background-image: linear-gradient(rgba(9,12,18,.08), rgba(9,12,18,.48)), url("./assets/game-pages/GAME02_kanji-crash-keyboard/kanji-crash-start.webp"); background-position: center; filter: saturate(.8) contrast(1.08); }
.game-entry__visual:hover::after { transform: scale(1.025); }
.game-entry__number { position: absolute; left: 1rem; top: .7rem; margin: 0; color: var(--paper-light); font-family: var(--font-display); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.game-entry__logo { width: min(90%, 34rem); filter: drop-shadow(0 6px 18px rgba(0,0,0,.65)); }
.game-entry__wordmark { width: min(92%, 34rem); color: #fffdf6; text-align: left; text-shadow: 0 5px 18px rgba(0,0,0,.9); }
.game-entry__wordmark span { display: block; margin-bottom: .15rem; color: #55e2b7; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 900; }
.game-entry__wordmark strong { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.05em; }
.cover-link-label { position: absolute; right: 0; bottom: 0; padding: .6rem .8rem; color: var(--paper-light); background: var(--accent); font-family: var(--font-display); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.game-entry__body { padding: clamp(1.5rem, 4vw, 3rem); }
.game-entry + .game-entry { margin-top: 2.5rem; }
.game-entry__title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--rule); }
.game-entry__title-row h3 { margin-bottom: 1rem; }
.game-entry__icon { width: 4.5rem; border: 1px solid var(--rule); }
.game-entry__summary { font-size: 1.05rem; }
.tag-list { padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tag-list li { padding: .22rem .55rem; border: 1px solid var(--rule); font-size: .72rem; font-weight: 700; }
.game-entry__actions, .detail-actions, .editor-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.game-entry__caution { padding-left: 1rem; color: var(--muted); border-left: 4px solid var(--accent); font-size: .82rem; }
.next-file { margin-top: 2rem; padding: 1rem 1.25rem; display: flex; gap: 2rem; align-items: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.next-file span { color: var(--accent); font-family: var(--font-display); font-weight: 900; letter-spacing: .12em; }
.next-file p { margin: 0; }

.ad-area { margin-block: 1rem 3rem; }
.ad-area__label { width: fit-content; margin: 0 0 .3rem; font-size: .68rem; }
.ad-area__placeholder { min-height: 8rem; display: grid; place-content: center; text-align: center; border: 1px dashed var(--muted); background: rgba(255,255,255,.25); color: var(--muted); }
.ad-area__placeholder span { font-family: var(--font-display); font-size: .8rem; font-weight: 900; letter-spacing: .16em; }
.ad-area__placeholder small { display: block; margin-top: .4rem; }
.section--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); }
.log-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--rule); }
.log-list li { border-bottom: 1px solid var(--rule); }
.log-list a { min-height: 64px; display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: center; padding: .8rem .25rem; text-decoration: none; }
.log-list a:hover { padding-left: .75rem; color: var(--paper-light); background: var(--ink); }
.log-list time { font-family: var(--font-display); font-size: .78rem; font-weight: 900; }
.log-list small { color: var(--accent); font-family: var(--font-display); font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.log-list a:hover small { color: var(--paper-light); }
.log-list--archive a { min-height: 88px; font-size: 1.02rem; }
.news-loading, .news-empty { padding: 1rem 0; color: var(--muted); }
.text-arrow { display: inline-block; margin-top: 1.2rem; color: var(--accent-dark); font-family: var(--font-display); font-weight: 900; text-decoration: none; }
.about-box { padding: clamp(1.5rem,4vw,2.5rem); color: var(--paper-light); background: var(--blue); box-shadow: var(--shadow); }
.about-box h2 { font-size: 2rem; }
.about-box .eyebrow { color: #f0b0a2; }
.text-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.site-footer { margin-top: var(--space-5); color: var(--paper-light); background: var(--ink); border-top: 6px double var(--paper-dark); }
.site-footer__inner { width: min(calc(100% - 2rem), var(--content)); min-height: 9rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-policy-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1rem; font-size: .78rem; }
.footer-policy-nav a { color: var(--paper-light); text-decoration-color: var(--paper-dark); }
.footer-policy-nav a:hover { color: var(--paper-dark); }
.site-footer p { margin: 0; }
.site-footer strong { font-family: var(--font-display); letter-spacing: .08em; }
.site-footer small { color: var(--paper-dark); letter-spacing: .12em; }

.subpage { padding-block: clamp(3.5rem, 8vw, 7rem); }
.page-masthead { position: relative; margin-bottom: var(--space-5); padding: clamp(2rem, 5vw, 4rem); border: 3px solid var(--rule); border-left-width: 12px; background: var(--paper-light); box-shadow: var(--shadow); overflow: hidden; }
.page-masthead::after { content: "ARCHIVE"; position: absolute; right: -1rem; bottom: -2rem; color: rgba(32,29,23,.06); font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); font-weight: 900; letter-spacing: -.05em; }
.page-masthead h1 { margin-bottom: 1rem; font-size: clamp(2.6rem, 7vw, 5rem); }
.page-masthead p:last-child { max-width: 42rem; margin-bottom: 0; }
.page-masthead--developer::after { content: "MAKER"; }
.news-archive { max-width: 58rem; }
.news-article { max-width: 48rem; margin: 0 auto; padding: clamp(1.5rem,5vw,4.5rem); border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.news-article__header { padding-bottom: 2rem; border-bottom: 4px double var(--rule); }
.news-article__header time { display: block; margin-bottom: .75rem; color: var(--muted); font-family: var(--font-display); font-weight: 900; }
.news-article__header h1 { margin-bottom: 1rem; font-size: clamp(2rem, 6vw, 4rem); }
.news-article__summary { margin: 0; font-size: 1.12rem; font-weight: 700; }
.news-article__body { padding-block: 2rem; font-size: 1rem; line-height: 2; }
.news-article__body h2 { margin-top: 2.5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--rule); font-size: 1.55rem; }
.article-note { margin: 2rem 0; padding: 1rem 1.25rem; border: 2px solid var(--accent); background: rgba(164,58,45,.07); }
.article-note p { margin-bottom: 0; }
.news-article__footer { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--rule); }

.detail-page { padding-block: clamp(2rem, 6vw, 5rem); }
.game-detail-hero { position: relative; min-height: clamp(28rem, 65vw, 50rem); overflow: hidden; border: 3px solid var(--rule); background: var(--ink); box-shadow: var(--shadow); }
.game-detail-hero__image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: brightness(.52) saturate(.85); }
.game-detail-hero__overlay { position: absolute; inset: 0; z-index: 1; padding: clamp(1.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper-light); background: linear-gradient(transparent 25%, rgba(15,13,10,.88)); }
.game-detail-hero__overlay img { width: min(42rem, 88%); filter: drop-shadow(0 8px 20px rgba(0,0,0,.8)); }
.game-detail-hero--kanji { min-height: clamp(27rem, 58vw, 46rem); }
.game-detail-hero--kanji .game-detail-hero__image { filter: brightness(.43) saturate(.72) contrast(1.05); }
.game-detail-wordmark { width: min(52rem, 92%); margin-bottom: 1rem; text-shadow: 0 6px 22px rgba(0,0,0,.9); }
.game-detail-wordmark span, .game-detail-wordmark small { display: block; font-family: var(--font-display); font-weight: 900; letter-spacing: .08em; }
.game-detail-wordmark span { color: #55e2b7; font-size: clamp(1.45rem, 3vw, 2.35rem); }
.game-detail-wordmark strong { display: block; font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); line-height: .98; letter-spacing: -.06em; }
.game-detail-wordmark small { margin-top: .85rem; color: #c7d8ff; font-size: clamp(.68rem, 1.5vw, .95rem); }
.game-detail-hero__overlay > p:last-child { max-width: 40rem; font-size: clamp(1rem,2vw,1.25rem); }
.file-index { position: absolute; top: 1.25rem; left: 1.25rem; margin: 0; padding: .3rem .6rem; color: var(--ink); background: var(--paper-light); font-family: var(--font-display); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.detail-actions--top { margin: 2rem 0 4rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(17rem,.65fr); gap: clamp(2rem,7vw,6rem); align-items: start; margin-block: 4rem; }
.prose-block { max-width: 44rem; }
.prose-block h1 { margin-bottom: 1rem; font-size: clamp(2.8rem,7vw,5.5rem); }
.spec-sheet { padding: 1.5rem; border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.feature-spread { margin-block: var(--space-6); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.feature-card { min-height: 16rem; padding: 1.5rem; border: 2px solid var(--rule); background: var(--paper-light); box-shadow: 4px 4px 0 var(--ink); }
.feature-card:nth-child(2) { transform: translateY(1.5rem); }
.feature-card__number { color: var(--accent); font-family: var(--font-display); font-size: 3rem; font-weight: 900; line-height: 1; }
.feature-card h3 { margin-top: 2rem; border-bottom: 1px solid var(--rule); }
.image-report { margin-block: var(--space-6); }
.image-report figure { margin: 0; }
.image-report__scene { overflow: hidden; border: 2px solid var(--rule); background: var(--ink); box-shadow: var(--shadow); }
.image-report__scene img { width: 100%; aspect-ratio: 2401 / 1352; object-fit: cover; }
.image-report__scene--screen img { aspect-ratio: auto; object-fit: contain; }
.image-report__scene figcaption { padding: .85rem 1rem; color: var(--paper-light); background: var(--ink); font-size: .82rem; line-height: 1.7; }
.image-report__collection { margin-top: 2rem; }
.image-report__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; padding-bottom: .55rem; border-bottom: 2px solid var(--rule); }
.image-report__heading p, .image-report__heading h2, .image-report__heading h3 { margin: 0; }
.image-report__heading p { color: var(--accent); font-family: var(--font-display); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.image-report__heading h2, .image-report__heading h3 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: .04em; }
.image-report__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.image-report__portrait { position: relative; min-width: 0; overflow: hidden; border: 2px solid var(--rule); box-shadow: 4px 4px 0 var(--ink); }
.image-report__portrait img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.image-report__grid--characters .image-report__portrait { background: var(--paper-light); }
.image-report__grid--characters .image-report__portrait img { object-fit: cover; }
.image-report__grid--monsters .image-report__portrait { background: var(--ink); }
.image-report__grid--monsters .image-report__portrait img { padding: clamp(.4rem, 2vw, 1rem); }
.notice-panel { margin-block: var(--space-6); padding: clamp(1.5rem,4vw,3rem); border: 3px double var(--rule); background: var(--paper-light); }
.rule-list { padding: 0; list-style: none; }
.rule-list li { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px dotted var(--rule); }
.asset-note { margin-top: 2rem; color: var(--muted); font-size: .78rem; }


.game-detail-title-lockup { width: min(46rem, 100%); margin-bottom: 1rem; padding: .9rem 1rem; display: flex; align-items: center; gap: 1rem; border-left: 5px solid #55e2b7; background: rgba(17,19,27,.82); box-shadow: 5px 5px 0 rgba(0,0,0,.48); }
.game-detail-title-lockup span { display: block; color: #55e2b7; font-family: var(--font-display); font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.game-detail-title-lockup strong { display: block; margin-top: .2rem; color: var(--paper-light); font-family: var(--font-display); font-size: clamp(1.45rem, 3.2vw, 2.45rem); line-height: 1.18; letter-spacing: -.03em; }
.game-detail-hero__overlay .game-detail-icon { width: clamp(4rem, 7vw, 5.5rem); max-width: none; flex: 0 0 auto; margin: 0; border: 1px solid rgba(248,242,229,.72); background: #171923; box-shadow: none; filter: none; }
.feature-grid--kanji { grid-template-columns: repeat(2, minmax(0,1fr)); }
.feature-grid--kanji .feature-card { min-height: 17rem; }
.feature-grid--kanji .feature-card:nth-child(2) { transform: translateY(1.25rem); }
.feature-grid--kanji .feature-card:nth-child(4) { transform: translateY(1.25rem); }
.mode-comparison { margin-block: var(--space-6); }
.mode-comparison__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1rem, 3vw, 2rem); }
.mode-card { position: relative; min-height: 27rem; padding: clamp(1.5rem, 4vw, 3rem); overflow: hidden; border: 3px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.mode-card::after { content: "30"; position: absolute; right: -1rem; bottom: -4rem; z-index: 0; color: rgba(32,29,23,.055); font-family: var(--font-display); font-size: clamp(10rem, 28vw, 19rem); font-weight: 900; line-height: 1; }
.mode-card--danger::after { content: "20"; }
.mode-card > * { position: relative; z-index: 1; }
.mode-card__index { margin: 0 0 1.25rem; color: var(--accent); font-family: var(--font-mono); font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.mode-card h3 { margin-bottom: 1.4rem; padding-bottom: .75rem; border-bottom: 3px double var(--rule); font-size: clamp(1.5rem, 4vw, 2.25rem); }
.mode-card h3 strong { color: var(--accent); font-size: 1.7em; line-height: .7; }
.mode-card ul { margin: 1.5rem 0 0; padding-left: 1.35rem; font-weight: 700; }
.mode-card li + li { margin-top: .5rem; }
.mechanic-report { margin-block: var(--space-6); }
.mechanic-flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); list-style: none; }
.mechanic-flow li { min-width: 0; padding: 1.5rem; border-right: 1px solid var(--rule); }
.mechanic-flow li:last-child { border-right: 0; }
.mechanic-flow li > span { display: block; margin-bottom: 1.5rem; color: var(--accent); font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.mechanic-flow h3 { margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
.mechanic-flow p { margin: 0; color: var(--muted); font-size: .9rem; }
.record-report { display: grid; grid-template-columns: minmax(18rem,.72fr) minmax(0,1.28fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-block: var(--space-6); }
.record-report__copy h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.18; }
.record-report__image { margin: 0; overflow: hidden; border: 2px solid var(--rule); background: var(--ink); box-shadow: var(--shadow); }
.record-report__image img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.record-report__image figcaption { padding: .8rem 1rem; color: var(--paper-light); background: var(--ink); font-size: .8rem; }

.developer-grid { display: grid; grid-template-columns: minmax(19rem,.95fr) minmax(0,1.05fr); gap: clamp(2rem,5vw,4rem); align-items: stretch; }
.developer-profile { padding: clamp(1.35rem,3vw,2rem); border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.developer-file-stamp { width: fit-content; margin: 0 0 1rem; padding: .2rem .65rem; color: var(--accent); border: 2px solid var(--accent); font-family: var(--font-display); font-size: .78rem; font-weight: 900; letter-spacing: .13em; line-height: 1.55; transform: rotate(-2deg); }
.developer-avatar { width: 5.5rem; aspect-ratio: 1; margin: 0 0 1rem; object-fit: cover; border: 1px solid var(--rule); }
.developer-meta { margin: 0; }
.developer-meta div { display: grid; grid-template-columns: 5.25rem minmax(0,1fr); gap: .75rem; padding: .62rem 0; border-bottom: 1px dotted var(--rule); align-items: center; }
.developer-meta dt { color: var(--muted); font-family: var(--font-display); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.developer-meta dd { margin: 0; font-size: .86rem; font-weight: 700; }
.developer-meta a { font-weight: 800; }
.developer-notes { min-width: 0; }
.bug-report-note { margin-top: 2rem; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .86rem; }
.bug-report-note p { margin: 0; }
.bug-report-note a { color: var(--accent); font-weight: 900; }
.numbered-notes { margin: 0; padding: 0; list-style: none; counter-reset: note; }
.numbered-notes li { counter-increment: note; position: relative; padding: 1.25rem 1rem 1.25rem 5rem; border-top: 1px solid var(--rule); }
.numbered-notes li::before { content: "0" counter(note); position: absolute; left: .5rem; top: .6rem; color: var(--accent); font-family: var(--font-display); font-size: 2.3rem; font-weight: 900; }
.numbered-notes strong, .numbered-notes span { display: block; }
.numbered-notes span { color: var(--muted); }
.maker-policy { padding: 1.6rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.maker-policy p { margin-top: 0; }
.maker-policy p + p { margin-top: 1.1rem; }
.maker-policy p:last-child { margin-bottom: 0; color: var(--muted); }

.policy-document { max-width: 52rem; margin: auto; padding: clamp(1.5rem,5vw,4rem); border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.policy-local-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.policy-local-nav a { min-height: 42px; padding: .45rem .75rem; display: inline-flex; align-items: center; border: 1px solid var(--rule); font-size: .78rem; font-weight: 800; text-decoration: none; }
.policy-local-nav a[aria-current="page"], .policy-local-nav a:hover { color: var(--paper-light); background: var(--ink); }
.policy-document ul { padding-left: 1.4rem; }
.policy-document li + li { margin-top: .45rem; }
.policy-date { padding-bottom: 1rem; border-bottom: 3px double var(--rule); color: var(--muted); font-size: .85rem; }
.policy-document section { padding-block: 1.25rem; border-bottom: 1px dotted var(--rule); }
.policy-document section h2 { font-size: 1.35rem; }

.editor-body { background: #e4dcc9; }
.editor-page { width: min(calc(100% - 2rem), 88rem); margin: auto; padding-block: 3rem; }
.editor-warning { margin-bottom: 2rem; padding: 1rem 1.25rem; border: 2px solid var(--accent); background: var(--paper-light); }
.editor-warning p { margin-bottom: 0; }
.editor-grid { display: grid; grid-template-columns: minmax(20rem,.85fr) minmax(0,1.15fr); gap: 2rem; align-items: start; }
.editor-form, .editor-preview { padding: 1.5rem; border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.editor-form label { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 800; }
.editor-form label small { color: var(--muted); font-weight: 400; }
.editor-form input, .editor-form textarea { width: 100%; padding: .7rem .8rem; color: var(--ink); background: #fffdf6; border: 1px solid var(--rule); border-radius: 0; }
.editor-form textarea { resize: vertical; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.editor-preview { position: sticky; top: calc(var(--header-offset) + 1rem); max-height: calc(100vh - var(--header-offset) - 2rem); overflow: auto; }
.news-article--preview { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
.editor-status { min-height: 1.7em; color: var(--blue); font-weight: 800; }
.editor-status.is-error { color: var(--accent); }
.editor-steps { margin-top: 2rem; padding: 1.5rem; border: 2px dashed var(--rule); }

@media (max-width: 850px) {
  :root { --header-height: 8.75rem; --header-offset: calc(var(--header-height) + .75rem); }
  .site-header__inner { padding-block: .75rem; align-items: flex-start; flex-direction: column; }
  .global-nav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .global-nav a { border-left: 0; border-right: 0; }
  .hero, .game-entry, .section--split, .detail-grid, .developer-grid, .editor-grid, .record-report { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__note { max-width: 31rem; transform: none; }
  .game-entry__visual { min-height: 20rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:nth-child(2), .feature-grid--kanji .feature-card:nth-child(4) { min-height: auto; transform: none; }
  .mode-comparison__grid { grid-template-columns: 1fr; }
  .mechanic-flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mechanic-flow li:nth-child(2) { border-right: 0; }
  .mechanic-flow li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .editor-preview { position: static; max-height: none; }
}

@media (max-width: 560px) {
  .hero, .section, .ad-area, .subpage, .detail-page { width: min(calc(100% - 1rem), var(--content)); }
  .section-heading, .section-heading--compact { grid-template-columns: 1fr; gap: .25rem; }
  .game-entry__visual { min-height: 16rem; }
  .game-entry__body { padding: 1.25rem; }
  .next-file { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .log-list a { grid-template-columns: 1fr; gap: .2rem; }
  .log-list small { order: -1; }
  .site-footer__inner, .news-article__footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .page-masthead { padding: 1.5rem; }
  .news-article, .policy-document { padding: 1.25rem; }
  .rule-list li { grid-template-columns: 1fr; gap: .25rem; }
  .game-detail-title-lockup { gap: .75rem; padding: .75rem; }
  .game-detail-title-lockup span { font-size: .62rem; }
  .game-detail-title-lockup strong { font-size: 1.25rem; }
  .game-detail-hero__overlay .game-detail-icon { width: 3.75rem; }
  .mechanic-flow { grid-template-columns: 1fr; }
  .mechanic-flow li, .mechanic-flow li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--rule); }
  .mechanic-flow li:last-child { border-bottom: 0; }
  .image-report__grid { gap: .5rem; }
  .image-report__portrait { box-shadow: 3px 3px 0 var(--ink); }
  .image-report__heading { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .spec-list div, .spec-sheet dl div { grid-template-columns: 6.5rem 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* PRISMA ABYSS — official feature page, 2026-08-21 */
.prisma-page-v2 {
  --prisma-night: #151419;
  --prisma-night-soft: #211f25;
  --prisma-paper: #f5ecda;
  --prisma-gold: #b89b62;
  --prisma-red: #a84335;
  --prisma-line: #8e806c;
  --prisma-copy: #514b43;
  --prisma-nav-height: 4.6rem;
  overflow: clip;
}

.prisma-page-v2 section,
.prisma-page-v2 [id] { scroll-margin-top: calc(var(--header-offset) + var(--prisma-nav-height)); }

.prisma-hero-v2 {
  min-height: clamp(34rem, 64vw, 52rem);
  border-color: #29262c;
  background: var(--prisma-night);
}

.prisma-hero-v2 .game-detail-hero__image {
  filter: brightness(.48) saturate(.82) contrast(1.08);
  transform: scale(1.01);
}

.prisma-hero-v2__overlay {
  align-items: flex-start;
  justify-content: flex-end;
  background:
    linear-gradient(90deg, rgba(10, 9, 13, .8) 0%, rgba(10, 9, 13, .28) 58%, transparent 82%),
    linear-gradient(180deg, rgba(10, 9, 13, .05) 24%, rgba(10, 9, 13, .9) 100%);
}

.prisma-hero-v2__overlay .file-index {
  margin-bottom: clamp(1.5rem, 4vw, 3.25rem);
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(245, 236, 218, .48);
  font-size: .67rem;
  letter-spacing: .18em;
}

.prisma-hero-v2__overlay .prisma-hero-v2__logo {
  width: min(43rem, 85%);
  margin-left: clamp(-2rem, -3vw, -.5rem);
}

.prisma-hero-v2__copy {
  max-width: 46rem;
  margin: .25rem 0 1.25rem;
  color: #f7f0e4;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: .04em;
  text-shadow: 0 2px 14px #000;
}

.prisma-hero-v2__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.prisma-hero-v2__meta span {
  padding: 5px 8px;
  color: #d8cdbd;
  border: 1px solid rgba(216, 205, 189, .52);
  background: rgba(12, 11, 15, .55);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.prisma-local-nav {
  position: sticky;
  top: calc(var(--header-height) + var(--subnav-height));
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 236, 218, .97);
  box-shadow: 0 8px 18px rgba(44, 37, 29, .08);
  backdrop-filter: blur(8px);
}

.prisma-local-nav a {
  min-width: 0;
  min-height: 4.6rem;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  border-right: 1px solid var(--rule);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.prisma-local-nav a:last-child { border-right: 0; }
.prisma-local-nav span { color: var(--prisma-red); font-size: .62rem; }
.prisma-local-nav a:hover,
.prisma-local-nav a:focus-visible,
.prisma-local-nav a[aria-current="location"] { color: var(--paper-light); background: var(--prisma-night); }
.prisma-local-nav a[aria-current="location"] span { color: #e18a78; }

.prisma-story-v2 {
  grid-template-columns: minmax(0, .92fr) minmax(28rem, 1.08fr);
  margin-block: clamp(4rem, 9vw, 9rem);
}

.prisma-story-v2 .prisma-story__copy h1 {
  font-size: clamp(2.2rem, 2.8vw, 3.4rem);
  line-height: 1.09;
  letter-spacing: -.045em;
}

.prisma-heading-lines > span { display: block; word-break: keep-all; overflow-wrap: normal; }

@media (min-width: 1281px) {
  .prisma-heading-lines span { white-space: nowrap; }
}

.prisma-pullquote {
  margin-top: 2rem;
  padding: 1rem 0 1rem 1.25rem;
  color: var(--ink);
  border-left: 5px solid var(--prisma-red);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
}

.prisma-cast {
  margin-inline: calc(-1 * var(--page-gutter));
  padding: clamp(4rem, 8vw, 8rem) var(--page-gutter);
  color: #eee6d8;
  background:
    linear-gradient(120deg, rgba(168, 67, 53, .12), transparent 35%),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.035) 25%),
    var(--prisma-night);
  border-block: 1px solid #39353e;
}

.prisma-cast__heading {
  width: min(82rem, 100%);
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(21rem, .65fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
}

.prisma-cast__heading .eyebrow { grid-column: 1 / -1; align-self: start; margin-bottom: 0; color: #d87564; }
.prisma-cast__heading h2 {
  margin: 0;
  color: #fff9ef;
  font-size: clamp(2.4rem, 3.1vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.prisma-cast__heading > p:last-child { margin: 0; color: #bfb5a7; }

.prisma-cast__feature {
  width: min(82rem, 100%);
  height: clamp(42rem, 50vw, 46rem);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(26rem, .86fr) minmax(35rem, 1.14fr);
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid #5c554d;
  background: #1b1a1f;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, .3);
}

.prisma-cast__art {
  min-width: 0;
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 50%, rgba(8,8,11,.72)),
    radial-gradient(circle at 50% 45%, #4d4544 0, #29262d 47%, #17161b 75%);
  border-right: 1px solid #5c554d;
}

.prisma-cast__art::after {
  content: "PRISMA ABYSS";
  position: absolute;
  right: -2.3rem;
  bottom: 4.2rem;
  color: rgba(255,255,255,.09);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 950;
  letter-spacing: .08em;
  transform: rotate(-90deg);
  transform-origin: bottom right;
}

.prisma-cast__art img {
  width: min(100%, 37rem);
  height: 100%;
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 16px rgba(0,0,0,.58));
  transition: opacity .14s ease, transform .22s ease;
}
.prisma-cast__art img.is-changing { opacity: .4; transform: translateY(8px); }
.prisma-cast__art img.is-portrait {
  width: min(84%, 32rem);
  height: auto;
  max-height: 78%;
  margin-bottom: 3.5rem;
}

.prisma-cast__number {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  color: #d87564;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.prisma-cast__profile {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  z-index: 3;
  align-self: end;
  margin: clamp(.8rem, 1.6vw, 1.25rem);
  padding: clamp(.85rem, 1.4vw, 1.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1c1a1a;
  background: rgba(255, 252, 245, .7);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  backdrop-filter: blur(5px);
}

.prisma-cast__index,
.prisma-cast__note {
  display: none;
  color: #5f574e;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.prisma-cast__job { margin: 0 0 .2rem; color: #a84335; font-size: .76rem; font-weight: 900; }
.prisma-cast__profile h3 { margin: 0; color: #171619; font-size: clamp(2.35rem, 3.4vw, 4rem); line-height: 1.02; }
.prisma-cast__profile > p:not(.prisma-cast__index, .prisma-cast__job, .prisma-cast__note) { max-width: 38rem; margin: .5rem 0 0; color: #403b36; font-size: clamp(.76rem, 1vw, .9rem); line-height: 1.62; }
.prisma-cast__rule { display: none; }

.prisma-cast__mobile-guide { display: none; }

.prisma-cast__selector {
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
}

.prisma-cast__selector > div { min-width: 0; }
.prisma-cast__face {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid #615a53;
  border-radius: 0;
  background-color: #2d2a30;
  background-image: url("./assets/game-pages/GAME01_prisma-abyss/prisma-character-lineup/character-faces.webp");
  background-repeat: no-repeat;
  background-size: 900% 300%;
  background-position: calc(var(--face-x) * 12.5%) calc(var(--face-y) * 50%);
  cursor: pointer;
  transition: border-color .16s ease, filter .16s ease, transform .16s ease;
}
.prisma-cast__face::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; }
.prisma-cast__face span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.3rem .2rem .25rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(7,7,10,.9));
  font-size: .57rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.prisma-cast__face:hover { filter: brightness(1.12); transform: translateY(-2px); }
.prisma-cast__face[aria-pressed="true"] { border-color: #d87564; }
.prisma-cast__face[aria-pressed="true"]::after { border-color: #a84335; }
.prisma-cast__face--image {
  background-image: var(--face-image);
  background-position: center;
  background-size: cover;
}

.prisma-cast__more {
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: .6rem;
  border: 1px solid #615a53;
  background:
    linear-gradient(145deg, rgba(216, 117, 100, .16), transparent 58%),
    #252329;
}
.prisma-cast__more p { margin: 0; text-align: center; }
.prisma-cast__more strong,
.prisma-cast__more span { display: block; }
.prisma-cast__more strong { color: #fff4e8; font-size: clamp(.62rem, 1vw, .78rem); letter-spacing: .07em; }
.prisma-cast__more span { margin-top: .35rem; color: #9e958a; font-size: .52rem; line-height: 1.45; }

.prisma-party-build {
  width: min(82rem, 100%);
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #5c554d;
  border-left: 1px solid #5c554d;
}
.prisma-party-build > div { padding: 1.25rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; border-right: 1px solid #5c554d; border-bottom: 1px solid #5c554d; }
.prisma-party-build span { color: #d87564; font-size: 2.8rem; font-weight: 950; line-height: 1; }
.prisma-party-build p { margin: 0; color: #bfb5a7; font-size: .85rem; }
.prisma-party-build strong { display: block; margin-bottom: .35rem; color: #fff; font-size: .66rem; letter-spacing: .12em; }

.prisma-battle-specs { margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); list-style: none; }
.prisma-battle-specs li { min-width: 0; padding: .8rem; color: var(--muted); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: .68rem; text-align: center; }
.prisma-battle-specs strong { display: block; color: var(--prisma-red); font-size: .85rem; }

.prisma-adventure-strip { margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(7px, 1vw, 14px); }
.prisma-adventure-strip figure { min-width: 0; aspect-ratio: 16 / 9; position: relative; margin: 0; overflow: hidden; background: #17161a; border: 1px solid var(--rule); }
.prisma-adventure-strip img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .4s ease; }
.prisma-adventure-strip figure:hover img { transform: scale(1.018); }
.prisma-adventure-strip figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 1.8rem .75rem .55rem; color: #fff9ef; background: linear-gradient(transparent, rgba(8,7,10,.9)); font-size: .58rem; font-weight: 800; letter-spacing: .07em; }
.prisma-adventure-strip figcaption span { margin-right: .55rem; color: #d87564; }

.prisma-hack-slash { margin-block: clamp(5rem, 10vw, 9rem); }
.prisma-hack-slash__heading {
  max-width: 82rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, .92fr);
  column-gap: clamp(2.5rem, 6vw, 7rem);
  align-items: end;
}
.prisma-hack-slash__heading .eyebrow { grid-column: 1 / -1; }
.prisma-hack-slash__heading h2 { margin: 0; font-size: clamp(2.4rem, 3vw, 3.5rem); line-height: 1.06; letter-spacing: -.045em; }
.prisma-hack-slash__heading > p:last-child { margin: 0; color: var(--muted); }
.prisma-loop-v2__track { margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 2px solid var(--rule); list-style: none; box-shadow: var(--shadow); }
.prisma-loop-v2__track li { min-width: 0; position: relative; padding: clamp(1rem, 2vw, 1.8rem); background: var(--paper-light); border-right: 1px solid var(--rule); }
.prisma-loop-v2__track li:last-child { color: #fff; background: var(--prisma-red); border-right: 0; }
.prisma-loop-v2__track li:not(:last-child)::after { content: ""; width: .65rem; height: .65rem; position: absolute; z-index: 1; top: 50%; right: -.36rem; border-top: 2px solid var(--rule); border-right: 2px solid var(--rule); background: var(--paper-light); transform: translateY(-50%) rotate(45deg); }
.prisma-loop-v2__track span,
.prisma-loop-v2__track strong,
.prisma-loop-v2__track small { display: block; }
.prisma-loop-v2__track span { margin-bottom: 2.8rem; color: var(--prisma-red); font-size: 1.9rem; font-weight: 950; }
.prisma-loop-v2__track li:last-child span { color: #fff0e8; }
.prisma-loop-v2__track strong { font-size: 1.05rem; }
.prisma-loop-v2__track small { margin-top: .25rem; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .11em; }
.prisma-loop-v2__track li:last-child small { color: #f5d9d2; }

.prisma-loot {
  display: grid;
  grid-template-columns: minmax(26rem, 1.05fr) minmax(20rem, .95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-block: clamp(5rem, 10vw, 10rem);
}
.prisma-hack-slash .prisma-loot { margin: clamp(4rem, 7vw, 6.5rem) 0 0; }
.prisma-loot__archive { overflow: hidden; border: 2px solid var(--rule); background: #1a191e; box-shadow: var(--shadow); }
.prisma-loot__archive-head { min-height: 4rem; padding: .8rem 1rem; display: grid; grid-template-columns: 1fr auto; align-items: center; color: #fff7ea; border-bottom: 1px solid #554e47; }
.prisma-loot__archive-head span { font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.prisma-loot__archive-head strong { grid-row: 1 / 3; grid-column: 2; color: #d87564; font-size: 2.1rem; line-height: 1; }
.prisma-loot__archive-head small { color: #8f887e; font-size: .55rem; letter-spacing: .1em; }
.prisma-loot__archive img { width: 100%; max-height: 39rem; padding: 1.1rem; object-fit: contain; image-rendering: pixelated; background: radial-gradient(circle, #312e34 0, #1a191e 68%); }
.prisma-loot__archive > p { margin: 0; padding: 1rem 1.2rem; color: #a9a093; border-top: 1px solid #554e47; font-size: .75rem; }
.prisma-loot__copy h2 { font-size: clamp(2.35rem, 3vw, 3.5rem); line-height: 1.06; }
.prisma-loot__systems { margin-top: 2rem; border-top: 1px solid var(--rule); }
.prisma-loot__systems article { display: grid; grid-template-columns: 2.3rem 8.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.prisma-loot__systems span { color: var(--prisma-red); font-size: .65rem; font-weight: 900; }
.prisma-loot__systems h3 { margin: 0; font-size: .67rem; letter-spacing: .08em; }
.prisma-loot__systems p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }

.prisma-bestiary-v2 { margin-block: clamp(5rem, 10vw, 10rem); }
.prisma-bestiary-v2__heading { max-width: 70rem; display: grid; grid-template-columns: minmax(0, 1fr); }
.prisma-bestiary-v2__heading .eyebrow { grid-column: 1; }
.prisma-bestiary-v2__heading h2 { grid-column: 1; font-size: clamp(2.35rem, 3vw, 3.5rem); line-height: 1.06; }
.prisma-bestiary-v2__heading > p:not(.eyebrow) { grid-column: 1; max-width: 48rem; }
.prisma-bestiary-v2 .prisma-bestiary__grid { margin-top: 2.5rem; }
.prisma-bestiary-v2 .prisma-bestiary__grid figure { border-color: #585149; }
.prisma-bestiary-v2 .prisma-bestiary__grid figure > div { min-height: 15rem; }
.prisma-bestiary-v2 .prisma-bestiary__grid img { height: 13.5rem; }
.prisma-book-line { margin-top: 1rem; padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 2rem; color: #d9cfc0; background: var(--prisma-night); border: 1px solid #585149; }
.prisma-book-line span { color: #d87564; font-size: .65rem; font-weight: 900; letter-spacing: .14em; }
.prisma-book-line p { margin: 0; font-weight: 700; }

.prisma-depth-v2 {
  margin-inline: calc(-1 * var(--page-gutter));
  padding: clamp(4rem, 8vw, 8rem) var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(22rem, .8fr) minmax(28rem, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  color: #dcd3c5;
  border: 0;
  border-block: 1px solid #3d3841;
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 48, 70, .36), transparent 28%),
    linear-gradient(140deg, #211923, #111116 65%);
}
.prisma-depth-v2 .prisma-depth__intro { position: sticky; top: calc(var(--header-offset) + 1rem); align-self: start; }
.prisma-depth-v2 .prisma-depth__intro h2 { color: #fff8ed; font-size: clamp(2.35rem, 2.75vw, 3.25rem); line-height: 1.06; }
.prisma-depth-v2__features { border-top: 1px solid #625866; }
.prisma-depth-v2__features article { padding: 1.6rem 0 2rem; border-bottom: 1px solid #625866; }
.prisma-depth-v2__features article > p:first-child { margin: 0 0 1.5rem; display: flex; justify-content: space-between; color: #c16c78; font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.prisma-depth-v2__features b { color: #776d79; font-size: 1.7rem; }
.prisma-depth-v2__features h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.prisma-depth-v2__features article > p:last-child { max-width: 42rem; margin-bottom: 0; color: #bdb2ba; }

.prisma-browser {
  margin-block: clamp(5rem, 10vw, 9rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 3px double var(--rule);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}
.prisma-browser h2 { font-size: clamp(2.25rem, 4.4vw, 4.6rem); line-height: 1.06; }
.prisma-browser > p:not(.eyebrow) { max-width: 50rem; }
.prisma-browser dl { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.prisma-browser dl div { min-width: 0; padding: 1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.prisma-browser dt { color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.prisma-browser dd { margin-top: .45rem; color: var(--ink); font-size: .85rem; font-weight: 900; overflow-wrap: anywhere; }

.prisma-page-v2 .prisma-notice { margin-top: clamp(4rem, 8vw, 7rem); }
.prisma-page-v2 .prisma-end-actions { margin-bottom: 0; }

@media (max-width: 1280px) {
  .prisma-cast__heading { grid-template-columns: 1fr 1.3fr; }
  .prisma-cast__heading .eyebrow { grid-column: 1 / -1; }
  .prisma-cast__heading > p:last-child { grid-column: 2; }
  .prisma-cast__feature { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(31rem, calc(100svh - var(--header-height) - var(--subnav-height) - var(--prisma-nav-height) - 9.4rem)); }
  .prisma-cast__mobile-guide {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: .8rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #d87564;
    border-bottom: 1px solid #5c554d;
    background: #1b1a1f;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .prisma-cast__mobile-guide span { color: #9e958a; font-weight: 700; letter-spacing: .04em; }
  .prisma-cast__selector {
    position: relative;
    z-index: 4;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 5.8rem;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #5c554d;
    background: rgba(27, 26, 31, .96);
    box-shadow: 0 9px 18px rgba(0, 0, 0, .2);
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .prisma-cast__selector::-webkit-scrollbar { display: none; }
  .prisma-cast__selector > div { scroll-snap-align: center; }
  .prisma-cast__art { grid-column: 1; grid-row: 3; min-height: 31rem; border-right: 0; }
  .prisma-cast__art img { height: 100%; }
  .prisma-cast__profile { width: min(46rem, calc(100% - 1.3rem)); grid-column: 1; grid-row: 3; justify-self: start; margin: .65rem; }
  .prisma-cast__noscript { grid-column: 1; grid-row: 4; }
  .prisma-loot,
  .prisma-depth-v2 { grid-template-columns: 1fr; }
  .prisma-depth-v2 .prisma-depth__intro { position: static; }
  .prisma-loot__archive { max-width: 50rem; margin-inline: auto; }
  .prisma-bestiary-v2 .prisma-bestiary__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .prisma-page-v2 { --prisma-nav-height: 3.7rem; }
  .prisma-local-nav { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
  .prisma-local-nav::-webkit-scrollbar { display: none; }
  .prisma-local-nav a { min-height: var(--prisma-nav-height); flex: 0 0 9rem; border-bottom: 0; }
  .prisma-story-v2 { grid-template-columns: 1fr; }
  .prisma-cast__heading { grid-template-columns: 1fr; }
  .prisma-cast__heading .eyebrow { grid-column: auto; }
  .prisma-cast__heading > p:last-child { grid-column: auto; }
  .prisma-cast__feature { grid-template-rows: auto auto minmax(27rem, calc(100svh - var(--header-height) - var(--subnav-height) - var(--prisma-nav-height) - 9rem)); overflow: visible; }
  .prisma-cast__art { min-height: 27rem; }
  .prisma-cast__art img { height: 100%; }
  .prisma-cast__art img.is-portrait { width: min(82%, 31rem); height: auto; max-height: 78%; align-self: flex-start; margin: 1.5rem 0 0; }
  .prisma-cast__profile { min-height: 0; align-self: end; }
  .prisma-loop-v2__track { grid-template-columns: 1fr; }
  .prisma-loop-v2__track li { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: 1rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  .prisma-loop-v2__track li:last-child { border-bottom: 0; }
  .prisma-loop-v2__track li:not(:last-child)::after { top: auto; right: auto; bottom: -.36rem; left: 1.9rem; transform: rotate(135deg); }
  .prisma-loop-v2__track span { margin: 0; }
  .prisma-loop-v2__track small { margin: 0; }
  .prisma-hack-slash__heading { grid-template-columns: 1fr; }
  .prisma-hack-slash__heading > p:last-child { margin-top: 1.25rem; }
  .prisma-bestiary-v2__heading { grid-template-columns: 1fr; }
  .prisma-bestiary-v2__heading h2,
  .prisma-bestiary-v2__heading > p:not(.eyebrow) { grid-column: 1; }
}

@media (max-width: 620px) {
  .prisma-hero-v2 { min-height: 29rem; }
  .prisma-hero-v2__overlay { padding: 1.15rem; }
  .prisma-hero-v2__overlay .prisma-hero-v2__logo { width: 100%; margin-left: -.65rem; }
  .prisma-hero-v2__copy br { display: none; }
  .prisma-top-actions { align-items: stretch; }
  .prisma-status { justify-content: center; }
  .prisma-local-nav a { min-height: 3.7rem; padding: .7rem; font-size: .58rem; }
  .prisma-story-v2,
  .prisma-hack-slash,
  .prisma-loot,
  .prisma-bestiary-v2,
  .prisma-browser { margin-left: 0; margin-right: 0; }
  .prisma-story-v2 .prisma-story__copy,
  .prisma-cast__heading,
  .prisma-mobile-showcase__heading,
  .prisma-hack-slash__heading,
  .prisma-loot__copy,
  .prisma-bestiary-v2__heading,
  .prisma-depth__intro { padding-inline: var(--mobile-inset); }
  .prisma-cast__mobile-guide { padding-inline: .75rem; }
  .prisma-cast__selector { grid-auto-columns: 5.35rem; gap: 5px; }
  .prisma-cast__art { min-height: 25rem; }
  .prisma-cast__art img { height: 100%; }
  .prisma-cast__art img.is-portrait { width: 88%; height: auto; max-height: 76%; margin: 1.25rem 0 0; }
  .prisma-cast__profile { margin: .65rem; padding: .75rem .9rem; }
  .prisma-cast__profile h3 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .prisma-cast__profile > p:not(.prisma-cast__index, .prisma-cast__job, .prisma-cast__note) { font-size: .76rem; line-height: 1.62; }
  .prisma-party-build { grid-template-columns: 1fr; }
  .prisma-adventure-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prisma-loot { grid-template-columns: minmax(0, 1fr); }
  .prisma-loot__systems article { grid-template-columns: 2rem 1fr; }
  .prisma-loot__systems p { grid-column: 2; }
  .prisma-bestiary-v2 .prisma-bestiary__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prisma-bestiary-v2 .prisma-bestiary__grid figure > div { min-height: 11rem; }
  .prisma-bestiary-v2 .prisma-bestiary__grid img { height: 10rem; }
  .prisma-book-line { display: block; }
  .prisma-book-line p { margin-top: .5rem; }
  .prisma-browser dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .prisma-page-v2 *,
  .prisma-page-v2 *::before,
  .prisma-page-v2 *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .button, .game-entry__visual::after { transition: color .16s ease, background-color .16s ease, transform .16s ease, padding .16s ease; }
}

@media print {
  .site-header, .site-footer, .ad-area, .button { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .subpage, .detail-page, .news-article, .policy-document { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
}

/* YU-ZORA shared shell alignment v2 (2026-08)
   GAMES keeps its paper/poster visual language, while the outer site shell follows YU-ZORA. */
:root {
  --content: 116rem;
  --page-gutter: clamp(16px, 1.5vw, 28px);
  --mobile-inset: clamp(16px, 4.5vw, 22px);
  --header-height: 68px;
  --subnav-height: 48px;
  --header-offset: calc(var(--header-height) + var(--subnav-height) + .75rem);
}

/* Shared YU-ZORA global header. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--paper-dark);
  background: rgba(248, 242, 229, .98);
}
.site-header__inner {
  width: 100%;
  min-height: var(--header-height);
  margin: 0;
  padding-inline: var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 0;
  background: var(--accent);
  transform: rotate(45deg);
  font-size: 0;
}
.brand__name { white-space: nowrap; font-size: 16px; }
.brand small {
  display: inline;
  margin: 1px 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .08em;
}
.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .05em;
}
.global-nav a {
  min-height: 0;
  padding: 22px 0 20px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.global-nav a[aria-current="page"] {
  color: var(--ink);
  background: transparent;
  border-bottom-color: var(--accent);
}

/* GAMES-specific navigation now sits below the common site shell. */
.games-subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 110;
  min-height: var(--subnav-height);
  border-bottom: 1px solid var(--paper-dark);
  background: rgba(238, 230, 210, .97);
}
.games-subnav__inner {
  width: 100%;
  min-height: var(--subnav-height);
  padding-inline: var(--page-gutter);
  display: flex;
  align-items: stretch;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.games-subnav__inner::-webkit-scrollbar { display: none; }
.games-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding-top: 2px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .055em;
  text-decoration: none;
}
.games-subnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Full-width outer shell. The game archive itself keeps small readable insets. */
.hero,
.section,
.ad-area,
.subpage,
.detail-page {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-gutter);
}
.site-footer__inner {
  width: 100%;
  min-height: 8rem;
  margin: 0;
  padding-inline: var(--page-gutter);
}

/* Game-portal identity stays inside the GAMES hero instead of competing with the global brand. */
.hero-portal-label {
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 10px 14px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  line-height: 1.3;
}
.hero-portal-label strong {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
}
.hero-portal-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
}

/* Match the overall YU-ZORA scale while retaining the archive's condensed display face. */
h1 { font-size: clamp(44px, 4.25vw, 72px); }
h2 { font-size: clamp(28px, 2.6vw, 44px); }
h3 { font-size: clamp(21px, 2vw, 32px); }
.hero__lead,
.lead-copy { font-size: clamp(16px, 1.35vw, 18px); }
.page-masthead h1 { font-size: clamp(36px, 4vw, 58px); }
.prose-block h1 { font-size: clamp(38px, 4.25vw, 64px); }
.news-article__header h1 { font-size: clamp(32px, 3.8vw, 54px); }
.hero h1::after { height: 9px; margin-top: 24px; }

/* Wide displays use the viewport intentionally, not a narrow centered document. */
@media (min-width: 1500px) {
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .55fr); gap: clamp(3rem, 5vw, 6rem); }
  .game-entry { grid-template-columns: minmax(0, 1.12fr) minmax(22rem, .88fr); }
  .game-entry__visual { min-height: clamp(29rem, 31vw, 38rem); }
  .detail-grid { grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .55fr); gap: clamp(3rem, 5vw, 5.5rem); }
  .prose-block { max-width: 52rem; }
}

@media (max-width: 850px) {
  :root {
    --header-height: 57px;
    --subnav-height: 43px;
    --header-offset: calc(var(--header-height) + var(--subnav-height) + .5rem);
    --page-gutter: var(--mobile-inset);
  }
  .site-header__inner {
    min-height: var(--header-height);
    padding: 13px var(--mobile-inset) 9px;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }
  .brand { flex: 0 1 auto; }
  .brand__name { font-size: 16px; }
  .brand small { display: none; }
  .global-nav {
    width: auto;
    max-width: 62%;
    margin-left: auto;
    justify-content: flex-end;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 1px 12px;
    overflow: visible;
    font-size: 10px;
    line-height: 1.1;
  }
  .global-nav a { min-height: 0; padding: 7px 0 10px; }
  .games-subnav__inner { gap: 20px; }
  .games-subnav a { font-size: 10px; }

  .hero,
  .game-entry,
  .section--split,
  .detail-grid,
  .developer-grid,
  .editor-grid,
  .record-report { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__note { max-width: 31rem; transform: none; }
}

@media (max-width: 560px) {
  :root { --page-gutter: 0px; }

  /* Full-bleed cards/media on phones; prose gets its own safe inset. */
  .hero,
  .section,
  .ad-area,
  .subpage,
  .detail-page { width: 100%; padding-inline: 0; }

  .hero { padding-inline: var(--mobile-inset); }
  .hero-portal-label { margin-bottom: 16px; display: grid; gap: 5px; }
  .hero-portal-label strong { font-size: 11px; }
  .hero-portal-label span { font-size: 9px; }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .hero h1::after { width: min(220px, 58vw); height: 8px; margin-top: 20px; }

  #games > .section-heading,
  #games > .next-file { margin-inline: var(--mobile-inset); }
  .section--split { padding-inline: var(--mobile-inset); }
  .subpage > .page-masthead { margin-inline: 0; }
  .subpage > :not(.page-masthead) { margin-inline: var(--mobile-inset); }

  .detail-page > .game-detail-hero { margin-inline: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .detail-page > .detail-actions,
  .detail-page > .detail-grid,
  .detail-page > .feature-spread,
  .detail-page > .mode-comparison,
  .detail-page > .mechanic-report,
  .detail-page > .record-report,
  .detail-page > .notice-panel,
  .detail-page > .asset-note { margin-left: var(--mobile-inset); margin-right: var(--mobile-inset); }
  .detail-page > .image-report { margin-left: 0; margin-right: 0; }

  .site-footer__inner { padding-inline: var(--mobile-inset); }
  .page-masthead { border-left-width: 8px; box-shadow: none; }
  .game-entry { border-left: 0; border-right: 0; box-shadow: none; }
  .ad-area__placeholder { border-left: 0; border-right: 0; }
}

@media print {
  .games-subnav { display: none !important; }
}


/* Final shared-shell tuning: follow the main YU-ZORA header at the same breakpoint. */
.hero {
  min-height: auto;
  padding-top: clamp(42px, 4.2vw, 68px);
  padding-bottom: clamp(54px, 5.2vw, 82px);
}

@media (hover: hover) and (pointer: fine) {
  .global-nav a:hover { color: var(--ink); background: transparent; border-bottom-color: var(--accent); }
  .games-subnav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
}

/* 761px and up: the same full-size shell used by the main portal. */
@media (min-width: 761px) {
  :root {
    --header-height: 68px;
    --subnav-height: 48px;
    --header-offset: calc(var(--header-height) + var(--subnav-height) + .75rem);
  }
  .site-header__inner {
    width: 100%;
    min-height: var(--header-height);
    margin: 0;
    padding: 0 var(--page-gutter);
    align-items: center;
    flex-direction: row;
    gap: 24px;
  }
  .brand {
    flex: 0 0 auto;
    align-self: auto;
    align-items: center;
    gap: 9px;
    padding: 0;
  }
  .brand__mark { width: 10px; height: 10px; }
  .brand__name { font-size: 16px; }
  .brand small { display: inline; }
  .global-nav {
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: auto;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 22px;
    overflow: visible;
    white-space: nowrap;
    font-size: 12px;
    line-height: normal;
    letter-spacing: .05em;
  }
  .global-nav a { min-height: 0; padding: 22px 0 20px; align-items: center; }
  .games-subnav__inner { min-height: var(--subnav-height); padding-inline: var(--page-gutter); gap: 26px; }
  .games-subnav a { min-height: var(--subnav-height); padding: 0; font-size: 11px; }
}

/* Main portal switches at 760px; GAMES now follows the same rule. */
@media (max-width: 760px) {
  :root {
    --header-height: 57px;
    --subnav-height: 43px;
    --header-offset: calc(var(--header-height) + var(--subnav-height) + .5rem);
    --page-gutter: var(--mobile-inset);
  }
  .site-header__inner {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 13px var(--mobile-inset) 9px;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }
  .brand {
    flex: 0 0 auto;
    align-self: auto;
    gap: 7px;
    padding: 5px 0 0;
  }
  .brand__mark { width: 9px; height: 9px; }
  .brand__name { font-size: 15px; }
  .brand small { display: none; }
  .global-nav {
    width: auto;
    max-width: 62%;
    min-width: 0;
    margin-left: auto;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-end;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 1px 12px;
    overflow: visible;
    white-space: normal;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: .035em;
  }
  .global-nav a { min-height: 0; padding: 7px 0 10px; }
  .games-subnav { top: var(--header-height); }
  .games-subnav__inner {
    min-height: var(--subnav-height);
    padding-inline: var(--mobile-inset);
    gap: 20px;
    align-items: stretch;
    overflow-x: auto;
    scroll-padding-inline: var(--mobile-inset);
  }
  .games-subnav a { min-height: var(--subnav-height); padding: 0; font-size: 10px; }
  .hero { padding-top: 34px; padding-bottom: 52px; }
}

@media (max-width: 500px) {
  .site-header__inner { gap: 7px; }
  .brand { gap: 6px; }
  .brand__name { font-size: 14px; }
  .brand__mark { width: 8px; height: 8px; }
  .global-nav { gap: 1px 9px; font-size: 9px; letter-spacing: .02em; }
  .games-subnav__inner { gap: 16px; }
  .games-subnav a { font-size: 9.5px; }
  .hero { padding-top: 28px; padding-bottom: 44px; }
}

/* PRISMA ABYSS showcase page */
.prisma-page { --prisma-night: #17171d; --prisma-ink: #241d19; --prisma-warm: #f7f0df; --prisma-rule: #b9aa8c; }
.prisma-page section { scroll-margin-top: var(--header-offset); }
.prisma-hero { min-height: clamp(31rem, 58vw, 48rem); }
.prisma-hero .game-detail-hero__image { filter: brightness(.46) saturate(.92) contrast(1.03); }
.prisma-hero .game-detail-hero__overlay { background: linear-gradient(180deg, rgba(9,10,15,.08) 15%, rgba(9,10,15,.22) 44%, rgba(9,10,15,.92) 100%); }
.prisma-top-actions { align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.prisma-status { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 9px; border: 1px solid var(--rule); color: var(--muted); background: rgba(248,242,229,.5); font-size: 10px; font-weight: 800; letter-spacing: .08em; }

.prisma-story { display: grid; grid-template-columns: minmax(0,.9fr) minmax(26rem,1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-block: var(--space-6); }
.prisma-story__copy h1 { margin-bottom: 1.4rem; font-size: clamp(2.35rem, 4.7vw, 4.8rem); line-height: 1.12; }
.prisma-story__copy > p:not(.eyebrow) { max-width: 48rem; }
.prisma-story__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1.5rem; }
.prisma-story__tags span { padding: 5px 9px; border: 1px solid var(--rule); background: rgba(248,242,229,.52); font-size: 11px; font-weight: 700; }
.prisma-story__visual { margin: 0; overflow: hidden; border: 2px solid var(--rule); background: var(--ink); box-shadow: var(--shadow); }
.prisma-story__visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prisma-story__visual figcaption { padding: .75rem 1rem; color: #d9cdb6; background: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .06em; }

.prisma-section-heading { grid-template-columns: 10rem minmax(0,1fr); }
.prisma-loop { margin-block: var(--space-6); }
.prisma-loop__grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); list-style: none; }
.prisma-loop__grid li { min-width: 0; padding: clamp(1.2rem, 2.4vw, 2rem); border-right: 1px solid var(--rule); }
.prisma-loop__grid li:last-child { border-right: 0; }
.prisma-loop__grid li > span { display: block; margin-bottom: 1.5rem; color: var(--accent); font-size: 2.4rem; font-weight: 900; line-height: 1; }
.prisma-loop__grid h3 { margin: 0 0 .35rem; color: var(--muted); font-size: .74rem; letter-spacing: .12em; }
.prisma-loop__grid strong { display: block; margin-bottom: .7rem; font-size: 1.15rem; }
.prisma-loop__grid p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }

.prisma-world { display: grid; grid-template-columns: minmax(16rem,.52fr) minmax(0,1.48fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-block: var(--space-6); }
.prisma-world__lead { position: sticky; top: calc(var(--header-offset) + 1rem); }
.prisma-world__lead h2 { margin-bottom: 1.2rem; font-size: clamp(2rem, 3.4vw, 3.6rem); }
.prisma-world__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prisma-world__gallery figure { position: relative; margin: 0; min-height: 17rem; overflow: hidden; border: 1px solid var(--rule); background: var(--ink); }
.prisma-world__gallery figure.prisma-world__wide { grid-column: 1 / -1; min-height: 22rem; }
.prisma-world__gallery img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: saturate(.9) contrast(1.04); transition: transform .35s ease; }
.prisma-world__gallery figure:hover img { transform: scale(1.02); }
.prisma-world__gallery figcaption { position: absolute; left: 0; bottom: 0; z-index: 1; padding: .55rem .8rem; color: var(--paper-light); background: rgba(23,23,29,.88); font-size: 10px; font-weight: 800; letter-spacing: .08em; }

.prisma-party { display: grid; grid-template-columns: minmax(18rem,.56fr) minmax(0,1.44fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-block: var(--space-6); padding: clamp(1.5rem, 4vw, 3rem); color: #ece5d8; background: var(--prisma-night); border: 2px solid var(--rule); box-shadow: var(--shadow); overflow: hidden; }
.prisma-party .eyebrow { color: #d16a57; }
.prisma-party__copy h2 { color: #fff8ec; font-size: clamp(2rem, 3.4vw, 3.5rem); }
.prisma-party__copy p { color: #c9c0b1; }
.prisma-party__lineup { min-width: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; align-items: end; }
.prisma-party__lineup figure { min-width: 0; margin: 0; position: relative; overflow: hidden; border-bottom: 1px solid #6c6255; }
.prisma-party__lineup img { width: 100%; height: clamp(20rem, 31vw, 35rem); object-fit: contain; object-position: bottom center; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.prisma-party__lineup figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.8rem .6rem .7rem; background: linear-gradient(transparent, rgba(12,12,15,.92)); }
.prisma-party__lineup strong, .prisma-party__lineup span { display: block; }
.prisma-party__lineup strong { color: #fff; font-size: .92rem; }
.prisma-party__lineup span { color: #bdb3a5; font-size: .68rem; }

.prisma-equipment { display: grid; grid-template-columns: minmax(20rem,.76fr) minmax(0,1.24fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-block: var(--space-6); }
.prisma-equipment__display { padding: clamp(1.3rem, 3vw, 2.2rem); border: 2px solid var(--rule); background: var(--paper-light); box-shadow: var(--shadow); }
.prisma-equipment__icons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.prisma-equipment__icons figure { min-width: 0; margin: 0; padding: 1rem .7rem .7rem; text-align: center; border: 1px solid var(--paper-dark); background: rgba(255,255,255,.5); }
.prisma-equipment__icons img { width: 64px; margin: 0 auto .65rem; image-rendering: pixelated; }
.prisma-equipment__icons figcaption { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.45; }
.prisma-equipment__copy h2 { font-size: clamp(2rem, 3.4vw, 3.5rem); }
.prisma-system-list { margin: 1.6rem 0 0; border-top: 1px solid var(--rule); }
.prisma-system-list div { display: grid; grid-template-columns: 7rem minmax(0,1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px dotted var(--rule); }
.prisma-system-list dt { color: var(--accent); }
.prisma-system-list dd { color: var(--muted); font-size: .88rem; font-weight: 500; }

.prisma-bestiary { margin-block: var(--space-6); }
.prisma-bestiary__lead { max-width: 58rem; margin: -1rem 0 1.5rem 10rem; color: var(--muted); }
.prisma-bestiary__grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.prisma-bestiary__grid figure { min-width: 0; margin: 0; border: 1px solid var(--rule); background: #232228; }
.prisma-bestiary__grid figure > div { min-height: 13rem; display: grid; place-items: center; padding: .8rem; overflow: hidden; }
.prisma-bestiary__grid img { width: 100%; height: 12rem; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.prisma-bestiary__grid figcaption { padding: .7rem .75rem; border-top: 1px solid #4b4740; background: #17171d; }
.prisma-bestiary__grid strong, .prisma-bestiary__grid span { display: block; }
.prisma-bestiary__grid strong { color: #fff9ee; font-size: .8rem; }
.prisma-bestiary__grid span { margin-top: .2rem; color: #998f82; font-size: .62rem; letter-spacing: .04em; }

.prisma-depth { display: grid; grid-template-columns: minmax(18rem,.55fr) minmax(0,1.45fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-block: var(--space-6); padding: clamp(1.5rem, 4vw, 3rem); color: #ddd4c5; background: #211d1a; border: 2px solid var(--rule); }
.prisma-depth .eyebrow { color: #d16a57; }
.prisma-depth__intro h2 { color: #fff8ec; font-size: clamp(2rem, 3.4vw, 3.5rem); }
.prisma-depth__intro p { color: #bfb4a5; }
.prisma-depth__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid #6d6254; border-left: 1px solid #6d6254; }
.prisma-depth__grid article { min-width: 0; padding: 1.1rem 1.2rem; border-right: 1px solid #6d6254; border-bottom: 1px solid #6d6254; }
.prisma-depth__grid span { display: block; margin-bottom: .5rem; color: #d16a57; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.prisma-depth__grid h3 { margin-bottom: .5rem; color: #fff8ec; font-size: .88rem; letter-spacing: .08em; }
.prisma-depth__grid p { margin: 0; color: #bfb4a5; font-size: .8rem; line-height: 1.65; }
.prisma-end-actions { margin-bottom: 0; }

@media (max-width: 1100px) {
  .prisma-story, .prisma-world, .prisma-party, .prisma-equipment, .prisma-depth { grid-template-columns: 1fr; }
  .prisma-world__lead { position: static; }
  .prisma-party__lineup img { height: clamp(18rem, 50vw, 31rem); }
  .prisma-bestiary__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .prisma-loop__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prisma-loop__grid li:nth-child(2) { border-right: 0; }
  .prisma-loop__grid li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  .prisma-hero { min-height: 27rem; }
  .prisma-top-actions { margin-inline: var(--mobile-inset); }
  .prisma-page > .prisma-story,
  .prisma-page > .prisma-loop,
  .prisma-page > .prisma-world,
  .prisma-page > .prisma-party,
  .prisma-page > .prisma-equipment,
  .prisma-page > .prisma-bestiary,
  .prisma-page > .prisma-depth { margin-left: var(--mobile-inset); margin-right: var(--mobile-inset); }
  .prisma-story__copy h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .prisma-section-heading { grid-template-columns: 1fr; gap: .25rem; }
  .prisma-bestiary__lead { margin-left: 0; }
  .prisma-party { padding: 1.3rem; }
  .prisma-party__lineup { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prisma-party__lineup img { height: 26rem; }
  .prisma-world__gallery figure, .prisma-world__gallery figure.prisma-world__wide { min-height: 15rem; }
}

@media (max-width: 560px) {
  .prisma-top-actions { align-items: stretch; }
  .prisma-status { justify-content: center; }
  .prisma-loop__grid { grid-template-columns: 1fr; }
  .prisma-loop__grid li, .prisma-loop__grid li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--rule); }
  .prisma-loop__grid li:last-child { border-bottom: 0; }
  .prisma-world__gallery { grid-template-columns: 1fr; }
  .prisma-world__gallery figure.prisma-world__wide { grid-column: auto; }
  .prisma-party__lineup img { height: 21rem; }
  .prisma-equipment__icons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prisma-system-list div { grid-template-columns: 1fr; gap: .25rem; }
  .prisma-bestiary__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prisma-bestiary__grid figure > div { min-height: 10rem; }
  .prisma-bestiary__grid img { height: 9rem; }
  .prisma-depth__grid { grid-template-columns: 1fr; }
}

/* Keep the v2 art direction authoritative over the retained v1 compatibility rules above. */
.prisma-page-v2 .prisma-hero-v2 { min-height: clamp(34rem, 64vw, 52rem); }
.prisma-page-v2 .prisma-hero-v2 .game-detail-hero__image { filter: brightness(.48) saturate(.82) contrast(1.08); }
.prisma-page-v2 .prisma-hero-v2 .prisma-hero-v2__overlay {
  background:
    linear-gradient(90deg, rgba(10, 9, 13, .8) 0%, rgba(10, 9, 13, .28) 58%, transparent 82%),
    linear-gradient(180deg, rgba(10, 9, 13, .05) 24%, rgba(10, 9, 13, .9) 100%);
}
.prisma-page-v2 .prisma-story-v2 { grid-template-columns: minmax(0, .92fr) minmax(28rem, 1.08fr); margin-block: clamp(4rem, 9vw, 9rem); }
.prisma-page-v2 .prisma-loop-v2 { margin-block: clamp(5rem, 10vw, 10rem); }
.prisma-page-v2 .prisma-bestiary-v2 { margin-block: clamp(5rem, 10vw, 10rem); }
.prisma-page-v2 .prisma-depth-v2 {
  margin: 0 calc(-1 * var(--page-gutter));
  padding: clamp(4rem, 8vw, 8rem) var(--page-gutter);
  grid-template-columns: minmax(22rem, .8fr) minmax(28rem, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  border: 0;
  border-block: 1px solid #3d3841;
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 48, 70, .36), transparent 28%),
    linear-gradient(140deg, #211923, #111116 65%);
}

@media (max-width: 1120px) {
  .prisma-page-v2 .prisma-depth-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .prisma-page-v2 .prisma-story-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .prisma-page-v2 .prisma-depth-v2 { margin-inline: calc(-1 * var(--page-gutter)); }
}

@media (max-width: 620px) {
  .prisma-page-v2 .prisma-hero-v2 { min-height: 29rem; }
  .prisma-page-v2 .prisma-story-v2,
  .prisma-page-v2 .prisma-loop-v2,
  .prisma-page-v2 .prisma-bestiary-v2 { margin-left: 0; margin-right: 0; }
}

.prisma-mobile-showcase {
  margin-inline: calc(-1 * var(--page-gutter));
  padding: clamp(4rem, 8vw, 7.5rem) var(--page-gutter);
  border-block: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(168, 67, 53, .055) 1px, transparent 1px) 0 0 / 25% 100%,
    #e8deca;
}

.prisma-mobile-showcase__heading {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(20rem, .9fr) minmax(22rem, 1.1fr);
  column-gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
}

.prisma-mobile-showcase__heading .eyebrow { grid-column: 1 / -1; }
.prisma-mobile-showcase__heading h2 {
  margin: 0;
  font-size: clamp(2.35rem, 3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.prisma-mobile-showcase__heading > p:not(.eyebrow) { margin: 0; align-self: end; }
.prisma-mobile-showcase__heading .prisma-mobile-showcase__note { grid-column: 2; margin-top: .75rem; color: var(--muted); font-size: .7rem; }

.prisma-mobile-showcase__copy { align-self: end; }
.prisma-mobile-showcase__copy > p { margin: 0; }
.prisma-mobile-showcase__copy .prisma-battle-specs { margin-top: 1.25rem; }

.prisma-mobile-showcase__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 18px);
  align-items: start;
}

.prisma-mobile-showcase__gallery figure {
  min-width: 0;
  margin: 0;
}

.prisma-mobile-showcase__gallery figure > div {
  position: relative;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #4a4035;
  background: #171318;
  box-shadow: 7px 7px 0 rgba(56, 44, 32, .16);
}

.prisma-mobile-showcase__gallery figure > div::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(234, 214, 177, .18);
  pointer-events: none;
}

.prisma-mobile-showcase__gallery img {
  width: 100%;
  aspect-ratio: 665 / 1280;
  object-fit: cover;
  object-position: top center;
  background: #100d10;
}

.prisma-mobile-showcase__gallery figcaption {
  padding: 1rem .2rem 0;
  color: var(--prisma-copy);
  font-size: .67rem;
  line-height: 1.5;
}
.prisma-mobile-showcase__gallery figcaption span,
.prisma-mobile-showcase__gallery figcaption strong { display: block; }
.prisma-mobile-showcase__gallery figcaption span { color: var(--prisma-red); font-size: .6rem; font-weight: 900; }
.prisma-mobile-showcase__gallery figcaption strong { margin: .15rem 0 .3rem; color: var(--ink); font-size: .68rem; letter-spacing: .12em; }

@media (max-width: 900px) {
  .prisma-mobile-showcase__heading { grid-template-columns: 1fr; }
  .prisma-mobile-showcase__heading .prisma-mobile-showcase__note { grid-column: 1; }
  .prisma-mobile-showcase__heading h2 { margin-bottom: 1.5rem; }
  .prisma-mobile-showcase__gallery {
    grid-template-columns: repeat(8, minmax(13rem, 35vw));
    margin-inline: calc(-1 * var(--page-gutter));
    padding: 0 var(--page-gutter) 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--page-gutter);
  }
  .prisma-mobile-showcase__gallery figure { scroll-snap-align: start; }
}

@media (max-width: 560px) {
  .prisma-mobile-showcase__gallery { grid-template-columns: repeat(8, minmax(15rem, 78vw)); }
}

/* GAME02 — Kanji Crash Keyboard feature page v2 */
.kanji-page-v2 {
  --kanji-night: #10151c;
  --kanji-panel: #171e29;
  --kanji-panel-soft: #202838;
  --kanji-mint: #55e2b7;
  --kanji-coral: #ee6677;
  --kanji-copy: #d6dde8;
  --kanji-muted: #9ca8ba;
}

.kanji-page-v2 section,
.kanji-page-v2 [id] { scroll-margin-top: calc(var(--header-offset) + 5rem); }

.kanji-page-v2 .game-detail-hero--kanji {
  min-height: clamp(32rem, 62vw, 50rem);
  border-color: #30394a;
  background: var(--kanji-night);
}

.kanji-page-v2 .game-detail-hero--kanji .game-detail-hero__image {
  filter: brightness(.58) saturate(.92) contrast(1.08);
  transform: scale(1.01);
}

.kanji-page-v2 .game-detail-hero__overlay {
  background:
    linear-gradient(90deg, rgba(10,14,20,.94) 0%, rgba(10,14,20,.74) 44%, rgba(10,14,20,.16) 78%),
    linear-gradient(0deg, rgba(10,14,20,.96) 0%, transparent 48%);
}

.kanji-page-v2 .file-index {
  color: var(--kanji-mint);
  border: 1px solid rgba(85,226,183,.5);
  background: rgba(13,18,25,.84);
}

.kanji-page-v2 .game-detail-title-lockup {
  max-width: 42rem;
  padding: clamp(.9rem, 2vw, 1.35rem);
  border: 1px solid rgba(255,255,255,.13);
  border-left: 5px solid var(--kanji-mint);
  background: rgba(18,24,34,.9);
  box-shadow: 12px 12px 0 rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
}

.kanji-page-v2 .game-detail-title-lockup strong { font-size: clamp(1.7rem, 3.5vw, 3.2rem); }
.kanji-page-v2 .game-detail-title-lockup span { color: var(--kanji-mint); }
.kanji-page-v2 .detail-actions--top { margin-bottom: 1.5rem; }
.kanji-page-v2 .button--primary { color: #07140f; background: var(--kanji-mint); border-color: #173d32; box-shadow: 5px 5px 0 #173d32; }
.kanji-page-v2 .button--primary:hover { color: #07140f; background: #7ceac8; }

.kanji-local-nav {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #30394a;
  background: var(--kanji-night);
  box-shadow: 7px 7px 0 rgba(16,21,28,.18);
}

.kanji-local-nav a {
  min-width: 0;
  min-height: 58px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #f5f7fb;
  border-right: 1px solid #30394a;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.kanji-local-nav a:last-child { border-right: 0; }
.kanji-local-nav span { color: var(--kanji-mint); font-family: var(--font-mono); font-size: .68rem; }
.kanji-local-nav a:hover,
.kanji-local-nav a:focus-visible { color: var(--kanji-night); background: var(--kanji-mint); }
.kanji-local-nav a:hover span,
.kanji-local-nav a:focus-visible span { color: #173d32; }

.kanji-page-v2 .detail-grid {
  max-width: none;
  padding: clamp(1.5rem, 4vw, 4rem);
  color: var(--kanji-copy);
  border: 1px solid #30394a;
  background:
    radial-gradient(circle at 86% 12%, rgba(85,226,183,.12), transparent 28rem),
    var(--kanji-night);
  box-shadow: 10px 10px 0 rgba(16,21,28,.18);
}

.kanji-page-v2 .detail-grid h1 { color: #fff; letter-spacing: -.05em; }
.kanji-page-v2 .detail-grid .eyebrow { color: var(--kanji-mint); }
.kanji-page-v2 .detail-grid .lead-copy { color: #f5f7fb; }
.kanji-page-v2 .spec-sheet { border-color: #435064; background: rgba(31,39,54,.88); box-shadow: 6px 6px 0 rgba(0,0,0,.26); }
.kanji-page-v2 .spec-sheet .stamp { color: var(--kanji-mint); border-color: var(--kanji-mint); }
.kanji-page-v2 .spec-sheet dl div { border-color: #435064; }
.kanji-page-v2 .spec-sheet dt { color: var(--kanji-muted); }
.kanji-page-v2 .spec-sheet dd { color: #fff; }

.kanji-page-v2 .feature-grid--kanji { gap: clamp(.75rem, 2vw, 1.35rem); }
.kanji-page-v2 .feature-grid--kanji .feature-card {
  min-height: 15rem;
  color: var(--kanji-copy);
  border: 1px solid #354055;
  background: var(--kanji-panel);
  box-shadow: 6px 6px 0 rgba(16,21,28,.2);
  transform: none;
}
.kanji-page-v2 .feature-card__number { color: var(--kanji-mint); }
.kanji-page-v2 .feature-card h3 { color: #fff; border-color: #435064; }

.kanji-page-v2 .mode-card {
  min-height: 24rem;
  color: var(--kanji-copy);
  border: 1px solid #354055;
  background: linear-gradient(145deg, var(--kanji-panel-soft), var(--kanji-night));
  box-shadow: 8px 8px 0 rgba(16,21,28,.2);
}
.kanji-page-v2 .mode-card__index,
.kanji-page-v2 .mode-card h3 strong { color: var(--kanji-mint); }
.kanji-page-v2 .mode-card--danger { border-color: rgba(238,102,119,.52); }
.kanji-page-v2 .mode-card--danger .mode-card__index,
.kanji-page-v2 .mode-card--danger h3 strong { color: var(--kanji-coral); }
.kanji-page-v2 .mode-card h3 { color: #fff; border-color: #435064; }
.kanji-page-v2 .mode-card::after { color: rgba(85,226,183,.045); }
.kanji-page-v2 .mode-card--danger::after { color: rgba(238,102,119,.045); }

.kanji-page-v2 .image-report__heading,
.kanji-page-v2 .section-heading { border-color: #6f7b8d; }
.kanji-page-v2 .image-report__heading p,
.kanji-page-v2 .section-heading > p,
.kanji-page-v2 .eyebrow { color: #b74352; }
.kanji-page-v2 .image-report__scene,
.kanji-page-v2 .record-report__image { border-color: #354055; background: var(--kanji-night); box-shadow: 8px 8px 0 rgba(16,21,28,.2); }

.kanji-page-v2 .mechanic-flow {
  color: var(--kanji-copy);
  border: 1px solid #354055;
  background: var(--kanji-night);
  box-shadow: 8px 8px 0 rgba(16,21,28,.2);
}
.kanji-page-v2 .mechanic-flow li { border-color: #354055; }
.kanji-page-v2 .mechanic-flow li > span { color: var(--kanji-mint); }
.kanji-page-v2 .mechanic-flow h3 { color: #fff; border-color: #435064; }
.kanji-page-v2 .mechanic-flow p { color: var(--kanji-muted); }

.kanji-page-v2 .record-report {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--kanji-copy);
  border: 1px solid #30394a;
  background: linear-gradient(120deg, var(--kanji-night), #181f2b);
}
.kanji-page-v2 .record-report h2 { color: #fff; }
.kanji-page-v2 .record-report .eyebrow { color: var(--kanji-mint); }
.kanji-page-v2 > .asset-note { padding-top: 1rem; border-top: 1px solid rgba(32,29,23,.2); }

@media (max-width: 760px) {
  .kanji-page-v2 .game-detail-hero--kanji { min-height: 31rem; }
  .kanji-page-v2 .game-detail-hero__overlay {
    background: linear-gradient(0deg, rgba(10,14,20,.98) 0%, rgba(10,14,20,.58) 62%, rgba(10,14,20,.15) 100%);
  }
  .kanji-local-nav {
    margin-inline: var(--mobile-inset);
    grid-template-columns: repeat(5, minmax(8.75rem, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .kanji-local-nav a { min-height: 52px; scroll-snap-align: start; }
  .kanji-page-v2 .detail-grid,
  .kanji-page-v2 .record-report { margin-inline: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .kanji-page-v2 .feature-grid--kanji .feature-card { transform: none; }
}

@media (max-width: 560px) {
  .kanji-page-v2 .game-detail-title-lockup { align-items: flex-start; }
  .kanji-page-v2 .game-detail-title-lockup strong { font-size: 1.35rem; }
  .kanji-page-v2 .feature-grid--kanji,
  .kanji-page-v2 .mode-comparison__grid { grid-template-columns: 1fr; }
  .kanji-page-v2 .feature-grid--kanji .feature-card,
  .kanji-page-v2 .mode-card { min-height: 0; }
}
