.rpg-window{margin-bottom:20px}.rpg-content{background:#000;padding:0}.rpg-container{color:#f1e6cf;user-select:none;width:100%;height:min(78vh,760px);min-height:460px;font-family:Georgia,Times New Roman,serif;position:relative;overflow:hidden}.rpg-container:fullscreen{height:100vh}.rpg-canvas{width:100%;height:100%;display:block}.rpg-journal{text-align:right;text-shadow:0 1px 3px #000;pointer-events:none;background:#00000073;border:1px solid #0000;max-width:320px;padding:4px 8px;position:absolute;top:12px;right:14px;transform:translateZ(0)}.rpg-journal-title{color:#ffd36b;font-size:17px;font-weight:700}.rpg-journal-objective{margin-top:4px;font-size:14px}.rpg-hp{pointer-events:none;background:#0000008c;border:1px solid #6b5b3e;width:180px;height:10px;position:absolute;top:14px;left:14px}.rpg-hp-fill{background:linear-gradient(#c43a2f,#7d1e17);height:100%;transition:width .2s}.rpg-compass{text-shadow:0 1px 3px #000;pointer-events:none;flex-direction:column;align-items:center;display:flex;position:absolute;top:10px;left:50%;transform:translate(-50%)}.rpg-compass-arrow{color:#ffd36b;font-size:22px;display:inline-block}.rpg-compass-distance{font-size:12px}.rpg-hint,.rpg-prompt,.rpg-toast{pointer-events:none;white-space:nowrap;text-overflow:ellipsis;background:#0009;border:1px solid #6b5b3e;max-width:calc(100% - 32px);padding:6px 14px;font-size:14px;position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.rpg-hint{opacity:.8;bottom:14px}.rpg-prompt{bottom:56px}.rpg-toast{color:#ffd36b;top:70px}.rpg-container kbd{text-align:center;background:#ffffff14;border:1px solid #b9a77f;border-radius:3px;min-width:1.6em;margin-right:2px;padding:1px 5px;font-family:inherit;font-size:12px;display:inline-block}.rpg-dialogue{background:#0c0a08db;border:1px solid #6b5b3e;width:min(720px,100% - 32px);padding:14px 18px;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.rpg-dialogue-speaker{color:#ffd36b;margin-bottom:6px;font-weight:700}.rpg-dialogue-text{margin:0 0 12px;line-height:1.45}.rpg-dialogue-choices{margin:0;padding:0;list-style:none}.rpg-dialogue-choices button{color:#e6dcc6;width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:4px 6px;display:block}.rpg-dialogue-choices button:hover,.rpg-dialogue-choices button:focus-visible{color:#fff;background:#ffd36b26;outline:none}.rpg-choice-n{color:#ffd36b}.rpg-overlay{text-align:center;background:#08080ab8;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;display:flex;position:absolute;inset:0}.rpg-overlay h2{color:#ffd36b;letter-spacing:.04em;margin:0;font-size:34px}.rpg-overlay p{max-width:520px;margin:0;line-height:1.45}.rpg-overlay a{color:#ffd36b}.rpg-world{background:#00000040;border:1px solid #ffd36b73;border-radius:4px;max-width:520px;padding:8px 12px;font-size:14px}.rpg-world p{margin:4px 0 0}.rpg-world-you{opacity:.85;font-style:italic}.rpg-genesis{z-index:6}.rpg-genesis-seeds{opacity:.85;font-style:italic}.rpg-controls{margin:6px 0;padding:0;font-size:14px;line-height:1.9;list-style:none}.rpg-source{opacity:.85;font-size:13px}.rpg-start{color:#f1e6cf;font:inherit;cursor:pointer;background:#3a2c18;border:1px solid #b9a77f;margin-top:8px;padding:8px 28px;font-size:17px}.rpg-start:disabled{opacity:.6;cursor:wait}.rpg-fullscreen{color:#f1e6cf;cursor:pointer;background:#00000080;border:1px solid #6b5b3e;padding:2px 8px;position:absolute;bottom:10px;right:10px}.rpg-lang{align-items:center;gap:8px;margin:4px 0;display:flex}.rpg-lang button{color:#e6dcc6;font:inherit;cursor:pointer;background:#0006;border:1px solid #6b5b3e;padding:4px 14px}.rpg-lang button.rpg-lang-on{color:#ffd36b;background:#3a2c18;border-color:#ffd36b}ul.rpg-source{margin:4px 0;padding:0;line-height:1.6;list-style:none}.rpg-voice{cursor:pointer;background:#00000080;border:1px solid #6b5b3e;padding:2px 8px;position:absolute;bottom:10px;right:52px}.rpg-toast{white-space:normal;text-align:center}.rpg-journal-stream{opacity:.7;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font:11px/1.4 ui-monospace,Menlo,Consolas,monospace;overflow:hidden}.rpg-notice{text-align:center;pointer-events:none;background:#000000c7;border:2px solid #ffd36b;width:max-content;max-width:min(460px,100% - 32px);padding:10px 18px;animation:6s forwards rpg-notice;position:absolute;top:32%;left:50%;transform:translate(-50%)}.rpg-notice-title{letter-spacing:.12em;text-transform:uppercase;color:#ffd36b;font-size:12px}.rpg-notice-text{margin-top:4px;font-size:16px;font-weight:700}.rpg-stalled{text-align:center;z-index:20;background:#000000d9;border:2px solid #ffd36b;width:min(420px,100% - 32px);padding:12px 16px;position:absolute;top:30%;left:50%;transform:translate(-50%)}.rpg-stalled-why{opacity:.8;overflow-wrap:anywhere;margin:6px 0 10px;font-size:13px}.rpg-stalled-actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.rpg-stalled-actions button{min-height:44px;margin:0}.rpg-stalled-actions button:not(.rpg-start){color:#f1e6cf;font:inherit;cursor:pointer;background:#00000080;border:1px solid #6b5b3e;padding:6px 12px;font-size:15px}.rpg-journal:empty{display:none}.rpg-notice-detail{margin-top:4px;font-size:14px}@keyframes rpg-notice{0%{opacity:0;transform:translate(-50%,-8px)}6%{opacity:1;transform:translate(-50%)}88%{opacity:1}to{opacity:0}}.rpg-journal-fresh{animation:1s 3 rpg-journal-fresh}@keyframes rpg-journal-fresh{50%{background-color:#3c2d0abf;border-color:#ffd36b}}@media (prefers-reduced-motion:reduce){.rpg-notice,.rpg-journal-fresh{animation:none}}.rpg-journal-place{opacity:.85;margin-top:2px;font-size:13px;font-style:italic}.rpg-journal-step{opacity:.75;margin-top:.2rem;font-size:.78rem}.rpg-today{opacity:.85;font-size:.85rem}.rpg-ending-play{font-weight:700}.rpg-chronicle{font-size:.9rem}.rpg-chronicle button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:4px;margin-left:.4rem;padding:.15rem .5rem;font-size:.8rem}.rpg-ending{justify-content:safe center;overflow-y:auto}.rpg-ending-title{font-weight:600}.rpg-ending blockquote{max-width:34rem;margin:.5rem auto;font-style:italic}.rpg-ending blockquote footer{opacity:.7;margin-top:.3rem;font-style:normal}.rpg-ending h3{color:#ffd36b;margin:.8rem 0 .3rem;font-size:18px}.rpg-ending-steps{text-align:left;max-width:34rem;margin:0 auto;padding-left:1.2rem;font-size:.9rem;list-style:decimal}.rpg-ending-steps li{margin-bottom:.3rem}.rpg-ending-note{opacity:.8;font-size:.85rem}.rpg-dialogue-choices button.rpg-choice-plot{color:#ffb45e;font-weight:700}.rpg-dialogue-choices button.rpg-choice-asked{color:#8f8674}.rpg-dialogue-choices button.rpg-choice-muted{opacity:.35}.rpg-dialogue-choices button.rpg-choice-saying{color:#ffd36b;background:#ffd36b24;border-left:3px solid #ffd36b}.rpg-dialogue-choices button:disabled{cursor:default}.rpg-dialogue-held .rpg-dialogue-text{opacity:.55}.rpg-dev{color:#d8d2c2;z-index:30;user-select:text;background:#080806e6;border-bottom:1px solid #6b5b3e;flex-direction:column;max-height:55%;font:12px/1.4 ui-monospace,Menlo,Consolas,monospace;display:flex;position:absolute;top:0;left:0;right:0}.rpg-dev-bar{border-bottom:1px solid #3a3326;align-items:center;gap:12px;padding:4px 8px;display:flex}.rpg-dev-bar button{color:inherit;cursor:pointer;background:0 0;border:1px solid #6b5b3e}.rpg-dev-close{margin-left:auto}.rpg-dev-tabs{gap:4px;display:flex}.rpg-dev-tabs button[aria-selected=true]{color:#fff6e0;background:#6b5b3e}.rpg-dev-lines{font-family:Georgia,Times New Roman,serif;font-size:13px}.rpg-dev-beat{color:#9fd38a;border-top:1px solid #6b5b3e;margin:8px 0 4px;padding-top:4px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}.rpg-dev-beat span{color:#8f8674;display:block}.rpg-dev-line{overflow-wrap:anywhere;padding:2px 0}.rpg-dev-line-ask,.rpg-dev-line-decision{color:#ffd36b}.rpg-dev-line-decision b{text-decoration:underline}.rpg-dev-line-clue{color:#a9b8c9;font-style:italic}.rpg-dev-list{flex:1;padding:4px 8px;overflow-y:auto}.rpg-dev-perf dl{grid-template-columns:auto 1fr;gap:2px 12px;margin:0 0 8px;display:grid}.rpg-dev-perf dt{color:#b9a98a}.rpg-dev-perf dd{color:#9fd38a;font-variant-numeric:tabular-nums;margin:0}.rpg-dev-perf label{padding:4px 0;display:block}.rpg-fps{top:calc(104px + var(--safe-top,0px));left:calc(10px + var(--safe-left,0px));color:#9fd38a;font-variant-numeric:tabular-nums;pointer-events:none;z-index:5;background:#0000008c;padding:2px 6px;font:11px/1.4 ui-monospace,monospace;position:absolute}.rpg-dev-entry{border-bottom:1px dashed #2c271e;padding:4px 0}.rpg-dev-head{color:#9fd38a;overflow-wrap:anywhere}.rpg-dev-error .rpg-dev-head,.rpg-dev-error{color:#ff8a7a}.rpg-dev-waiting .rpg-dev-head,.rpg-dev-streaming .rpg-dev-head{color:#ffd36b}.rpg-dev pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:2px 0 0}.rpg-dev-thoughts{color:#8c95a8;font-style:italic}.rpg-dev-text{color:#e8e2d2}.rpg-dev-totals{color:#ffd36b;overflow-wrap:anywhere;border-top:1px solid #3a3326;padding:4px 8px}.rpg-dev-empty{color:#8f8674}.rpg-devtoggle{color:#f1e6cf;cursor:pointer;z-index:31;background:#00000080;border:1px solid #6b5b3e;padding:2px 8px;font-family:ui-monospace,Menlo,Consolas,monospace;position:absolute;bottom:10px;right:94px}.rpg-dev-hint{opacity:.7;font-size:.85em}.rpg-model select{color:#e6dcc6;max-width:100%;font:inherit;background:#1c160d;border:1px solid #6b5b3e;padding:3px 6px}.rpg-summary{text-align:left;grid-template-columns:auto auto;gap:2px 14px;margin:4px 0;display:grid}.rpg-summary dt{opacity:.75}.rpg-summary dd{margin:0}.rpg-dev pre{box-shadow:none;background:0 0;border:0;padding:0}.rpg-dialogue-choices button.rpg-choice-plot:before{content:"➤ "}.rpg-dialogue-choices button.rpg-choice-asked{font-style:italic}.rpg-dialogue-choices button.rpg-choice-asked:after{content:" ✓";font-style:normal}.rpg-hp{border-color:#b9a77f}.rpg-touch .rpg-canvas{touch-action:none}.rpg-container.rpg-touch:not(.rpg-immersive){height:max(320px,100vh - 150px);height:max(320px, calc(100dvh - 150px - var(--safe-top,0px) - var(--safe-bottom,0px)));min-height:0}.rpg-container.rpg-immersive{z-index:1000;width:100vw;height:100dvh;min-height:0;position:fixed;inset:0}.rpg-touch .rpg-overlay{-webkit-overflow-scrolling:touch;justify-content:safe center;overflow-y:auto}.rpg-stick{left:calc(18px + var(--safe-left,0px));bottom:calc(18px + var(--safe-bottom,0px));touch-action:none;z-index:5;background:#0000004d;border:2px solid #ffffff8c;border-radius:50%;width:120px;height:120px;position:absolute}.rpg-stick-knob{pointer-events:none;background:#ffffffd9;border:2px solid #000;border-radius:50%;width:52px;height:52px;margin:-26px 0 0 -26px;position:absolute;top:50%;left:50%}.rpg-actions{right:calc(18px + var(--safe-right,0px));bottom:calc(18px + var(--safe-bottom,0px));z-index:5;flex-direction:column;align-items:flex-end;gap:12px;display:flex;position:absolute}.rpg-act{color:#fff;touch-action:none;-webkit-tap-highlight-color:transparent;background:#0000008c;border:2px solid #ffffffb3;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:76px;height:76px;font:12px/1.1 Georgia,serif;display:flex}.rpg-act span{margin-bottom:2px;font-size:26px;line-height:1}.rpg-act:active{background:#ffffff59}.rpg-act-use{color:#000;background:#ffffffe0;border-width:3px;width:88px;height:88px;font-weight:700}.rpg-leave{top:calc(8px + var(--safe-top,0px));left:calc(8px + var(--safe-left,0px));color:#f1e6cf;z-index:6;background:#00000080;border:1px solid #6b5b3e;width:36px;height:32px;padding:0;font-size:16px;line-height:1;position:absolute}.rpg-immersive .rpg-hp{top:calc(20px + var(--safe-top,0px));left:calc(54px + var(--safe-left,0px))}.rpg-immersive .rpg-journal{top:calc(8px + var(--safe-top,0px));right:calc(10px + var(--safe-right,0px))}.rpg-touch .rpg-voice,.rpg-touch .rpg-devtoggle{top:calc(44px + var(--safe-top,0px));min-width:36px;height:32px;padding:0 8px;line-height:1;bottom:auto}.rpg-touch .rpg-voice{left:calc(8px + var(--safe-left,0px));right:auto}.rpg-touch .rpg-devtoggle{left:calc(56px + var(--safe-left,0px));right:auto}.rpg-touch .rpg-dialogue-choices button{min-height:44px;padding:9px 8px}@media (width<=480px),(height<=480px){.rpg-container{min-height:420px}.rpg-overlay h2{font-size:26px}.rpg-overlay{font-size:15px}.rpg-controls{font-size:13px;line-height:1.5}.rpg-hp{width:110px}.rpg-journal{max-width:calc(100% - 176px - var(--safe-left,0px) - var(--safe-right,0px))}.rpg-journal-title{font-size:15px}.rpg-journal-objective{font-size:13px}.rpg-compass{top:auto;bottom:calc(150px + var(--safe-bottom,0px))}.rpg-dialogue{width:auto;max-height:62%;padding:10px 12px calc(10px + var(--safe-bottom,0px));border-width:1px 0 0;font-size:15px;bottom:0;left:0;right:0;overflow-y:auto;transform:none}.rpg-dialogue-text{margin-bottom:8px}.rpg-toast{top:auto;bottom:calc(160px + var(--safe-bottom,0px));font-size:13px}}@media (height<=480px){.rpg-stick{width:104px;height:104px}.rpg-act{width:64px;height:64px}.rpg-act-use{width:76px;height:76px}.rpg-compass{top:8px;bottom:auto}.rpg-dialogue{max-height:78%}.rpg-journal-step{display:none}}.rpg-exotic{flex-direction:column;align-items:center;gap:4px;width:min(100%,360px);margin:6px auto 0;font-size:.9em;display:flex}.rpg-exotic-row{align-items:center;gap:8px;width:100%;display:flex}.rpg-exotic-row input{accent-color:#c9a45c;flex:1;min-width:0;min-height:32px}.rpg-wish{text-align:left;width:min(100%,360px);margin:8px auto 0;font-size:.9em}.rpg-wish summary{cursor:pointer;text-align:center;overflow-wrap:anywhere;padding:6px 0}.rpg-wish-row{gap:6px;margin-top:6px;display:flex}.rpg-wish select,.rpg-wish input,.rpg-wish textarea{color:#f1e6cf;min-width:0;min-height:36px;font:inherit;background:#1f170d;border:1px solid #b9a77f;flex:1;padding:4px 8px;font-size:16px}.rpg-wish textarea{resize:vertical;box-sizing:border-box;width:100%;margin-top:6px;display:block}.rpg-wish button{color:#f1e6cf;min-height:36px;font:inherit;cursor:pointer;background:#3a2c18;border:1px solid #b9a77f;padding:4px 12px}.rpg-wish button:disabled{opacity:.5}.rpg-wish-words{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.rpg-wish-words button{border-radius:16px;min-height:32px;padding:2px 10px}.rpg-wish-foot{opacity:.85;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;font-size:.9em;display:flex}.rpg-library{text-align:left;width:min(100%,560px);margin:0 auto}.rpg-library-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.rpg-library-head button,.rpg-library-actions button:not(.rpg-start){color:#f1e6cf;min-height:36px;font:inherit;cursor:pointer;background:#3a2c18;border:1px solid #b9a77f;padding:4px 12px}.rpg-library ul{margin:0;padding:0;list-style:none}.rpg-library>ul>li{background:#140e068c;border:1px solid #b9a77f80;margin:10px 0;padding:10px 12px}.rpg-library-current{border-color:#c9a45c!important}.rpg-library-name{overflow-wrap:anywhere;font-size:1.1em}.rpg-library-lang,.rpg-library-tag,.rpg-library-meta,.rpg-library-note{opacity:.8;font-size:.85em}.rpg-library-pitch{margin:4px 0}.rpg-library details ol{margin:4px 0;padding-left:20px}.rpg-library-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rpg-library-actions .rpg-start{overflow-wrap:anywhere;margin-top:0;padding:6px 14px;font-size:15px}.rpg-library-actions button:disabled{opacity:.5}.rpg-menu-screen{-webkit-overflow-scrolling:touch;justify-content:safe center;gap:14px;overflow-y:auto}.rpg-menu-title{text-transform:uppercase;text-shadow:0 2px #000,0 0 18px #ffd36b59;letter-spacing:.12em!important;font-size:clamp(30px,7vw,52px)!important}.rpg-menu{flex-direction:column;gap:8px;width:min(100%,320px);display:flex}.rpg-menu-item{color:#f1e6cf;min-height:44px;font:inherit;letter-spacing:.04em;cursor:pointer;background:#140e06b3;border:1px solid #b9a77f8c;flex-direction:column;align-items:center;gap:2px;padding:6px 16px;font-size:18px;display:flex}.rpg-menu-item small{text-overflow:ellipsis;white-space:nowrap;letter-spacing:0;opacity:.75;max-width:100%;font-size:13px;overflow:hidden}.rpg-menu-item:hover:not(:disabled),.rpg-menu-item:focus-visible{color:#ffd36b;border-color:#ffd36b;outline:none}.rpg-menu-primary{background:#3a2c18;border-color:#c9a45c}.rpg-menu-item:disabled{opacity:.6;cursor:default}.rpg-world{box-sizing:border-box;width:min(100%,520px)}.rpg-world summary{cursor:pointer;overflow-wrap:anywhere}.rpg-panel{flex-direction:column;align-items:center;gap:10px;width:min(100%,420px);display:flex}.rpg-panel h3{color:#ffd36b;letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:20px}.rpg-panel .rpg-exotic,.rpg-panel .rpg-wish{width:100%}.rpg-panel-note{opacity:.8;font-size:.85em}.rpg-panel-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.rpg-panel-actions .rpg-start{margin-top:0}.rpg-menu-back{color:#f1e6cf;min-height:40px;font:inherit;cursor:pointer;background:0 0;border:1px solid #b9a77f8c;padding:6px 16px}.rpg-wish-open summary{pointer-events:none;list-style:none}.rpg-wish-open summary::-webkit-details-marker{display:none}
