/* ==========================================================================
   vnp-fx.css  //  VOICE_NEXUS_PRO LP 演出レイヤー
   - 既存の index.html 内スタイルと衝突しないよう、すべて vfx- 接頭辞で定義する。
   - vnp-fx.js が <html> に .vfx-ready を付けた場合だけ「出現前の隠し状態」になる。
     JS が読み込まれない環境では、全要素が最初から表示される。
   - モード色は <html data-vnp-mode='NORM|MTG|REC'> で切り替える（実機と同じ色）。
   ========================================================================== */

/* ---------- 1. モード連動カラー ---------- */
@property --vfx-mode { syntax: '<color>'; inherits: true; initial-value: #00FF41; }
@property --vfx-mode-dim { syntax: '<color>'; inherits: true; initial-value: rgba(0, 255, 65, 0.12); }
@property --vfx-mode-glow { syntax: '<color>'; inherits: true; initial-value: rgba(0, 255, 65, 0.45); }
@property --vfx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --vfx-mode: #00FF41;
  --vfx-mode-dim: rgba(0, 255, 65, 0.12);
  --vfx-mode-glow: rgba(0, 255, 65, 0.45);
  --vfx-norm: #00FF41;
  --vfx-mtg: #BC13FE;
  --vfx-rec: #00F0FF;
  --vfx-live: #FF003C;
  --vfx-text: #f0f7f4;
  --vfx-sub: #9ab0a4;
  --vfx-line: rgba(255, 255, 255, 0.08);
  --vfx-panel: rgba(8, 14, 11, 0.86);
  --vfx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --vfx-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
  transition: --vfx-mode 0.6s ease, --vfx-mode-dim 0.6s ease, --vfx-mode-glow 0.6s ease;
}
html[data-vnp-mode='MTG'] { --vfx-mode: #BC13FE; --vfx-mode-dim: rgba(188, 19, 254, 0.14); --vfx-mode-glow: rgba(188, 19, 254, 0.5); }
html[data-vnp-mode='REC'] { --vfx-mode: #00F0FF; --vfx-mode-dim: rgba(0, 240, 255, 0.12); --vfx-mode-glow: rgba(0, 240, 255, 0.5); }
body.is-recording { --vfx-mode: #FF003C; --vfx-mode-dim: rgba(255, 0, 60, 0.15); --vfx-mode-glow: rgba(255, 0, 60, 0.55); }

/* ---------- 2. 折り返しと横はみ出しの守り ---------- */
body { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; line-break: strict; }
p, li { text-wrap: pretty; line-break: strict; overflow-wrap: break-word; }
.vfx-ph { display: inline-block; }
@supports (word-break: auto-phrase) {
  .vfx-sec h2, .vfx-sec h3, .vfx-sec p, .vfx-sec li, .vfx-hero-title { word-break: auto-phrase; }
}
@media (max-width: 560px) {
  .keep-line { white-space: normal !important; }
  .hero-eyebrow { flex-wrap: wrap; justify-content: center; }
}

/* ---------- 3. スクロール出現 ---------- */
html.vfx-ready [data-vfx] {
  opacity: 0;
  transition: opacity 0.7s var(--vfx-ease), transform 0.9s var(--vfx-ease);
  transition-delay: calc(var(--vfx-i, 0) * 90ms);
  will-change: opacity, transform;
}
html.vfx-ready [data-vfx='up'] { transform: translate3d(0, 36px, 0); }
html.vfx-ready [data-vfx='left'] { transform: translate3d(-44px, 0, 0); }
html.vfx-ready [data-vfx='right'] { transform: translate3d(44px, 0, 0); }
html.vfx-ready [data-vfx='scale'] { transform: scale(0.94); }
html.vfx-ready [data-vfx].vfx-in { opacity: 1; transform: none; }
html.vfx-ready [data-vfx].vfx-done { transition-delay: 0s; transition-duration: 0.5s; will-change: auto; }

/* ---------- 4. 見出しのせり上がり・枠線の一筆書き ---------- */
.vfx-hero-title { font-size: clamp(26px, 5.2vw, 58px); font-weight: 900; line-height: 1.28; letter-spacing: -0.01em; color: #fff; margin: 0 0 18px; }
.vfx-hero-title .vfx-accent { color: var(--vfx-mode); font-size: 0.7em; line-height: 1.45; text-shadow: 0 0 24px var(--vfx-mode-glow); }
.vfx-line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.vfx-line > span { display: inline-block; max-width: 100%; }

.vfx-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.vfx-frame rect { fill: none; stroke: var(--vfx-mode); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--vfx-mode-glow)); }
.vfx-booted .vfx-frame rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--vfx-ease) 0.2s; }

