/* 名言クエスト（rpg）の見た目。黒・金・明朝。すべて #gm（.gm-stage[data-game="rpg"]）の中 */
.gm-stage[data-game="rpg"] { aspect-ratio: 4 / 3; max-height: 82vh; min-height: 500px; background: #050406; }
.gm-stage[data-game="rpg"]:fullscreen { aspect-ratio: auto; max-height: none; min-height: 0; }
@media (max-width: 640px) {
  .gm-stage[data-game="rpg"] { aspect-ratio: auto; height: min(calc(100svh - 56px), 880px); min-height: 560px; max-height: none; }
}
.rq { position: absolute; inset: 0; overflow: hidden; color: #f3ede2; font-family: 'Shippori Mincho B1', var(--jp, serif), serif; line-height: 1.6; -webkit-tap-highlight-color: transparent; --gold: #c9a24a; --gold2: #e1c47e; --paper: #f3ede2; }
.rq *, .rq *::before, .rq *::after { box-sizing: border-box; }
.rq-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rq button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rq button:disabled { cursor: default; }
.rq button:focus-visible, .rq a:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.rq .en { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; }

/* 金の縁の黒い窓 */
.rq-win { background: linear-gradient(180deg, rgba(18, 16, 22, 0.95), rgba(8, 7, 10, 0.97)); border: 1px solid rgba(201, 162, 74, 0.85); border-radius: 8px; box-shadow: inset 0 0 0 3px rgba(8, 7, 10, 0.95), inset 0 0 0 4px rgba(201, 162, 74, 0.26), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }

/* ── 探索の HUD */
.rq-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: flex-start; gap: 14px; padding: 10px 14px 18px; background: linear-gradient(180deg, rgba(5, 4, 6, 0.82), rgba(5, 4, 6, 0)); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.rq.m-map .rq-hud { opacity: 1; }
.rq.m-map .rq-hud .rq-mb { pointer-events: auto; }
.rq-hl { flex: 1; min-width: 0; }
.rq-fl { display: block; font-weight: 800; font-size: 16px; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 8px #000; }
.rq-fl small { margin-right: 8px; font: 700 11px 'Poppins', sans-serif; letter-spacing: 0.18em; color: var(--gold); }
.rq-lv { display: block; font: 600 11.5px 'Poppins', var(--jp), sans-serif; letter-spacing: 0.06em; color: var(--gold2); white-space: nowrap; }
.rq-hr { width: 210px; display: grid; gap: 5px; padding-top: 2px; }
.rq-bar { display: grid; grid-template-columns: 22px 1fr 58px; align-items: center; gap: 6px; font: 700 10.5px 'Poppins', sans-serif; letter-spacing: 0.04em; }
.rq-bar > span { color: var(--gold2); }
.rq-bar i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(225, 196, 126, 0.25); }
.rq-bar u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8f6c27, #e9cd88); transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rq-bar.mp u { background: linear-gradient(90deg, #34507e, #a3bfee); }
.rq-bar.low u { background: linear-gradient(90deg, #7a1d1d, #e2705f); }
.rq-bar em { font-style: normal; text-align: right; color: var(--paper); white-space: nowrap; }
.rq-mb { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid rgba(225, 196, 126, 0.55); background: rgba(10, 10, 13, 0.7); display: grid; place-items: center; }
.rq-mb span, .rq-mb span::before, .rq-mb span::after { display: block; width: 16px; height: 1.5px; background: var(--gold2); position: relative; }
.rq-mb span::before, .rq-mb span::after { content: ''; position: absolute; left: 0; }
.rq-mb span::before { top: -5px; }
.rq-mb span::after { top: 5px; }

/* 階の名前（入ったとき） */
.rq-ban { position: absolute; left: 0; right: 0; top: 28%; z-index: 7; text-align: center; pointer-events: none; opacity: 0; }
.rq-ban.on { animation: rq-ban 3.4s ease forwards; }
.rq-ban small { display: block; margin-bottom: 10px; font: 600 11px 'Poppins', sans-serif; letter-spacing: 0.3em; color: var(--gold2); text-shadow: 0 2px 8px #000; }
.rq-ban b { display: inline-block; padding: 8px 40px; font-weight: 800; font-size: clamp(22px, 4vw, 34px); letter-spacing: 0.12em; text-shadow: 0 4px 20px #000; border-top: 1px solid rgba(225, 196, 126, 0.6); border-bottom: 1px solid rgba(225, 196, 126, 0.6); background: linear-gradient(90deg, transparent, rgba(5, 4, 6, 0.75) 20%, rgba(5, 4, 6, 0.75) 80%, transparent); }
@keyframes rq-ban { 0% { opacity: 0; transform: translateY(10px); } 14%, 72% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* 探索中のお知らせ */
.rq-toast { position: absolute; left: 50%; bottom: calc(var(--padh, 0px) + 16px); z-index: 8; width: min(560px, calc(100% - 24px)); padding: 13px 18px; font-size: 15px; line-height: 1.7; text-align: center; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.rq-toast.on { opacity: 1; transform: translate(-50%, 0); }
.rq-toast b { color: var(--gold2); }

/* ── スマホの十字キーと A・B */
.rq-pad { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 176px; display: none; align-items: center; justify-content: space-between; padding: 8px 18px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #0e0d12, #08070a); border-top: 1px solid rgba(201, 162, 74, 0.4); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rq.touch.m-map .rq-pad { display: flex; }
.rq-dpad { position: relative; width: 156px; height: 156px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); touch-action: none; }
.rq-dpad span { position: relative; background: linear-gradient(180deg, #24222b, #15141a); border: 1px solid rgba(225, 196, 126, 0.35); transition: background 0.1s; }
.rq-dpad span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; border: 8px solid transparent; transform: translate(-50%, -50%); }
.rq-dpad [data-d="0"] { grid-area: 1 / 2; border-radius: 10px 10px 0 0; border-bottom: 0; }
.rq-dpad [data-d="0"]::after { border-bottom-color: var(--gold2); margin-top: -4px; }
.rq-dpad [data-d="2"] { grid-area: 3 / 2; border-radius: 0 0 10px 10px; border-top: 0; }
.rq-dpad [data-d="2"]::after { border-top-color: var(--gold2); margin-top: 4px; }
.rq-dpad [data-d="3"] { grid-area: 2 / 1; border-radius: 10px 0 0 10px; border-right: 0; }
.rq-dpad [data-d="3"]::after { border-right-color: var(--gold2); margin-left: -4px; }
.rq-dpad [data-d="1"] { grid-area: 2 / 3; border-radius: 0 10px 10px 0; border-left: 0; }
.rq-dpad [data-d="1"]::after { border-left-color: var(--gold2); margin-left: 4px; }
.rq-dpad i { grid-area: 2 / 2; background: #19181f; }
.rq-dpad span.on { background: linear-gradient(180deg, #4a3e26, #2a2318); }
.rq-ab { position: relative; width: 176px; height: 156px; }
.rq-A, .rq-B { position: absolute; width: 78px; height: 78px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 23px/1 'Playfair Display', Georgia, serif; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform 0.08s, filter 0.08s; }
.rq-A small, .rq-B small { margin-top: 4px; font: 700 10px var(--jp), sans-serif; letter-spacing: 0.06em; }
.rq-A { right: 0; bottom: 8px; border: 0; background: radial-gradient(circle at 35% 30%, #f4dc9e, #b8913c 70%, #8a6a26); color: #17130c !important; box-shadow: 0 8px 18px -8px rgba(201, 162, 74, 0.9); }
.rq-B { left: 4px; top: 4px; border: 1px solid rgba(225, 196, 126, 0.6); background: radial-gradient(circle at 35% 30%, #2a2730, #121116); color: var(--gold2) !important; }
.rq-A.on, .rq-B.on { transform: scale(0.93); filter: brightness(1.15); }

/* ── 戦闘 */
.rq-bt { position: absolute; top: 12px; left: 50%; z-index: 5; transform: translateX(-50%); display: none; width: min(320px, 80%); text-align: center; pointer-events: none; }
.rq.m-battle .rq-bt { display: block; }
.rq-bt b { display: block; font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-shadow: 0 2px 10px #000, 0 0 2px #000; }
.rq-bt b small { display: inline-block; margin-right: 8px; padding: 1px 8px; border: 1px solid #c04a40; border-radius: 3px; font: 700 10px 'Poppins', sans-serif; letter-spacing: 0.22em; color: #ff8a7a; vertical-align: 3px; }
.rq-bt i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.6); box-shadow: inset 0 0 0 1px rgba(225, 196, 126, 0.4); overflow: hidden; }
.rq-bt u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7a1d1d, #e2705f 70%, #f0b08a); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rq-bw { position: absolute; left: 50%; bottom: 12px; z-index: 6; display: none; flex-direction: column; gap: 8px; width: min(780px, calc(100% - 20px)); max-height: calc(100% - 64px); transform: translateX(-50%); }
.rq.m-battle .rq-bw { display: flex; }
.rq-bw.gm-shake { animation: rq-shake 0.4s; }
@keyframes rq-shake { 20% { transform: translateX(calc(-50% - 8px)); } 40% { transform: translateX(calc(-50% + 7px)); } 60% { transform: translateX(calc(-50% - 5px)); } 80% { transform: translateX(calc(-50% + 3px)); } }
.rq-pst { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 16px; border-radius: 999px; font-size: 12px; }
.rq-plv { font: 700 12px 'Poppins', sans-serif; color: var(--gold2); letter-spacing: 0.06em; }
.rq-pst .rq-bar { width: 158px; grid-template-columns: 20px 1fr auto; }
.rq-st2 s { margin-left: 2px; padding: 1px 8px; border-radius: 3px; border: 1px solid rgba(160, 190, 255, 0.5); color: #b8ccff; font-size: 11px; text-decoration: none; }
.rq-st2 s.ng { border-color: rgba(255, 120, 120, 0.5); color: #ff9a8a; }
.rq-bwin { padding: 14px 16px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.rq-bmsg { margin: 0; min-height: 1.6em; font-weight: 700; font-size: 15.5px; letter-spacing: 0.03em; }
.rq-bbody:not(:empty) { margin-top: 10px; }
.rq-cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rq-cmds button, .rq-list button, .rq-mlist button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 14px 10px 30px; text-align: left; border-radius: 6px; border: 1px solid rgba(225, 196, 126, 0.2); background: rgba(255, 255, 255, 0.025); transition: border-color 0.15s, background 0.15s; }
.rq-cmds b { font-size: 17px; font-weight: 800; letter-spacing: 0.1em; }
.rq-cmds small, .rq-list small, .rq-mlist small { font: 500 11.5px var(--jp), sans-serif; opacity: 0.66; }
.rq-cmds .dim { opacity: 0.55; }
.rq :where([data-nav]).is-cur, .rq :where([data-nav]:not(:disabled)):hover { border-color: var(--gold2); background: rgba(201, 162, 74, 0.13); }
.rq-cmds .is-cur::before, .rq-list .is-cur::before, .rq-mlist .is-cur::before, .rq-tbtns .is-cur::before { content: ''; position: absolute; left: 12px; top: 50%; border: 6px solid transparent; border-left: 8px solid var(--gold2); transform: translateY(-50%); }
.rq-list { display: grid; gap: 6px; }
.rq-list button { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; }
.rq-list b { font-size: 15.5px; font-weight: 800; }
.rq-list em { font: 700 12px 'Poppins', sans-serif; font-style: normal; color: var(--gold2); }
.rq-list small { grid-column: 1 / -1; }
.rq-list button:disabled { opacity: 0.4; }
.rq-list .rq-backb { display: block; padding-left: 14px; text-align: center; }

/* 問題 */
.rq-ql { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; color: var(--gold2); letter-spacing: 0.1em; }
.rq-ql em { padding: 0 8px; border: 1px solid rgba(225, 196, 126, 0.5); border-radius: 3px; font-size: 11px; font-style: normal; }
.rq-lvl { margin-left: auto; font-size: 11px; font-style: normal; letter-spacing: 0.15em; color: var(--gold); }
.rq-lvl span { opacity: 0.25; }
.rq-qj { margin: 0 0 6px; font-weight: 700; font-size: clamp(15.5px, 2.1vw, 18px); line-height: 1.7; }
.rq-qe { margin: 0 0 4px; font: italic 600 clamp(16px, 2.3vw, 20px) / 1.5 'Playfair Display', Georgia, serif; }
.rq-qs { margin: 0 0 6px; font-size: 13px; opacity: 0.72; }
.rq-blank { display: inline-block; width: 4.2em; height: 1.1em; margin: 0 2px; vertical-align: -0.15em; border-bottom: 2px solid var(--gold2); background: rgba(201, 162, 74, 0.14); }
.rq-timer { position: relative; height: 5px; margin: 16px 0 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); --crit: 30%; }
.rq-timer i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, #8f6c27, #e9cd88); transform-origin: left center; }
.rq-timer::after { content: ''; position: absolute; top: -3px; bottom: -3px; left: calc(100% - var(--crit)); width: 1px; background: rgba(255, 240, 200, 0.65); }
.rq-timer span { position: absolute; left: calc(100% - var(--crit) + 6px); top: -17px; font-size: 10.5px; letter-spacing: 0.14em; color: var(--gold2); opacity: 0; transition: opacity 0.2s; }
.rq-timer.crit span { opacity: 1; }
.rq-timer.crit i { box-shadow: 0 0 10px rgba(255, 214, 140, 0.85); }
.rq-timer.low i { background: linear-gradient(90deg, #7a1d1d, #e2705f); }
.rq-ch { display: grid; gap: 7px; }
.rq-ch.short { grid-template-columns: 1fr 1fr; }
.rq-ch button { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; text-align: left; border-radius: 6px; border: 1px solid rgba(225, 196, 126, 0.22); background: rgba(255, 255, 255, 0.03); transition: border-color 0.15s, background 0.15s, opacity 0.3s; }
.rq-ch button > i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(225, 196, 126, 0.5); font: 700 11px 'Poppins', sans-serif; font-style: normal; color: var(--gold2); }
.rq-ch .en { font-size: 15.5px; line-height: 1.45; }
.rq-ch.short .en { font-size: 17.5px; }
.rq-ch .jp { font-weight: 700; font-size: 15px; line-height: 1.4; }
.rq-ch .jp small { display: block; font: italic 600 11.5px 'Playfair Display', Georgia, serif; opacity: 0.6; }
.rq-ch button.gone { opacity: 0.1; }
.rq-ch button.ok { border-color: #e9cd88; background: rgba(201, 162, 74, 0.26); box-shadow: 0 0 18px -4px rgba(233, 205, 136, 0.8); }
.rq-ch button.ng { border-color: #c05050; background: rgba(160, 40, 40, 0.28); }
.rq-ch button:disabled:not(.ok):not(.ng):not(.gone) { opacity: 0.42; }
.rq-built { min-height: 2.3em; margin: 0 0 6px; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(225, 196, 126, 0.3); font: italic 600 18px / 1.55 'Playfair Display', Georgia, serif; }
.rq-built span { color: var(--gold2); }
.rq-built .slot { display: inline-block; width: 1.6em; border-bottom: 1px solid rgba(225, 196, 126, 0.35); }
.rq-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.rq-chips button { padding: 7px 13px; border-radius: 6px; border: 1px solid rgba(225, 196, 126, 0.3); background: rgba(255, 255, 255, 0.04); font: italic 600 16.5px 'Playfair Display', Georgia, serif; transition: opacity 0.2s; }
.rq-chips button.used { opacity: 0.14; }
.rq-miss { margin: 8px 0 0; font-size: 12px; opacity: 0.65; }

/* 答え合わせ（英文・和訳・言った人・聞く） */
.rq-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; font-weight: 800; font-size: 18px; letter-spacing: 0.08em; }
.rq-ans.ok .rq-verdict { color: var(--gold2); }
.rq-ans.ng .rq-verdict { color: #ff9a8a; }
.rq-verdict em { margin-right: 6px; padding: 0 8px; border-radius: 3px; background: var(--gold2); color: #17130c; font-size: 13px; font-style: normal; }
.rq-right { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--paper); }
.rq-aen { margin: 0 0 4px; font: italic 600 clamp(17px, 2.5vw, 22px) / 1.45 'Playfair Display', Georgia, serif; }
.rq-aen b { color: var(--gold2); border-bottom: 2px solid var(--gold2); }
.rq-aja { margin: 0 0 2px; font-size: 14.5px; opacity: 0.88; }
.rq-awho { margin: 0; font-size: 13px; color: var(--gold2); }
.rq-awho span { margin-left: 8px; font: italic 600 12.5px 'Playfair Display', Georgia, serif; opacity: 0.7; }
.rq-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.rq-acts button { min-width: 120px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(180deg, #e9cd88, #b8913c); color: #17130c; font-weight: 800; letter-spacing: 0.06em; }
.rq-acts button.ghost { background: transparent; color: var(--paper); border-color: rgba(243, 237, 226, 0.35); }
.rq .rq-acts button.is-cur, .rq .rq-acts button:hover { border-color: #fff3d0; box-shadow: 0 0 0 2px rgba(225, 196, 126, 0.45), 0 10px 20px -10px rgba(201, 162, 74, 0.9); background: linear-gradient(180deg, #f4dc9e, #c9a24a); color: #17130c; }
.rq .rq-acts button.ghost.is-cur, .rq .rq-acts button.ghost:hover { background: rgba(201, 162, 74, 0.16); color: var(--paper); }

/* 勝利・名言の書 */
.rq-res h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--gold2); }
.rq-res h4 small { margin-left: 6px; opacity: 0.7; }
.rq-gain { margin: 0 0 4px; font-size: 15px; }
.rq-gain b { font: 700 18px 'Playfair Display', Georgia, serif; color: var(--gold2); }
.rq-gain small { display: inline-block; margin-left: 10px; font-size: 12px; opacity: 0.6; white-space: nowrap; }
.rq-up { margin: 6px 0 0; padding: 8px 12px; border-left: 2px solid var(--gold2); background: linear-gradient(90deg, rgba(201, 162, 74, 0.16), transparent); font-size: 15px; }
.rq-up b { color: var(--gold2); }
.rq-up small { display: block; font-size: 12px; opacity: 0.75; }
.rq-up span { display: block; font-weight: 800; color: var(--gold2); }
.rq-res > .rq-acts { position: sticky; bottom: -14px; z-index: 2; margin: 4px -16px -14px; padding: 18px 16px 14px; background: linear-gradient(180deg, rgba(9, 8, 11, 0), rgba(9, 8, 11, 0.94) 38%); }
.rq.narrow .rq-res > .rq-acts { bottom: -11px; margin: 4px -12px -11px; padding: 16px 12px 11px; }
.rq-got, .rq-book { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; align-content: start; }
.rq-got li, .rq-book li { position: relative; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(225, 196, 126, 0.14); }
.rq-got .en, .rq-book .en { margin: 0 0 3px; font-size: 16px; line-height: 1.45; }
.rq-got .ja, .rq-book .ja { margin: 0; font-size: 13px; opacity: 0.82; }
.rq-got .who, .rq-book .who { margin: 2px 0 0; font-size: 12px; color: var(--gold2); }
.rq-got .who span, .rq-book .who span { font: italic 600 11.5px 'Playfair Display', Georgia, serif; opacity: 0.7; }
.rq-lk { display: flex; flex-wrap: wrap; gap: 8px; margin: 7px 0 0; }
.rq-lk button, .rq-lk a { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(225, 196, 126, 0.35); background: transparent; font-size: 12px; color: var(--gold2) !important; text-decoration: none; }
.rq-tag { display: inline-block; margin: 0 6px 4px 0; padding: 0 7px; border-radius: 3px; font: 700 10px 'Poppins', var(--jp), sans-serif; font-style: normal; letter-spacing: 0.1em; }
.rq-tag.ok { background: rgba(201, 162, 74, 0.25); color: var(--gold2); }
.rq-tag.ng { background: rgba(160, 60, 60, 0.32); color: #ffb0a0; }
.rq-tag.new { background: var(--gold2); color: #17130c; }

/* ── 重なる窓（メニュー・店・会話） */
.rq-ov { position: absolute; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 16px; }
.rq-ov.on { display: flex; }
.rq-ov.dim { background: rgba(4, 3, 6, 0.62); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.rq-ov.red { background: radial-gradient(circle, rgba(60, 8, 8, 0.6), rgba(6, 2, 2, 0.92)); }
.rq-pz { z-index: 25; }
.rq-panel { width: min(600px, 100%); max-height: 100%; display: flex; flex-direction: column; padding: 20px 22px; animation: rq-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes rq-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.rq-panel h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(225, 196, 126, 0.25); font-weight: 800; font-size: 21px; letter-spacing: 0.12em; }
.rq-panel h3 small { font: italic 600 12.5px 'Playfair Display', Georgia, serif; letter-spacing: 0.14em; color: var(--gold2); }
.rq-panel h3 .rq-cnt { margin-left: auto; font: 700 13px 'Poppins', var(--jp), sans-serif; letter-spacing: 0.06em; color: var(--gold2); }
.rq-dead h3 { color: #ffb0a0; }
.rq-note { margin: 0 0 10px; font-size: 14.5px; line-height: 1.85; opacity: 0.9; }
.rq-line { margin: 0 0 10px; font-size: 16.5px; font-weight: 700; line-height: 1.9; }
.rq-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.rq-quote { margin: 4px 0 6px; padding: 14px 16px; border-left: 2px solid var(--gold2); background: linear-gradient(90deg, rgba(201, 162, 74, 0.1), transparent); }
.rq-quote .en { margin: 0 0 6px; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.45; }
.rq-quote .ja { margin: 0 0 4px; font-size: 14px; opacity: 0.88; }
.rq-quote .who { margin: 0; font-size: 12.5px; color: var(--gold2); }
.rq-quote .who span { font: italic 600 12px 'Playfair Display', Georgia, serif; opacity: 0.7; }
.rq-mst { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font: 600 12.5px 'Poppins', var(--jp), sans-serif; color: rgba(243, 237, 226, 0.75); }
.rq-mst b { font-size: 14px; color: var(--paper); }
.rq-mlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rq-mlist button { font-weight: 800; font-size: 16px; letter-spacing: 0.06em; }
.rq-st { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.rq-st dt { padding-top: 2px; font-size: 13px; letter-spacing: 0.08em; color: var(--gold2); }
.rq-st dd { margin: 0; font-weight: 700; }
.rq-st dd small { margin-left: 10px; font-size: 12px; font-weight: 600; opacity: 0.65; }
.rq-st dd em { margin-left: 10px; padding: 0 8px; border-radius: 3px; background: var(--gold2); color: #17130c; font-size: 12px; font-style: normal; }
.rq-hp { margin: 10px 0 0; font-size: 12.5px; opacity: 0.6; }
.rq-shop { width: min(640px, 100%); }
.rq-shopl h4 { margin: 10px 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.2em; color: var(--gold); }
.rq-shopl h4:first-child { margin-top: 0; }
.rq-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid rgba(225, 196, 126, 0.1); }
.rq-item b { display: block; font-size: 15px; }
.rq-item small { display: block; font: 500 11.5px var(--jp), sans-serif; opacity: 0.65; }
.rq-item.eq b { color: var(--gold2); }
.rq-price { font: 700 13px 'Poppins', sans-serif; color: var(--gold2); white-space: nowrap; }
.rq-item button { min-width: 72px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(225, 196, 126, 0.5); background: transparent; font-size: 13px; font-weight: 800; }
.rq-item button:disabled { opacity: 0.35; }
.rq-bookp { width: min(720px, 100%); height: 100%; }
.rq-book { flex: 1; padding-right: 4px; }

/* タイトル */
.rq-ov.title { justify-content: flex-start; padding: 0 7%; background: linear-gradient(90deg, rgba(5, 4, 6, 0.78), rgba(5, 4, 6, 0) 62%); }
.rq-title { max-width: 470px; animation: rq-in 0.9s ease; }
.rq-tk { margin: 0 0 10px; font: 600 11.5px 'Poppins', sans-serif; letter-spacing: 0.32em; color: var(--gold); }
.rq-title h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(36px, 6.4vw, 60px); line-height: 1.15; letter-spacing: 0.08em; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8); }
.rq-title h2 small { display: block; margin-top: 8px; font: italic 600 clamp(16px, 2.2vw, 22px) 'Playfair Display', Georgia, serif; letter-spacing: 0.16em; color: var(--gold2); }
.rq-tl { margin: 0 0 26px; font-size: 15px; opacity: 0.85; }
.rq-tbtns { display: grid; gap: 10px; max-width: 300px; }
.rq-tbtns button { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 12px 18px 12px 34px; border-radius: 6px; border: 1px solid rgba(225, 196, 126, 0.3); background: rgba(8, 7, 10, 0.6); font-weight: 800; font-size: 18px; letter-spacing: 0.14em; text-align: left; }
.rq-tbtns button small { margin-top: 2px; font: 600 11.5px var(--jp), sans-serif; letter-spacing: 0.04em; opacity: 0.65; }
.rq-tbtns button:disabled { opacity: 0.4; }
.rq-keys { margin: 20px 0 0; font: 500 12px var(--jp), sans-serif; opacity: 0.55; }
.rq.portrait .rq-ov.title { justify-content: center; align-items: flex-end; padding: 0 20px 8%; text-align: center; background: linear-gradient(0deg, rgba(5, 4, 6, 0.94) 32%, rgba(5, 4, 6, 0) 62%); }
.rq.portrait .rq-title { margin: 0 auto; }
.rq.portrait .rq-tbtns { margin: 0 auto; }
.rq.portrait .rq-tbtns button { align-items: center; padding-left: 18px; }

/* 物語・エンディング */
.rq-ov.story { background: radial-gradient(circle at 50% 40%, rgba(20, 18, 26, 0.9), rgba(4, 3, 6, 0.97)); }
.rq-story { max-width: 560px; text-align: center; }
.rq-story p { margin: 0 0 22px; font-size: clamp(15px, 2.2vw, 18px); font-weight: 700; line-height: 2; opacity: 0; animation: rq-fadein 1.2s ease forwards; animation-delay: var(--d, 0s); }
.rq-story button, .rq-endb { min-width: 180px; padding: 12px 28px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(180deg, #e9cd88, #b8913c); color: #17130c !important; font-weight: 800; letter-spacing: 0.14em; opacity: 0; animation: rq-fadein 1s ease forwards; animation-delay: var(--d, 0s); }
.rq .rq-story button.is-cur, .rq .rq-story button:hover, .rq .rq-endb.is-cur, .rq .rq-endb:hover { box-shadow: 0 0 0 2px rgba(225, 196, 126, 0.45), 0 10px 20px -10px rgba(201, 162, 74, 0.9); background: linear-gradient(180deg, #f4dc9e, #c9a24a); }
@keyframes rq-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rq-ov.end { background: transparent; }
.rq-end { max-width: 620px; text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.rq-end > p { margin: 0 0 16px; font-size: clamp(15px, 2.2vw, 19px); font-weight: 700; line-height: 2; opacity: 0; animation: rq-fadein 1.6s ease forwards; animation-delay: var(--d); }
.rq-end blockquote { max-width: 540px; margin: 8px auto 18px; text-align: left; opacity: 0; animation: rq-fadein 1.6s ease forwards; animation-delay: var(--d); }
.rq-end blockquote .rq-quote { background: rgba(8, 7, 10, 0.6); }
.rq-end blockquote button { margin-top: 6px; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(225, 196, 126, 0.5); background: rgba(8, 7, 10, 0.5); font-size: 12.5px; color: var(--gold2) !important; }
.rq-ov.end2 { background: rgba(4, 3, 6, 0.45); }
.rq-rec { width: min(540px, 100%); }
.rq-fade { position: absolute; inset: 0; z-index: 30; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.42s ease; }
.rq-fade.on { opacity: 1; }

/* ── せまい画面（スマホの縦） */
.rq.narrow .rq-hud { gap: 8px; padding: 8px 10px 14px; }
.rq.narrow .rq-fl { font-size: 14px; }
.rq.narrow .rq-fl small { margin-right: 5px; }
.rq.narrow .rq-lv { font-size: 10.5px; }
.rq.narrow .rq-hr { width: 138px; }
.rq.narrow .rq-bar { grid-template-columns: 20px 1fr 44px; gap: 4px; font-size: 9.5px; }
.rq.narrow .rq-mb { width: 38px; height: 38px; }
.rq.narrow .rq-bw { bottom: 8px; width: calc(100% - 12px); max-height: calc(100% - 56px); }
.rq.narrow .rq-bwin { padding: 11px 12px; }
.rq.narrow .rq-bmsg { font-size: 14.5px; }
.rq.narrow .rq-pst { gap: 4px 8px; padding: 6px 12px; }
.rq.narrow .rq-pst .rq-bar { width: 116px; grid-template-columns: 18px 1fr auto; }
.rq.narrow .rq-cmds button { padding: 9px 10px 9px 26px; }
.rq.narrow .rq-cmds b { font-size: 16px; }
.rq.narrow .rq-ch button { min-height: 42px; padding: 7px 10px; gap: 8px; }
.rq.narrow .rq-ch .en { font-size: 14.5px; }
.rq.narrow .rq-ch.short .en { font-size: 16px; }
.rq.narrow .rq-ch .jp { font-size: 13.5px; }
.rq.narrow .rq-qe { font-size: 16.5px; }
.rq.narrow .rq-panel { padding: 16px 14px; }
.rq.narrow .rq-panel h3 { font-size: 19px; }
.rq.narrow .rq-mlist button { font-size: 15px; padding-left: 26px; }
.rq.narrow .rq-item { gap: 8px; padding: 8px 4px; }
.rq.narrow .rq-acts button { min-width: 104px; padding: 10px 16px; }
.rq.narrow .rq-ov { padding: 10px; }
.rq.narrow .rq-ban b { padding: 6px 22px; }

@media (prefers-reduced-motion: reduce) {
  .rq-ban.on { animation-duration: 2.4s; }
  .rq-story p, .rq-story button, .rq-end > p, .rq-end blockquote, .rq-endb { animation-duration: 0.01s; animation-delay: 0s !important; }
  .rq-panel, .rq-title { animation: none; }
  .rq-bar u, .rq-bt u { transition: none; }
}
