/* The notice is a light surface with dark ink, regardless of older theme rules. */
#toast.toast{background:#f7f0e8;color:#231d29;border:1px solid #fff9ee;box-shadow:0 12px 34px #080611aa;font-weight:700;font-size:1rem;line-height:1.5;text-align:center}

.memory-conversations{display:grid;gap:8px;margin:0 0 22px}.memory-conversations h3{font-size:1rem;color:#f6e9de}
.memory-replay-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:12px;border:1px solid #78667a;border-radius:12px;background:#2c2633;color:#fff6f3;text-align:left}
.memory-replay-row span{font-size:.8rem;color:#e0d0df}.memory-replay-row strong{font-size:.95rem;font-weight:600;min-width:0}
.memory-replay-button{width:100%;margin-top:13px;min-height:43px;color:#fff6ef;background:#403248;border-color:#9e829c}
.story-dialog-memory>strong{display:block;font-size:1rem;color:#fff5ed;margin:3px 0}

/* The empty doorway is its own beat. Then Onuma enters after a visible pause. */
#narrative-stage .story-layout .cinema-image.onuma-door-empty img{object-fit:cover;object-position:center top}
#narrative-stage .story-layout .cinema-image.onuma-entrance img.onuma-entrance-person{animation:onuma-emerge 1s 1.25s both cubic-bezier(.17,.72,.28,1)!important}
@keyframes onuma-emerge{from{opacity:0;transform:translateY(32%)}to{opacity:1;transform:translateY(0)}}
#narrative-stage .story-layout.motion-paused .cinema-image.onuma-entrance img.onuma-entrance-person{animation:none!important;opacity:1}
@media(prefers-reduced-motion:reduce){#narrative-stage .story-layout .cinema-image.onuma-entrance img.onuma-entrance-person{animation:none!important;opacity:1}}

.rest-goal-gauges{display:grid;gap:17px;margin:20px 0 23px}
.rest-gauge-heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:.95rem;color:#f9edf4}
.rest-gauge-heading span{font-variant-numeric:tabular-nums;color:#d9cdda}
.rest-gauge-heading b{color:#c5f3d6;font-size:1.13rem}
.rest-gauge-track{position:relative;width:100%;height:16px;border-radius:99px;background:#171923;overflow:hidden;border:1px solid #736c78}
.rest-gauge-track i{position:absolute;top:0;bottom:0;border-radius:99px}
.rest-gauge-current{left:0;background:#7d8698}
.rest-gauge-gain{background:linear-gradient(90deg,#84d1b0,#c9f1d9);transform-origin:left center;animation:rest-recover-fill .75s cubic-bezier(.16,.82,.23,1) both}
@keyframes rest-recover-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.rest-gauge-gain{animation:none}}