/* ---------- 5. ヒーロー：ビームCanvas・モードボタン・デモ画面 ---------- */
.vfx-stage { position: relative; isolation: isolate; width: 100%; }
.vfx-beam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }

.vfx-opmode { min-width: 46px; text-align: center; font-family: var(--vfx-mono); font-weight: 700; cursor: pointer; user-select: none; color: #00FF41; border: 1px solid rgba(0, 255, 65, 0.4); background: rgba(0, 255, 65, 0.1); transition: color 0.25s, border-color 0.25s, background 0.25s; }
.vfx-opmode[data-mode='MTG'] { color: #BC13FE; border-color: #BC13FE; background: rgba(188, 19, 254, 0.14); text-shadow: 0 0 6px rgba(188, 19, 254, 0.5); }
.vfx-opmode[data-mode='REC'] { color: #00F0FF; border-color: #00F0FF; background: rgba(0, 240, 255, 0.12); text-shadow: 0 0 6px rgba(0, 240, 255, 0.5); }
body.is-recording .vfx-opmode { color: #FF003C !important; border-color: #FF003C !important; background: rgba(255, 0, 60, 0.15) !important; text-shadow: 0 0 6px #FF003C !important; }

.vfx-pills, .vfx-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.vfx-pill { --c: var(--vfx-norm); position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--vfx-line); background: rgba(255, 255, 255, 0.03); color: var(--vfx-sub); font: 700 12px/1.2 var(--vfx-mono); letter-spacing: 0.06em; cursor: pointer; transition: color 0.25s, border-color 0.25s, background 0.25s; }
.vfx-pill[data-mode='MTG'] { --c: var(--vfx-mtg); }
.vfx-pill[data-mode='REC'] { --c: var(--vfx-rec); }
.vfx-pill small { font: 500 11.5px/1.2 inherit; font-family: inherit; letter-spacing: 0; opacity: 0.85; }
.vfx-pill.is-active { color: var(--c); border-color: var(--c); background: rgba(255, 255, 255, 0.06); }
.vfx-pill i { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--c); transform-origin: left; transform: scaleX(var(--p, 0)); }

.vfx-mic { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--vfx-mode-dim); background: rgba(0, 0, 0, 0.4); color: var(--vfx-text); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s; }
.vfx-mic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vfx-mode); flex-shrink: 0; }
.vfx-mic.is-live { border-color: var(--vfx-live); box-shadow: 0 0 18px rgba(255, 0, 60, 0.35); }
.vfx-mic.is-live .vfx-mic-dot { background: var(--vfx-live); animation: vfxPulse 1s ease-in-out infinite; }

.vfx-demo { position: relative; width: 100%; max-width: 760px; margin: 18px auto 0; border: 1px solid var(--vfx-mode-dim); border-radius: 10px; background: var(--vfx-panel); overflow: hidden; text-align: left; box-sizing: border-box; }
.vfx-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--vfx-line); font: 700 11px/1.4 var(--vfx-mono); letter-spacing: 0.08em; color: var(--vfx-sub); }
.vfx-demo-head b { color: var(--vfx-mode); }
.vfx-demo-tag { font-size: 10px; letter-spacing: 0; color: var(--vfx-sub); border: 1px solid var(--vfx-line); border-radius: 3px; padding: 1px 6px; white-space: nowrap; }
.vfx-demo-body { position: relative; min-height: 136px; padding: 14px; }
.vfx-pane { display: none; }
.vfx-pane.is-active { display: block; animation: vfxPaneIn 0.45s var(--vfx-ease) both; }

.vfx-chat { border: 1px solid var(--vfx-line); border-radius: 8px; background: rgba(0, 0, 0, 0.4); padding: 12px 14px; min-height: 78px; font-size: 14.5px; line-height: 1.8; color: var(--vfx-text); }
.vfx-chat-label { display: block; font: 700 10px/1.6 var(--vfx-mono); letter-spacing: 0.1em; color: var(--vfx-sub); margin-bottom: 4px; }
.vfx-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--vfx-mode); animation: vfxCaret 0.9s steps(1) infinite; }

