/* Full painted landscapes overlap rather than ending in a flat color. */
body[data-ar-document=games][data-library-theme=youth] #hub-world .hub-world-scenery::before{display:none!important}
.youth-journey78{display:none;position:absolute;inset:0;overflow:hidden;--journey-step78:clamp(750px,65vw,1150px);pointer-events:none}
body[data-library-theme=youth] .youth-journey78{display:block}
.journey-scene78{position:absolute;left:0;right:0;height:calc(var(--journey-step78) + 280px);background-size:cover;background-position:center;pointer-events:none}
.journey-scene78.scene-0{top:0;background-image:url('/assets/sanctuary/remaster-r96/youth-day.webp')}
.journey-scene78.scene-1{top:var(--journey-step78);background-image:url('/assets/sanctuary/remaster-r96/daybrook.webp')}
.journey-scene78.scene-2{top:calc(var(--journey-step78)*2);bottom:0;height:auto;min-height:calc(var(--journey-step78) + 280px);background-image:url('/assets/sanctuary/remaster-r96/dayorchard.webp')}
.journey-scene78:not(.scene-0){mask-image:linear-gradient(transparent,#000 280px);-webkit-mask-image:linear-gradient(transparent,#000 280px)}
#hub-world[data-youth-time=night] .scene-0{background-image:url('/assets/sanctuary/remaster-r96/youth-night.webp')}
#hub-world[data-youth-time=night] .scene-1{background-image:url('/assets/sanctuary/remaster-r96/nightbrook.webp')}
#hub-world[data-youth-time=night] .scene-2{background-image:url('/assets/sanctuary/remaster-r96/nightorchard.webp')}
#sanctuary-view .youth-music78{display:grid;place-items:center;width:44px;min-height:44px;color:#ffe3a0;order:-1}
.youth-music78 svg{width:26px;height:26px}.youth-music78[data-enabled=true] .music-slash78{display:none}
.youth-local78,.youth-room-animals78,.youth-exterior-animals78{position:absolute;inset:0;pointer-events:none;z-index:7}
.youth-clean-stars78,.youth-clean-butterfly78{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.youth-clean-stars78{clip-path:polygon(5.7% 9.5%,18% 9.5%,18% 22%,5.7% 22%)}
.youth-clean-butterfly78{clip-path:inset(36.6% 37.8% 58.2% 60.2%)}
.youth-play76 .youth-light76{display:none!important}
#sanctuary-view#sanctuary-view .wall-star78{position:absolute;pointer-events:auto;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-width:0!important;min-height:0!important;overflow:visible;cursor:pointer;z-index:8}
.wall-star78 svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(1px 2px 1px #36211499)}
.wall-star78 .star-emission78{opacity:0;transition:opacity .18s}
.wall-star78[data-on=true] .star-emission78{opacity:1;filter:drop-shadow(0 0 4px #ffd16c)}
.wall-star78 i{position:absolute;inset:-90%;border-radius:50%;background:radial-gradient(ellipse,#ffd36d55,transparent 68%);opacity:0;pointer-events:none}
.wall-star78[data-on=true] i{opacity:1}.wall-star78:focus-visible{outline:2px solid #fff0b7!important;outline-offset:5px}
#sanctuary-view#sanctuary-view :is(.woodland-animal78,.auriela-door78,.office-cat78,.hallway-girl78,.hallway-cat78){position:absolute;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;pointer-events:auto;cursor:pointer;min-width:0!important;min-height:0!important}
:is(.woodland-animal78,.auriela-door78,.office-cat78,.hallway-girl78,.hallway-cat78)>img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.woodland-animal78{transform-origin:50% 95%;filter:drop-shadow(1px 3px 2px #14251c66)}
.woodland-animal78.greet78{animation:animal-greet78 .6s ease-out}
[data-night=true] :is(.deer78,.rabbit78),[data-night=false] .raccoon78{display:none!important}
.youth-room-animals78{clip-path:inset(17% 22.5% 53% 55.7%);z-index:8}
.youth-exterior-animals78{z-index:8}
#sanctuary-view[data-scene=youth] [data-window-action=butterfly]{display:none!important}
.auriela-door78{z-index:6;transform-origin:100% 50%}.auriela-door78>img{object-fit:fill}.auriela-door78[data-state=day]{filter:brightness(1.22)}.auriela-door78[data-state=dark]{filter:brightness(.35) saturate(.8)}
.office-cat78{z-index:8}.cat-awake78{display:none}.office-cat78.awake78 .cat-asleep78{display:none}.office-cat78.awake78 .cat-awake78{display:block}
#sanctuary-view#sanctuary-view .family-in-room78{left:36.1%!important;top:38.8%!important;width:2.7%!important;height:6.3%!important;min-width:0!important;min-height:0!important;transform:translate(-50%,-50%) rotate(3deg)!important}
.family-in-room78>span{position:absolute;inset:0;filter:drop-shadow(1px 2px 1px #000b)}.family-in-room78 img{position:absolute;pointer-events:none}.family-in-room78 .portrait78{inset:12% 14%;width:72%;height:76%;object-fit:cover}.family-in-room78 .surround78{inset:0;width:100%;height:100%}
#auriela-hallway78{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;border:0;background:#100b08;overflow:hidden;z-index:2147483600}
#auriela-hallway78::backdrop{background:#000b}.hallway-camera78{position:absolute;left:50%;top:50%;width:min(100vw,177.69dvh);aspect-ratio:1672/941;transform:translate(-50%,-50%);overflow:hidden;perspective:1000px}
.hallway-art78{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:door-enter78 .8s ease-out}
.hallway-close78{position:absolute;right:16px;top:16px;width:46px;height:46px;border:1px solid #edc6b7;background:#281914de;color:#ffe5db;font-size:30px;z-index:20;border-radius:50%;cursor:pointer}
.hallway-girl78{clip-path:inset(0 0 0 24%);overflow:hidden;transition:transform .6s ease-in,opacity .5s;transform-origin:left bottom}.hallway-girl78 img{position:absolute;inset:0;object-fit:contain;object-position:left bottom}.girl-blink78{display:none}.hallway-girl78.blink78>img:first-child{display:none}.hallway-girl78.blink78>.girl-blink78{display:block}
.hallway-cat78{transition:transform .7s,opacity .6s}.retreat78{transform:translateX(70%)!important;opacity:0;pointer-events:none!important}
#sanctuary-window-plane .leaf-edge76:is(.left,.right){height:97.8%}
#sanctuary-window-plane .cottage-leaf75 .leaf-back76{clip-path:inset(1px 1px 1.1%)}
.youth-local78[hidden],.youth-exterior-animals78[hidden],.youth-music78[hidden],.auriela-door78[hidden],.office-cat78[hidden]{display:none!important}
@keyframes animal-greet78{30%{transform:rotate(-4deg) translateY(-3%)}65%{transform:rotate(3deg)}100%{transform:none}}
@keyframes door-enter78{from{opacity:.15;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.woodland-animal78.greet78,.hallway-art78{animation:none}.wall-star78 .star-emission78,.hallway-girl78,.hallway-cat78{transition:none}}
@media(max-width:600px){.hallway-camera78{width:max(100vw,135dvh)}.hallway-close78{top:12px;right:12px}#sanctuary-view .youth-music78{width:38px;min-width:38px}.journey-scene78{background-position:42% center}}

/* Replace only the small repaired lamp crop; the rest of r77's continuous foreground stays exact. */
#sanctuary-window-plane[data-casements75=active] .cottage-stationary75{mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000);mask-size:100% 100%,5.083732% 7.970244%;mask-position:0 0,20.47889% 75.057737%;mask-repeat:no-repeat;mask-composite:exclude}
#sanctuary-window-plane .cottage-lamp-repair78{position:absolute;left:19.437799%;top:69.075452%;width:5.083732%;height:7.970244%;pointer-events:none;z-index:8;object-fit:fill}
.wall-star78 svg{pointer-events:none}
/* Keep text readable against the illustrated journey in either time choice. */
body[data-library-theme=youth] #hub-world:not([data-youth-time=night]) .hub-feature-copy{background:#fff9e9!important;color:#294a39!important}
body[data-library-theme=youth] #hub-world:not([data-youth-time=night]) .hub-feature-copy :is(h3,p){color:#294a39!important}
body[data-library-theme=youth] #hub-world[data-youth-time=night] .hub-feature-copy{background:#19372f!important;color:#f9efd7!important}
body[data-library-theme=youth] #hub-world[data-youth-time=night] .hub-feature-copy :is(h3,p){color:#f9efd7!important}
.retreat78{opacity:0!important}
.office-cat78{filter:brightness(.8) drop-shadow(2px 4px 3px #0008)}
.office-cat78[data-state=day]{filter:drop-shadow(2px 4px 3px #0008)}
.office-cat78[data-state=dark]{filter:brightness(.35) saturate(.7) drop-shadow(2px 4px 3px #0008)}

/* Static entry-focus target, not an interactive control. Button keyboard focus is unchanged. */
#sanctuary-view #auriela-hallway78 > .hallway-camera78:focus{outline:none!important}
