/* Last Stop — 莫蘭迪冷色系、克制、不做任何獎勵感的視覺回饋 */
:root {
  --bg: #2B3038;
  --bg-deep: #1d2128;
  --wall: #4A5260;
  --blue: #8C9BAB;
  --green: #8E9A8C;
  --purple: #A39AA3;
  --warm: #B3A396;
  --paper: #E8E2D6;
  --pen: #A8423F;
  --ink: #d7dce2;
  --dim: #98a2ae;
  --line: rgba(140, 155, 171, 0.28);
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "Source Han Serif TC", serif;
  --hand: "Kaiti TC", "BiauKai", "DFKai-SB", "STKaiti", "Noto Serif TC", cursive;
}

html { font-size: 17px; }
html[data-text-size="sm"] { font-size: 15px; }
html[data-text-size="lg"] { font-size: 20px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg-deep); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-text-size-adjust: 100%; }
body { overflow: hidden; }
#app { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
#screen { position: absolute; inset: 0; }
.boot-error { padding: 2rem; white-space: pre-wrap; color: var(--warm); }

button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── 全域特效層 ── */
#fx-lights { position: fixed; inset: 0; background: #0b0d10; opacity: 0; pointer-events: none; z-index: 90; }
#layers { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.layer { position: absolute; inset: 0; pointer-events: auto; }
.veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: rgba(17, 20, 25, 0.84); padding: 1rem; overflow: auto; }

/* ── 按鈕：安靜，無光暈、無彈跳 ── */
.btn { background: rgba(140, 155, 171, 0.08); border: 1px solid var(--line); padding: 0.5rem 1.1rem; min-height: 44px; border-radius: 2px; cursor: pointer; letter-spacing: 0.06em; transition: background 0.25s; }
.btn:hover:not(:disabled) { background: rgba(140, 155, 171, 0.17); }
.btn:disabled { opacity: 0.38; cursor: default; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0.25rem 0.7rem; font-size: 0.82rem; }
.btn.danger { color: #c9a29f; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.note { color: var(--dim); font-size: 0.8rem; text-align: center; margin: 0.8rem 0 0; }
.dim { color: var(--dim); }

.fade-in { animation: fadein 1.4s ease backwards; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ── 標題 ── */
.title { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-deep); }
.title-bg { position: absolute; inset: 0; opacity: 0.32; filter: blur(1.5px) saturate(0.7); }
.title-bg svg { width: 100%; height: 100%; }
.title-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(29, 33, 40, 0.4), rgba(29, 33, 40, 0.95) 75%); }
.title-box { position: relative; text-align: center; padding: 1rem; width: min(22rem, 92vw); }
.game-title { font-family: var(--serif); font-weight: 400; font-size: 3rem; letter-spacing: 0.22em; margin: 0 0 0.3rem 0.22em; color: var(--paper); }
.game-sub { margin: 0 0 2rem; color: var(--dim); letter-spacing: 0.18em; font-size: 0.9rem; }
.menu { display: flex; flex-direction: column; gap: 0.5rem; }
.menu-btn { width: 100%; }
.keys { opacity: 0.7; }