.vfx-log { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.7; }
.vfx-log-line { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; color: var(--vfx-text); animation: vfxLineIn 0.4s var(--vfx-ease) both; }
.vfx-log-line time { font-family: var(--vfx-mono); font-size: 12px; color: var(--vfx-sub); }
.vfx-spk { font-weight: 700; white-space: nowrap; }
.vfx-spk[data-s='self'] { color: var(--vfx-norm); }
.vfx-spk[data-s='other'] { color: var(--vfx-mtg); }

.vfx-json { margin: 0; font: 500 12px/1.75 var(--vfx-mono); color: var(--vfx-sub); white-space: pre-wrap; overflow-wrap: anywhere; }
.vfx-json b { color: var(--vfx-mode); font-weight: 600; }
.vfx-subbar { margin-top: 10px; min-height: 1.6em; padding: 9px 12px; border-radius: 6px; border-bottom: 2px solid var(--vfx-mode); background: rgba(0, 0, 0, 0.72); text-align: center; font-size: 14.5px; font-weight: 700; color: #fff; }

/* ---------- 6. 新セクション共通 ---------- */
.vfx-sec { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 32px); box-sizing: border-box; }
.vfx-sec *, .vfx-sec *::before, .vfx-sec *::after { box-sizing: border-box; min-width: 0; }
.vfx-head { max-width: 900px; margin: 0 auto clamp(28px, 5vw, 56px); text-align: center; }
.vfx-tag { display: inline-block; max-width: 100%; margin-bottom: 14px; padding: 4px 14px; border: 1px solid var(--vfx-mode-dim); border-radius: 999px; font: 700 11px/1.6 var(--vfx-mono); letter-spacing: 0.14em; color: var(--vfx-mode); overflow-wrap: anywhere; }
.vfx-h { margin: 0 0 14px; font-size: clamp(22px, 3.4vw, 42px); font-weight: 900; line-height: 1.38; color: #fff; }
.vfx-lead { margin: 0; font-size: clamp(14px, 1.5vw, 16px); line-height: 1.9; color: var(--vfx-sub); }
.vfx-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: #6f857a; }
.vfx-scr { font-variant-numeric: tabular-nums; }

/* ---------- 7. カード：見た目・光・傾き ---------- */
.vfx-card { position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: clamp(18px, 2.6vw, 30px); border: 1px solid var(--vfx-line); border-radius: 14px; background: linear-gradient(160deg, rgba(12, 20, 16, 0.9), rgba(5, 9, 7, 0.92)); }
.vfx-badge { align-self: flex-start; max-width: 100%; padding: 3px 9px; border: 1px solid var(--vfx-mode-dim); border-radius: 4px; background: var(--vfx-mode-dim); font: 700 10.5px/1.5 var(--vfx-mono); letter-spacing: 0.1em; color: var(--vfx-mode); overflow-wrap: anywhere; }
.vfx-card-title { margin: 0; font-size: clamp(17px, 1.9vw, 22px); font-weight: 900; line-height: 1.45; color: #fff; }
.vfx-card-text { margin: 0; font-size: 14px; line-height: 1.9; color: var(--vfx-sub); }
.vfx-card-text strong { color: var(--vfx-text); }

.vfx-hover { position: relative; }
.vfx-spot, .vfx-rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.vfx-spot { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--vfx-mode-dim), transparent 62%); }
.vfx-rim { padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--vfx-mode), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.vfx-hover.vfx-hot .vfx-spot, .vfx-hover.vfx-hot .vfx-rim { opacity: 1; }
html.vfx-ready .vfx-hover.vfx-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.14s ease-out; transition-delay: 0s; }

.vfx-scan { position: absolute; left: 0; top: 0; width: 100%; height: 1px; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, var(--vfx-mode), transparent); transform: translate3d(-100%, 0, 0); }
.vfx-in > .vfx-scan { animation: vfxScan 1.1s var(--vfx-ease) 0.25s 1 both; }

.vfx-orbit { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--vfx-ang), transparent 0 70%, var(--vfx-mode) 86%, #fff 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: vfxOrbit 5s linear infinite; }

/* ---------- 8. カード内のライブ表示 ---------- */
.vfx-live { margin-top: auto; overflow: hidden; padding: 12px 14px; border: 1px solid var(--vfx-line); border-radius: 8px; background: rgba(0, 0, 0, 0.45); font: 600 12px/1.7 var(--vfx-mono); color: var(--vfx-sub); }
.vfx-live b { color: var(--vfx-mode); font-weight: 700; }
html.vfx-ready .vfx-live:not(.vfx-on), html.vfx-ready .vfx-live:not(.vfx-on) * { animation-play-state: paused !important; }
.vfx-kv { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }

