/* ============================================================
   chars.css — キャラクターと UI の重なり (= SPEC-056)
   ============================================================
   - ナビのマインちゃん: 画面の下からのぞきこみ、 端末の通信窓 (= 吹き出し) で喋る
   - ヒーロー選択: 大きなドット絵の裏に名前の大きな文字。 選ぶたびに構図が変わる
   - ステージの始まり: 帯 (= テロップ) の手前にヒーロー
   ドット絵は 64 / 96 の整数倍で、 image-rendering: pixelated。
   ============================================================ */

/* ------------------------------------------------------------
   1. ナビのマインちゃん
   ------------------------------------------------------------ */
.navi {
  --s: 2;                                  /* 絵の倍率 (= 整数) */
  --peek: 0.32;                            /* 足もとを画面の外に出す割合 (= のぞきこむ) */
  --bubble-max: min(62vw, 320px);
  position: fixed;
  left: max(2px, var(--safe-l));
  bottom: 0;
  width: calc(96px * var(--s));
  height: calc(128px * var(--s) * (1 - var(--peek)));
  z-index: 210;
  pointer-events: none;
}
.navi.hidden { display: none !important; }
.navi__body {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(96px * var(--s));
  height: calc(128px * var(--s));
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 0 10px rgba(86, 204, 242, 0.35)) drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
}
.navi__img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  -webkit-user-drag: none;
}
/* 吹き出し = 通信窓。 左下の角が、 マインちゃんのほうへ伸びる */
.navi__bubble,
.navi__measure {
  box-sizing: border-box;
  padding: 0.55rem 0.85rem 0.6rem calc(0.85rem + 10px);
  max-width: var(--bubble-max);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.navi__bubble {
  position: absolute;
  left: calc(70px * var(--s));
  bottom: calc(128px * var(--s) * (1 - var(--peek)) - 34px * var(--s));
  min-width: 4rem;
  overflow: hidden;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  clip-path: polygon(10px 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%, 10px calc(100% - 14px));
  background:
    linear-gradient(90deg, transparent 10px, var(--node-cyan) 10px 12px, transparent 12px),
    linear-gradient(180deg, rgba(86, 204, 242, 0.16), transparent 45%),
    var(--node-scan),
    linear-gradient(165deg, #1f2c3e 0%, #151b28 100%);
  box-shadow: inset 0 0 0 1px rgba(86, 204, 242, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform-origin: 0 100%;
}
.navi__text { display: block; white-space: normal; }
.navi__measure {
  position: absolute;
  left: -9999px;
  top: 0;
  width: max-content;
  visibility: hidden;
  white-space: normal;
}
.navi__next {
  position: absolute;
  right: 0.45rem;
  bottom: 0.15rem;
  font-size: 0.55rem;
  color: var(--node-cyan);
  opacity: 0;
}
.navi__bubble--more.navi__bubble--done .navi__next { opacity: 1; animation: navi-next 0.9s ease-in-out infinite; }
@keyframes navi-next { 50% { transform: translateY(2px); opacity: 0.4; } }

/* たたむ (= 言い終えて少したったら。 マインちゃんを押すとまた開く) */
.navi__bubble { transition: width 300ms var(--ease-spring), height 300ms var(--ease-spring), opacity 220ms ease, scale 220ms ease; }
.navi--quiet .navi__bubble { opacity: 0; scale: 0.6; pointer-events: none; }

/* 出る・引っこむ・ページをめくる */
.navi--in .navi__body   { animation: navi-in 520ms var(--ease-spring) both; }
.navi--in .navi__bubble { animation: navi-bubble-in 420ms var(--ease-spring) 160ms both; }
.navi--out .navi__body   { animation: navi-out 260ms var(--ease-out) both; }
.navi--out .navi__bubble { animation: navi-out 200ms var(--ease-out) both; }
.navi__bubble--turn { animation: navi-turn 520ms var(--ease-page) both; }
@keyframes navi-in {
  from { transform: translateY(70%); }
  to   { transform: translateY(0); }
}
@keyframes navi-bubble-in {
  from { transform: scale(0.2); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes navi-out {
  to { transform: translateY(40%); opacity: 0; }
}
@keyframes navi-turn {
  0%   { transform: perspective(500px) rotateX(-80deg); opacity: 0.3; }
  65%  { transform: perspective(500px) rotateX(8deg); opacity: 1; }
  100% { transform: perspective(500px) rotateX(0); }
}

/* 置き場所 */
/* 通信窓 (= 戦闘): 顔だけの小窓と吹き出し。 戦場を隠さない */
.navi--comm {
  --s: 1;
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: auto;
  width: auto;
  height: auto;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  z-index: 3;
}
.navi--comm .navi__body {
  position: relative;
  order: -1;   /* 顔の小窓を吹き出しの左に */
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  overflow: hidden;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: var(--node-scan), linear-gradient(160deg, #24405a, #121a26);
  box-shadow: inset 0 0 0 1.5px var(--node-cyan);
  filter: none;
}
.navi--comm .navi__img {
  /* 顔のあたりだけ (= 96x128 の絵の (21, 20) から 46x46) */
  position: absolute;
  width: 96px;
  height: 128px;
  max-width: none;
  left: -21px;
  top: -20px;
}
.navi--comm .navi__bubble {
  position: relative;
  flex: 0 0 auto;   /* 測った大きさのまま (= 縮むと行が増えて切れる) */
  left: auto;
  bottom: auto;
  --bubble-max: min(56vw, 260px);
  max-width: var(--bubble-max);
  clip-path: polygon(10px 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 10px 100%, 10px 22px, 0 14px, 10px 8px);
  font-size: 0.8rem;
  transform-origin: 0 0;
}
.navi--comm .navi__measure { --bubble-max: min(56vw, 260px); max-width: var(--bubble-max); font-size: 0.8rem; }
.navi--comm.navi--in .navi__body { animation: navi-comm-in 360ms var(--ease-spring) both; }
@keyframes navi-comm-in {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.navi--comm[data-place="battle"] {
  position: fixed;
  left: max(8px, var(--safe-l));
  z-index: 60;
}
/* SPEC-093: スキルツリーの中 (= 木の左上。 木の画面 (260) より上、 モーダル (320) より下)。 押すと次のセリフ */
.navi--comm[data-place="tree"] {
  position: fixed;
  left: max(8px, var(--safe-l));
  z-index: 280;
  pointer-events: auto;
}
@media (max-width: 860px) {   /* SPEC-135: スキルツリーの分かれ目にそろえる */
  .navi--comm[data-place="tree"] .navi__bubble,
  .navi--comm[data-place="tree"] .navi__measure { --bubble-max: min(calc(100vw - 196px), 260px); }
}
.navi--comm[data-place="battle"] .navi__body,
.navi--comm[data-place="battle"] .navi__bubble { pointer-events: none; }
/* 縦が短い画面では小さく (= ボタンを隠さない) */
@media (max-height: 760px) {
  .navi[data-place="title"] { --s: 1; --peek: 0.1; }
}
/* SPEC-151: 復活 (= 渦の前に全身で出て、 王妃の黄金時計で復活させてあげると言う)。 結果の画面より上 */
.navi[data-place="revive"] { --s: 2; --peek: 0.1; z-index: calc(var(--z-modal-top) + 5); }
@media (max-height: 760px) { .navi[data-place="revive"] { --s: 1; } }

/* 通信の帯 (= モード選択・ヒーロー選択。 SPEC-059)
   画面の下の専用の帯に、 顔のアイコンとセリフ。 画面のほうが帯の高さぶんを空けるので、 ほかの UI と重ならない。
   ヒーロー選択の大きなヒーローの絵 (= 見せ場) には重ねない */
:root { --navi-dock-h: 88px; }
.navi__name { display: none; }
.navi--dock {
  --cut: 10px;
  position: fixed;
  left: max(8px, var(--safe-l));
  right: max(8px, var(--safe-r));
  top: auto;
  bottom: max(8px, var(--safe-b));
  width: auto;
  max-width: 560px;
  height: var(--navi-dock-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  box-sizing: border-box;
  z-index: calc(var(--z-modal) + 5);
  pointer-events: auto;
  border: 1.5px solid transparent;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background:
    linear-gradient(135deg, var(--node-cyan) 0 calc(var(--cut) * 0.7071 + 1px), transparent 0) border-box,
    linear-gradient(-45deg, var(--accent) 0 calc(var(--cut) * 0.7071 + 1px), transparent 0) border-box,
    linear-gradient(180deg, rgba(86, 204, 242, 0.12), transparent 50%) padding-box,
    var(--node-scan) padding-box,
    linear-gradient(165deg, #1f2c3e 0%, #141a26 100%) padding-box,
    linear-gradient(135deg, var(--node-cyan), rgba(86, 204, 242, 0.25) 55%, var(--accent)) border-box;
}
/* 顔のアイコン (= 96x128 の絵の (34, 22) から 36x36 を 2 倍で) */
.navi--dock .navi__body {
  position: relative;
  order: -1;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: var(--node-scan), radial-gradient(circle at 50% 40%, #2f5878, #121a26 75%);
  box-shadow: inset 0 0 0 1.5px var(--node-cyan);
  filter: none;
}
.navi--dock .navi__img {
  position: absolute;
  width: 192px;
  height: 256px;
  max-width: none;
  left: -68px;
  top: -50px;
}
/* セリフ: 帯の残りの幅いっぱい。 大きさは帯が決める (= 測ってばねで追わない) */
.navi--dock .navi__bubble {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  left: auto;
  bottom: auto;
  min-width: 0;
  max-width: none;
  padding: 2px 4px 2px 0;
  clip-path: none;
  background: none;
  box-shadow: none;
  font-size: 0.8rem;
  line-height: 1.45;
  transform-origin: 0 50%;
  transition: none;
}
.navi--dock .navi__name {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--node-cyan);
  text-shadow: 0 0 8px rgba(86, 204, 242, 0.55);
}
.navi--dock .navi__next { right: 0; bottom: 0; }
/* 帯は下からせり上がる (= 中の顔と吹き出しは動かさない) */
.navi--dock.navi--in { animation: navi-dock-in 420ms var(--ease-spring) both; }
.navi--dock.navi--out { animation: navi-dock-out 220ms var(--ease-out) both; }
.navi--dock.navi--in .navi__body,
.navi--dock.navi--in .navi__bubble,
.navi--dock.navi--out .navi__body,
.navi--dock.navi--out .navi__bubble { animation: none; }
@keyframes navi-dock-in {
  from { translate: 0 120%; opacity: 0; }
  to   { translate: 0 0; opacity: 1; }
}
@keyframes navi-dock-out {
  to { translate: 0 120%; opacity: 0; }
}
/* 帯のぶんを空ける (= モード選択はスクロールでき、 ヒーロー選択のカードは帯の上に収まる) */
.mode-select {
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--navi-dock-h) + 16px + var(--safe-b));
}
.mode-select > :first-child { margin-top: auto; }
.mode-select > :last-child { margin-bottom: auto; }
.hero-modal { padding-bottom: calc(var(--navi-dock-h) + 16px + var(--safe-b)); }
/* カードが低くなっても中身は縮めない (= ヒーローの見せ場が潰れない)。 はみ出すぶんはカードの中でスクロールし、
   「冒険を始める」はカードの下に貼りつく */
.hero-modal__card > *,
.hero-stage { flex-shrink: 0; }
.hero-modal__cta { position: sticky; bottom: 0; z-index: 2; }
/* 横に広い画面では、 帯をカードの左下の空きに置く (= ヒーロー選択のカードを縦いっぱいに使う)。
   カードは幅 560px で真ん中なので、 帯の右端 (= 16px + 50vw - 300px) はカードの左端 (= 50vw - 280px) に届かない */
@media (min-width: 1200px) {
  .navi--dock {
    left: max(16px, var(--safe-l));
    right: auto;
    width: min(340px, calc(50vw - 300px));
    margin: 0;
  }
  .hero-modal { padding-bottom: max(1rem, var(--safe-b)); }
}
/* 縦の短い画面では帯を細く (= 2 行・小さい顔) */
@media (max-height: 700px) {
  :root { --navi-dock-h: 66px; }
  .navi--dock { padding: 6px 8px 6px 6px; gap: 8px; }
  .navi--dock .navi__body { width: 52px; height: 52px; }
  .navi--dock .navi__img { left: -78px; top: -60px; }
  .navi--dock .navi__bubble { font-size: 0.74rem; line-height: 1.4; }
  .navi--dock .navi__name { font-size: 0.54rem; margin-bottom: 1px; }
}

/* ------------------------------------------------------------
   2. ヒーロー選択: 大きなドット絵と、 その裏の名前
   ------------------------------------------------------------ */
.hero-stage {
  --fc: var(--accent);
  position: relative;
  height: clamp(130px, 22vh, 190px);
  container-type: inline-size;
  overflow: hidden;
  margin: -0.2rem 0 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background:
    linear-gradient(105deg, transparent 0 46%, color-mix(in srgb, var(--fc) 30%, transparent) 46% 62%, transparent 62%),
    linear-gradient(105deg, transparent 0 64%, color-mix(in srgb, var(--fc) 14%, transparent) 64% 70%, transparent 70%),
    var(--node-scan),
    radial-gradient(ellipse at 70% 110%, color-mix(in srgb, var(--fc) 35%, transparent), transparent 60%),
    linear-gradient(180deg, #221b33, #120f19);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc) 45%, transparent);
}
.hero-stage[data-faction="SEIRYU"]  { --fc: var(--seiryu); }
.hero-stage[data-faction="SUZAKU"] { --fc: var(--suzaku); }
.hero-stage[data-faction="BYAKKO"]  { --fc: var(--byakko); }
.hero-stage[data-faction="GENBU"] { --fc: var(--genbu); }
.hero-stage[data-faction="KOURYU"]  { --fc: var(--kouryu); }
.hero-stage__name {
  /* 名前の大きな文字は、 ヒーローの裏 */
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  font-family: var(--font-display);
  /* 長い名前ほど小さく (= --len は文字数。 JS が入れる) */
  font-size: clamp(1.5rem, calc(160cqw / var(--len, 10)), 3.4rem);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fc) 75%, #ffffff);
  opacity: 0.85;
  letter-spacing: 0.02em;
  z-index: 1;
}
.hero-stage__sprite {
  position: absolute;
  z-index: 2;
  width: 192px;
  height: 192px;
  image-rendering: pixelated;
  right: 8%;
  bottom: -14px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px color-mix(in srgb, var(--fc) 55%, transparent));
}
/* 構図 (= 選ぶたびに変わる。 data-shot)。 大きさ・位置・傾き */
.hero-stage[data-shot="1"] .hero-stage__sprite { width: 256px; height: 256px; right: -2%; bottom: -60px; transform: rotate(-4deg); }
.hero-stage[data-shot="2"] .hero-stage__sprite { width: 192px; height: 192px; right: 30%; bottom: -20px; transform: scaleX(-1); }
.hero-stage[data-shot="3"] .hero-stage__sprite { width: 256px; height: 256px; right: 22%; bottom: -96px; transform: rotate(3deg); }
.hero-stage[data-shot="4"] .hero-stage__sprite { width: 128px; height: 128px; right: 10%; bottom: 18px; transform: rotate(-2deg); }
.hero-stage[data-shot="2"] .hero-stage__name,
.hero-stage[data-shot="3"] .hero-stage__name { text-align: right; top: 0.5rem; bottom: auto; }
/* 入ってくる (= カメラが回りこむように、 ヒーローと文字が逆から) */
.hero-stage--in .hero-stage__sprite { animation: hero-stage-sprite 460ms var(--ease-spring) both; }
.hero-stage--in .hero-stage__name   { animation: hero-stage-name 520ms var(--ease-out) both; }
@keyframes hero-stage-sprite {
  from { opacity: 0; translate: 40% 6%; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes hero-stage-name {
  from { opacity: 0; translate: -18% 0; }
  to   { opacity: 0.85; translate: 0 0; }
}
.hero-stage__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
}
/* SPEC-083: 最初の武器のプレビュー (= 選んで 1 秒たつと、 大きな絵と入れ替わる) */
.hero-stage__preview,
.hero-stage__tier {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
  pointer-events: none;
}
.hero-stage__preview { inset: 0; width: 100%; height: 100%; z-index: 3; }
.hero-stage__sprite,
.hero-stage__name { transition: opacity 220ms var(--ease-out); }
.hero-stage--preview .hero-stage__sprite,
.hero-stage--preview .hero-stage__name { opacity: 0; }
.hero-stage--preview .hero-stage__preview,
.hero-stage--preview .hero-stage__tier { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-stage__tier {
  --rc: var(--muted);
  z-index: 4;
  left: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 16px);
  padding: 3px 8px 3px 4px;
  background: rgba(14, 12, 20, 0.78);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  font-size: var(--fs-xs, 0.72rem);
  line-height: 1.2;
  white-space: nowrap;
}
.hero-stage__tier[data-rarity="Common"]   { --rc: #b9b9c6; }
.hero-stage__tier[data-rarity="Uncommon"] { --rc: #6fdc8c; }
.hero-stage__tier[data-rarity="Rare"]     { --rc: #56b4f2; }
.hero-stage__tier-rarity {
  padding: 1px 6px;
  background: var(--rc);
  color: #120f19;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero-stage__tier-name { overflow: hidden; text-overflow: ellipsis; color: #f2eefb; }
.hero-stage__tier-steps { display: flex; gap: 3px; flex-shrink: 0; }
.hero-stage__tier-steps i { width: 10px; height: 4px; background: rgba(255, 255, 255, 0.22); }
/* いま何段目か (= Common は 1 つ・Uncommon は 2 つ・Rare は 3 つ灯る) */
.hero-stage__tier[data-rarity="Common"] .hero-stage__tier-steps i:nth-child(1),
.hero-stage__tier[data-rarity="Uncommon"] .hero-stage__tier-steps i:nth-child(-n+2),
.hero-stage__tier[data-rarity="Rare"] .hero-stage__tier-steps i { background: var(--rc); }

/* 大きく出すので、 詳細の行の小さな顔と、 文字だけの「選んでください」は隠す */
.hero-detail__portrait,
.hero-detail__placeholder { display: none; }
.hero-detail { border: 0; background: none; padding: 0; min-height: 0; display: flex; flex-direction: column; gap: 0.5rem; }
/* SPEC-099: 名前とステータス ｜ レーダーチャート ｜ 開始武器 (= 狭い画面は武器を下の段に) */
.hero-detail__content { grid-template-columns: minmax(0, 0.9fr) 168px minmax(0, 1.2fr); }
@media (max-width: 560px) {
  .hero-detail__content { grid-template-columns: minmax(0, 1fr) 150px; }
  .hero-detail__weapon { grid-column: 1 / -1; }
}
.hero-detail__name { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }

/* ------------------------------------------------------------
   3. ステージの始まり: 帯の手前にヒーロー
   ------------------------------------------------------------ */
.stage-intro {
  overflow: visible;
  background:
    var(--node-scan),
    linear-gradient(90deg, transparent, rgba(18, 16, 24, 0.9) 14%, rgba(18, 16, 24, 0.9) 86%, transparent);
  border-top: 2px solid rgba(196, 163, 90, 0.9);
  border-bottom: 2px solid rgba(86, 204, 242, 0.8);
  transform-origin: 50% 50%;
}
.stage-intro { align-items: flex-start; padding-left: 9%; }
.stage-intro__hero {
  position: absolute;
  right: 3%;
  bottom: -18px;
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(196, 163, 90, 0.5));
  pointer-events: none;
}
.stage-intro--in { animation: stage-intro-band 2.2s var(--ease-out) forwards; }
.stage-intro--in .stage-intro__hero { animation: stage-intro-hero 2.2s var(--ease-out) forwards; }
@keyframes stage-intro-band {
  0%   { opacity: 0; transform: scaleY(0.1); }
  10%  { opacity: 1; transform: scaleY(1); }
  82%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0.4); }
}
@keyframes stage-intro-hero {
  0%, 6% { opacity: 0; translate: 70% 0; }
  20%    { opacity: 1; translate: 0 0; }
  80%    { opacity: 1; translate: -6% 0; }
  100%   { opacity: 0; translate: -30% 0; }
}
/* SPEC-089: PC では、 帯の中身を真ん中の 560px に寄せる (= 文字は左 9%・ヒーローは右 3% だと、 1280px で離れすぎる)。
   ヒーローは 192px (= 64 の 3 倍。 半端な倍率はドットがガタつく)。 スマホの並びは変えない。 動きは同じ */
@media (min-width: 960px) {
  .stage-intro {
    --intro-w: 560px;
    padding-left: max(9%, calc(50% - var(--intro-w) / 2));
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    gap: 4px;
  }
  .stage-intro__no { font-size: var(--fs-md); letter-spacing: 0.4em; }
  .stage-intro__name { font-size: 2rem; }
  .stage-intro__hero {
    right: max(3%, calc(50% - var(--intro-w) / 2));
    bottom: -24px;
    width: 192px;
    height: 192px;
  }
}

/* ------------------------------------------------------------
   4. 動きを減らす
   ------------------------------------------------------------ */
:root[data-reduce-fx] .navi--dock.navi--in,
:root[data-reduce-fx] .navi--dock.navi--out,
:root[data-reduce-fx] .navi--in .navi__body,
:root[data-reduce-fx] .navi--in .navi__bubble,
:root[data-reduce-fx] .navi__bubble--turn,
:root[data-reduce-fx] .hero-stage--in .hero-stage__sprite,
:root[data-reduce-fx] .hero-stage--in .hero-stage__name { animation: none; }
:root[data-reduce-fx] .navi__bubble { transition: none; }
:root[data-reduce-fx] .hero-stage__preview,
:root[data-reduce-fx] .hero-stage__tier,
:root[data-reduce-fx] .hero-stage__sprite,
:root[data-reduce-fx] .hero-stage__name { transition: none; }
:root[data-reduce-fx] .stage-intro--in,
:root[data-reduce-fx] .stage-intro--in .stage-intro__hero { animation: none; opacity: 1; }

/* SPEC-116: 倒れたときの結果の画面の下の帯 (= 結果の画面より手前。 結果の画面は帯のぶん下を空ける) */
.navi--dock[data-place="result"] { z-index: calc(var(--z-modal-top) + 5); }
.gameover-modal.gameover-modal--navi { padding-bottom: calc(var(--navi-dock-h) + 16px + var(--safe-b)); }

/* 2026-10-22: PC では通信窓の字と絵が小さく、 釣り合わない (= 作者の報告)。 広い画面では一回り大きく */
@media (min-width: 900px) {
  .navi--comm { --s: 2; }
  .navi--comm .navi__bubble, .navi--comm .navi__measure { font-size: 1.05rem; line-height: 1.55; }
  .navi--comm .navi__bubble, .navi--comm .navi__measure { --bubble-max: min(48vw, 420px); }   /* 吹き出しと測る幅は必ず同じに (= 違うと行が増えて見切れる) */
  .navi--comm .navi__name { font-size: 0.7rem; }
}
