.memory-walk { position:absolute;inset:0;z-index:150;pointer-events:none;display:flex;flex-direction:column;align-items:stretch;color:#fff7df;padding:8px;font:14px/1.6 Meiryo,sans-serif; }
.memory-walk header,.memory-walk nav,.memory-walk-controls {display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;pointer-events:auto;}
.memory-walk header {background:#091b2be8;justify-content:space-between;padding:6px 10px;}
.memory-walk h1 {font-size:calc(18px * var(--ui-scale, 1));margin:0;}
.memory-walk button {min-height:44px;padding:8px 12px;border:1px solid #f3cd78;border-radius:5px;color:#fff7df;background:#153d4ef2;font:inherit;touch-action:none;cursor:pointer;}
.memory-walk button:disabled {opacity:.55;cursor:default;}
.memory-walk button:focus-visible {outline:3px solid #fff4b1;outline-offset:2px;}
.memory-walk nav {margin-top:6px;}
.memory-walk-message {pointer-events:auto;margin:auto auto 0;max-width:580px;max-height:52%;overflow:auto;overscroll-behavior:contain;background:#091b2bf5;padding:12px;border:1px solid #f3cd78;border-radius:6px;}
.memory-walk-message:empty {display:none;}
.memory-walk-message img {display:block;max-width:100%;max-height:220px;object-fit:contain;margin:auto;image-rendering:pixelated;}
.memory-walk-message h2 {margin:0;font-size:calc(18px * var(--ui-scale, 1));}
.memory-walk-message p {margin:8px 0;}
.memory-walk-message .journal-dialogue-list {list-style:none;padding:0;margin:0;}
.memory-walk-message button {margin:4px;}
.memory-walk [role=status] {background:#091b2bec;text-align:center;margin:auto 0 4px;padding:4px;}
.memory-walk-message:not(:empty)+[role=status] {margin-top:4px;}
@media(max-height:480px){.memory-walk{font-size:calc(12px * var(--ui-scale, 1))}.memory-walk h1{font-size:calc(15px * var(--ui-scale, 1))}.memory-walk-message{max-height:40%;}.memory-walk nav button{min-height:36px;padding:4px 8px;}}