.vfx-eq { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.vfx-eq i { flex: 1; height: 100%; background: var(--vfx-mode); opacity: 0.85; transform-origin: bottom; animation: vfxEq 1.1s ease-in-out infinite; }
.vfx-eq i:nth-child(2n) { animation-duration: 0.8s; animation-delay: -0.3s; }
.vfx-eq i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -0.6s; }
.vfx-eq i:nth-child(5n) { animation-duration: 0.95s; animation-delay: -0.15s; }

.vfx-trig { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.vfx-trig-on { display: none; color: var(--vfx-live); font-weight: 700; }
.vfx-live.is-hold .vfx-trig-off { display: none; }
.vfx-live.is-hold .vfx-trig-on { display: flex; }

.vfx-swap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vfx-swap del { color: #ff6b88; text-decoration-color: transparent; transition: text-decoration-color 0.4s, opacity 0.4s; }
.vfx-swap b { opacity: 0; transition: opacity 0.4s 0.15s; }
.vfx-swap.is-fixed del { text-decoration-color: currentColor; opacity: 0.5; }
.vfx-swap.is-fixed b { opacity: 1; }

.vfx-ghost { display: inline-block; padding: 5px 10px; border: 1px dashed var(--vfx-mode); border-radius: 4px; color: var(--vfx-mode); animation: vfxGhost 4s ease-in-out infinite; }

.vfx-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vfx-node { padding: 3px 8px; border: 1px solid var(--vfx-mode-dim); border-radius: 4px; color: var(--vfx-mode); white-space: nowrap; }
.vfx-node.is-off { color: #ff6b88; border-color: rgba(255, 0, 60, 0.4); text-decoration: line-through; }
.vfx-arrow { flex: 1 1 18px; min-width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--vfx-mode), transparent); background-size: 200% 100%; animation: vfxFlow 1.4s linear infinite; }

/* ---------- 9. 3大モード（左固定・右スクロール） ---------- */
.vfx-modes { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.vfx-modes-stage { position: sticky; top: 96px; }
.vfx-stage-screen { min-height: 300px; padding: 18px; border: 1px solid var(--vfx-mode); border-radius: 14px; background: var(--vfx-panel); box-shadow: 0 0 40px var(--vfx-mode-dim), inset 0 0 30px rgba(0, 0, 0, 0.5); }
.vfx-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font: 700 12px/1.4 var(--vfx-mono); color: var(--vfx-mode); }
.vfx-stage-bar { height: 3px; margin-bottom: 14px; border-radius: 2px; background: #111; overflow: hidden; }
.vfx-stage-bar i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--vfx-mode), #fff); transform-origin: left; animation: vfxMeter 1.6s ease-in-out infinite; }

.vfx-step { --c: var(--vfx-norm); display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 62vh; padding: 24px 0; opacity: 0.35; transition: opacity 0.5s; }
.vfx-step[data-mode='MTG'] { --c: var(--vfx-mtg); }
.vfx-step[data-mode='REC'] { --c: var(--vfx-rec); }
.vfx-step.is-active { opacity: 1; }
.vfx-step-no { font: 800 12px/1.5 var(--vfx-mono); letter-spacing: 0.12em; color: var(--c); overflow-wrap: anywhere; }
.vfx-step h3 { margin: 0; font-size: clamp(19px, 2.4vw, 28px); font-weight: 900; line-height: 1.45; color: #fff; }
.vfx-step p { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--vfx-sub); }
.vfx-step-out { padding: 10px 14px; border: 1px solid var(--vfx-line); border-left: 3px solid var(--c); border-radius: 6px; background: rgba(0, 0, 0, 0.4); font: 600 12px/1.7 var(--vfx-mono); color: var(--vfx-text); overflow-wrap: anywhere; }

/* ---------- 10. 6つのエッジ・GPU必須枠・比較表 ---------- */
.vfx-edges { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.vfx-s4 { grid-column: span 4; }
.vfx-s5 { grid-column: span 5; }
.vfx-s6 { grid-column: span 6; }
.vfx-s7 { grid-column: span 7; }
.vfx-s8 { grid-column: span 8; }
.vfx-s12 { grid-column: span 12; }

.vfx-gpu { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 22px; margin-top: clamp(20px, 3vw, 32px); padding: clamp(16px, 2.4vw, 26px); border: 1px solid var(--vfx-mode-dim); border-left: 3px solid var(--vfx-mode); border-radius: 10px; background: linear-gradient(90deg, var(--vfx-mode-dim), transparent 70%); }
.vfx-gpu-k { font: 800 clamp(20px, 3vw, 30px)/1.2 var(--vfx-mono); color: var(--vfx-mode); white-space: nowrap; text-shadow: 0 0 18px var(--vfx-mode-glow); }
.vfx-gpu p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--vfx-text); }