/* ── 到站過場 ── */
.arrival { background: #101216; display: flex; align-items: center; justify-content: center; height: 100%; }
.arr-box { text-align: center; }
.arr-label { font-size: 0.95rem; letter-spacing: 0.4em; color: var(--dim); animation: fadein 1.6s ease both; }
.arr-name { font-family: var(--serif); font-size: 2.6rem; letter-spacing: 0.25em; color: var(--paper); margin: 0.6rem 0 2rem 0.25em; animation: fadein 2.2s ease 0.5s both; min-height: 4rem; }

/* ── 規則紙 ── */
.paper-veil { gap: 0.4rem; }
.paper { position: relative; width: min(30rem, 92vw); background: var(--paper); color: #2a2926; padding: 1.8rem 1.7rem 1.4rem; font-family: var(--serif); transform: rotate(-0.4deg); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); max-height: 78dvh; overflow: auto; background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(0, 0, 0, 0.03) 31px 32px); }
.paper .tape { position: absolute; top: -9px; width: 64px; height: 20px; background: rgba(179, 163, 150, 0.55); }
.paper .tape.l { left: 18px; transform: rotate(-4deg); }
.paper .tape.r { right: 18px; transform: rotate(3deg); }
.paper header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgba(0, 0, 0, 0.35); padding-bottom: 0.4rem; margin-bottom: 0.8rem; }
.paper h2 { margin: 0; font-size: 1.15rem; letter-spacing: 0.2em; font-weight: 600; }
.paper .ver { font-size: 0.8rem; letter-spacing: 0.08em; white-space: nowrap; }
.paper .clauses { margin: 0; padding-left: 1.6rem; }
.paper .clause { margin: 0.4rem 0; line-height: 1.65; }
.paper .clause.struck del { text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; color: #5b5853; }
.paper .pen { color: var(--pen); font-family: var(--hand); font-size: 1.05em; }
.paper .clause .pen { display: block; margin-top: 0.1rem; transform: rotate(-0.6deg); }
.paper .clause.added { list-style-type: "＋ "; }
.paper .clause.added .pen { display: inline; }
.paper .notes { margin-top: 1rem; border-top: 1px dashed rgba(0, 0, 0, 0.35); padding-top: 0.6rem; }
.paper .notes-title { font-size: 0.8rem; letter-spacing: 0.3em; color: #5b5853; }
.paper .note-line { margin: 0.35rem 0; min-height: 1.3em; }
.paper .redact { display: inline-block; height: 1.05em; background: #1b1e23; vertical-align: -0.18em; max-width: 100%; position: relative; }
.paper .redact.struck::after { content: ""; position: absolute; left: -3%; right: -3%; top: 48%; border-top: 2px solid var(--pen); transform: rotate(-1.4deg); }
.paper .redact.struck + .pen { display: block; margin-top: 0.1rem; }

/* ── 車廂 ── */
.carriage { display: flex; flex-direction: column; height: 100%; background: var(--bg-deep); }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.6rem; padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--line); background: rgba(29, 33, 40, 0.8); }
.hud-st { font-family: var(--serif); letter-spacing: 0.12em; }
.hud-ver { font-size: 0.72rem; color: var(--dim); letter-spacing: 0.08em; }
.hud-c { display: flex; align-items: center; gap: 0.5rem; }
.hud-cap { font-size: 0.75rem; color: var(--dim); letter-spacing: 0.2em; }
.energy { display: flex; gap: 0.3rem; }
.pip { width: 0.62rem; height: 0.62rem; border-radius: 50%; border: 1px solid var(--blue); background: transparent; }
.pip.on { background: var(--blue); }
.hud-r { display: flex; justify-content: flex-end; gap: 0.3rem; flex-wrap: wrap; }

.stage-wrap { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0.4rem 0.6rem; overflow: hidden; }
.shake { width: min(100%, calc((100dvh - 215px) * 1.6)); max-width: 1120px; animation: sway 7s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes sway {
  0% { transform: translate(0, 0) rotate(0deg); }
  35% { transform: translate(0.7px, 0.3px) rotate(0.06deg); }
  70% { transform: translate(-0.5px, 0.6px) rotate(-0.05deg); }
  100% { transform: translate(0.3px, -0.2px) rotate(0.03deg); }
}
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--wall); overflow: hidden; border: 1px solid var(--line); }
.stage-bg { position: absolute; inset: 0; }
.stage-bg svg, .stage-bg img { width: 100%; height: 100%; display: block; object-fit: cover; }
.streaks path { animation: streak 2.6s linear infinite; }
@keyframes streak { to { stroke-dashoffset: -40; } }

.wall-paper { position: absolute; left: 91%; top: 17%; width: 6%; height: 17%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.wp-sheet { position: absolute; inset: 0; background: var(--paper); transform: rotate(-3deg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); opacity: 0.92; }
.wp-sheet::before, .wp-sheet::after { content: ""; position: absolute; left: 14%; right: 14%; height: 1px; background: rgba(0, 0, 0, 0.35); top: 28%; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35), 0 10px 0 rgba(0, 0, 0, 0.35); }

.npc { position: absolute; bottom: 21%; width: 15%; transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.npc .fig { display: block; width: 100%; }
.npc .fig svg, .npc .fig img { display: block; width: 100%; height: auto; }
.npc .tag { position: absolute; top: 101%; left: 50%; transform: translateX(-50%); text-align: center; font-size: 0.7rem; line-height: 1.35; white-space: nowrap; }
.npc .tag .nm { display: block; letter-spacing: 0.1em; }
.npc .tag .hs { display: block; color: var(--c); letter-spacing: 0.08em; }
.npc .tag .hn { display: block; color: var(--dim); font-size: 0.62rem; }
.npc:hover .sil, .npc.sel .sil { filter: brightness(1.18); }
.npc.sel .tag .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c); }

