:root {
  color-scheme: dark;
  --bg: #07050b;
  --bg-soft: #0d0811;
  --panel: rgba(16, 11, 20, .84);
  --panel-solid: #100b15;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .28);
  --text: #f6f2f0;
  --muted: #a9a1ac;
  --red: #ff1745;
  --red-deep: #9e0027;
  --character-accent: #ff264f;
  --mono: "Arial Narrow", "Roboto Condensed", "Noto Sans Mono CJK JP", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Noto Sans CJK JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --serif: "Noto Serif CJK JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --max: 1320px;
  --pad: clamp(22px, 4.2vw, 64px);
  --header: 80px;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 14%, rgba(133, 0, 39, .12), transparent 29rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .025em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
button { border: 0; }
::selection { background: var(--red); color: white; }

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: white;
  color: #111;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-content: center;
  gap: 16px;
  background: #050408;
  transition: opacity .65s ease, visibility .65s ease;
}
body.is-ready .boot-screen { opacity: 0; visibility: hidden; }
.boot-screen p {
  margin: 0;
  color: #bdb7c1;
  font: 700 10px/1 var(--mono);
  letter-spacing: .34em;
}
.boot-mark { display: flex; justify-content: center; gap: 6px; }
.boot-mark span { width: 34px; height: 2px; background: var(--red); animation: boot 1s ease-in-out infinite alternate; }
.boot-mark span:nth-child(2) { animation-delay: .18s; }
.boot-mark span:nth-child(3) { animation-delay: .36s; }
@keyframes boot { to { opacity: .18; transform: scaleX(.38); } }

.global-effects { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.scanlines {
  position: absolute;
  inset: 0;
  opacity: .14;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.035) 4px);
  mix-blend-mode: screen;
}
.screen-noise {
  position: absolute;
  inset: 0;
  opacity: .10;
  background-image:
    linear-gradient(90deg, transparent 0 49.7%, rgba(255,255,255,.025) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 0 49.7%, rgba(255,255,255,.018) 50%, transparent 50.3%);
  background-size: 83px 71px;
}
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #ff1745, #ff6685);
}
.sakura-layer { position: absolute; inset: 0; overflow: hidden; }
.sakura-layer i {
  position: absolute;
  top: -18px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * .62);
  border-radius: 80% 10% 80% 10%;
  opacity: .33;
  background: linear-gradient(135deg, rgba(255,88,151,.86), rgba(255,255,255,.36));
  animation: sakura var(--duration) linear var(--delay) infinite;
}
@keyframes sakura {
  0% { transform: translate3d(0,-30px,0) rotate(0deg); }
  100% { transform: translate3d(var(--drift),calc(100vh + 60px),0) rotate(540deg); }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(6, 4, 10, .89);
  border-bottom-color: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; flex-direction: column; justify-self: start; line-height: 1; }