.vfx-cmp { overflow: hidden; border: 1px solid var(--vfx-line); border-radius: 14px; background: var(--vfx-panel); }
.vfx-cmp-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr); border-top: 1px solid var(--vfx-line); }
.vfx-cmp-row:first-child { border-top: 0; }
.vfx-cmp-row > * { padding: 14px 16px; font-size: 13.5px; line-height: 1.7; color: var(--vfx-sub); }
.vfx-cmp-head > * { font: 700 11px/1.6 var(--vfx-mono); letter-spacing: 0.1em; }
.vfx-cmp-k { color: #fff; font-weight: 700; }
.vfx-cmp-win { position: relative; overflow: hidden; background: var(--vfx-mode-dim); color: var(--vfx-text); font-weight: 600; }
.vfx-cmp-head .vfx-cmp-win { color: var(--vfx-mode); }
.vfx-cmp-win::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%); transform: translate3d(-120%, 0, 0); }
.vfx-cmp-row.vfx-in .vfx-cmp-win::after { animation: vfxSweep 1.2s var(--vfx-ease) 0.3s 1 both; }

/* ---------- 11. マニフェスト：痛みカードの解消 ---------- */
html.vfx-ready .manifesto-box.vfx-cured .pain-quote-card { border-color: rgba(0, 255, 65, 0.35) !important; background: rgba(0, 255, 65, 0.04) !important; box-shadow: none !important; color: #7d9488 !important; text-decoration: line-through; text-decoration-color: rgba(0, 255, 65, 0.5); transition: border-color 0.8s, background 0.8s, color 0.8s, box-shadow 0.8s; }

/* ---------- 12. 画面幅ごとの組み替え ---------- */
@media (max-width: 900px) {
  .vfx-modes { grid-template-columns: minmax(0, 1fr); }
  .vfx-modes-stage { display: none; }
  .vfx-step { min-height: 0; opacity: 1; padding: 20px 18px; margin-bottom: 14px; border: 1px solid var(--vfx-line); border-top: 2px solid var(--c); border-radius: 12px; background: var(--vfx-panel); }
  .vfx-edges > * { grid-column: 1 / -1; }
  .vfx-gpu { grid-template-columns: minmax(0, 1fr); }
  .vfx-fluid, .vfx-fluid .vn-mini-unit, .vfx-fluid .real-hud-scaler, .vfx-fluid .hud-panel, .vfx-fluid .vn-settings-panel { width: 100% !important; max-width: 100% !important; min-width: 0 !important; transform: none !important; box-sizing: border-box; }
  .vfx-fluid-outer { height: auto !important; overflow: visible !important; }
}
@media (max-width: 720px) {
  .vfx-cmp-head { display: none; }
  .vfx-cmp-row { grid-template-columns: minmax(0, 1fr); }
  .vfx-cmp-row > * { padding: 10px 14px; }
  .vfx-cmp-row > [data-l]::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 700 10px/1.6 var(--vfx-mono); letter-spacing: 0.08em; color: var(--vfx-sub); opacity: 0.75; }
  .vfx-pill, .vfx-mic { flex: 1 1 100%; justify-content: center; }
  .vfx-log-line { grid-template-columns: auto minmax(0, 1fr); }
  .vfx-log-line > :last-child { grid-column: 1 / -1; }
}
@media (hover: none), (pointer: coarse) {
  .vfx-spot, .vfx-rim { display: none; }
  html.vfx-ready .vfx-hover.vfx-tilting { transform: none; }
}

