:root {
  color-scheme: dark;
  --ink: #f7f4ff;
  --muted: #c2bed4;
  --subtle: #a39db8;
  --base: #160e1d;
  --line: #ffffff25;
  --cyan: #93ebff;
  --pink: #ffaddb;
  --purple: #bcb0ff;
  --header: 72px;
  --wrap: 1200px;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--base);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 14px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
[data-age-pending] body { overflow: hidden; }
[data-age-pending] :is(.skip-link, .topbar, main, .footer) { visibility: hidden; }
/* Keep the underlying layout in place for hash links while the gate is open. */
[data-age-pending] :is(.skip-link, .topbar, main, .footer) * { visibility: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(var(--wrap), calc(100% - 112px)); margin-inline: auto; }
.mono { font-family: "Aptos Mono", "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 12; inset: 12px auto auto 12px; padding: 12px; background: var(--base); }

.topbar { position: fixed; z-index: 10; inset: 0 0 auto; height: var(--header); background: #170e1cec; border-bottom: 1px solid #f298c43a; backdrop-filter: blur(18px); }
.topbar-inner { width: min(1360px, calc(100% - 72px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: italic 900 20px/.95 system-ui, sans-serif; letter-spacing: .045em; white-space: nowrap; }
.wordmark img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.wordmark > span > span { color: var(--cyan); }
.wordmark small { display: block; padding-top: 6px; font: 600 9px/1 Consolas, monospace; letter-spacing: .19em; color: #c5bdd8; }
.topnav { display: flex; align-items: center; gap: clamp(12px, 2vw, 31px); font-size: 13px; font-weight: 700; white-space: nowrap; }
.topnav a { display: flex; align-items: center; gap: 4px; min-height: 44px; transition: color .2s; }
.topnav a:hover, .topnav a span { color: var(--cyan); }
.age-badge { display: flex; align-items: center; gap: 7px; color: #ffcee9; font-size: 11px; white-space: nowrap; border: 1px solid #eb8cbd64; background: #42283e91; border-radius: 6px; padding: 7px 10px; }
.age-badge b { font: 700 13px Consolas, monospace; }
.menu-toggle { width: 44px; height: 44px; display: none; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #25243a; }
.menu-toggle i { width: 17px; height: 1px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { position: relative; isolation: isolate; padding-top: var(--header); min-height: 780px; min-height: max(780px, 100svh); display: grid; background: #190e21; overflow: clip; }
.hero-scene, .hero-grade { position: absolute; inset: var(--header) 0 0; z-index: -2; overflow: hidden; }
.hero-scene { background: #253251 url("../images/wishhack_title_bg.jpg") center 38% / cover no-repeat; }
.hero-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 61% 42%; opacity: 0; transition: opacity .9s ease-in-out; }
.hero-frame.is-active, .hero-frame.is-leaving { opacity: 1; }
.hero-grade { z-index: -1; background:
  linear-gradient(0deg, #190e21 0%, #1d1025e3 7%, #27132e38 32%, transparent 56%),
  linear-gradient(90deg, #170e21 0%, #211126f5 19%, #271430ee 32%, #32163e95 49%, #30224d0a 72%),
  radial-gradient(ellipse at 21% 55%, #a32f804f, transparent 62%); }
.hero-reticle { position: absolute; inset: calc(var(--header) + 24px) max(24px, calc((100vw - 1352px) / 2)) 27px; pointer-events: none; }
.hero-reticle i { position: absolute; width: 18px; height: 18px; border: solid #b8e9ff70; }
.hero-reticle i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-reticle i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero-reticle i:nth-child(3) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero-reticle i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero-inner { position: relative; display: flex; align-items: center; padding-block: 55px 126px; }
.hero-content { width: min(100%, 655px); position: relative; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #ffc4e4; font-size: 12px; font-weight: 700; }
.signal, .hero-hud i, .render-tag i { background: var(--cyan); display: inline-block; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 11px #7ee7ffac; flex: 0 0 auto; }
.kicker-divider { height: 1px; width: 19px; background: #91d4ec88; }
.hero-logo { width: min(100%, 624px); margin: 19px 0 4px -5px; filter: drop-shadow(0 12px 20px #100d2c78); }
.hero-claim { margin-top: 21px; font-size: clamp(41px, 4.35vw, 67px); line-height: 1.1; font-weight: 900; letter-spacing: .025em; text-shadow: 0 5px 22px #160c228c; }
.hero-claim em { color: #ffc1e5; font-style: normal; font-size: 1.24em; text-shadow: 0 0 32px #ff4ab563; }
.hero-lead { margin-top: 17px; color: #e0dbee; font-size: 15px; font-weight: 600; line-height: 1.85; letter-spacing: .035em; }
.hero-actions { margin-top: 25px; display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 49px; border-radius: 8px; padding: 11px 20px; font-size: 14px; font-weight: 800; border: 1px solid transparent; transition: background .2s, filter .2s, border-color .2s; }
.button span { font: 700 17px/1 system-ui, sans-serif; }
.button-primary { background: linear-gradient(110deg,#ff9fcf,#e2b4ff); color: #261229; box-shadow: 0 7px 26px #fa5eb146; }
.button-primary:hover { filter: brightness(1.09); }
.button-ghost { background: #27243cad; border-color: #d0c4f28c; color: var(--ink); }
.button-ghost:hover { background: #423b5b; border-color: #e5dcfa; }
.adult-note { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: #e2dbf0; font-size: 12px; font-weight: 700; }
.adult-note span { border: 1px solid #de93ba80; border-radius: 4px; color: #ffc4e2; font: 700 10px/1 Consolas,monospace; padding: 3px 5px; }
.hero-hud { position: absolute; top: 43px; right: 0; font-size: 11px; color: #f2fbff; display: grid; justify-items: end; gap: 6px; text-shadow: 0 2px 7px #060c2c; }
.hero-hud span { display: flex; align-items: center; gap: 8px; border: 1px solid #c4e7fc72; border-radius: 4px; padding: 7px 9px; background: #1b223bc9; }
.hero-hud b { font-weight: 500; color: #d1e9ff; }
.hero-console { position: absolute; bottom: 44px; right: 0; display: flex; align-items: center; gap: 20px; min-height: 55px; padding-inline: 16px 9px; border: 1px solid #c4b8ef57; border-radius: 8px; backdrop-filter: blur(14px); background: #191b2dda; }
.scene-readout { display: grid; gap: 5px; min-width: 146px; }
.scene-readout > span:first-child { font-size: 10px; color: #bdb6d5; }
.scene-readout b { color: var(--cyan); }
#scene-label { font-size: 12px; font-weight: 700; }
.hero-controls { display: flex; align-items: center; }
.hero-dots { display: flex; }
.hero-dot, .play-toggle { display: grid; place-items: center; height: 44px; border: 0; background: transparent; }
.hero-dot { width: 24px; padding: 0; }
.hero-dot::after { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: #beb7d5; transition: transform .2s, background .2s; }
.hero-dot[aria-pressed="true"]::after { transform: scale(1.45); background: #ffb7e0; box-shadow: 0 0 9px #ffb1de95; }
.play-toggle { width: 44px; margin-left: 4px; padding: 0; border-left: 1px solid var(--line); font-size: 14px; }
.scroll-cue { position: absolute; bottom: 48px; left: 0; display: flex; align-items: center; gap: 12px; color: #c9c0db; font-size: 10px; font-weight: 800; padding-block: 6px; }
.scroll-cue span { color: var(--cyan); font-size: 19px; }

.section { position: relative; padding: 96px 0; border-top: 1px solid #b7acd42c; }
.features { background: radial-gradient(ellipse at 7% 90%, #291a39, transparent 63%), radial-gradient(ellipse at 98% 0%, #451b3a, transparent 61%), #1c1325; }
.temptation { background: radial-gradient(ellipse at 12% 0%, #542044, transparent 50%), radial-gradient(ellipse at 98% 79%, #39225d, transparent 50%), #211128; }
.temptation .section-head { align-items: baseline; }
.temptation .eyebrow, .temptation h2 em { color: #ffc0e3; }
.temptation h2 em { font-style: normal; text-shadow: 0 0 24px #ed57ac60; }
.tease-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px, 2vw, 24px); }
.tease-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid #ffb4dc5c; border-radius: 14px; background: #29172f; box-shadow: 0 9px 28px #170a23a0; }
.tease-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #302039; }
.tease-copy { padding: clamp(16px, 2.3vw, 28px); background: radial-gradient(ellipse at 100% 100%,#503057,transparent 82%),#2c1932; border-top: 1px solid #ed8cb64c; }
.tease-index { color: #ffbee1; font-size: 11px; font-weight: 700; }
.tease-index span { color: #21102b; background: #f5a5db; display: inline-block; margin-right: 4px; padding: 4px 5px 3px; border-radius: 3px; }
.tease-copy h3 { color: #fff1f9; font-size: clamp(18px, 2vw, 27px); margin-top: 10px; line-height: 1.45; letter-spacing: .022em; }
.tease-copy > p:last-child { margin-top: 7px; font-size: 14px; line-height: 1.85; color: #e6cfe7; }
.tease-note { display: flex; align-items: center; justify-content: space-between; gap: 12px 26px; padding: 13px 19px; margin-top: 24px; border-radius: 9px; border: 1px solid #dc97d64e; color: #e0cce4; background: #1a1025b3; font-size: 13px; line-height: 1.75; }
.tease-note a { color: #ffc0e3; flex: none; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; }
.multi { background: radial-gradient(ellipse at 88% 7%, #512845, transparent 53%), linear-gradient(155deg,#27152e,#21192e 75%); }
.multi .eyebrow { color: #ffc0e3; }
.multi-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(12px, 2vw, 24px); }
.multi-grid > article { grid-column: span 2; }
.multi-grid > article:nth-child(-n+2) { grid-column: span 3; }
.stages { background: radial-gradient(ellipse at 85% 5%, #3b2046, transparent 58%), #211524; }
.stages-whisper { margin-top: 19px; color: #d4afcc; font-size: 13px; }
.characters { background: radial-gradient(ellipse at 96% 15%, #3d2b4a, transparent 60%), radial-gradient(ellipse at 5% 90%, #272746, transparent 60%), #1a182b; }
.gallery { background: radial-gradient(ellipse at 100% 90%, #252b47, transparent 65%), #151827; }
.platforms { background: radial-gradient(ellipse at 8% 80%, #382640, transparent 66%), #1b192b; }
.specs { background: linear-gradient(130deg,#1e2137,#191a2b 63%); padding-block: 76px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--cyan); font-size: 12px; font-weight: 700; }
.eyebrow span { border: 1px solid #92e6ff55; background: #29455a83; border-radius: 3px; padding: 4px 7px; font-size: 11px; }
.eyebrow::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg,#8bdffb70,transparent); }
.section h2 { margin-top: 12px; font-size: clamp(28px, 3.3vw, 49px); font-weight: 900; line-height: 1.25; letter-spacing: .02em; }
.section-head > p, .specs header > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.9; }
.feature-grid, .chapter-grid, .platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature-card { --accent: var(--cyan); border: 1px solid #c9c4fc36; border-radius: 12px; padding: 24px; background: linear-gradient(155deg,#ffffff11,#ffffff04); position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; left: 24px; top: 0; width: 58px; height: 2px; background: var(--accent); box-shadow: 0 0 13px var(--accent); }
.feature-violet { --accent: var(--purple); }
.feature-pink { --accent: var(--pink); }
.feature-top { display: flex; justify-content: space-between; align-items: start; color: var(--accent); }
.feature-top svg { width: 42px; height: 42px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-top span { color: var(--subtle); font-size: 10px; padding-top: 4px; }
.feature-label { color: var(--accent); font-size: 11px; font-weight: 700; margin-top: 17px; }
.feature-card h3, .chapter h3 { font-size: clamp(18px,1.7vw,24px); margin-top: 8px; font-weight: 800; line-height: 1.45; }
.feature-card > p:last-child, .chapter-copy > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.85; margin-top: 9px; }
.chapter { border: 1px solid #c9c4fc38; border-radius: 12px; overflow: hidden; background: #ffffff08; }
.chapter-visual { position: relative; }
.chapter-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.chapter-visual span, .render-tag { position: absolute; top: 12px; left: 12px; border: 1px solid #c7e5ff78; background: #171b2be8; border-radius: 4px; padding: 5px 8px; color: #e1efff; font-size: 10px; font-weight: 700; }
.chapter-copy { padding: 20px 21px 24px; }
.chapter-trigger { color: var(--cyan); font-size: 11px; font-weight: 700; }
.chapter:nth-child(2) .chapter-trigger { color: var(--purple); }
.chapter:nth-child(3) .chapter-trigger { color: var(--pink); }

.character-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; max-width: 660px; margin-bottom: 14px; }
.character-tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1px solid #c5b4fa4a; border-radius: 8px; padding: 8px 5px; background: #2e293f; color: #e4ddef; font-size: 14px; font-weight: 800; }
.character-tabs button span { color: #cdbce7; font: 600 11px Consolas,monospace; }
.character-tabs button[aria-selected="true"] { background: #e0caff; border-color: #eddbff; color: #261a3c; }
.character-tabs button[aria-selected="true"] span { color: #55406f; }
.character-tabs button:not([aria-selected="true"]):hover { background: #433650; }
.character-profile { --accent: var(--pink); --portrait-x: 50%; display: grid; grid-template-columns: 1.48fr 1fr; min-height: 326px; border: 1px solid #c7b4ee51; border-radius: 12px; overflow: hidden; background: #252239; }
.tone-hinata { --accent: #ff9668; --portrait-x: 72%; }
.tone-mio { --accent: #76b5ff; --portrait-x: 34%; }
.tone-momoka { --accent: #ff8ec8; --portrait-x: 53%; }
.tone-rin { --accent: #8ea2ff; --portrait-x: 37%; }
.tone-akane { --accent: #ff6e76; --portrait-x: 71%; }
.tone-kotoha { --accent: #78d4a2; --portrait-x: 75%; }
.tone-ruka { --accent: #c39aff; --portrait-x: 41%; }
.tone-tsumugi { --accent: #f6c86e; --portrait-x: 43%; }
.tone-madoka { --accent: #ffad67; }
.tone-sakura { --accent: #ffb3d3; }
.tone-karin { --accent: #96caff; }
.tone-chitose { --accent: #d8b3ff; }
.tone-luna { --accent: #c084fc; --portrait-x: 45%; }
.tone-seira { --accent: #38bdf8; --portrait-x: 69%; }
.tone-himari { --accent: #fb7185; --portrait-x: 72%; }
.character-visual { overflow: hidden; position: relative; aspect-ratio: 1.76; background: #4b4051; }
.character-visual > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); transform-origin: var(--portrait-x) 55%; }
.character-visual::after { content: ""; position: absolute; pointer-events: none; inset: 0; background: linear-gradient(90deg,transparent 76%,#2a254a30), linear-gradient(0deg,#211a3a57,transparent 26%); }
.render-tag { z-index: 1; display: flex; align-items: center; gap: 7px; }
.render-tag i { width: 5px; height: 5px; }
.character-info { padding: clamp(17px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at top right,#47334e,transparent 70%),#28233c; border-top: 2px solid var(--accent); }
.profile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 700; margin-bottom: 17px; }
#character-trait { border: 1px solid currentColor; padding: 4px 9px; border-radius: 4px; color: var(--accent); white-space: nowrap; }
.character-identity { display: flex; gap: 14px; align-items: center; }
#character-face { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; border: 1px solid var(--accent); flex-shrink: 0; }
#character-roman { color: var(--accent); font-size: 10px; font-weight: 700; }
#character-name { margin-top: 3px; font-size: clamp(22px, 2.7vw, 38px); line-height: 1.2; }
#character-role { margin-top: 5px; color: #dcd0ea; font-size: 13px; }
#character-quote { margin-top: 20px; padding: 12px 14px; border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; background: #110e2763; color: #f1e9fa; font-size: 14px; line-height: 1.75; }
.roster { margin-top: 14px; }
.roster > p { font-size: 10px; color: #cec4df; font-weight: 700; margin-bottom: 8px; }
#roster-total { color: var(--cyan); margin-left: 7px; }
.roster-buttons { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 8px; }
.roster-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; border: 1px solid #c5b4fa40; border-radius: 8px; background: #29243a; padding: 5px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.roster-button img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.roster-button:hover { border-color: #dfd1fa; }
.roster-button[aria-pressed="true"] { border-color: var(--accent); background: #504056; box-shadow: inset 0 -2px var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.gallery-tile { position: relative; border: 1px solid #a3b5df55; border-radius: 9px; overflow: hidden; background: #202438; transition: border-color .2s; }
.gallery-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-tile:hover { border-color: var(--cyan); }
.gallery-caption { display: grid; gap: 4px; padding: 11px 12px; color: var(--muted); font-size: 11px; }
.gallery-caption b { color: var(--ink); font-size: 14px; }
.gallery-caption small { margin-right: 4px; color: var(--cyan); font: 700 10px Consolas,monospace; }
.gallery-plus { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; border: 1px solid #cde2ff78; background: #161d34dc; color: #f9f4ff; font: 600 19px/1 Consolas,monospace; }

.platform-tier { padding: 19px; border: 1px solid #cebcf541; background: #ffffff08; border-radius: 11px; }
.platform-tier h3 { font-size: 17px; margin-bottom: 13px; }
.platform-tier h3 span { color: var(--pink); margin-right: 9px; font: 700 11px Consolas,monospace; }
.platform-tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.platform-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 45px; border: 1px solid #d3c3f231; border-radius: 6px; background: #242138; padding: 7px 10px; }
.platform-card b { font: 750 15px system-ui,sans-serif; }
.platform-card small { color: #d4cadd; font-size: 10px; font-weight: 700; }
.platform-card.is-live { border-color: #8de5ff7a; background: #24374b; }
.platform-card.is-live small { color: #adf2ff; }
.platform-card.is-live:hover { background: #314d66; }
.specs-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 36px; }
.specs header > p:last-child { margin-top: 13px; }
.spec-list { border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: minmax(100px, 25%) 1fr; gap: 10px; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.spec-list dt { color: var(--subtle); font-weight: 700; }
.spec-list strong { color: var(--pink); }
.footer { border-top: 1px solid #c0afe333; background: #121320; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding-block: 25px; }
.footer-logo img { width: 154px; }
.footer p { color: #e7dff0; font-size: 12px; font-weight: 700; }
.footer small { color: var(--subtle); font-size: 11px; }
.back-top { color: var(--cyan); font-size: 10px; font-weight: 800; padding-block: 12px; }
.back-top span { font-size: 16px; margin-left: 4px; }

dialog { color: var(--ink); border: 1px solid #d0bdf275; border-radius: 13px; background: #242139; }
dialog::backdrop { background: #0c0d18d9; }
.lightbox { width: min(1100px, calc(100% - 28px)); max-width: none; max-height: calc(100% - 20px); padding: 0; }
.lightbox-bar, .lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 13px; }
.lightbox-bar h2 { font-size: 12px; color: var(--cyan); }
.lightbox figure img { width: 100%; height: auto; max-height: max(110px, 73dvh - 40px); aspect-ratio: 16 / 9; object-fit: contain; background: #121421; }
.lightbox-caption { color: var(--ink); text-align: center; font-size: 13px; }
.icon-button { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 7px; border: 1px solid var(--line); background: #34324e; font-size: 21px; }
.icon-button:hover { background: #484264; }
.age-dialog { width: min(508px, calc(100% - 28px)); max-width: none; max-height: calc(100% - 28px); padding: clamp(22px, 5vw, 40px); border-color: #eea8ce6e; border-radius: 18px; background: radial-gradient(ellipse at top right, #533053 0%, transparent 60%), linear-gradient(145deg, #2e2039, #211a30); box-shadow: 0 24px 90px #090510b5; }
.age-dialog::backdrop { background: radial-gradient(ellipse at 50% 40%, #2c2035, #100b18 76%); }
.age-heading { display: flex; align-items: center; gap: 14px; }
.age-heading img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; }
.age-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.age-dialog h2 { margin-block: 22px 8px; font-size: clamp(22px, 5.7vw, 30px); line-height: 1.35; }
.age-dialog > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.age-dialog #age-adult-notice { margin-top: 10px; color: var(--pink); font-size: 12px; }
.age-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 10px; margin-top: 24px; }
.age-actions .button { min-height: 48px; }
.age-fallback { position: fixed; inset: 0; display: grid; place-content: center; padding: 24px; background: var(--base); }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .roster-button { flex-direction: column; }
  .roster-button img { width: 39px; height: 39px; }
  .hero-claim { font-size: clamp(36px, 5.3vw, 61px); }
}
@media (max-width: 900px) {
  :root { --header: 62px; }
  .wrap { width: calc(100% - 40px); }
  .topbar-inner { width: calc(100% - 32px); gap: 9px; }
  .wordmark { margin-right: auto; }
  .menu-toggle:not([hidden]) { display: grid; }
  .topnav { display: none; position: absolute; top: var(--header); left: 0; right: 0; padding: 8px 20px 16px; background: #191a2afa; border-bottom: 1px solid var(--line); }
  .topnav.is-open { display: grid; gap: 0; }
  .topnav a { border-bottom: 1px solid var(--line); }
  .section { padding-block: 67px; }
  .section-head { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 23px; }
  .feature-grid, .chapter-grid, .platform-grid { gap: 10px; }
  .feature-card { padding: 16px; }
  .chapter-copy, .platform-tier { padding: 13px; }
  .feature-card h3, .chapter h3 { font-size: 18px; }
  .feature-card > p:last-child, .chapter-copy > p:last-child { font-size: 13px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-frame { object-position: 68% 42%; }
  .hero-logo { width: min(100%, 455px); }
  .hero-console { gap: 7px; }
}
@media (min-width: 561px) and (max-width: 720px) {
  .multi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .multi-grid > article, .multi-grid > article:nth-child(-n+2) { grid-column: auto; }
  .multi-grid > article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { min-height: max(742px, 100svh); }
  .hero-inner { align-items: end; padding-block: 0 91px; }
  .hero-scene, .hero-grade { bottom: auto; height: clamp(440px, 65svh, 625px); }
  .hero-frame { object-position: 73% 18%; }
  .hero-frame.scene-2 { object-position: 68% 18%; }
  .hero-frame.scene-3 { object-position: 86% 18%; }
  .hero-frame.scene-4 { object-position: 77% 18%; }
  .hero-frame.scene-5 { object-position: 80% 18%; }
  .hero-frame.scene-6 { object-position: 82% 18%; }
  .hero-grade { background: linear-gradient(0deg,#190e21 0%,#211129f5 13%,#2e1a4085 39%,#2c1b3b15 64%,transparent 84%),linear-gradient(180deg,#2e183947,transparent 28%); }
  .hero-reticle { inset: calc(var(--header) + 13px) 10px 12px; }
  .hero-reticle i { width: 12px; height: 12px; }
  .hero-hud { top: 22px; font-size: 8px; }
  .hero-hud span { padding: 5px 6px; }
  .hero-kicker { font-size: 9px; gap: 7px; text-shadow: 0 2px 7px #101124; }
  .kicker-divider { width: 12px; }
  .hero-logo { width: min(100%, 390px); margin: 9px 0 3px -2px; }
  .hero-claim { margin-top: 12px; font-size: clamp(26px, 8.3vw, 48px); }
  .hero-lead { margin-top: 10px; font-size: 12px; line-height: 1.65; }
  .hero-actions { gap: 8px; margin-top: 15px; }
  .hero-actions .button { flex: 1; gap: 8px; min-height: 46px; padding: 9px 6px; font-size: 12px; white-space: nowrap; }
  .adult-note { margin-top: 10px; font-size: 11px; }
  .hero-console { bottom: 22px; left: 0; padding: 4px 4px 4px 8px; justify-content: space-between; gap: 3px; min-height: 51px; }
  .scene-readout { min-width: 0; gap: 3px; }
  #scene-label { font-size: 10px; }
  .hero-dot { width: clamp(19px,6.2vw,24px); }
  .play-toggle { width: 36px; margin-left: 2px; }
  .scroll-cue { display: none; }
  .section { padding-block: 54px; }
  .section h2 { font-size: clamp(25px, 7.1vw, 37px); }
  .section-head > p { font-size: 13px; }
  .section-head > p br { display: none; }
  .temptation .section-head { align-items: start; }
  .tease-grid, .multi-grid { grid-template-columns: 1fr; }
  .multi-grid > article, .multi-grid > article:nth-child(-n+2) { grid-column: auto; }
  .tease-note { align-items: start; flex-direction: column; }
  .tease-copy > p:last-child { font-size: 13px; }
  .feature-grid, .chapter-grid, .platform-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { padding: 16px 17px 19px; }
  .feature-top svg { width: 38px; height: 38px; }
  .feature-label { margin-top: 11px; }
  .chapter-copy, .platform-tier { padding: 15px; }
  .character-tabs { gap: 5px; }
  .character-tabs button { gap: 4px; font-size: clamp(10px, 3vw, 13px); }
  .character-tabs button span { font-size: 9px; }
  .character-profile { grid-template-columns: 1fr; }
  .character-info { padding: 17px; }
  .profile-top { margin-bottom: 11px; }
  #character-face { width: 55px; height: 55px; }
  #character-quote { margin-top: 14px; font-size: 13px; }
  .roster-buttons { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .roster-button { min-height: 60px; gap: 4px; font-size: 11px; }
  .roster-button img { width: 31px; height: 31px; }
  .gallery-grid { gap: 8px; }
  .gallery-caption { padding: 8px; }
  .gallery-caption b { font-size: 12px; }
  .specs-grid { grid-template-columns: 1fr; gap: 21px; }
  .specs header > p:last-child { display: none; }
  .spec-list > div { grid-template-columns: 65px 1fr; font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 10px; padding-block: 19px; }
  .footer-logo { grid-column: 1 / -1; }
  .footer-logo img { width: 123px; }
}
@media (max-width: 359px) {
  .age-badge span { display: none; }
  .wordmark { font-size: 18px; gap: 6px; }
  .wordmark img { width: 34px; height: 34px; }
  .hero-dot { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