.brand-ja { font: 700 21px/1.05 var(--serif); letter-spacing: .025em; }
.brand-en { margin-top: 6px; color: var(--red); font: 800 7px/1 var(--mono); letter-spacing: .25em; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
.main-nav a { display: flex; align-items: center; gap: 7px; padding: 12px 0; font: 800 9px/1 var(--mono); letter-spacing: .14em; color: #d7d1d9; }
.main-nav b { color: var(--red); font-size: 8px; }
.main-nav a::after { content: ""; position: absolute; height: 1px; width: 0; background: var(--red); transform: translateY(11px); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 38px; }
.system-status { justify-self: end; display: flex; align-items: center; gap: 10px; margin: 0; color: #a9a2ad; font: 700 8px/1 var(--mono); letter-spacing: .21em; white-space: nowrap; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: signal 1.6s ease-in-out infinite; }
@keyframes signal { 50% { opacity: .32; box-shadow: 0 0 3px var(--red); } }
.menu-button { display: none; background: transparent; width: 44px; height: 44px; padding: 12px 7px; }
.menu-button span { display: block; height: 1px; background: white; margin: 7px 0; transition: transform .3s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.section { position: relative; padding: clamp(92px, 10vw, 160px) 0; border-top: 1px solid rgba(255,255,255,.07); }
.section-inner { width: min(calc(100% - (var(--pad) * 2)), var(--max)); margin-inline: auto; }
.section-index { display: flex; align-items: flex-start; gap: 20px; margin-bottom: clamp(48px, 7vw, 92px); }
.section-index > span { color: var(--red); font: 800 11px/1 var(--mono); letter-spacing: .15em; }
.section-index p { margin: 0; color: #d9d2db; font: 800 11px/1.25 var(--mono); letter-spacing: .2em; }
.section-index small { display: block; margin-top: 7px; color: #69616c; font-size: 8px; letter-spacing: .18em; }
.section-title .eyebrow, .eyebrow { margin: 0 0 17px; color: var(--red); font: 800 9px/1 var(--mono); letter-spacing: .26em; }
.section-title h2 { margin: 0; font: 600 clamp(38px, 5.7vw, 78px)/1.28 var(--serif); letter-spacing: -.04em; }
.section-title h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(255,255,255,.68); }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 81% 34%, rgba(211, 0, 50, .20), transparent 29%),
    linear-gradient(110deg, #07050c 0 53%, #100713 100%);
}
.hero::before { content: ""; position: absolute; inset: 70% -10% -10%; background: radial-gradient(ellipse at center, rgba(177,0,46,.2), transparent 57%); }
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image:
    linear-gradient(rgba(100,49,112,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,49,112,.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.hero-skyline { position: absolute; left: 23%; right: -3%; bottom: 16%; height: 64%; opacity: .36; }
.hero-skyline i { position: absolute; bottom: 0; width: 7.4%; min-width: 42px; border: 2px solid rgba(129,51,151,.24); background: linear-gradient(to right, transparent, rgba(76,26,89,.07)); box-shadow: inset 0 0 30px rgba(75,0,91,.09); }
.hero-skyline i::after { content: ""; position: absolute; top: -86px; left: 50%; height: 86px; border-left: 2px solid rgba(129,51,151,.24); transform: skew(-14deg); }
.hero-skyline i:nth-child(1) { left: 0; height: 57%; }
.hero-skyline i:nth-child(2) { left: 11%; height: 44%; }
.hero-skyline i:nth-child(3) { left: 20%; height: 35%; }
.hero-skyline i:nth-child(4) { left: 31%; height: 84%; width: 14%; }
.hero-skyline i:nth-child(5) { left: 46%; height: 28%; }
.hero-skyline i:nth-child(6) { left: 55%; height: 43%; }
.hero-skyline i:nth-child(7) { left: 64%; height: 24%; }
.hero-skyline i:nth-child(8) { left: 73%; height: 36%; }
.hero-skyline i:nth-child(9) { left: 82%; height: 31%; }
.hero-skyline i:nth-child(10) { left: 92%; height: 48%; }
.hero-skyline i:nth-child(11) { left: 39%; height: 17%; }
.hero-skyline i:nth-child(12) { left: 68%; height: 61%; width: 10%; }
.hero-skyline i:nth-child(3n)::before { content: ""; position: absolute; left: 17%; top: 15%; width: 3px; height: 42%; background: rgba(255,23,69,.4); box-shadow: 34px 70px rgba(65,100,255,.37), 70px 22px rgba(255,23,69,.29); }
.hero-trails i { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,23,69,.55), transparent); transform-origin: left; }
.hero-trails i:nth-child(1) { left: 41%; top: 67%; width: 68%; transform: rotate(10deg); }
.hero-trails i:nth-child(2) { left: 56%; top: 64%; width: 57%; transform: rotate(-17deg); }
.hero-trails i:nth-child(3) { left: 20%; top: 78%; width: 65%; transform: rotate(4deg); opacity: .4; }
.hero-moon {
  position: absolute;
  z-index: 1;
  top: 9%;
  right: -3.5%;
  width: clamp(370px, 37vw, 610px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(37, 0, 18, .46) 0 11%, transparent 12%),
    radial-gradient(circle at 63% 47%, rgba(47, 0, 19, .34) 0 10%, transparent 11%),
    radial-gradient(circle at 48% 68%, rgba(40, 0, 18, .32) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 45%, #e51b4e 0, #a5002b 58%, #590015 100%);
  box-shadow: 0 0 65px rgba(255, 0, 61, .27), inset -40px -20px 70px rgba(41,0,15,.54);
  animation: moonBreath 7s ease-in-out infinite;
}
.hero-moon::after { content: ""; position: absolute; inset: -4%; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.09), transparent 38%); mix-blend-mode: screen; }
.moon-orbit { position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.moon-orbit::after { content: ""; position: absolute; right: 17%; bottom: -18%; height: 52%; border-left: 1px solid rgba(255,255,255,.21); transform: rotate(-16deg); }
.hero-moon .crater { position: absolute; display: block; border-radius: 50%; background: rgba(48, 0, 20, .24); filter: blur(1px); }
.crater-a { left: 30%; top: 24%; width: 24%; height: 16%; }
.crater-b { left: 53%; top: 39%; width: 22%; height: 14%; }
.crater-c { left: 38%; top: 64%; width: 17%; height: 12%; }
.crater-d { left: 72%; top: 47%; width: 13%; height: 10%; }
@keyframes moonBreath { 50% { transform: scale(1.012); box-shadow: 0 0 95px rgba(255,0,61,.37), inset -40px -20px 70px rgba(41,0,15,.54); } }
.hero-inner { position: relative; z-index: 3; width: 100%; min-height: 100svh; padding: calc(var(--header) + 26px) var(--pad) 58px; display: grid; grid-template-rows: auto 1fr auto; }
.hero-topline { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); color: #aaa2ae; font: 700 8px/1 var(--mono); letter-spacing: .22em; }
.hero-topline p { margin: 0; }
.hero-copy { align-self: center; margin-top: 1.8vh; max-width: 780px; }
.hero-code { display: flex; gap: 27px; margin: 0 0 24px; color: var(--red); font: 800 9px/1 var(--mono); letter-spacing: .22em; }
.hero-copy h1 { margin: 0; font: 700 clamp(72px, 10.2vw, 154px)/.94 var(--serif); letter-spacing: -.075em; text-shadow: 0 0 1px rgba(255,255,255,.4); }
.hero-subtitle { margin: 19px 0 38px; font: 800 clamp(22px, 2.2vw, 34px)/1 var(--mono); letter-spacing: .27em; }
.hero-lead { position: relative; margin: 0; padding-left: 26px; font: 600 clamp(28px, 3.2vw, 48px)/1.58 var(--serif); }
.hero-lead::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 6px; width: 3px; background: var(--red); }
.hero-lead span { font-size: .62em; }
.hero-bottom { align-self: end; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hero-bottom > p { margin: 0; color: #afa8b1; font: 500 13px/1.9 var(--serif); }
.hero-bottom strong { display: block; color: white; font-size: 19px; font-weight: 600; }
.hero-actions { display: flex; gap: 10px; }
.button { min-width: 190px; display: flex; justify-content: space-between; align-items: center; padding: 18px 23px; border: 1px solid rgba(255,255,255,.2); font-size: 12px; font-weight: 800; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #ff1745, #e10037); border-color: transparent; }
.button-primary:hover { background: #ff355c; }
.button-ghost { background: rgba(8,5,12,.48); }
.button-ghost:hover { border-color: rgba(255,255,255,.55); }
.hero-scroll { position: absolute; left: 50%; bottom: 19px; transform: translateX(-50%); margin: 0; color: #77707c; font: 700 7px/1 var(--mono); letter-spacing: .25em; }
.hero-scroll i { display: inline-block; width: 42px; height: 1px; margin-right: 12px; vertical-align: middle; background: linear-gradient(90deg, var(--red), transparent); }

.introduction { background: linear-gradient(180deg, #08060c, #0d0710); }
.intro-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(60px, 9vw, 140px); align-items: start; }
.intro-copy { padding-top: 38px; color: #c7c0ca; }
.intro-copy > p { margin: 0 0 25px; }
.intro-copy blockquote { margin: 48px 0 0; padding: 22px 0 22px 28px; border-left: 3px solid var(--red); color: white; font: 600 clamp(21px, 2.5vw, 32px)/1.65 var(--serif); }
.intro-signals { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 92px; border-block: 1px solid var(--line); }
.intro-signals article { position: relative; min-height: 190px; padding: 32px 34px; border-right: 1px solid var(--line); }
.intro-signals article:last-child { border-right: 0; }
.intro-signals span { color: var(--red); font: 800 9px/1 var(--mono); }
.intro-signals h3 { margin: 35px 0 12px; font: 800 13px/1 var(--mono); letter-spacing: .18em; }
.intro-signals p { margin: 0; color: #918995; font-size: 13px; }

.character-section { overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(84,14,64,.16), transparent 31rem), #08060c; }
.character-section::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(92,45,106,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(92,45,106,.1) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 82%, transparent); }
.character-heading { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.mode-switch { display: flex; align-items: stretch; border: 1px solid var(--line); }
.mode-button { min-width: 172px; padding: 17px 20px; background: rgba(0,0,0,.2); text-align: left; cursor: pointer; transition: background .3s, color .3s; }
.mode-button + .mode-button { border-left: 1px solid var(--line); }
.mode-button span { display: block; font: 800 10px/1 var(--mono); letter-spacing: .16em; }
.mode-button small { display: block; margin-top: 8px; color: #837b87; font-size: 10px; }
.mode-button.is-active { background: var(--character-accent); color: #08050b; }
.mode-button.is-active small { color: rgba(0,0,0,.67); }
.character-tabs { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 73px; border: 1px solid var(--line); }
.character-tab { position: relative; display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 18px 21px; background: rgba(10,7,13,.7); text-align: left; cursor: pointer; border-right: 1px solid var(--line); overflow: hidden; }
.character-tab:last-child { border-right: 0; }
.character-tab b { color: #756e79; font: 800 9px/1 var(--mono); }
.character-tab > span { font: 700 18px/1.1 var(--serif); }
.character-tab small { display: block; margin-top: 7px; color: #756e79; font: 700 7px/1 var(--mono); letter-spacing: .18em; }
.character-tab i { position: absolute; inset: auto 0 0; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--tab-color); transition: transform .35s var(--ease); }
.character-tab::before { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tab-color) 13%, transparent), transparent); transition: opacity .3s; }
.character-tab:hover::before, .character-tab.is-active::before { opacity: 1; }
.character-tab.is-active i { transform: scaleX(1); }
.character-tab.is-active b { color: var(--tab-color); }
.character-stage { position: relative; display: grid; grid-template-columns: minmax(390px,.9fr) minmax(360px,1.1fr); min-height: 760px; margin-top: 24px; border: 1px solid var(--line); background: rgba(9,6,12,.84); box-shadow: 0 24px 90px rgba(0,0,0,.32); }
.character-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 25% 50%, color-mix(in srgb, var(--character-accent) 16%, transparent), transparent 39%); transition: background .5s ease; }
.character-stage[data-mode="cafe"] { background: linear-gradient(120deg, rgba(22,9,17,.94), rgba(24,12,11,.90)); }
.character-stage[data-mode="cafe"]::before { background: radial-gradient(circle at 24% 45%, color-mix(in srgb, var(--character-accent) 13%, transparent), transparent 37%), linear-gradient(145deg, rgba(160,70,51,.10), transparent 48%); }
.character-visual { position: relative; z-index: 1; min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.visual-header, .visual-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #89818d; font: 700 8px/1 var(--mono); letter-spacing: .16em; }
.visual-header i { color: var(--character-accent); font-style: normal; }
.visual-window { position: relative; height: calc(100% - 64px); min-height: 640px; margin: 18px 0; overflow: hidden; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(145deg, rgba(37,15,33,.48), rgba(2,2,5,.92)); }
.visual-window::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.055) 50%, transparent 50.2%), linear-gradient(transparent 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%); background-size: 100% 100%, 100% 100%; }
.visual-window img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: transparent; }
.official-asset-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; overflow: hidden; background: radial-gradient(circle, color-mix(in srgb, var(--character-accent) 13%, transparent), transparent 48%), linear-gradient(145deg, rgba(32,12,29,.75), #050407 72%); }
.official-asset-fallback[hidden] { display: none; }
.official-asset-fallback::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--character-accent) 32%, transparent); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.018), 0 0 0 68px rgba(255,255,255,.012); }
.official-asset-fallback::after { content: ""; position: absolute; width: 1px; height: 78%; background: linear-gradient(transparent, var(--character-accent), transparent); transform: rotate(42deg); opacity: .52; }
.official-asset-fallback p { position: relative; z-index: 1; margin: 0 0 15px; color: var(--character-accent); font: 800 8px/1 var(--mono); letter-spacing: .28em; }
.official-asset-fallback strong { position: relative; z-index: 1; font: 700 clamp(22px, 3vw, 37px)/1.3 var(--serif); }
.official-asset-fallback span { position: relative; z-index: 1; margin-top: 12px; color: #a9a1ad; font-size: 12px; }
.official-asset-fallback small { position: relative; z-index: 1; margin-top: 24px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.17); color: #7f7783; font: 700 7px/1 var(--mono); letter-spacing: .21em; }
.fallback-circuit { position: absolute; inset: 0; opacity: .25; }
.fallback-circuit i { position: absolute; background: var(--character-accent); }
.fallback-circuit i:nth-child(1) { left: 12%; top: 18%; width: 27%; height: 1px; }
.fallback-circuit i:nth-child(2) { right: 12%; bottom: 22%; width: 31%; height: 1px; }
.fallback-circuit i:nth-child(3) { right: 19%; top: 14%; width: 1px; height: 26%; }
.fallback-circuit i:nth-child(4) { left: 17%; bottom: 12%; width: 1px; height: 31%; }
.visual-corner { position: absolute; z-index: 3; width: 23px; height: 23px; border-color: var(--character-accent); opacity: .68; }
.corner-a { left: 12px; top: 12px; border-left: 1px solid; border-top: 1px solid; }
.corner-b { right: 12px; top: 12px; border-right: 1px solid; border-top: 1px solid; }
.corner-c { left: 12px; bottom: 12px; border-left: 1px solid; border-bottom: 1px solid; }
.corner-d { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.character-profile { position: relative; z-index: 1; align-self: center; padding: clamp(45px, 6.2vw, 90px); }
.profile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: #78717c; font: 800 8px/1 var(--mono); letter-spacing: .2em; }
.profile-head p { margin: 0; }
.profile-head p span { color: var(--character-accent); }
.character-profile h3 { margin: 0; font: 700 clamp(60px, 7.2vw, 102px)/1 var(--serif); letter-spacing: -.075em; }
.profile-catch { margin: 28px 0 20px; color: var(--character-accent); font: 600 clamp(18px, 2.1vw, 28px)/1.6 var(--serif); }
.profile-description { max-width: 650px; margin: 0 0 36px; color: #bbb4be; }
.profile-specs { margin: 0; border-top: 1px solid var(--line); }
.profile-specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile-specs dt { color: #77707b; font: 800 8px/1.7 var(--mono); letter-spacing: .18em; }
.profile-specs dd { margin: 0; font-size: 13px; }
.battle-records { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 72px; }
.asset-card { position: relative; min-width: 0; }
.asset-card-media { position: relative; aspect-ratio: 2/3; overflow: hidden; border: 1px solid var(--line); background: #09070b; }
.asset-card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.asset-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.asset-card-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%), linear-gradient(145deg, #110a12, #050406); }
.asset-card-fallback[hidden] { display: none; }
.asset-card-fallback::before { content: ""; width: 94px; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 50%; box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 14%, transparent); }
.asset-card-fallback span { position: absolute; top: 17px; left: 17px; color: var(--accent); font: 800 9px/1 var(--mono); }
.asset-card-fallback b { margin-top: 22px; color: #f5f0f4; font: 800 9px/1 var(--mono); letter-spacing: .17em; }
.asset-card-fallback small { margin-top: 9px; color: #716a75; font: 700 6px/1 var(--mono); letter-spacing: .16em; }
.asset-card > h3 { margin: 18px 0 5px; font: 700 21px/1 var(--serif); }
.asset-card > p { margin: 0; color: var(--accent); font: 800 7px/1 var(--mono); letter-spacing: .17em; }

.enemy-section { overflow: hidden; background: #09060b; }
.enemy-bg { position: absolute; inset: 0; opacity: .38; background: radial-gradient(circle at 80% 24%, rgba(218,0,50,.18), transparent 32%), linear-gradient(127deg, transparent 49.8%, rgba(255,23,69,.25) 50%, transparent 50.2%); }
.enemy-heading, .world-heading, .project-heading { display: grid; grid-template-columns: 1fr minmax(290px, .52fr); gap: 70px; align-items: end; }
.enemy-heading > p, .world-heading > p, .project-heading > p { margin: 0 0 9px; color: #a9a2ac; }
.enemy-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-top: 78px; }
.enemy-card { display: grid; grid-template-rows: auto 1fr; padding: 0; background: #0d0910; color: white; border: 1px solid var(--line); text-align: left; cursor: pointer; transition: transform .35s var(--ease), border-color .35s ease; }
.enemy-card:hover, .enemy-card:focus-visible { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 58%, white 4%); }
.enemy-card .asset-card-media { aspect-ratio: 5/4; border: 0; border-bottom: 1px solid var(--line); }
.enemy-card .asset-card-fallback::before { width: 72px; }
.enemy-card > div:nth-child(2) { padding: 23px 22px 28px; }
.enemy-card > div:nth-child(2) > span { color: var(--accent); font: 800 7px/1 var(--mono); letter-spacing: .16em; }
.enemy-card h3 { margin: 13px 0 7px; font: 700 23px/1.2 var(--serif); }
.enemy-card p { margin: 0; color: #8d8591; font-size: 11px; }
.enemy-card > i { position: absolute; right: 18px; bottom: 15px; color: var(--accent); font-style: normal; }
.enemy-card-wide { grid-column: span 2; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr; min-height: 270px; }
.enemy-card-wide .asset-card-media { aspect-ratio: auto; min-height: 270px; border-bottom: 0; border-right: 1px solid var(--line); }
.enemy-card-wide > div:nth-child(2) { align-self: center; }

.world-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(128,0,37,.14), transparent 30rem),
    linear-gradient(180deg, #08060d, #100912);
}
.world-layer-gallery { display: grid; gap: 18px; margin-top: 80px; }
.world-layer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(21,13,25,.96), rgba(8,6,11,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.world-layer-card:nth-child(even) { grid-template-columns: minmax(320px,.65fr) minmax(0,1.55fr); }
.world-layer-card:nth-child(even) .world-layer-media { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.world-layer-card:nth-child(even) .world-layer-copy { order: 1; }
.world-layer-media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #050408;
}
.world-layer-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(4,3,7,.84));
}
.world-layer-media::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 1px;
  top: -4%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,40,78,.72), transparent);
  box-shadow: 0 0 14px rgba(255,23,69,.42);
  animation: worldImageScan 7s linear infinite;
}
@keyframes worldImageScan { from { top: -4%; } to { top: 104%; } }
.world-layer-media img { width: 100%; height: 100%; object-fit: cover; }
.world-layer-media figcaption {
  position: absolute;
  z-index: 4;
  left: 25px;
  right: 25px;
  bottom: 21px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  font: 800 8px/1 var(--mono);
  letter-spacing: .18em;
}
.world-layer-media figcaption span { color: #ff6e83; }
.world-layer-media figcaption small { color: rgba(255,255,255,.7); font: inherit; }
.world-layer-copy { position: relative; display: grid; align-content: center; padding: clamp(34px,4.8vw,68px); }
.world-layer-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255,23,69,.5), transparent);
}
.world-layer-card:nth-child(even) .world-layer-copy::before { left: auto; right: 0; }
.world-layer-copy > b { color: var(--red); font: 800 8px/1 var(--mono); letter-spacing: .2em; }
.world-layer-copy h3 { margin: 18px 0 18px; font: 700 clamp(28px,3vw,44px)/1.15 var(--serif); letter-spacing: -.03em; }
.world-layer-copy p { margin: 0; color: #aaa2ad; font-size: 13px; line-height: 2; }
.world-layer-copy ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.world-layer-copy li { padding: 8px 11px; border: 1px solid rgba(255,255,255,.12); color: #d3ccd5; background: rgba(255,255,255,.018); font: 800 7px/1 var(--mono); letter-spacing: .15em; }

.cafe-section { position: relative; min-height: 760px; display: grid; align-items: end; overflow: hidden; }
.cafe-backdrop, .cafe-backdrop > img, .cafe-backdrop-fallback, .cafe-shade { position: absolute; inset: 0; }
.cafe-backdrop > img { width: 100%; height: 100%; object-fit: cover; }
.cafe-backdrop-fallback { overflow: hidden; background: radial-gradient(circle at 50% 36%, rgba(253,144,97,.25), transparent 32%), linear-gradient(180deg, #1e0b14, #080509 78%); }
.cafe-window { position: absolute; left: 8%; right: 8%; top: 12%; height: 55%; display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5%; perspective: 800px; }
.cafe-window i { border: 2px solid rgba(255,215,177,.24); background: linear-gradient(180deg, rgba(174,32,91,.22), rgba(255,108,57,.08)); box-shadow: inset 0 0 80px rgba(255,84,65,.07); }
.cafe-window i::before { content: ""; display: block; width: 1px; height: 100%; margin-inline: auto; background: rgba(255,255,255,.13); }
.cafe-counter { position: absolute; left: -5%; right: -5%; bottom: 0; height: 34%; transform: perspective(500px) rotateX(47deg); transform-origin: bottom; background: repeating-linear-gradient(90deg, rgba(67,17,29,.88) 0 120px, rgba(91,31,34,.88) 121px 123px), linear-gradient(#3a1820,#12080c); border-top: 3px solid rgba(255,173,119,.3); }
.cafe-lanterns { position: absolute; left: 5%; right: 5%; top: 7%; display: flex; justify-content: space-around; }
.cafe-lanterns i { width: 48px; height: 70px; border-radius: 45%; background: radial-gradient(circle, #ffb49a, #b82045 70%); box-shadow: 0 0 35px rgba(255,73,78,.27); }
.cafe-lanterns i::before { content: ""; position: absolute; margin-left: 23px; margin-top: -90px; height: 90px; border-left: 1px solid rgba(255,255,255,.2); }
.cafe-shade { background: linear-gradient(90deg, rgba(4,3,6,.93) 0 40%, rgba(4,3,6,.53) 66%, rgba(4,3,6,.77)), linear-gradient(0deg, rgba(5,3,6,.9), transparent 55%); }
.cafe-content { position: relative; z-index: 2; padding-bottom: clamp(75px, 9vw, 125px); }
.cafe-kicker { margin: 0 0 24px; color: #ff8a84; font: 800 9px/1 var(--mono); letter-spacing: .24em; }
.cafe-content h2 { max-width: 980px; margin: 0; font: 600 clamp(40px, 5.8vw, 76px)/1.35 var(--serif); letter-spacing: -.045em; }
.cafe-content h2 em { color: #ffb0a1; font-style: normal; }
.cafe-content > p:not(.cafe-kicker) { max-width: 650px; margin: 35px 0 0; color: #b9afb5; }
.text-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 37px; padding-bottom: 8px; border-bottom: 1px solid #ff7c78; color: #fff; font-size: 12px; font-weight: 800; }

.archive-section { background: #08060b; }
.archive-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(55px, 8vw, 120px); align-items: start; }
.archive-copy > p { max-width: 560px; margin: 35px 0 0; color: #aaa2ad; }
.memory-form { margin-top: 52px; }
.memory-form label { display: block; margin-bottom: 12px; color: #756e79; font: 800 8px/1 var(--mono); letter-spacing: .18em; }
.memory-form > div { border: 1px solid var(--line-strong); background: rgba(255,255,255,.018); }
.memory-form textarea { display: block; width: 100%; resize: vertical; min-height: 116px; padding: 20px; border: 0; outline: 0; background: transparent; line-height: 1.7; }
.memory-form textarea::placeholder { color: #5f5862; }
.memory-form button { display: flex; justify-content: space-between; width: 100%; padding: 15px 20px; background: var(--red); cursor: pointer; font-size: 11px; font-weight: 800; }
.memory-terminal { border: 1px solid var(--line); background: #0c0910; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.terminal-head { display: flex; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); color: #79717c; font: 800 7px/1 var(--mono); letter-spacing: .16em; }
.terminal-head i { color: var(--red); font-style: normal; }
.memory-list { min-height: 480px; max-height: 620px; overflow: auto; padding: 10px 24px; }
.memory-note { position: relative; padding: 26px 40px 25px 0; border-bottom: 1px solid var(--line); }
.memory-note > span { color: var(--red); font: 800 7px/1 var(--mono); letter-spacing: .17em; }
.memory-note p { margin: 11px 0 0; font: 500 18px/1.7 var(--serif); }
.memory-note button { position: absolute; right: 0; top: 30px; width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: #746d77; }

.project-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 67%, rgba(141,0,42,.13), transparent 29rem),
    linear-gradient(180deg, #0b0710, #050407);
}
.project-section::before {
  content: "NOVEL FIRST";
  position: absolute;
  right: -1.5vw;
  bottom: 0;
  color: rgba(255,255,255,.018);
  font: 900 clamp(76px, 13vw, 210px)/.75 var(--mono);
  letter-spacing: -.08em;
  pointer-events: none;
}
.project-heading-novel > p { max-width: 580px; }
.novel-launch-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr);
  gap: 18px;
  margin-top: 77px;
}
.novel-primary,
.project-roadmap article {
  border: 1px solid var(--line);
  background: rgba(9,6,12,.74);
  box-shadow: 0 28px 90px rgba(0,0,0,.21);
}
.novel-primary {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,23,69,.055), transparent 42%),
    rgba(9,6,12,.82);
}
.novel-primary::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -120px;
  width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,23,69,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 33px rgba(255,23,69,.025), 0 0 0 82px rgba(255,23,69,.018);
  pointer-events: none;
}
.novel-phase,
.project-roadmap header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: #8c8490;
  font: 800 8px/1 var(--mono);
  letter-spacing: .18em;
}
.novel-phase span,
.project-roadmap header span { color: var(--red); }
.novel-phase b,
.project-roadmap header b { color: #d0c8d1; font-weight: 800; }
.novel-primary-content {
  display: grid;
  grid-template-columns: minmax(210px, .68fr) minmax(0, 1.32fr);
  min-height: 465px;
}
.novel-mark {
  position: relative;
  min-height: 100%;
  padding: 42px 34px 35px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(219,0,52,.72) 0 66px, rgba(105,0,28,.58) 67px 93px, transparent 94px),
    #08060b;
  background-size: 38px 38px, 38px 38px, auto, auto;
}
.novel-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 36px;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #430013;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
}
.novel-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(38% + 52px);
  width: 58px;
  height: 105px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 28%, 77% 100%, 23% 100%, 0 28%);
  border: 1px solid rgba(255,23,69,.45);
  background: linear-gradient(180deg, rgba(255,23,69,.16), rgba(255,23,69,.025));
}
.novel-mark > div,
.novel-mark > span,
.novel-mark > p { position: relative; z-index: 2; }
.novel-mark small { display: block; color: #aaa1ac; font: 800 8px/1 var(--mono); letter-spacing: .2em; }
.novel-mark strong { display: block; margin-top: 12px; color: rgba(255,255,255,.12); font: 900 clamp(86px, 8vw, 132px)/.8 var(--mono); letter-spacing: -.08em; }
.novel-mark > span { position: absolute; left: 34px; bottom: 65px; color: #f4efed; font: 700 20px/1.25 var(--serif); letter-spacing: .04em; }
.novel-mark > i { position: absolute; inset: auto 34px 52px; height: 1px; background: linear-gradient(90deg, var(--red), transparent); }
.novel-mark > p { position: absolute; left: 34px; bottom: 23px; margin: 0; color: #766e79; font: 800 7px/1 var(--mono); letter-spacing: .18em; }
.novel-copy { align-self: center; padding: 48px clamp(34px, 4vw, 66px); }
.novel-copy h3 { margin: 17px 0 26px; font: 600 clamp(36px, 4.3vw, 62px)/1.35 var(--serif); letter-spacing: -.045em; }
.novel-lead { max-width: 620px; margin: 0; color: #b7afb8; }
.novel-meta { margin: 38px 0 0; border-top: 1px solid var(--line); }
.novel-meta > div { display: grid; grid-template-columns: 94px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.novel-meta dt { color: var(--red); font: 800 8px/1.5 var(--mono); letter-spacing: .17em; }
.novel-meta dd { margin: 0; color: #aaa2ad; font-size: 11px; }
.novel-primary blockquote { position: relative; z-index: 2; margin: 0; padding: 24px clamp(28px, 4vw, 62px); border-top: 1px solid var(--line); color: #dfd7dc; font: 500 clamp(16px, 1.7vw, 22px)/1.6 var(--serif); }
.project-roadmap { display: grid; gap: 18px; }
.project-roadmap article { position: relative; min-height: 0; padding-bottom: 28px; overflow: hidden; transition: border-color .3s ease, background .3s ease; }
.project-roadmap article:hover { border-color: rgba(255,255,255,.26); background: rgba(255,23,69,.035); }
.project-roadmap h3 { margin: 35px 30px 17px; font: 600 30px/1.2 var(--serif); }
.project-roadmap p { margin: 0 30px; color: #9d95a1; font-size: 12px; }
.project-live a { display: flex; justify-content: space-between; align-items: center; margin: 32px 30px 0; padding: 13px 0 7px; border-bottom: 1px solid rgba(255,23,69,.5); color: #e9e2e6; font-size: 11px; font-weight: 800; }
.project-live a span { color: var(--red); font-size: 18px; }
.project-future::after { content: "FUTURE"; position: absolute; right: -13px; bottom: -2px; color: rgba(255,255,255,.035); font: 900 56px/1 var(--mono); letter-spacing: -.07em; pointer-events: none; }
.project-future ul { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 30px 0; padding: 0; list-style: none; }
.project-future li { padding: 9px 10px; border: 1px solid var(--line); color: #887f8b; font: 800 7px/1 var(--mono); letter-spacing: .16em; }

.site-footer { position: relative; overflow: hidden; padding: 120px 0 38px; background: #030205; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.footer-moon { position: absolute; top: -190px; left: 50%; width: 490px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(206,0,50,.5), rgba(80,0,20,.42) 61%, transparent 62%); filter: blur(.1px); opacity: .54; }
.site-footer .section-inner { position: relative; z-index: 1; }
.footer-title { display: flex; flex-direction: column; line-height: 1; }
.footer-title span { font: 700 clamp(44px, 6vw, 76px)/1 var(--serif); letter-spacing: -.05em; }
.footer-title small { margin-top: 17px; font: 800 13px/1 var(--mono); letter-spacing: .28em; }
.site-footer > .section-inner > p { margin: 30px 0 0; color: #9f98a2; font-family: var(--serif); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin: 64px 0; color: #928a96; font: 800 8px/1 var(--mono); letter-spacing: .17em; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); color: #68616b; font: 700 8px/1 var(--mono); letter-spacing: .14em; }
.footer-bottom p { margin: 0; }

.enemy-dialog { width: min(1000px, calc(100% - 40px)); max-height: calc(100svh - 40px); padding: 0; border: 1px solid rgba(255,255,255,.22); background: #0b080d; color: white; box-shadow: 0 30px 120px rgba(0,0,0,.78); }
.enemy-dialog::backdrop { background: rgba(2,1,4,.84); backdrop-filter: blur(8px); }
.enemy-dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-close { position: absolute; z-index: 5; right: 13px; top: 13px; width: 42px; height: 42px; background: rgba(0,0,0,.62); border: 1px solid var(--line); cursor: pointer; font-size: 20px; }
.dialog-media { position: relative; min-height: 620px; border-right: 1px solid var(--line); background: #050407; }
.dialog-media img { width: 100%; height: 100%; object-fit: contain; }
.dialog-copy { align-self: center; padding: 58px; }
.dialog-copy > p:first-child { color: var(--red); font: 800 8px/1 var(--mono); letter-spacing: .18em; }
.dialog-copy h2 { margin: 18px 0 7px; font: 700 clamp(40px, 5vw, 68px)/1.12 var(--serif); }
.dialog-copy > b { color: #918996; font: 800 8px/1 var(--mono); letter-spacing: .17em; }
.dialog-copy > p:not(:first-child) { margin: 30px 0 35px; color: #b6aeb8; }
.dialog-copy h3 { margin: 0 0 15px; color: var(--red); font: 800 8px/1 var(--mono); letter-spacing: .18em; }
.dialog-copy ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dialog-copy li { padding: 10px 0; border-bottom: 1px solid var(--line); color: #a69faa; font-size: 11px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; position: fixed; inset: 0; padding: 110px var(--pad) 50px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; background: rgba(5,3,8,.97); }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .system-status { display: none; }
  .menu-button { display: block; position: relative; z-index: 2; }
  .hero-moon { right: -14%; }
  .hero-copy { max-width: 66%; }
  .character-stage { grid-template-columns: .86fr 1.14fr; }
  .character-profile { padding: 50px; }
  .battle-records { grid-template-columns: repeat(5, 210px); overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
  .battle-records .asset-card { scroll-snap-align: start; }
  .enemy-grid { grid-template-columns: repeat(2,1fr); }
  .novel-launch-grid { grid-template-columns: 1fr; }
  .project-roadmap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header: 66px; }
  body { font-size: 14px; }
  .site-header { padding-inline: 19px; }
  .brand-ja { font-size: 18px; }
  .hero-inner { padding: calc(var(--header) + 20px) 20px 33px; }
  .hero-topline p:last-child { display: none; }
  .hero-moon { top: 11%; right: -38%; width: 118vw; opacity: .88; }
  .hero-moon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(5,3,9,.33), transparent 40%); }
  .hero-skyline { left: 0; right: -60%; bottom: 22%; height: 53%; opacity: .28; }
  .hero-copy { align-self: end; max-width: none; margin-bottom: 28%; }
  .hero-code { gap: 17px; font-size: 7px; }
  .hero-copy h1 { font-size: clamp(57px, 18vw, 92px); }
  .hero-subtitle { margin: 13px 0 30px; font-size: clamp(15px, 5vw, 22px); letter-spacing: .22em; }
  .hero-lead { padding-left: 17px; font-size: clamp(25px, 7.5vw, 37px); line-height: 1.55; }
  .hero-bottom { display: block; }
  .hero-bottom > p { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .button { min-width: 0; padding: 15px 15px; font-size: 10px; }
  .hero-scroll { display: none; }
  .section { padding-block: 86px; }
  .section-inner { width: calc(100% - 40px); }
  .section-index { margin-bottom: 45px; }
  .section-title h2 { font-size: clamp(35px, 10vw, 54px); }
  .intro-layout, .character-heading, .enemy-heading, .world-heading, .project-heading, .archive-layout { grid-template-columns: 1fr; gap: 36px; }
  .intro-copy { padding-top: 0; }
  .intro-signals { grid-template-columns: 1fr; margin-top: 55px; }
  .intro-signals article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-signals article:last-child { border-bottom: 0; }
  .intro-signals h3 { margin-top: 20px; }
  .mode-switch { width: 100%; }
  .mode-button { min-width: 0; flex: 1; padding: 14px; }
  .character-tabs { grid-template-columns: repeat(5, minmax(72px,1fr)); margin-top: 42px; overflow-x: auto; }
  .character-tab { min-width: 88px; min-height: 77px; padding: 12px; flex-direction: column; align-items: flex-start; gap: 9px; }
  .character-tab > span { font-size: 15px; }
  .character-stage { grid-template-columns: 1fr; margin-top: 14px; }
  .character-visual { padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .visual-window { min-height: 0; height: auto; aspect-ratio: 9/14; max-height: 72svh; }
  .visual-caption { display: none; }
  .character-profile { padding: 37px 24px 44px; }
  .character-profile h3 { font-size: 67px; }
  .profile-head { margin-bottom: 14px; }
  .profile-specs > div { grid-template-columns: 88px 1fr; gap: 13px; }
  .identity-lock ul { grid-template-columns: 1fr; }
  .battle-records { margin-top: 42px; grid-template-columns: repeat(5, 72vw); }
  .enemy-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .enemy-card-wide { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
  .enemy-card-wide .asset-card-media { min-height: 0; aspect-ratio: 5/4; border-right: 0; border-bottom: 1px solid var(--line); }
  .world-layer-gallery { margin-top: 47px; gap: 14px; }
  .world-layer-card, .world-layer-card:nth-child(even) { grid-template-columns: 1fr; }
  .world-layer-card:nth-child(even) .world-layer-media { order: 0; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .world-layer-card:nth-child(even) .world-layer-copy { order: 1; }
  .world-layer-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .world-layer-copy { padding: 31px 26px 38px; }
  .world-layer-copy::before, .world-layer-card:nth-child(even) .world-layer-copy::before { left: 8%; right: 8%; top: 0; bottom: auto; width: auto; height: 1px; }
  .cafe-section { min-height: 680px; }
  .cafe-shade { background: linear-gradient(0deg, rgba(4,3,6,.94) 0 43%, rgba(4,3,6,.5) 82%, rgba(4,3,6,.65)); }
  .cafe-content h2 { font-size: clamp(38px, 10.5vw, 54px); }
  .memory-terminal { margin-top: 10px; }
  .memory-list { min-height: 390px; }
  .novel-launch-grid { margin-top: 48px; }
  .novel-primary-content { grid-template-columns: 1fr; }
  .novel-mark { min-height: 305px; border-right: 0; border-bottom: 1px solid var(--line); }
  .novel-copy { padding: 38px 25px 43px; }
  .novel-copy h3 { font-size: clamp(35px, 11vw, 52px); }
  .novel-meta > div { grid-template-columns: 78px 1fr; gap: 13px; }
  .project-roadmap { grid-template-columns: 1fr; }
  .project-roadmap h3 { margin-inline: 24px; }
  .project-roadmap p, .project-live a, .project-future ul { margin-left: 24px; margin-right: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: center; }
  .enemy-dialog[open] { display: block; overflow-y: auto; }
  .dialog-media { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-copy { padding: 36px 25px 42px; }
}

@media (max-width: 480px) {
  .hero-code span:last-child { display: none; }
  .hero-copy { margin-bottom: 41%; }
  .hero-copy h1 { font-size: 17vw; white-space: nowrap; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .button-ghost { display: none; }
  .character-tabs { margin-inline: -20px; padding-inline: 20px; border-inline: 0; }
  .visual-header i { display: none; }
  .profile-catch { font-size: 19px; }
  .world-layer-media figcaption { left: 16px; right: 16px; bottom: 14px; }
  .world-layer-media figcaption small { display: none; }
  .world-layer-copy h3 { font-size: 31px; }
  .cafe-lanterns i { width: 34px; height: 50px; }
  .footer-title small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sakura-layer { display: none; }
}

/* Decorative layers must never block controls. */
.character-section::before,
.enemy-bg,
.hero-grid,
.hero-skyline,
.hero-trails,
.hero-moon,
.cafe-backdrop,
.cafe-shade,
.footer-moon { pointer-events: none; }

@media (min-width: 821px) {
  .hero-copy { max-width: 940px; }
  .hero-copy h1 { white-space: nowrap; font-size: clamp(72px, 9vw, 132px); }
}

/* ========================================================================== */
/* V4.1 — OFFICIAL KEY VISUAL / CHARACTER PRESENTATION                        */
/* ========================================================================== */

.hero {
  min-height: max(720px, 100svh);
  background: #040307;
  isolation: isolate;
}
.hero::before { display: none; }
.hero-kv,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-kv { z-index: 0; overflow: hidden; background: #030207; }
.hero-kv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,2,6,.73) 0%, rgba(3,2,6,.20) 24%, rgba(3,2,6,.06) 58%, rgba(3,2,6,.31) 100%),
    linear-gradient(0deg, rgba(3,2,6,.84) 0%, rgba(3,2,6,.17) 25%, rgba(3,2,6,.05) 72%, rgba(3,2,6,.42) 100%);
}
.hero-grid { z-index: 2; opacity: .13; }
.hero-trails { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .46; }
.hero-inner { z-index: 3; }
.hero-copy {
  align-self: start;
  width: min(430px, 42vw);
  margin-top: clamp(72px, 11vh, 132px);
  padding: 24px 27px 27px;
  border-left: 2px solid rgba(255,23,69,.88);
  background: linear-gradient(90deg, rgba(5,3,8,.79), rgba(5,3,8,.27) 82%, transparent);
  backdrop-filter: blur(2px);
}
.hero-copy h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-code { margin-bottom: 17px; }
.hero-lead {
  padding-left: 0;
  font-size: clamp(23px, 2.4vw, 38px);
  line-height: 1.55;
  text-shadow: 0 2px 24px rgba(0,0,0,.9);
}
.hero-lead::before { display: none; }
.hero-bottom {
  padding: 18px 0 3px;
  border-top: 1px solid rgba(255,255,255,.20);
}
.hero-bottom > p { text-shadow: 0 2px 18px rgba(0,0,0,.95); }
.hero-actions .button { backdrop-filter: blur(10px); }

.character-stage { min-height: 960px; }
.character-visual { display: flex; flex-direction: column; }
.visual-window { flex: 1 1 auto; height: auto; min-height: 745px; }
.visual-window img { object-fit: cover; object-position: top center; }
.character-stage[data-mode="cafe"] .visual-window img { object-position: center 13%; }
.character-profile { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 4.6vw, 66px); }


.cafe-panorama {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #090609;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.cafe-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,47,82,.17), inset 0 -130px 100px rgba(2,1,3,.56);
}
.cafe-panorama-head,
.cafe-panorama-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 19px;
}
.cafe-panorama-head {
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(8,5,8,.92);
  font: 800 8px/1.4 var(--mono);
  letter-spacing: .18em;
}
.cafe-panorama-head span { color: #ff9c88; }
.cafe-panorama-head small { color: #8d838b; font-size: 8px; letter-spacing: .12em; }
.cafe-panorama > img {
  width: 100%;
  aspect-ratio: 2000 / 475;
  object-fit: cover;
  object-position: center;
}
.cafe-panorama-caption {
  margin-top: -1px;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(7,4,7,.90);
}
.cafe-panorama-caption p { margin: 0; font: 600 17px/1.5 var(--serif); }
.cafe-panorama-caption a {
  color: #ff8b78;
  font: 800 9px/1 var(--mono);
  letter-spacing: .14em;
}
.cafe-panorama-caption a span { margin-left: 10px; }

/* The enemy area deliberately renders a classified dossier whenever the exact
   official enemy binary is not bundled. No generic substitute is requested. */
.enemy-card .asset-card-fallback,
.enemy-dialog .official-asset-fallback {
  background:
    radial-gradient(circle at 50% 43%, color-mix(in srgb, var(--accent, #ff264f) 22%, transparent) 0 7%, transparent 8% 18%, color-mix(in srgb, var(--accent, #ff264f) 12%, transparent) 19% 20%, transparent 21%),
    repeating-radial-gradient(circle at 50% 43%, transparent 0 26px, rgba(255,255,255,.028) 27px 28px),
    linear-gradient(145deg, #120910, #050406 72%);
}
.enemy-card .asset-card-fallback::before {
  border-style: dashed;
  animation: classified-ring 16s linear infinite;
}
@keyframes classified-ring { to { transform: rotate(360deg); } }

.cafe-section .cafe-backdrop > img { object-position: center; }
.cafe-section .cafe-shade {
  background:
    linear-gradient(90deg, rgba(4,3,6,.94) 0 34%, rgba(4,3,6,.48) 62%, rgba(4,3,6,.76)),
    linear-gradient(0deg, rgba(5,3,6,.91), transparent 57%);
}

@media (max-width: 1120px) {
  .hero-copy { width: min(390px, 45vw); }
  .character-stage { grid-template-columns: minmax(330px,.88fr) minmax(360px,1.12fr); }
}

@media (max-width: 820px) {
  .hero { min-height: 100svh; }
  .hero-kv img { object-position: center top; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(3,2,6,.96) 0%, rgba(3,2,6,.62) 30%, rgba(3,2,6,.08) 63%, rgba(3,2,6,.38) 100%);
  }
  .hero-inner { padding-bottom: 35px; }
  .hero-topline p:last-child { display: none; }
  .hero-copy {
    align-self: end;
    width: 100%;
    max-width: 540px;
    margin: 0 0 142px;
    padding: 20px 21px 21px;
    background: linear-gradient(90deg, rgba(5,3,8,.86), rgba(5,3,8,.31));
  }
  .hero-lead { font-size: clamp(23px, 7vw, 34px); }
  .hero-bottom {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 36px;
    display: grid;
    gap: 14px;
    padding-top: 13px;
  }
  .hero-bottom > p { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-scroll { display: none; }
  .character-stage { grid-template-columns: 1fr; min-height: 0; }
  .visual-window { min-height: 0; aspect-ratio: 9 / 14; max-height: none; }
  .character-stage[data-mode="cafe"] .visual-window { aspect-ratio: 3 / 4; }
  .cafe-panorama { margin-top: 44px; }
  .cafe-panorama-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .cafe-panorama > img { min-height: 270px; aspect-ratio: auto; object-fit: cover; }
  .cafe-panorama-caption { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-copy { margin-bottom: 128px; }
  .hero-code { font-size: 7px; }
  .hero-lead { font-size: 24px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .button-ghost { display: none; }
  .cafe-panorama > img { min-height: 330px; object-position: center; }
  .cafe-panorama-caption p { font-size: 15px; }
}

/* V4.2 — preserve the full character silhouette in the main viewer. */
.visual-window {
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--character-accent) 12%, transparent), transparent 48%),
    #050408;
}
.visual-window img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.character-stage[data-mode="cafe"] .visual-window img { object-position: center; }

/* CAFE MODE remains warm and legible without obscuring the exact maid artwork. */
.cafe-section .cafe-backdrop > img { filter: saturate(.92) brightness(.72); }
.cafe-section .cafe-shade {
  background:
    linear-gradient(90deg, rgba(4,3,6,.88) 0 31%, rgba(4,3,6,.35) 57%, rgba(4,3,6,.50)),
    linear-gradient(0deg, rgba(5,3,6,.93) 0 28%, rgba(5,3,6,.12) 68%, rgba(5,3,6,.22));
}

@media (max-width: 820px) {
  .visual-window img { object-fit: contain; }
  .cafe-section .cafe-backdrop > img { object-position: 50% 18%; filter: saturate(.9) brightness(.66); }
  .cafe-section .cafe-shade {
    background: linear-gradient(0deg, rgba(4,3,6,.96) 0 52%, rgba(4,3,6,.26) 80%, rgba(4,3,6,.28));
  }
}


/* ========================================================================== */
/* V4.3 — READER-FACING PROFILES / OFFICIAL ENEMY VISUALS                     */
/* ========================================================================== */

.profile-description { margin-bottom: 30px; line-height: 1.9; }
.profile-specs > div { grid-template-columns: 96px 1fr; padding: 11px 0; }
.profile-archive { margin-top: 30px; }
.profile-archive-label {
  margin: 0 0 16px;
  color: var(--character-accent);
  font: 800 8px/1 var(--mono);
  letter-spacing: .2em;
}
.profile-long {
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  color: #c4bdc7;
  font-size: 12px;
  line-height: 1.95;
}
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.profile-detail-grid article {
  min-height: 138px;
  padding: 19px 20px 21px;
  background: rgba(9,6,12,.96);
}
.profile-detail-grid span,
.profile-mode-record span,
.profile-memory-risk span {
  color: var(--character-accent);
  font: 800 7px/1.25 var(--mono);
  letter-spacing: .17em;
}
.profile-detail-grid p {
  margin: 13px 0 0;
  color: #aaa3ad;
  font-size: 11px;
  line-height: 1.85;
}
.profile-mode-record {
  position: relative;
  margin-top: 14px;
  padding: 23px 24px 25px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--character-accent) 38%, rgba(255,255,255,.08));
  background:
    linear-gradient(130deg, color-mix(in srgb, var(--character-accent) 9%, transparent), transparent 55%),
    rgba(8,5,10,.90);
}
.profile-mode-record::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--character-accent) 26%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 55px color-mix(in srgb, var(--character-accent) 10%, transparent);
}
.profile-mode-record > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-mode-record small { color: #746d77; font: 700 7px/1 var(--mono); letter-spacing: .15em; }
.profile-mode-record h4 { position: relative; z-index: 1; margin: 20px 0 10px; font: 600 20px/1.55 var(--serif); }
.profile-mode-record p { position: relative; z-index: 1; margin: 0; color: #aaa2ad; font-size: 11px; line-height: 1.9; }
.profile-memory-risk {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 14px;
  padding: 17px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--character-accent) 24%, var(--line));
}
.profile-memory-risk p { margin: 0; color: #938b97; font-size: 10px; line-height: 1.8; }

.enemy-card .asset-card-media { background: #050306; }
.enemy-card .asset-card-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(3,2,4,.78) 100%);
}
.enemy-card .asset-card-media img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.95) contrast(1.03);
  transition: transform .7s var(--ease), filter .45s ease;
}
.enemy-card:hover .asset-card-media img,
.enemy-card:focus-visible .asset-card-media img { transform: scale(1.035); filter: saturate(1.06) contrast(1.06); }
.enemy-card > div:nth-child(2) { position: relative; z-index: 3; }
.enemy-card-wide .asset-card-media img { object-position: center 42%; }
.dialog-media { overflow: hidden; }
.dialog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 70%, rgba(5,4,7,.32)), linear-gradient(0deg, rgba(4,3,6,.32), transparent 35%);
}
.dialog-media img { object-fit: cover; object-position: center; }
.dialog-copy h3 { line-height: 1.5; }

@media (max-width: 1120px) {
  .profile-memory-risk { grid-template-columns: 145px 1fr; }
}

@media (max-width: 820px) {
  .character-profile { padding: 34px 25px 42px; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .profile-detail-grid article { min-height: 0; }
  .profile-memory-risk { grid-template-columns: 1fr; gap: 10px; }
  .profile-mode-record h4 { font-size: 19px; }
  .enemy-card-wide { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
  .enemy-card-wide .asset-card-media { min-height: 0; aspect-ratio: 5 / 4; border-right: 0; border-bottom: 1px solid var(--line); }
}


/* V4.4: regenerated active CAFE MODE scenes and visible yokai archive */
.character-stage[data-mode="cafe"] .visual-window img {
  object-fit: cover;
  object-position: center 43%;
}
.character-gallery[data-mode="cafe"] .asset-card-media img {
  object-position: center 43%;
}
.enemy-grid:has(.enemy-card:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.enemy-card .asset-card-media img {
  object-position: center;
  image-rendering: auto;
}
@media (max-width: 980px) {
  .enemy-grid:has(.enemy-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .enemy-grid:has(.enemy-card:nth-child(4):last-child) {
    grid-template-columns: 1fr;
  }
  .character-stage[data-mode="cafe"] .visual-window img {
    object-position: center 42%;
  }
}


/* V4.5.1: user-approved original sheets for 傘化け and 鉄鼠 */
.enemy-card[data-enemy="kasa"] .asset-card-media,
.enemy-card[data-enemy="tesso"] .asset-card-media,
.enemy-dialog[data-enemy="kasa"] .dialog-media,
.enemy-dialog[data-enemy="tesso"] .dialog-media {
  background: #f4f1ea;
}
.enemy-card[data-enemy="kasa"] .asset-card-media::before,
.enemy-card[data-enemy="tesso"] .asset-card-media::before,
.enemy-card[data-enemy="kasa"] .asset-card-media::after,
.enemy-card[data-enemy="tesso"] .asset-card-media::after,
.enemy-dialog[data-enemy="kasa"] .dialog-media::after,
.enemy-dialog[data-enemy="tesso"] .dialog-media::after {
  display: none;
}
.enemy-card[data-enemy="kasa"] .asset-card-media img,
.enemy-card[data-enemy="tesso"] .asset-card-media img,
.enemy-dialog[data-enemy="kasa"] .dialog-media img,
.enemy-dialog[data-enemy="tesso"] .dialog-media img {
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}
.enemy-card[data-enemy="kasa"]:hover .asset-card-media img,
.enemy-card[data-enemy="kasa"]:focus-visible .asset-card-media img,
.enemy-card[data-enemy="tesso"]:hover .asset-card-media img,
.enemy-card[data-enemy="tesso"]:focus-visible .asset-card-media img {
  transform: none;
  filter: none;
}


/* ========================================================================== */
/* V4.6.0 — USER-APPROVED EXACT CAFE / YOKAI IMAGES                           */
/* ========================================================================== */

/* The approved café portraits are full-body 9:16 scenes. Never crop them. */
.character-stage[data-mode="cafe"] .visual-window {
  background: linear-gradient(145deg, rgba(66,32,18,.44), #050407 78%);
}
.character-stage[data-mode="cafe"] .visual-window img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.character-gallery[data-mode="cafe"] .asset-card-media {
  aspect-ratio: 941 / 1672;
  background: #080609;
}
.character-gallery[data-mode="cafe"] .asset-card-media img {
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}

/* The rejected single wide café screenshot/panorama is not part of V4.6. */
.cafe-panorama { display: none !important; }

/* Nine exact 4:5 NEO-Edo enemy scenes. */
.enemy-grid,
.enemy-grid:has(.enemy-card:nth-child(4):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.enemy-card {
  min-height: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.enemy-card .asset-card-media,
.enemy-card[data-enemy="kasa"] .asset-card-media,
.enemy-card[data-enemy="tesso"] .asset-card-media {
  aspect-ratio: 1122 / 1402;
  background: #050306;
}
.enemy-card .asset-card-media::before,
.enemy-card[data-enemy="kasa"] .asset-card-media::before,
.enemy-card[data-enemy="tesso"] .asset-card-media::before {
  display: block;
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(3,2,4,.74) 100%);
}
.enemy-card .asset-card-media img,
.enemy-card[data-enemy="kasa"] .asset-card-media img,
.enemy-card[data-enemy="tesso"] .asset-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}
.enemy-card:hover .asset-card-media img,
.enemy-card:focus-visible .asset-card-media img,
.enemy-card[data-enemy="kasa"]:hover .asset-card-media img,
.enemy-card[data-enemy="kasa"]:focus-visible .asset-card-media img,
.enemy-card[data-enemy="tesso"]:hover .asset-card-media img,
.enemy-card[data-enemy="tesso"]:focus-visible .asset-card-media img {
  transform: none;
  filter: none;
}
.enemy-card > div:nth-child(2) { min-height: 145px; }
.enemy-card h3 { font-size: clamp(19px, 1.75vw, 25px); }
.enemy-dialog[data-enemy="kasa"] .dialog-media,
.enemy-dialog[data-enemy="tesso"] .dialog-media { background: #050407; }
.enemy-dialog[data-enemy="kasa"] .dialog-media::after,
.enemy-dialog[data-enemy="tesso"] .dialog-media::after { display: block; }
.enemy-dialog .dialog-media img,
.enemy-dialog[data-enemy="kasa"] .dialog-media img,
.enemy-dialog[data-enemy="tesso"] .dialog-media img {
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}

@media (max-width: 980px) {
  .enemy-grid,
  .enemy-grid:has(.enemy-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .enemy-grid,
  .enemy-grid:has(.enemy-card:nth-child(4):last-child) {
    grid-template-columns: 1fr;
  }
  .enemy-card .asset-card-media { aspect-ratio: 1122 / 1402; }
  .character-gallery[data-mode="cafe"] { grid-template-columns: repeat(5, 68vw); }
}