.roster { display: none; gap: 0.35rem; padding: 0 0.6rem 0.4rem; flex-wrap: wrap; justify-content: center; }
.rcard { display: flex; align-items: center; gap: 0.35rem; background: rgba(140, 155, 171, 0.07); border: 1px solid var(--line); padding: 0.3rem 0.55rem; min-height: 44px; font-size: 0.78rem; cursor: pointer; }
.rcard.sel { border-color: var(--c); }
.rcard .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c); }
.rcard .hs { color: var(--c); }
.rcard .hn { color: var(--dim); font-size: 0.7rem; }

.panel { flex: 0 0 auto; padding: 0.5rem 1rem 0.8rem; border-top: 1px solid var(--line); background: rgba(29, 33, 40, 0.85); display: flex; flex-direction: column; gap: 0.4rem; min-height: 8.5rem; }
.panel .tips { margin: 0; padding-left: 1.1rem; color: var(--dim); font-size: 0.8rem; line-height: 1.55; }
.panel .idle { margin: 0.3rem 0; color: var(--dim); text-align: center; }
.pinfo { display: flex; gap: 0.7rem; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.pinfo .prof { color: var(--dim); font-size: 0.78rem; }
.panel .actions { margin-top: 0.1rem; }
.btn.act { display: flex; flex-direction: column; align-items: center; min-width: 6.4rem; gap: 0; padding: 0.35rem 0.8rem; }
.btn.act .lbl { letter-spacing: 0.15em; }
.btn.act .cost { font-size: 0.7rem; color: var(--dim); }
.btn.act .cost::before { content: "精力 "; }
.btn.act .why { font-size: 0.62rem; color: var(--dim); }
.go-row { display: flex; justify-content: center; margin-top: auto; }
.btn.go { min-width: 12rem; }
.carriage.leaving { animation: dim 1.4s ease forwards; }
@keyframes dim { to { opacity: 0.08; } }

/* ── 互動對話層 ── */
.sheet { width: min(40rem, 94vw); background: #262b33; border: 1px solid var(--line); padding: 1.2rem 1.4rem 1.3rem; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5); max-height: 92dvh; overflow: auto; }
.sheet h2 { margin: 0 0 0.6rem; font-family: var(--serif); font-weight: 400; letter-spacing: 0.2em; }
.dlg-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.dlg-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.dlg-name { letter-spacing: 0.15em; }
.dlg-cost { margin-left: auto; font-size: 0.75rem; color: var(--dim); }
.dlg-narr { margin: 0 0 0.8rem; color: var(--dim); font-size: 0.9rem; font-style: italic; }
.dlg-line { margin: 0 0 1.1rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; color: var(--paper); }
.dlg-opts { display: flex; flex-direction: column; gap: 0.45rem; }
.opt { display: flex; gap: 0.8rem; align-items: baseline; text-align: left; width: 100%; background: rgba(140, 155, 171, 0.06); border: 1px solid var(--line); padding: 0.6rem 0.9rem; min-height: 46px; cursor: pointer; transition: background 0.25s; }
.opt:hover:not(:disabled) { background: rgba(140, 155, 171, 0.16); }
.opt .n { color: var(--dim); font-size: 0.8rem; min-width: 1rem; }
.opt.blocked { color: var(--dim); cursor: default; border-style: dashed; }
.opt.silence { border-style: dotted; color: var(--dim); }
.dlg-reply { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.1rem; color: var(--paper); }
.dlg-reply .who { color: var(--dim); font-size: 0.8rem; margin-right: 0.7rem; letter-spacing: 0.1em; }
.dlg-opts > .btn { align-self: flex-end; }

/* ── 小遊戲 ── */
.hint .mg-stage { min-height: 8rem; padding: 0.5rem 0; }
.clue { font-family: var(--serif); font-size: 1.15rem; line-height: 1.8; color: var(--paper); margin: 1rem 0; }
.mg-slide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: min(280px, 68vw); margin: 0 auto; aspect-ratio: 1; }
.mg-tile { position: relative; padding: 0; border: 0; background: #2d333c; cursor: pointer; aspect-ratio: 1; }
.mg-tile.blank { background: transparent; cursor: default; }
.mg-tile svg { width: 100%; height: 100%; display: block; }
.mg-num { position: absolute; left: 4px; top: 1px; font-size: 0.62rem; color: var(--dim); opacity: 0.6; }
.mg-nono-board { display: grid; gap: 3px; width: min(300px, 80vw); margin: 0 auto; align-items: center; }
.mg-clue { font-size: 0.72rem; color: var(--dim); }
.mg-clue.col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; line-height: 1.15; }
.mg-clue.row { text-align: right; padding-right: 0.35rem; white-space: nowrap; word-spacing: 0.4em; }
.mg-cell { aspect-ratio: 1; min-height: 34px; border: 1px solid var(--line); background: #2d333c; padding: 0; cursor: pointer; color: var(--dim); font-size: 0.9rem; }
.mg-cell.on { background: var(--c); border-color: var(--c); }
.mg-tools { display: flex; justify-content: center; margin-top: 0.6rem; }
.mg-pipes-wrap { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.mg-pipes { display: grid; gap: 3px; width: min(260px, 62vw); aspect-ratio: 1; }
.mg-pipe { padding: 0; border: 0; background: #2d333c; color: #566172; cursor: pointer; aspect-ratio: 1; }
.mg-pipe.lit { color: var(--c); }
.mg-pipe svg { width: 100%; height: 100%; display: block; }
.mg-end { color: var(--dim); }
.mg-end.in { align-self: flex-start; margin-top: 0.7rem; }
.mg-end.out { align-self: flex-end; margin-bottom: 0.7rem; }
.mg-memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: min(300px, 80vw); margin: 0 auto; }
.mg-card { aspect-ratio: 3 / 4; background: #2d333c; border: 1px solid var(--line); color: var(--c); font-family: var(--serif); font-size: 1.5rem; cursor: pointer; }
.mg-card.open { background: #323946; }
.mg-card.matched { opacity: 0.45; }

/* ── 衝突／故事／命名／終局 ── */
.conflict, .story, .naming, .ending { height: 100%; display: flex; align-items: center; justify-content: center; padding: 1.2rem; overflow: auto; background: radial-gradient(ellipse at 50% 30%, #242a32, #14171b 80%); }
.cf-box, .story-box, .name-box, .end-box { width: min(40rem, 94vw); }
.cf-label { color: var(--dim); letter-spacing: 0.4em; font-size: 0.8rem; margin-bottom: 1.2rem; }
.cf-scene p, .cf-after { font-family: var(--serif); font-size: 1.2rem; line-height: 1.9; color: var(--paper); margin: 0 0 0.7rem; }
.cf-after { color: var(--dim); margin-bottom: 1.2rem; }
.cf-choices { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.4rem; }
.story { background: radial-gradient(ellipse at 50% 28%, #3a3834, #1a1c1f 78%); }
.story-name { font-family: var(--serif); font-weight: 400; letter-spacing: 0.35em; color: var(--warm); margin: 0 0 1rem; }
.story-log { max-height: 60dvh; overflow: auto; padding-right: 0.4rem; }
.story-p { font-family: var(--serif); font-size: 1.15rem; line-height: 2; margin: 0 0 0.9rem; color: #d8d2c6; opacity: 0.55; }
.story-p.cur, .story-frag.cur, .story-symbol.cur { opacity: 1; }
.story-symbol, .story-frag { margin: 1.2rem 0; padding: 0.9rem 0; border-top: 1px solid var(--line); opacity: 0.6; }
.story-symbol .sym { opacity: 0.85; }
.frag-title { color: var(--warm); letter-spacing: 0.2em; font-size: 0.85rem; margin-bottom: 0.4rem; }
.story-frag p, .end-frag p { margin: 0.2rem 0; font-family: var(--serif); }
.story-actions { margin-top: 1rem; display: flex; justify-content: center; }
.name-box { text-align: center; }
.name-line { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 0.6rem; }
.name-box input { margin: 1.2rem auto 0; display: block; width: min(16rem, 80%); background: transparent; border: 0; border-bottom: 1px solid var(--blue); color: var(--paper); font: inherit; font-family: var(--serif); font-size: 1.3rem; text-align: center; padding: 0.4rem; }
.name-box input:focus { outline: none; border-bottom-color: var(--paper); }
.end-line { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 0.4rem; text-align: center; }
.end-frags { margin: 1.6rem 0 0.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.end-frag { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.end-frag .sym { flex: 0 0 auto; opacity: 0.85; }

/* ── 設定／圖鑑 ── */
.settings .row { display: grid; grid-template-columns: 7rem 1fr 2.4rem; align-items: center; gap: 0.7rem; margin: 0.55rem 0; }
.settings .row > select, .settings .row > input[type="checkbox"] { grid-column: 2 / 4; justify-self: start; }
.settings select { background: #20252c; color: var(--ink); border: 1px solid var(--line); padding: 0.35rem 0.5rem; font: inherit; min-height: 40px; }
.settings .val { color: var(--dim); font-size: 0.8rem; text-align: right; }
.settings input[type="range"] { width: 100%; accent-color: var(--blue); }
.codex { width: min(44rem, 94vw); }
.tabs { display: flex; gap: 0.4rem; margin: 0.6rem 0; }
.tab { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0.4rem 0.9rem; cursor: pointer; color: var(--dim); }
.tab.on { color: var(--paper); border-bottom-color: var(--blue); }
.codex-body { max-height: 52dvh; overflow: auto; padding-right: 0.3rem; }
.cx-npc, .cx-frag { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.cx-npc header { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.cx-npc .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); display: inline-block; }
.cx-npc .prof { color: var(--dim); font-size: 0.78rem; }
.cx-npc .quote { margin: 0.2rem 0; font-family: var(--serif); color: var(--paper); }
.cx-npc .prog { margin: 0; color: var(--dim); font-size: 0.78rem; }
.cx-sec h4 { margin: 0.6rem 0 0.2rem; font-weight: 400; color: var(--warm); letter-spacing: 0.2em; font-size: 0.8rem; }
.cx-sec p { margin: 0.2rem 0; font-size: 0.9rem; }
.cx-frag.locked { opacity: 0.45; }

/* ── 手機直式／窄螢幕 ── */
@media (max-aspect-ratio: 1/1), (max-width: 700px) {
  .hud { grid-template-columns: 1fr auto; }
  .hud-c { order: 3; grid-column: 1 / -1; justify-content: center; }
  .hud-r { order: 2; }
  .shake { width: 100%; }
  .stage-wrap { flex: 0 0 auto; padding: 0.4rem 0.3rem 0; }
  .npc .tag { display: none; }
  .npc { bottom: 18%; width: 17%; }
  .roster { display: flex; }
  .panel { padding: 0.5rem 0.7rem 0.7rem; }
  .dlg-line { font-size: 1.15rem; }
  .game-title { font-size: 2.4rem; }
  .btn.act { min-width: 5.2rem; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .shake { width: min(100%, calc((100dvh - 190px) * 1.6)); }
  .panel { min-height: 0; }
}

/* ── 減少動態：關閉晃動與閃爍 ── */
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-reduce-motion="true"] #fx-lights { display: none; }

.dlg-reply .who-img { height: 3.2rem; width: auto; vertical-align: middle; margin-right: 0.6rem; }

/* ── 3D 車廂 ── */
.stage.is3d { background: #14171b; }
.stage-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shake.flat3d { animation: none; } /* 3D 時改由相機晃動 */
.npc.npc3d { transform: none; bottom: auto; width: auto; }
.npc.npc3d:focus-visible { outline-offset: -2px; }
.stage.is3d .wall-paper { transform: none; }
.stage.is3d .wp-sheet { display: none; }
.stage.is3d .npc .tag { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }

/* ── 玩法說明：圓圈驚嘆號 ── */
.help-btn { position: relative; width: 1.6rem; height: 1.6rem; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--dim); font-family: var(--serif); font-size: 0.82rem; font-weight: 600; line-height: 1; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color 0.25s, border-color 0.25s; }
.help-btn::after { content: ""; position: absolute; inset: -10px; } /* 放大觸控範圍 */
.help-btn:hover { color: var(--ink); border-color: var(--blue); }
.help-btn.corner { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2; }
.hud-l { display: flex; align-items: center; gap: 0.7rem; }
.help { width: min(34rem, 94vw); }
.help-body { max-height: 62dvh; overflow: auto; padding-right: 0.3rem; }
.help h3 { margin: 1rem 0 0.25rem; font-weight: 400; font-size: 0.8rem; letter-spacing: 0.25em; color: var(--warm); }
.help p { margin: 0.15rem 0; color: #c3c9d0; font-size: 0.92rem; }
.stage.is3d .npc:not(.npc3d) { height: 38%; }
