/* Story polish layer for 금방 올게. Keeps the existing game layout intact. */
.dog-journal-photos figure.dog-memory-locked{display:none!important}
.dog-journal-photos figure.memory-unlocked{display:block}
/* The photo timeline owns final visibility. This overrides the older 3-step memory lock safely. */
.dog-journal-photos figure[data-photo-visible="0"]{display:none!important}
.dog-journal-photos figure[data-photo-visible="1"]{display:block!important}
.dog-journal-photos figure:nth-child(4){transform:rotate(-1deg)}
.dog-journal-photos figure:nth-child(5){transform:rotate(1deg)}

/* Keep the memory journal visually stable as its content grows. The base game used years.svg
   as the entire aside background, so longer journals exposed that illustration behind sections. */
.dog-mind{background:#172433!important;background-image:none!important}
.dog-mind:before{background:linear-gradient(180deg,#1b2938,#13202e)!important}

.dog-ending-focus .dog-memory-peek,
.dog-ending-focus .dog-mind,
.dog-ending-focus .dog-wing{display:none!important}
.dog-ending-focus .dog-layout{grid-template-columns:minmax(0,1fr)!important}
.dog-ending-focus .dog-main{width:min(100%,1100px);margin-inline:auto}
.dog-ending-focus .dog-copy{max-width:900px;margin-inline:auto}
.dog-ending-focus .dog-scene{max-width:1100px;margin-inline:auto}

.dog-ending-choices-wait{opacity:0;pointer-events:none;transition:opacity .8s ease}
.dog-ending-choices-wait.dog-ending-choices-ready{opacity:1;pointer-events:auto}

.dog-ending-beat{display:block;opacity:0;transform:translateY(5px);animation:dogEndingBeat .75s ease forwards}
.dog-ending-beat:nth-child(1){animation-delay:.15s}
.dog-ending-beat:nth-child(2){animation-delay:.8s}
.dog-ending-beat:nth-child(3){animation-delay:1.55s}
.dog-ending-beat:nth-child(4){animation-delay:2.25s}
.dog-ending-beat:nth-child(5){animation-delay:2.95s}
.dog-ending-beat:nth-child(6){animation-delay:3.55s}
.dog-ending-beat:nth-child(7){animation-delay:4.15s}
@keyframes dogEndingBeat{to{opacity:1;transform:translateY(0)}}

.dog-polish-echo .dog-copy h2{letter-spacing:-.02em}
.dog-polish-echo .dog-scene-img{filter:saturate(.9) contrast(.98)}
.dog-polish-keepsake{display:block;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.14);font-style:italic;opacity:.9}

@media(max-width:850px){
 .dog-ending-focus .dog-main{width:100%}
}

@media(prefers-reduced-motion:reduce){
 .dog-ending-beat{opacity:1;transform:none;animation:none}
 .dog-ending-choices-wait{transition:none}
}