/* ---------- 13. 動きを減らす設定への対応 ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  html.vfx-ready [data-vfx], html.vfx-ready .vfx-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .vfx-frame rect { stroke-dashoffset: 0 !important; transition: none !important; }
  .vfx-step { opacity: 1; }
  .vfx-orbit, .vfx-scan, .vfx-caret, .vfx-eq i, .vfx-ghost, .vfx-arrow, .vfx-stage-bar i, .vfx-mic-dot, .vfx-pane.is-active, .vfx-log-line, .vfx-cmp-win::after { animation: none !important; }
  html.vfx-ready .vfx-hover.vfx-tilting { transform: none; }
}

/* ---------- 13b. 再出現（戻ってきたときは短く、上からは上方向から） ---------- */
html.vfx-ready [data-vfx].vfx-again { transition-duration: 0.45s; transition-delay: 0s; }
html.vfx-ready [data-vfx][data-vfx-from='top']:not(.vfx-in) { transform: translate3d(0, -28px, 0); }

/* ---------- 13c. 起動画面 ---------- */
html.vfx-booting body::before { content: ''; position: fixed; inset: 0; z-index: 99998; background: #020403; animation: vfxBootFail 0.4s linear 5s forwards; }
.vfx-boot { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: var(--vfx-mono); }
.vfx-boot-half { position: absolute; left: 0; width: 100%; height: 50.5%; background: #020403; transition: transform 0.7s var(--vfx-ease); }
.vfx-boot-half.is-top { top: 0; border-bottom: 1px solid rgba(0, 255, 65, 0.35); }
.vfx-boot-half.is-bottom { bottom: 0; }
.vfx-boot-core { position: relative; width: min(520px, 86vw); box-sizing: border-box; color: #9ab0a4; font-size: clamp(11px, 3.2vw, 14px); line-height: 1.6; transition: opacity 0.25s; }
.vfx-boot-head { margin-bottom: 14px; color: #00FF41; font-weight: 800; letter-spacing: 0.12em; overflow-wrap: anywhere; }
.vfx-boot-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; opacity: 0; transform: translate3d(-8px, 0, 0); transition: opacity 0.18s, transform 0.18s; }
.vfx-boot-row.is-on { opacity: 1; transform: none; }
.vfx-boot-row span { min-width: 0; }
.vfx-boot-row i { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted rgba(154, 176, 164, 0.5); }
.vfx-boot-row b { color: #00FF41; white-space: nowrap; }
.vfx-boot-ok { margin-top: 20px; text-align: center; font-weight: 800; font-size: clamp(18px, 5.6vw, 30px); letter-spacing: 0.2em; color: #d6ffe0; text-shadow: 0 0 4px #ffffff, 0 0 12px #00FF41, 0 0 28px #00FF41, 0 0 56px rgba(0, 255, 65, 0.85), 0 0 96px rgba(0, 255, 65, 0.55); opacity: 0; transition: opacity 0.15s; }
.vfx-boot-ok.is-on { opacity: 1; animation: vfxBootGlow 0.7s ease-out 1 both, vfxBootPulse 0.9s ease-in-out 0.7s infinite; }
@keyframes vfxBootGlow { 0% { filter: brightness(2.4); transform: scale(1.08); } 100% { filter: brightness(1); transform: scale(1); } }
@keyframes vfxBootPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
.vfx-boot-skip { margin-top: 18px; text-align: center; font-size: 10px; letter-spacing: 0.14em; opacity: 0.5; }
.vfx-boot.vfx-boot-open { pointer-events: none; }
.vfx-boot-open .vfx-boot-core { opacity: 0; }
.vfx-boot-open .vfx-boot-half.is-top { transform: translate3d(0, -101%, 0); }
.vfx-boot-open .vfx-boot-half.is-bottom { transform: translate3d(0, 101%, 0); }
@keyframes vfxBootFail { to { opacity: 0; visibility: hidden; } }

/* ---------- 14. キーフレーム ---------- */
@keyframes vfxPaneIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes vfxLineIn { from { opacity: 0; transform: translate3d(-10px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes vfxPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes vfxCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes vfxScan { 0% { opacity: 0; transform: translate3d(-100%, 0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate3d(100%, 0, 0); } }
@keyframes vfxOrbit { to { --vfx-ang: 360deg; } }
@keyframes vfxMeter { 0%, 100% { transform: scaleX(0.18); } 35% { transform: scaleX(0.82); } 60% { transform: scaleX(0.4); } 80% { transform: scaleX(0.95); } }
@keyframes vfxEq { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
@keyframes vfxGhost { 0%, 30% { opacity: 1; } 45%, 75% { opacity: 0.08; } 90%, 100% { opacity: 1; } }
@keyframes vfxFlow { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes vfxSweep { from { transform: translate3d(-120%, 0, 0); } to { transform: translate3d(120%, 0, 0); } }
