/* FIREWALL DRAW official site — cyber-pop neon on deep navy (matches the game's UI). */
:root {
  --bg: #030817;
  --bg-2: #061230;
  --panel: rgba(9, 22, 52, 0.72);
  --panel-solid: #0a1a3d;
  --line: rgba(99, 228, 255, 0.26);
  --line-strong: rgba(99, 228, 255, 0.6);
  --cyan: #63e4ff;
  --blue: #149dff;
  --pink: #ff6cb0;
  --gold: #ffd166;
  --violet: #b98bff;
  --green: #6ff2a4;
  --text: #eaf4ff;
  --muted: #9fb4d0;
  --faint: #6b7fa0;
  --radius: 18px;
  --display: "Dela Gothic One", "Noto Sans JP", sans-serif;
  --body: "Noto Sans JP", system-ui, sans-serif;
  --tech: "Orbitron", "Noto Sans JP", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.8;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 700px at 8% -10%, rgba(20, 157, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 40%, rgba(255, 108, 176, 0.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%2363e4ff' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M0 40h40l20 20h40l20-20h40M40 0v40M120 160v-40l-20-20H60l-20 20v40M0 120h20l20 20'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3Ccircle cx='120' cy='40' r='3'/%3E%3Ccircle cx='100' cy='100' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.nb { display: inline-block; }
h1, h2, h3, .sec-title, .hero-copy, .kv-copy, .chara-name { word-break: auto-phrase; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.25s, box-shadow 0.25s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.solid { background: rgba(3, 8, 23, 0.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-family: var(--tech); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(99, 228, 255, 0.12); color: var(--cyan); }
.nav .nav-cta { background: linear-gradient(135deg, var(--blue), #7a5cff); color: #fff; margin-left: 8px; }
.nav .nav-cta:hover { color: #fff; filter: brightness(1.12); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--cyan); margin: 4px auto; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: rgba(3, 8, 23, 0.97); padding: 12px var(--gutter) 20px; gap: 2px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 10px; font-size: 14px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: rgba(6, 18, 46, 0.7); color: var(--text); font-weight: 900; font-size: 16px; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99, 228, 255, 0.25); }
.btn-primary { border: 0; background: linear-gradient(135deg, #1fb6ff, #7a5cff 60%, #ff6cb0); color: #fff; box-shadow: 0 10px 32px rgba(122, 92, 255, 0.35); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: rgba(99, 228, 255, 0.08); color: var(--cyan); }
.chip.good { color: var(--cyan); }
.chip.bad { color: var(--pink); border-color: rgba(255, 108, 176, 0.4); background: rgba(255, 108, 176, 0.08); }
.chip.gold { color: var(--gold); border-color: rgba(255, 209, 102, 0.45); background: rgba(255, 209, 102, 0.08); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--tech); font-weight: 800; letter-spacing: 0.32em; font-size: 13px; color: var(--cyan); margin: 0 0 6px; }
.sec-kicker::before { content: ""; width: 42px; height: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.sec-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 56px); line-height: 1.25; margin: 0; letter-spacing: 0.02em; text-shadow: 0 0 30px rgba(99, 228, 255, 0.25); }
.sec-title em { font-style: normal; color: var(--cyan); }
.sec-lead { color: var(--muted); max-width: 760px; margin: 14px 0 0; font-size: clamp(15px, 1.6vw, 17px); }
.center { text-align: center; }
.center .sec-lead { margin-inline: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.panel.bracket::before, .panel.bracket::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyan); pointer-events: none; }
.panel.bracket::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.panel.bracket::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding-top: 68px; }
.hero-video, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(3, 8, 23, 0.95) 0%, rgba(3, 8, 23, 0.78) 34%, rgba(3, 8, 23, 0.3) 62%, rgba(3, 8, 23, 0.55) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(3, 8, 23, 0) 26%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 20px; align-items: center; padding-block: 40px 90px; }
.hero-kicker { margin: 0 0 14px; font-weight: 900; letter-spacing: 0.3em; font-size: clamp(13px, 1.4vw, 16px); color: var(--cyan); }
.hero-logo { margin: 0; }
.hero-logo img { width: min(640px, 100%); height: auto; filter: drop-shadow(0 0 26px rgba(99, 228, 255, 0.45)); }
.hero-copy { font-family: var(--display); font-size: clamp(30px, 4.6vw, 58px); line-height: 1.3; margin: 22px 0 10px; text-shadow: 0 0 34px rgba(99, 228, 255, 0.45); }
.hero-copy .accent { color: var(--cyan); }
.hero-lead { color: #d3e4f8; max-width: 560px; margin: 0 0 28px; font-size: clamp(15px, 1.6vw, 17px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-status { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 14px; font-weight: 700; }
.hero-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.hero-cast { position: relative; height: min(78vh, 720px); }
.hero-cast img { position: absolute; bottom: 0; height: 88%; width: auto; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)); }
.hero-cast .c1 { left: 24%; height: 100%; z-index: 3; filter: drop-shadow(0 0 30px rgba(20, 157, 255, 0.55)) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)); }
.hero-cast .c2 { left: -4%; bottom: 4%; height: 74%; z-index: 2; opacity: 0.92; }
.hero-cast .c3 { left: 56%; bottom: 6%; height: 72%; z-index: 2; opacity: 0.92; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--tech); font-size: 11px; letter-spacing: 0.4em; color: var(--muted); }
.hero-scroll::after { content: ""; display: block; width: 1px; height: 40px; margin: 8px auto 0; background: linear-gradient(var(--cyan), transparent); animation: drip 1.6s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 61% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 24px 90px; }
  .hero-cast { order: -1; height: 46vh; margin-top: 8px; }
  .hero-cast .c1 { left: 30%; }
  .hero-cast .c2 { left: 2%; }
  .hero-cast .c3 { left: 58%; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(3, 8, 23, 0.92) 48%, rgba(3, 8, 23, 0.7) 100%); }
}

