/* 締切前夜 — 黒・濃紺・白。警告の赤、重要な情報の金。スマホ縦向きが基本 */
:root {
  --bg: #05070f; --navy: #0b1024; --panel: #0e1430; --panel2: #141c3e; --line: rgba(200, 210, 232, .22); --text: #f2f4fa; --muted: #aab3cc;
  --red: #ff4a5c; --red2: #c0303f; --gold: #e8c46a; --gold2: #b8952a; --blue: #5ab0ff; --green: #7ee0b0;
  --fs: 16px; --r: 14px;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.fl { --fs: 18px; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--fs); line-height: 1.7; overflow-x: hidden; }
button, input, a { font: inherit; }
[hidden] { display: none !important; }
.frame { max-width: 1180px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; overflow: clip; }
.screen { display: none; min-height: 100vh; min-height: 100dvh; }
.screen.on { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 会議の緊張が高まるほど、画面のふちが赤く沈む */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow 1.2s; }
body.t1::after { box-shadow: inset 0 0 60px rgba(255, 74, 92, .12); }
body.t2::after { box-shadow: inset 0 0 90px rgba(255, 74, 92, .22); }
body.t3::after { box-shadow: inset 0 0 120px rgba(255, 74, 92, .34); animation: pulseV 2.4s ease-in-out infinite; }
@keyframes pulseV { 50% { box-shadow: inset 0 0 140px rgba(255, 74, 92, .45); } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; line-height: 1.4; transition: transform .12s, border-color .2s, background .2s; overflow-wrap: anywhere; }
.btn:hover { border-color: var(--gold); }
.btn:active { transform: scale(.98); }
.btn.pri { background: linear-gradient(180deg, #f0d48a, #c9a24a); border-color: transparent; color: #1a1200; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 74, 92, .7); color: #ffd0d6; background: rgba(80, 10, 20, .5); }
.btn-x { background: #000; border-color: #8a93ad; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn:focus-visible, .ic-btn:focus-visible, [role=tab]:focus-visible, .card:focus-visible, .chip:focus-visible, input:focus-visible, .term:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ic-btn { flex: none; display: grid; place-items: center; min-width: 50px; min-height: 46px; padding: 2px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; line-height: 1; }
.ic-btn span { font-size: 20px; } .ic-btn small { font-size: 10px; margin-top: 2px; }
.h2 { margin: 0 0 10px; font-size: 1.22em; line-height: 1.4; }
.h3 { margin: 22px 0 10px; font-size: 1.02em; color: var(--gold); }
.h4 { margin: 16px 0 8px; font-size: .95em; }
.hint { margin: 6px 0 12px; font-size: .82em; color: var(--muted); line-height: 1.6; }
.note { margin: 18px 0 0; font-size: .76em; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.box { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.eye-gold { margin: 0 0 4px; letter-spacing: .35em; color: var(--gold); font-weight: 800; font-size: .8em; }

/* タイトル */
#s-title { position: relative; }
.t-art { position: absolute; inset: 0; opacity: .85; }
.t-art svg { width: 100%; height: 100%; display: block; }
.t-in { position: relative; max-width: 560px; margin: 0 auto; padding: 46px 16px 30px; text-align: center; }
.t-eye { margin: 0; font-size: 11px; letter-spacing: .4em; color: var(--muted); }
.logo { margin: 14px 0 0; line-height: 1.2; }
.logo span { display: block; white-space: nowrap; }
.logo .l1 { font-family: var(--serif); font-size: clamp(48px, 15vw, 84px); font-weight: 800; letter-spacing: .08em; color: #fff; text-shadow: 0 0 30px rgba(255, 74, 92, .45); }
.logo .l2 { margin-top: 6px; font-size: clamp(16px, 5vw, 22px); letter-spacing: .2em; color: var(--gold); }
.t-lead { margin: 22px 0 0; text-shadow: 0 1px 4px #000; font-size: .95em; }
.t-btns { display: grid; gap: 10px; max-width: 360px; margin: 24px auto 0; }
.t-info { font-size: .82em; color: var(--muted); }
.t-from { margin: 16px auto 0; max-width: 380px; padding: 12px; border-radius: var(--r); border: 1.5px solid var(--gold); background: rgba(8, 10, 24, .9); }
.t-from p { margin: 0; } .t-from .k { font-size: .78em; color: var(--gold); } .t-from .n { font-weight: 800; }

/* シナリオ選択 */
.opt { margin: 0 0 14px; padding: 8px 12px 10px; border-radius: 12px; border: 1px solid var(--line); }
.opt legend { padding: 0 4px; font-weight: 700; font-size: .9em; }
.opt label { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; line-height: 1.4; }
.opt input { flex: none; width: 20px; height: 20px; accent-color: var(--gold); }
.sel-list { display: grid; gap: 10px; }
.scard { display: grid; gap: 4px; width: 100%; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: linear-gradient(160deg, var(--panel2), var(--navy)); color: var(--text); text-align: left; cursor: pointer; }
.scard:hover { border-color: var(--gold); }
.scard .no { font-size: .74em; letter-spacing: .2em; color: var(--gold); }
.scard b { font-size: 1.15em; font-family: var(--serif); }
.scard .sub { font-size: .88em; }
.scard .meta { font-size: .76em; color: var(--muted); }
.scard .done { font-size: .78em; color: var(--green); }
.tagl { display: flex; flex-wrap: wrap; gap: 4px; }
.tagl span { padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .72em; }

/* 舞台 */
.stage { position: relative; height: clamp(190px, 34vh, 320px); overflow: hidden; background: #000; }
.bgw, .bgw svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.actor { position: absolute; left: 50%; bottom: 0; width: min(64%, 300px); height: 100%; transform: translateX(-50%); transition: filter .5s; }
.actor svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.actor.enter { animation: aIn .4s ease-out; }
@keyframes aIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
.actor.slump svg { transform: translateY(8px) rotate(-1.2deg); transition: transform .4s; }
.actor.lift svg { transform: translateY(-5px); transition: transform .4s; }
/* 照明：通常／疑い（赤）／告白（金） */
.stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 45% 60% at 50% 70%, transparent 40%, rgba(0, 0, 0, .55) 100%); transition: background .6s; }
.stage.lit-red::before { background: radial-gradient(ellipse 45% 60% at 50% 70%, rgba(255, 60, 80, .08) 30%, rgba(60, 0, 10, .7) 100%); }
.stage.lit-gold::before { background: radial-gradient(ellipse 45% 60% at 50% 70%, rgba(232, 196, 106, .14) 30%, rgba(10, 8, 0, .55) 100%); }
.scene-tag { position: absolute; z-index: 3; left: 8px; top: 8px; margin: 0; max-width: calc(100% - 16px); padding: 2px 10px; border-radius: 999px; background: rgba(5, 7, 15, .85); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.say-line { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(5, 7, 15, .88); border: 1px solid var(--line); font-size: .9em; line-height: 1.55; }
.say-line:empty { display: none; }
.say-line b { display: block; font-size: .78em; color: var(--gold); }
.stage-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

/* 演出：矛盾発見・資料の発見・真相がつながる */
.fxl { position: fixed; inset: 0; z-index: 58; pointer-events: none; overflow: hidden; }
.stamp { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg); padding: 6px 22px; border: 4px solid var(--red); border-radius: 8px; color: var(--red); background: rgba(10, 2, 6, .82); font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 8vw, 44px); letter-spacing: .1em; white-space: nowrap; animation: stamp .55s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 0 40px rgba(255, 74, 92, .6); }
.stamp.gold { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 40px rgba(232, 196, 106, .6); }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } }
.split { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 46%, rgba(255, 74, 92, .85) 49%, #fff 50%, rgba(255, 74, 92, .85) 51%, transparent 54%); animation: split .5s ease-out both; }
@keyframes split { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.stage.shake { animation: shake .4s 2; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--gold); animation: spark .9s ease-out both; }
@keyframes spark { to { transform: translate(var(--x), var(--y)); opacity: 0; } }
.found { position: fixed; z-index: 45; left: 50%; top: 18%; transform: translateX(-50%); padding: 8px 16px; border-radius: 12px; background: linear-gradient(180deg, #f0d48a, #c9a24a); color: #1a1200; font-weight: 800; box-shadow: 0 8px 30px rgba(232, 196, 106, .5); animation: found 1.8s ease-out both; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
@keyframes found { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.04); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.cnt.new { animation: bump .6s 2; }
@keyframes bump { 50% { transform: scale(1.5); background: var(--gold); color: #1a1200; } }

/* HUD */
.hud { position: sticky; top: 0; z-index: 20; padding: 6px 10px; background: rgba(5, 7, 15, .95); border-bottom: 1.5px solid var(--line); }
.hud-row { display: flex; align-items: center; gap: 8px; }
.hud-title { flex: 1; min-width: 0; margin: 0; font-weight: 800; font-size: .92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { flex: none; margin: 0; padding: 2px 10px; border-radius: 8px; background: #0a0c18; border: 1.5px solid var(--red2); color: #ff8a96; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: .9em; white-space: nowrap; }
body.t3 .clock { animation: blinkC 1s steps(2) infinite; }
@keyframes blinkC { 50% { color: #fff; border-color: var(--red); } }
.tension { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.tension span { flex: none; }
.tension i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tension b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .8s; }

/* 机（タブ） */
.inv-body { padding-bottom: 84px; }
.desk { padding: 10px 10px 0; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: sticky; top: var(--hudh, 64px); z-index: 10; padding: 6px 0; background: var(--bg); }
.tabs [role=tab] { position: relative; min-height: 46px; padding: 4px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; font-size: .9em; }
.tabs [role=tab][aria-selected=true] { color: #1a1200; background: var(--gold); border-color: var(--gold); }
.cnt { display: inline-block; min-width: 1.4em; margin-left: 4px; padding: 0 4px; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: .78em; }
.tabp { padding: 6px 0 12px; }
.card { scroll-margin-top: 140px; scroll-margin-bottom: 90px; display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); text-align: left; }
.card.new { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232, 196, 106, .3); }
.card.solved { border-color: rgba(255, 74, 92, .6); }
.sayc { display: flex; gap: 10px; align-items: flex-start; }
.sayc .ic, .lnx .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #10143a; border: 2px solid var(--line); }
.sayc .ic svg, .lnx .ic svg { width: 100%; height: 100%; display: block; }
.sayc .tx { min-width: 0; flex: 1; }
.sayc .who { display: block; font-size: .76em; color: var(--gold); font-weight: 700; }
.sayc p { margin: 2px 0 8px; overflow-wrap: anywhere; }
.sayc .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sayc .acts .btn { min-height: 44px; padding: 6px 12px; font-size: .86em; }
.badge { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .72em; font-weight: 800; vertical-align: 1px; }
.badge.red { background: rgba(255, 74, 92, .18); color: #ffb0b8; border: 1px solid var(--red); }
.badge.gold { background: rgba(232, 196, 106, .18); color: var(--gold); border: 1px solid var(--gold); }
.evc { display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: 56px; }
.evc .di { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #1a2248; color: var(--gold); }
.evc .di svg { width: 22px; height: 22px; }
.evc b { display: block; font-size: .95em; overflow-wrap: anywhere; }
.evc small { color: var(--muted); }
.evc .tx { min-width: 0; flex: 1; }
.tl { position: relative; margin: 0; padding: 0 0 0 18px; list-style: none; }
.tl::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(var(--gold), var(--red)); }
.tl li { position: relative; margin: 0 0 10px; }
.tl li::before { content: ""; position: absolute; left: -17px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--bg); }
.tl li.fact::before { background: var(--red); }
.tl time { display: block; font-size: .76em; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.tl button { padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); font: inherit; min-height: 30px; }
.ppc { display: grid; gap: 6px; }
.ppc .hd { display: flex; gap: 10px; align-items: center; }
.ppc .hd b { display: block; } .ppc .hd small { color: var(--muted); font-size: .78em; }
.ppc .want { font-size: .8em; color: var(--muted); }
.ppc ul { margin: 0; padding-left: 1.2em; font-size: .86em; }
.qbtn { scroll-margin-top: 140px; scroll-margin-bottom: 90px; display: flex; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; margin: 4px 0 0; padding: 8px 12px; border-radius: 10px; border: 1.5px solid rgba(90, 176, 255, .5); background: rgba(20, 40, 90, .5); color: var(--text); text-align: left; cursor: pointer; line-height: 1.45; }
.qbtn small { flex: none; color: var(--muted); }
.qbtn.done { border-color: var(--line); background: transparent; color: var(--muted); }
.qbtn[disabled] { opacity: .5; cursor: not-allowed; }
.actbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px; max-width: 1180px; margin: 0 auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(5, 7, 15, .96); border-top: 1.5px solid var(--line); }
.actbar .btn { min-height: 50px; }
.actbar .prog { flex: 1; min-width: 0; margin: 0; font-size: .74em; color: var(--muted); text-align: center; line-height: 1.35; }

/* シート（下から出る） */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 3, 10, .7); }
.sheet-box { width: 100%; max-width: 720px; max-height: 88dvh; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; background: var(--navy); border: 1.5px solid var(--line); border-bottom: 0; animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; }
.sheet-head .h2 { flex: 1; margin: 0; font-size: 1.05em; }
.sheet-body { overflow: auto; padding: 4px 14px calc(18px + env(safe-area-inset-bottom)); }
/* 資料の見た目 */
.doc { padding: 14px; border-radius: 10px; background: #f6f4ee; color: #1a1c26; line-height: 1.7; }
.doc .dh { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1.5px solid #d8d4c8; font-weight: 800; }
.doc .dh small { font-weight: 500; color: #5a5e70; }
.doc p { margin: 0 0 4px; overflow-wrap: anywhere; }
.doc p.meta { color: #5a5e70; font-size: .84em; }
.doc.mail { border-top: 6px solid #3a6ad0; } .doc.estimate { border-top: 6px solid var(--gold2); } .doc.minutes { border-top: 6px solid #4a8a6a; } .doc.task { border-top: 6px solid #8a5ad0; } .doc.report { border-top: 6px solid var(--red2); } .doc.log { border-top: 6px solid #5a6a8a; }
.doc.photo { background: #fff9e6; transform: rotate(-.6deg); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); } .doc.memo { background: #fff6b8; }
.doc.chat { background: #e8ecf6; }
.doc.chat .msg { display: inline-block; max-width: 100%; margin: 0 0 6px; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: #fff; }
.doc.file p { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
.pick { display: grid; gap: 6px; }
.pick button { min-height: 50px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; line-height: 1.45; }
.pick button:hover { border-color: var(--red); }
.pick h3 { margin: 8px 0 2px; font-size: .82em; color: var(--muted); }
.lnx { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.lnx .bub { min-width: 0; flex: 1; padding: 6px 10px; border-radius: 4px 12px 12px 12px; background: var(--panel2); border: 1px solid var(--line); }
.lnx .bub b { display: block; font-size: .76em; color: var(--gold); }
.lnx .bub p { margin: 0; overflow-wrap: anywhere; }
.ln-n { margin: 0 0 8px; color: #dfe4f6; }
.ln-sys { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; border: 1px dashed rgba(90, 176, 255, .6); background: rgba(90, 176, 255, .08); font-size: .9em; }
.why { margin: 10px 0; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--red); background: rgba(255, 74, 92, .08); }
.why b { color: #ffb0b8; }
.newl { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(232, 196, 106, .1); border: 1px solid rgba(232, 196, 106, .5); font-size: .88em; }
.term { padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline dotted var(--gold); text-underline-offset: 3px; cursor: help; }
.gloss { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: rgba(232, 196, 106, .08); border: 1px solid rgba(232, 196, 106, .35); font-size: .8em; }
.gloss b { color: var(--gold); }

/* 状況説明 */
.brief-stage { height: clamp(220px, 40vh, 380px); }
.panel { max-width: 720px; margin: 0 auto; padding: 12px 14px 40px; }
.next { display: flex; width: 100%; min-height: 50px; margin: 6px 0 12px; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.next:hover { color: var(--text); border-color: var(--gold); }
.probs { margin: 6px 0 14px; padding: 12px 14px 12px 32px; border-radius: 12px; border: 1.5px solid rgba(255, 74, 92, .5); background: rgba(255, 74, 92, .06); }
.probs li { margin: 4px 0; }
.castl { display: grid; gap: 8px; }
@media (min-width: 640px) { .castl { grid-template-columns: 1fr 1fr; } }

/* 推理の整理 */
.dp { margin: 0 0 12px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel); }
.dp .hd { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.dp .hd b { display: block; } .dp .hd small { color: var(--muted); font-size: .78em; }
.dp .facts { margin: 0 0 8px; padding-left: 1.2em; font-size: .82em; color: #dfe4f6; }
.dp .facts.none { list-style: none; padding: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: .86em; line-height: 1.3; }
.chip[aria-checked=true] { background: var(--gold); border-color: var(--gold); color: #1a1200; font-weight: 800; }
.chip[aria-checked=true]::before { content: "✓ "; }
.opts { display: grid; gap: 6px; }
.optb { min-height: 50px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; line-height: 1.45; }
.optb[aria-checked=true] { border-color: var(--gold); background: rgba(232, 196, 106, .14); box-shadow: inset 0 0 0 1px var(--gold); }
.optb[aria-checked=true]::before { content: "✓ "; color: var(--gold); font-weight: 800; }
.warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--red); background: rgba(255, 74, 92, .08); font-size: .86em; }
.sticky-go { position: sticky; bottom: 0; z-index: 5; margin: 16px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(5, 7, 15, .96) 30%); }

/* 真相 */
.graph { margin: 6px 0 14px; border-radius: 14px; background: radial-gradient(circle at 50% 50%, #141c3e, #070a18 70%); border: 1px solid var(--line); }
.graph svg { width: 100%; height: auto; display: block; }
.graph .edge { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1s ease-out forwards; }
.graph .node { opacity: 0; animation: nodeIn .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nodeIn { to { opacity: 1; } }
.judge { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.judge li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); opacity: 0; animation: nodeIn .4s ease-out forwards; }
.judge .mk { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.judge .ok .mk, .judge li.ok .mk { background: rgba(126, 224, 176, .2); color: var(--green); border: 2px solid var(--green); }
.judge li.ng .mk { background: rgba(255, 74, 92, .2); color: var(--red); border: 2px solid var(--red); }
.judge small { display: block; color: var(--muted); font-size: .8em; }
.rv-cause { margin: 0 0 12px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--gold); background: rgba(232, 196, 106, .08); }
.story p { margin: 0 0 8px; }
.dissent .lnx { margin-top: 6px; }
.res { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.res p { margin: 0 0 4px; font-size: .9em; }

/* 対応・結果の数値 */
.resp-stage { height: clamp(170px, 28vh, 260px); }
.meters { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.meters li { display: grid; grid-template-columns: 7.5em 1fr 2.6em; gap: 8px; align-items: center; font-size: .84em; }
.meters .bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meters .bar i { display: block; height: 100%; background: var(--c); transition: width .9s ease; }
.meters b { text-align: right; font-variant-numeric: tabular-nums; }
.meters li.dmg .bar i { background: var(--red); }
.meters .lab small { display: block; font-size: .78em; color: var(--muted); }
.dl { display: grid; gap: 4px; margin: 8px 0; padding: 0; list-style: none; }
.dl li { display: flex; gap: 8px; align-items: baseline; font-size: .88em; }
.chipd { flex: none; min-width: 96px; padding: 0 8px; border-radius: 999px; font-size: .82em; font-weight: 800; white-space: nowrap; }
.chipd.up { background: #0e3a2c; color: #a8ffd9; border: 1px solid #3ccf96; } .chipd.dn { background: #3a0e18; color: #ffc4cf; border: 1px solid var(--red); }
.step-k { margin: 0 0 4px; font-size: .78em; color: var(--gold); letter-spacing: .1em; }

/* 結果カード */
.rcard { position: relative; padding: 18px 16px; border-radius: 18px; border: 2px solid var(--c, var(--gold)); background: radial-gradient(90% 60% at 50% 0%, rgba(232, 196, 106, .14), transparent 60%), linear-gradient(160deg, #141c3e, #070a18); text-align: center; overflow: hidden; }
.rc-sc { margin: 0; font-size: .8em; color: var(--muted); }
.rc-k { margin: 10px 0 0; font-size: .8em; color: var(--gold); letter-spacing: .1em; }
.rc-type { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(24px, 7vw, 34px); color: var(--c, var(--gold)); line-height: 1.3; overflow-wrap: anywhere; }
.rc-desc { margin: 8px 0 0; font-size: .9em; }
.rc-dl { display: grid; gap: 6px; margin: 14px 0 0; text-align: left; }
.rc-dl div { display: grid; grid-template-columns: 7em 1fr; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.rc-dl dt { color: var(--muted); font-size: .84em; } .rc-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.rc-game { margin: 14px 0 0; font-size: .74em; color: var(--muted); letter-spacing: .05em; }
.sec { margin: 18px 0 0; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.epi { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.epi li { display: flex; gap: 10px; align-items: flex-start; font-size: .9em; }
.epi .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #10143a; }
.epi .ic svg { width: 100%; height: 100%; display: block; }
.sh-prev { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #0a0c18; border: 1px solid var(--line); font-size: .85em; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-btns { display: grid; gap: 8px; }
.ig-img { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 10px; border-radius: 12px; border: 1px solid var(--line); }
.ig-wait { color: var(--muted); font-size: .85em; }
.end-btns { display: grid; gap: 8px; margin-top: 18px; }
.end-lines { margin-top: 14px; }

/* モーダル・チュートリアル */
.modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(2, 3, 10, .78); }
.m-box { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto; padding: 18px 16px; border-radius: 18px; background: var(--navy); border: 1.5px solid var(--line); }
.m-box.wide { max-width: 680px; }
.m-list { display: grid; gap: 8px; margin: 10px 0 0; }
.logl { margin: 0; padding: 0; list-style: none; font-size: .86em; }
.logl li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.logl li.hit { color: #ffb0b8; } .logl li.miss { color: var(--muted); }
.coach { position: fixed; z-index: 60; left: 50%; bottom: 96px; transform: translateX(-50%); width: calc(100% - 24px); max-width: 460px; padding: 14px; border-radius: 16px; background: #fffaf0; color: #1a1c26; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); border: 3px solid var(--gold); }
.coach .co-step { margin: 0; font-size: .76em; color: #8a6a1a; font-weight: 800; }
.coach .co-t { margin: 2px 0 4px; font-size: 1.05em; }
.coach p { margin: 0; font-size: .92em; }
.coach .btn.ghost { color: #1a1c26; border-color: #c9bfa6; }
.coach-hl { position: relative; z-index: 59; box-shadow: 0 0 0 4px var(--gold), 0 0 0 9999px rgba(2, 3, 10, .55) !important; border-radius: 12px; }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 70; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: #1a2248; border: 1px solid var(--gold); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: all .3s; font-size: .9em; }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.hero .blink { animation: blink 5.5s infinite; } @keyframes blink { 0%, 95%, 100% { opacity: 0; } 96%, 98% { opacity: 1; } }
.sway { transform-box: fill-box; transform-origin: top center; animation: sway 4s ease-in-out infinite alternate; } @keyframes sway { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.title-art .clock text { animation: blinkC 1.2s steps(2) infinite; }
svg [stroke-width="1"], svg [stroke-width="1.2"], svg [stroke-width="1.4"], svg [stroke-width="1.6"] { vector-effect: non-scaling-stroke; }

/* ---------- v2：迷わない進行・テンポ・臨場感 ---------- */
/* 押したらすぐ反応 */
.btn, .optb, .chip, .qbtn, .pick button, .card.evc, .seat, .tabs [role=tab] { position: relative; overflow: hidden; }
.ripple { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, .45); pointer-events: none; animation: rip .45s ease-out forwards; }
@keyframes rip { to { transform: scale(30); opacity: 0; } }
.btn.red { border-color: rgba(255, 74, 92, .75); color: #ffd0d6; background: rgba(120, 16, 30, .45); }
.btn.red:hover { border-color: var(--red); background: rgba(160, 20, 40, .6); }
.btn.nudge { animation: nudge .9s ease-in-out 2; }
@keyframes nudge { 30% { box-shadow: 0 0 0 4px var(--gold); transform: scale(1.04); } }
/* 段階表示 */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 3px 2px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 10.5px; line-height: 1.25; text-align: center; }
.steps li b { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 9px; }
.steps li span { min-width: 0; overflow-wrap: anywhere; }
.steps .ss { display: none; }
@media (max-width: 560px) { .steps .sl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .steps .ss { display: inline; font-size: 11px; } }
.steps li.done { color: var(--green); } .steps li.done b { background: var(--green); color: #05140c; border-color: var(--green); }
.steps li.now { background: var(--gold); color: #1a1200; font-weight: 800; } .steps li.now b { border-color: #1a1200; }
.box > .steps { margin: 0 0 14px; }
.hud-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11px; color: var(--muted); }
.state { flex: none; padding: 1px 8px; border-radius: 999px; background: rgba(232, 196, 106, .16); border: 1px solid var(--gold); color: var(--gold); font-weight: 800; }
.hud-sub .tension { flex: 1; display: flex; align-items: center; gap: 6px; margin: 0; }
.hud-sub .tension i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; } .hud-sub .tension b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .8s; }
.clue { flex: none; }
.clock { display: grid; text-align: right; line-height: 1.15; padding: 2px 8px; }
.clock b { font-size: 1.05em; } .clock small { font-size: .62em; color: #ffc2c8; font-family: var(--sans); font-weight: 700; white-space: nowrap; }
.hud .ic-btn { min-width: 46px; }
/* ブリーフィング */
.brief-stage { height: clamp(170px, 30vh, 300px); }
.incident { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(40, 6, 14, .9); border: 1.5px solid var(--red); font-size: .9em; line-height: 1.55; animation: up .5s ease-out; }
.incident b { display: block; font-size: .72em; color: #ffb0b8; letter-spacing: .2em; }
.incident:empty { display: none; }
.brief { padding-top: 16px; }
.bf-title { font-family: var(--serif); font-size: 1.7em; margin-bottom: 12px; }
.bcard { display: grid; gap: 8px; margin: 0; }
.bcard div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.bcard dt { font-size: .82em; color: var(--gold); font-weight: 800; } .bcard dd { margin: 0; overflow-wrap: anywhere; }
.bf-probs { margin: 0; padding-left: 1.1em; } .bf-probs li { margin: 2px 0; }
.howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: h; }
.howto li { counter-increment: h; padding: 10px 12px 10px 40px; position: relative; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.howto li::before { content: counter(h); position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1a1200; font-weight: 900; font-size: .8em; }
.howto b { display: block; } .howto span { font-size: .8em; color: var(--muted); }
.bf-win, .bf-time { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .88em; }
.bf-win { background: rgba(232, 196, 106, .08); border: 1px solid rgba(232, 196, 106, .5); } .bf-win b, .bf-time b { color: var(--gold); }
.bf-time { background: rgba(255, 74, 92, .06); border: 1px solid rgba(255, 74, 92, .4); }
.castrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cast1 { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.cast1 .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #10143a; } .cast1 .ic svg { width: 100%; height: 100%; display: block; }
.cast1 b { display: block; font-size: .86em; overflow-wrap: anywhere; } .cast1 small { display: block; font-size: .72em; color: var(--muted); overflow-wrap: anywhere; }
.bf-scene { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
.bf-scene summary { cursor: pointer; min-height: 32px; font-weight: 700; color: var(--muted); }
.bf-go { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 8px; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(5, 7, 15, .97) 25%); }
/* 会議の席 */
.cam { position: absolute; inset: 0; transition: transform 1.2s ease; transform-origin: 50% 70%; }
body.near1 .cam { transform: scale(1.03); } body.near2 .cam { transform: scale(1.06); } body.near3 .cam { transform: scale(1.1); }
body.pushin .cam { transform: scale(1.14) !important; transition: transform .6s ease; }
body.near2 .stage::before { background: radial-gradient(ellipse 42% 55% at 50% 65%, transparent 35%, rgba(0, 0, 0, .65) 100%); }
body.near3 .stage::before { background: radial-gradient(ellipse 38% 50% at 50% 62%, rgba(232, 196, 106, .08) 25%, rgba(0, 0, 0, .75) 100%); }
.seats { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 4px 6px 6px; background: linear-gradient(transparent, rgba(5, 7, 15, .9) 40%); }
.seat { flex: 0 1 52px; min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 2px 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.seat .sf { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #10143a; border: 2px solid var(--line); transition: transform .25s, border-color .25s; }
.seat .sf svg { width: 100%; height: 100%; display: block; }
.seat .sn { max-width: 100%; font-size: 10px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.seat.on .sf { border-color: var(--gold); transform: translateY(-4px) scale(1.08); box-shadow: 0 0 12px rgba(232, 196, 106, .5); } .seat.on .sn { color: var(--gold); font-weight: 800; }
.say-line { bottom: 66px; max-height: 40%; overflow: auto; }
.say-line:empty { display: none; }
.ping { position: absolute; z-index: 6; left: 50%; top: 40px; transform: translateX(-50%); width: calc(100% - 24px); max-width: 460px; margin: 0; padding: 8px 12px 8px 36px; border-radius: 12px; background: rgba(250, 250, 255, .96); color: #141830; font-size: .84em; line-height: 1.45; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.ping::before { content: "🔔"; position: absolute; left: 10px; top: 8px; }
.ping.in { animation: pingIn .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pingIn { from { transform: translate(-50%, -16px); opacity: 0; } }
.stage { height: clamp(230px, 38vh, 340px); }
/* 机 */
.tab-lead { margin: 2px 0 10px; font-size: .84em; color: var(--muted); }
.sayc .acts { gap: 8px; } .done-t { align-self: center; font-size: .8em; color: #ffb0b8; }
.lk { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lkp { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 1px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .72em; }
.lkp .ic { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: #10143a; } .lkp .ic svg { width: 100%; height: 100%; display: block; }
.lk-doc { margin: 8px 0 0; font-size: .9em; align-items: center; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pcard2 { display: flex; gap: 8px; align-items: center; margin: 0; min-height: 64px; cursor: pointer; }
.pcard2 .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #10143a; } .pcard2 .ic svg { width: 100%; height: 100%; display: block; }
.pcard2 .tx { min-width: 0; } .pcard2 b { display: block; font-size: .9em; overflow-wrap: anywhere; } .pcard2 small { display: block; font-size: .72em; color: var(--muted); overflow-wrap: anywhere; }
.pst { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
/* 次にやること */
.inv-body { padding-bottom: 130px; }
.actbar { display: grid; gap: 6px; }
.next-t { margin: 0; font-size: .86em; line-height: 1.45; overflow-wrap: anywhere; }
.next-t b { margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--gold); color: #1a1200; font-size: .82em; }
.act-row { display: flex; gap: 6px; }
.act-row .btn { min-height: 48px; padding: 8px 10px; font-size: .9em; }
.act-row #b-next { flex: 1; min-width: 0; }
.act-row #b-ded { flex: none; }
/* シート：指摘・見比べ */
.sh-act { display: grid; gap: 8px; margin-top: 14px; position: sticky; bottom: -18px; padding: 10px 0 4px; background: linear-gradient(transparent, var(--navy) 30%); }
.quote { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border-left: 4px solid var(--gold); }
.quote .ic { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #10143a; } .quote .ic svg { width: 100%; height: 100%; display: block; }
.quote p { margin: 0; overflow-wrap: anywhere; } .quote b { display: block; font-size: .8em; color: var(--gold); }
.pick button { display: flex; gap: 10px; align-items: center; }
.pick .di, .pick .ic { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #1a2248; color: var(--gold); overflow: hidden; }
.pick .ic { border-radius: 50%; } .pick .ic svg { width: 100%; height: 100%; } .pick .di svg { width: 20px; height: 20px; }
.pick button > span:last-child { min-width: 0; } .pick small { display: block; color: var(--muted); font-size: .78em; overflow-wrap: anywhere; }
.vs { display: grid; gap: 8px; }
.vs-x { margin: 0; text-align: center; font-weight: 900; color: var(--red); letter-spacing: .3em; }
.claim { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--red); background: rgba(255, 74, 92, .08); }
.claim b { display: block; font-size: .8em; color: #ffb0b8; }
.doc p.hl { margin: 2px -6px 6px; padding: 3px 6px; border-radius: 6px; background: rgba(255, 205, 70, .38); box-shadow: inset 4px 0 0 #d99a00; font-weight: 800; }
.doc.zoom { animation: zoomDoc .7s cubic-bezier(.2, 1.3, .4, 1); transform-origin: 50% 40%; }
@keyframes zoomDoc { from { transform: scale(.82); opacity: .2; } }
.doc.zoom p.hl { animation: hlIn 1s ease .5s both; }
@keyframes hlIn { from { background: rgba(255, 205, 70, 0); box-shadow: inset 0 0 0 #d99a00; } 50% { background: rgba(255, 205, 70, .7); } }
.why.soft { border-left-color: var(--gold); background: rgba(232, 196, 106, .08); } .why.soft b { color: var(--gold); }
.rx-h { margin: 12px 0 6px; font-size: .8em; color: var(--muted); }
.newl b { display: block; color: var(--gold); font-size: .82em; }
.prof { display: flex; gap: 12px; align-items: flex-start; } .prof .ic.big { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #10143a; } .prof .ic svg { width: 100%; height: 100%; display: block; }
.prof p { margin: 0 0 4px; font-size: .9em; } .prof p b { display: block; font-size: .78em; color: var(--gold); } .prof .role { color: var(--muted); }
.known { margin: 0; padding-left: 1.2em; font-size: .88em; }
.mini { display: grid; gap: 6px; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); } .mini p { margin: 0; } .mini .btn { justify-self: start; min-height: 44px; }
.chipl { display: flex; flex-wrap: wrap; gap: 6px; } .chipl .btn { min-height: 44px; font-size: .86em; }
.hint-t { font-size: 1.02em; }
/* 間（ため） */
.suspense { position: fixed; inset: 0; z-index: 57; display: grid; place-items: center; padding: 24px; background: rgba(2, 3, 10, .55); pointer-events: none; }
.suspense p { margin: 0; max-width: 520px; padding: 14px 18px; border-radius: 14px; background: rgba(8, 10, 24, .92); border: 1.5px solid var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.05em; text-align: center; animation: sus .6s ease-out; }
@keyframes sus { from { opacity: 0; letter-spacing: .3em; } }
/* チュートリアル（操作をじゃましない） */
.coach { top: auto; bottom: 138px; }
.coach.top { top: 8px; bottom: auto; }
.co-btns { display: flex; gap: 8px; margin-top: 10px; } .co-btns .btn { flex: 1; min-height: 44px; }
.tut-hl { outline: 3px solid var(--gold) !important; outline-offset: 3px; animation: glowp 1.4s ease-in-out infinite; z-index: 5; }
@keyframes glowp { 50% { box-shadow: 0 0 0 6px rgba(232, 196, 106, .45); } }
.miss-box { margin: 12px 0; padding: 12px; border-radius: 12px; border: 1.5px solid var(--gold); background: rgba(232, 196, 106, .06); } .miss-box ul { margin: 0; padding-left: 1.2em; }
.meters b em { display: block; font-style: normal; font-size: .78em; } .meters b em.up { color: var(--green); } .meters b em.dn { color: var(--red); }
.meters li { grid-template-columns: 7.5em 1fr 3em; }

/* PC：左に舞台、右に机 */
@media (min-width: 900px) {
  .inv-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; padding: 14px 18px 130px; align-items: start; }
  .howto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { font-size: 12px; }
  .inv-body .stage { position: sticky; top: calc(var(--hudh, 110px) + 10px); height: min(66vh, 560px); border-radius: 18px; border: 1.5px solid var(--line); }
  .desk { padding: 0; }

  .brief-stage { max-width: 1180px; }
  .rcard { padding: 24px; }
}
@media (max-width: 359px) { .tabs [role=tab] { font-size: .8em; } .actbar .btn { padding: 8px 10px; } .meters li { grid-template-columns: 6.5em 1fr 2.4em; } }
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
html.rm .graph .edge { stroke-dashoffset: 0; } html.rm .graph .node, html.rm .judge li { opacity: 1; }

#b-ded .sm { display: none; }
@media (max-width: 420px) {
  #b-ded .lg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } #b-ded .sm { display: inline; }
  .act-row #b-next { font-size: .84em; line-height: 1.3; }
  .hud-title { display: none; } .clock { margin-right: auto; text-align: left; }
}
@media (max-width: 360px) { .steps li { padding: 3px 1px; gap: 2px; } .steps li b { width: 14px; height: 14px; font-size: 8px; } .steps .ss { font-size: 10px; white-space: nowrap; } }
/* 時計は縮められるようにし、右のボタンが画面外に出ないようにする */
.hud-row .clock { flex: 1 1 auto; min-width: 0; }
.hud-row .clock small { white-space: normal; overflow-wrap: anywhere; }
.hud-row .ic-btn { flex: none; }
@media (max-width: 360px) { .hud .ic-btn { min-width: 44px; padding: 2px 3px; } .hud-row { gap: 4px; } }
