/* One illustrated surface; invisible HTML buttons provide real keyboard/touch controls. */
.rpg-decision-page{width:100%;max-width:1200px;margin:1rem auto;color:#253a46;scroll-margin-top:90px}
.rpg-picture{position:relative;width:100%;line-height:0;border-radius:20px;overflow:hidden;box-shadow:0 12px 32px #10263326}
.rpg-picture picture,.rpg-picture img{display:block;width:100%;height:auto}
.rpg-picture-target{position:absolute;left:var(--d0);top:var(--d1);width:var(--d2);height:var(--d3);padding:0;margin:0;border:3px solid transparent;border-radius:15px;background:transparent;cursor:pointer;touch-action:manipulation;transition:background .12s,border-color .12s}
.rpg-picture-target:hover:not(:disabled){background:#24505d12;border-color:#517f7c}
.rpg-picture-target:focus-visible{outline:4px solid #234c64;outline-offset:-5px;border-color:#fff4d4;background:#24485812}
.rpg-picture-target:disabled{cursor:wait}
.rpg-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.rpg-life-notice{padding:.65rem 1rem;background:#f8e7dd;border:1px solid #c99e88;border-radius:12px;font-weight:700;text-align:center;margin:0 0 .5rem;line-height:1.5}
.rpg-runtime-status{font-size:.95rem;line-height:1.6;margin:.4rem .8rem;min-height:0}
.rpg-runtime-status:empty{display:none}
.level-failure-overlay:has(.rpg-decision-page){padding:18px;overflow:auto;align-items:flex-start}
.level-failure-overlay .rpg-decision-page{max-width:min(1200px,96vw);margin:auto}
@media(max-width:680px){.rpg-picture-target{left:var(--m0);top:var(--m1);width:var(--m2);height:var(--m3);border-radius:10px}.rpg-decision-page{margin:.65rem auto}.rpg-picture{border-radius:13px}.level-failure-overlay:has(.rpg-decision-page){padding:7px}.rpg-life-notice{font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.rpg-picture-target{transition:none}}

.rpg-continue-clock{margin:0 0 .5rem;padding:.5rem .8rem;background:#fff8e4;color:#39474c;border-radius:8px;text-align:center;font-size:.9rem;line-height:1.5}

/* Copernicus: dialogue stays readable instead of shrinking inside an SVG. */
.rpg-readable{box-sizing:border-box;max-width:850px;background:#fff7e4;border:1px solid #ddc69b;border-radius:16px;padding:20px;color:#253a46;font-size:1rem;line-height:1.65}
.rpg-readable h2{font-size:clamp(1.3rem,3vw,1.8rem);line-height:1.3;margin:0 0 1rem;overflow-wrap:anywhere}
.rpg-readable-dialogue p{margin:.65rem 0;overflow-wrap:anywhere}
.rpg-readable-scene{display:block;width:100%;height:auto;border-radius:12px;margin:1rem 0}
.rpg-readable-lesson{background:#e9eeea;padding:12px;border-radius:10px}
.rpg-readable-prompt{font-weight:700;margin:1rem 0 .5rem}
.rpg-readable-choices{display:grid;gap:12px}
.rpg-readable-choice,.rpg-readable-continue{box-sizing:border-box;min-height:64px;width:100%;border:2px solid #bfa57e;border-radius:12px;padding:10px 14px;font:inherit;color:inherit;background:#fffdf7;cursor:pointer;touch-action:manipulation}
.rpg-readable-choice{display:flex;gap:16px;align-items:center;text-align:left}
.rpg-readable-choice img{width:80px;height:80px;object-fit:contain;flex:none;border-radius:8px}
.rpg-readable-choice span{min-width:0;overflow-wrap:anywhere}
.rpg-readable-choice:hover:not(:disabled){background:#edf0e8}
.rpg-readable-continue{background:#2f6067;border-color:#214a50;color:#fffaf0;font-weight:700}
.rpg-readable-choice:focus-visible,.rpg-readable-continue:focus-visible{outline:3px solid #234c64;outline-offset:3px}
.rpg-readable-choice:disabled,.rpg-readable-continue:disabled{cursor:wait;opacity:.7}
.rpg-readable-warning{font-size:.95rem;margin:.8rem 0 0}
@media(max-width:480px){.rpg-readable{padding:12px}.rpg-readable-choice{padding:10px;gap:10px}.rpg-readable-choice img{width:64px;height:64px}.rpg-readable-choices{gap:10px}}