/* ---------- info strip ---------- */
.info-strip { border-block: 1px solid var(--line); background: rgba(6, 18, 46, 0.8); }
.info-inner { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; padding-block: 14px; font-size: 14px; }
.info-inner b { font-family: var(--tech); letter-spacing: 0.2em; color: var(--gold); font-size: 12px; }
.info-inner time { color: var(--muted); font-family: var(--tech); font-size: 12px; }

/* ---------- PV ---------- */
.pv-frame { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 228, 255, 0.12); aspect-ratio: 16 / 9; background: #000; }
.pv-frame img, .pv-frame video { width: 100%; height: 100%; object-fit: cover; }
.pv-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(3, 8, 23, 0.6), rgba(3, 8, 23, 0.1)); border: 0; cursor: pointer; }
.pv-play .ring { width: clamp(76px, 10vw, 118px); height: clamp(76px, 10vw, 118px); border-radius: 50%; display: grid; place-items: center;
  background: rgba(3, 8, 23, 0.55); border: 2px solid var(--cyan); box-shadow: 0 0 40px rgba(99, 228, 255, 0.55); transition: transform 0.2s; }
.pv-play:hover .ring { transform: scale(1.08); }
.pv-play .play-icon { border-width: 16px 0 16px 26px; color: #fff; margin-left: 6px; }
.pv-play .pv-label { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); font-family: var(--tech); font-weight: 800; letter-spacing: 0.3em; font-size: 13px; color: #fff; white-space: nowrap; }
.pv-notes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- steps (3 pillars) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { padding: 16px 16px 24px; overflow: hidden; }
.step .media { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.step .media video, .step .media img { width: 100%; height: 100%; object-fit: cover; }
.step-num { font-family: var(--tech); font-weight: 900; font-size: 13px; letter-spacing: 0.3em; color: var(--cyan); margin: 16px 0 4px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- try it (canvas demo) ---------- */
.try { background: linear-gradient(180deg, rgba(20, 157, 255, 0.06), rgba(255, 108, 176, 0.04)); border-block: 1px solid var(--line); }
.demo { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: #050d26; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.demo canvas { width: 100%; height: 100%; display: block; }
.demo-hud { position: absolute; inset: 12px 14px auto 14px; display: flex; justify-content: space-between; pointer-events: none; font-family: var(--tech); font-weight: 800; font-size: clamp(11px, 1.4vw, 15px); letter-spacing: 0.12em; }
.demo-hud .combo { color: var(--gold); text-shadow: 0 0 12px rgba(255, 209, 102, 0.6); }
.demo-start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3, 8, 23, 0.62); border: 0; cursor: pointer; text-align: center; padding: 20px; }
.demo-start strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3.2vw, 38px); margin-bottom: 8px; }
.demo-start span { color: var(--muted); font-size: clamp(13px, 1.5vw, 16px); }
.demo-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.demo-tips div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; color: var(--muted); }
.demo-tips b { display: block; color: var(--text); font-size: 15px; }
@media (max-width: 760px) { .demo-tips { grid-template-columns: 1fr; } }

/* ---------- shapes ---------- */
.shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shape { padding: 22px; display: flex; flex-direction: column; }
.shape-art { height: 120px; display: grid; place-items: center; }
.shape-art svg { width: 100%; max-width: 240px; height: 110px; overflow: visible; }
.shape-art path, .shape-art circle { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.shape-art .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.6s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 600; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .shape-art .draw { animation: none; stroke-dashoffset: 0; } }
.shape h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 8px 0 0; }
.shape .how { font-weight: 900; color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.shape ul { margin: 0 0 16px; padding-left: 1.2em; color: #d6e6fa; font-size: 15px; }
.shape .best { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 14px; color: var(--muted); }
.shape .best b { color: var(--text); }
.shape .clip { margin-top: 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; }
.shape .clip video { width: 100%; height: 100%; object-fit: cover; }
.shape.line h3 { color: #dff6ff; }
.shape.loop h3 { color: var(--violet); }
.shape.zig h3 { color: var(--gold); }
@media (max-width: 980px) { .shapes { grid-template-columns: 1fr; } }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(22px, 4vw, 56px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.feature-media video, .feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.3; margin: 6px 0 12px; }
.feature p { color: #d0e2f7; margin: 0 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.facts li b { display: block; font-family: var(--tech); font-size: 22px; color: var(--cyan); line-height: 1.2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

/* reaction matrix */
.reactions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.reaction { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.reaction .el { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; font-size: 14px; flex: none; }
.reaction .plus { color: var(--muted); font-weight: 900; }
.reaction .name { font-weight: 900; margin-left: auto; font-size: 15px; }
.el.burn { background: rgba(255, 122, 60, 0.18); color: #ff9a5c; border: 1px solid rgba(255, 122, 60, 0.5); }
.el.chill { background: rgba(143, 239, 255, 0.14); color: #8fefff; border: 1px solid rgba(143, 239, 255, 0.5); }
.el.shock { background: rgba(255, 240, 90, 0.12); color: #fff05a; border: 1px solid rgba(255, 240, 90, 0.5); }
.el.venom { background: rgba(194, 123, 255, 0.14); color: #d09bff; border: 1px solid rgba(194, 123, 255, 0.5); }
@media (max-width: 520px) { .reactions { grid-template-columns: 1fr; } }

/* ---------- key visual band ---------- */
.kv-band { position: relative; overflow: hidden; }
.kv-band img { width: 100%; height: clamp(260px, 44vw, 620px); object-fit: cover; object-position: 50% 58%; }
.kv-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(3, 8, 23, 0) 18%, rgba(3, 8, 23, 0) 70%, var(--bg) 100%); }
.kv-copy { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vw, 48px); z-index: 2; text-align: center; font-family: var(--display); font-size: clamp(22px, 3.4vw, 44px); text-shadow: 0 4px 0 rgba(3, 8, 23, 0.9), 0 0 30px rgba(3, 8, 23, 0.9); padding-inline: var(--gutter); }

/* ---------- characters ---------- */
.chara { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: stretch; }
.chara-stage { position: relative; min-height: clamp(420px, 56vw, 640px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: #061230; }
.chara-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: saturate(1.1); }
.chara-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--c) 34%, transparent), transparent 60%), linear-gradient(0deg, rgba(3, 8, 23, 0.85), rgba(3, 8, 23, 0) 45%); }
.chara-portrait { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); height: 104%; width: auto; max-width: none; z-index: 2; filter: drop-shadow(0 0 26px color-mix(in srgb, var(--c) 60%, transparent)); transition: opacity 0.25s; }
.chara-title-en { position: absolute; left: 20px; top: 16px; z-index: 3; font-family: var(--tech); font-weight: 900; letter-spacing: 0.24em; font-size: clamp(12px, 1.4vw, 15px); color: var(--c); text-transform: uppercase; }
.chara-info { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.chara-name { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.15; margin: 0; }
.chara-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chara-sub .role { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 60%, transparent); color: #fff; }
.chara-quote { margin: 4px 0; font-size: clamp(16px, 1.8vw, 19px); font-weight: 900; color: #fff; }
.chara-quote::before { content: "「"; color: var(--c); } .chara-quote::after { content: "」"; color: var(--c); }
.chara-special { border-radius: 14px; padding: 14px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.chara-special .label { font-family: var(--tech); font-weight: 800; letter-spacing: 0.2em; font-size: 12px; color: var(--c); }
.chara-special h4 { margin: 2px 0 4px; font-size: clamp(18px, 2vw, 22px); font-weight: 900; }
.chara-special p { margin: 0; color: var(--muted); font-size: 14px; }
.chara-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.chara-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.chara-video { display: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.chara-video.show { display: block; }
.chara-video video { width: 100%; height: 100%; object-fit: cover; }
.chara-unlock { font-size: 13px; color: var(--faint); }
.chara-picker { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.chara-picker button { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; cursor: pointer; border: 2px solid var(--line); background: linear-gradient(180deg, #0a1a3d, #061230); padding: 0; transition: transform 0.15s, border-color 0.15s; }
.chara-picker button img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.chara-picker button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 2px; font-size: 11px; font-weight: 900; background: rgba(3, 8, 23, 0.78); text-align: center; white-space: nowrap; overflow: hidden; }
.chara-picker button[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-3px); }
@media (max-width: 980px) { .chara { grid-template-columns: 1fr; } .chara-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- walls & enemies grids ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.card img { width: 64px; height: 64px; flex: none; }
.card h3 { margin: 0; font-size: 17px; font-weight: 900; }
.card .role { font-size: 12px; margin: 2px 0 6px; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.card .meta { margin-top: 6px; font-size: 12px; color: var(--faint); }
.enemy-card img { width: 80px; height: 80px; object-fit: contain; }
.bosses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.boss { overflow: hidden; }
.boss .clip { aspect-ratio: 16 / 9; background: #000; }
.boss .clip video { width: 100%; height: 100%; object-fit: cover; }
.boss .body { padding: 16px 18px 20px; }
.boss h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.4vw, 28px); color: var(--pink); }
.boss p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .bosses { grid-template-columns: 1fr; } }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mode { overflow: hidden; display: flex; flex-direction: column; }
.mode img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.mode .body { padding: 18px 20px 22px; }
.mode .en { font-family: var(--tech); font-weight: 800; letter-spacing: 0.22em; font-size: 12px; color: var(--cyan); }
.mode h3 { margin: 2px 0 8px; font-family: var(--display); font-weight: 400; font-size: 26px; }
.mode p { margin: 0; color: var(--muted); font-size: 14.5px; }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.stage img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.stage span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(0deg, rgba(3, 8, 23, 0.95), transparent); font-size: 12px; font-weight: 900; }
.stage span small { display: block; font-family: var(--tech); color: var(--cyan); font-size: 10px; letter-spacing: 0.16em; }
.stage.boss-stage { border-color: rgba(255, 108, 176, 0.6); }
.stage.boss-stage span small { color: var(--pink); }
.growth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.growth div { padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.growth b { display: block; font-family: var(--tech); font-size: 30px; color: var(--gold); line-height: 1.1; }
.growth span { font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .modes { grid-template-columns: 1fr; } .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .growth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; aspect-ratio: 16 / 9; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(2, 5, 14, 0.94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none !important; }
.lightbox img, .lightbox video { max-height: 86vh; width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line-strong); }
.lightbox .close { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(3, 8, 23, 0.8); cursor: pointer; font-size: 22px; }
.lightbox .prev, .lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(3, 8, 23, 0.8); cursor: pointer; font-size: 22px; }
.lightbox .prev { left: 12px; } .lightbox .next { right: 12px; }
.lightbox figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- guide CTA, spec, faq ---------- */
.guide-cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px; align-items: center; padding: clamp(22px, 4vw, 44px); overflow: hidden; }
.guide-cta img { border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 860px) { .guide-cta { grid-template-columns: 1fr; } }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--muted); font-weight: 700; font-size: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 900; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--tech); color: var(--cyan); font-weight: 900; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--cyan); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px 44px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: rgba(3, 8, 23, 0.9); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-inner img { height: 40px; width: auto; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-inner small { display: block; color: var(--faint); margin-top: 8px; }

/* ---------- modal (PV) ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(2, 5, 14, 0.94); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none !important; }
.modal video { width: min(1280px, 100%); max-height: 84vh; border-radius: 14px; border: 1px solid var(--line-strong); background: #000; }
.modal .close { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(3, 8, 23, 0.8); cursor: pointer; font-size: 22px; }

/* ---------- rules page ---------- */
.rules-hero { padding: calc(68px + clamp(40px, 7vw, 90px)) 0 clamp(30px, 5vw, 60px); }
.rules-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.rules-layout > * { min-width: 0; }
.toc { position: sticky; top: 88px; padding: 16px; }
.toc b { font-family: var(--tech); letter-spacing: 0.24em; font-size: 12px; color: var(--cyan); }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.toc li { margin: 2px 0; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--cyan); }
@media (max-width: 980px) { .rules-layout { grid-template-columns: 1fr; } .toc { position: static; } }
.rule { padding-block: 28px 44px; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 36px); margin: 0 0 6px; display: flex; gap: 14px; align-items: baseline; }
.rule h2 .no { font-family: var(--tech); font-size: 15px; color: var(--cyan); letter-spacing: 0.1em; }
.rule > p { color: #d0e2f7; }
.rule figure { margin: 18px 0; }
.rule figure img, .rule figure video { border-radius: 14px; border: 1px solid var(--line); width: 100%; }
.rule figcaption { font-size: 13px; color: var(--faint); margin-top: 6px; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.points li { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; color: #d6e6fa; }
.points li b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.hud-map { position: relative; }
.hud-map img { width: 100%; }
.hud-pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #111; font-weight: 900; font-size: 14px; box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.3), 0 4px 10px rgba(0, 0, 0, 0.5); }
.hud-legend { counter-reset: pin; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.hud-legend li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
.hud-legend li::before { counter-increment: pin; content: counter(pin); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #111; font-weight: 900; font-size: 12px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.flow span { padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-weight: 900; font-size: 14px; }
.flow i { color: var(--cyan); font-style: normal; font-weight: 900; }
.chart { width: 100%; height: auto; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
.table th { background: rgba(99, 228, 255, 0.08); color: var(--cyan); font-weight: 900; font-size: 13px; white-space: nowrap; }
.table td img { width: 40px; height: 40px; }
.table tbody td:first-child { white-space: nowrap; }
.callout { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 209, 102, 0.45); background: rgba(255, 209, 102, 0.06); color: #f6e7c6; font-size: 15px; }
.callout b { color: var(--gold); }
