.cb-story-overlay.res-ambient{opacity:1;backdrop-filter:none;position:absolute;inset:0;z-index:96;display:flex;flex-direction:column;gap:8px;padding:clamp(8px,2vw,24px);background:linear-gradient(180deg,#152a32f5,#172129f5);color:#f7e9d0;overflow:auto;box-sizing:border-box}
.res-ambient-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.res-ambient-head h2{font:650 clamp(17px,2.4vw,26px) var(--cb-font-display);margin:0}.res-ambient button:not(.res-ambient-prop){min-height:44px;padding:8px 15px;background:#3c4c49;color:#ffeed2;border:1px solid #bb9e72;border-radius:8px;cursor:pointer}.res-ambient-hint{text-align:center;margin:0;font:600 14px/1.5 var(--cb-font-body)}.res-ambient-board{width:min(100%,1000px);flex:1;min-height:180px;max-height:640px;margin:auto;position:relative;overflow:hidden;border:1px solid #b6a07e;border-radius:12px;background-size:cover;background-position:center;touch-action:none}.res-ambient-prop{position:absolute;transform:translate(-50%,-50%);background:none;border:0;outline:none;touch-action:none;cursor:grab;padding:0;transition:filter .2s}.res-ambient-prop:disabled{cursor:default;opacity:1}.res-ambient-prop img{display:block;width:100%;height:auto;pointer-events:none}.res-ambient-prop:not(:disabled){filter:drop-shadow(0 0 8px #e3c78d88)}.res-ambient-prop.res-ambient-target{filter:drop-shadow(0 0 10px #f6df9d)}.res-ambient-prop.dragging{z-index:4;cursor:grabbing;filter:drop-shadow(0 12px 15px #0b181a99)}.res-ambient-prop:focus-visible{outline:2px solid #f5d9a3}.res-ambient-footer{display:flex;justify-content:center;gap:8px;align-items:center;font:700 13px var(--cb-font-body)}.res-ambient-result{margin:auto;width:min(580px,100%);border:1px solid #c8a873;padding:25px;border-radius:12px;background:#233841;color:#f6ead5;box-sizing:border-box}.res-ambient-result h3{color:#efce93}.res-ambient-result p{font:500 18px/1.6 var(--cb-font-body)}.res-ambient-result small{display:block;color:#b9dbb6;margin:12px 0}
@media(max-width:700px) and (orientation:portrait){.res-ambient-board{flex:none;aspect-ratio:1/1;min-height:0}.res-ambient-hint{font-size:14px}.res-ambient{justify-content:center}.res-ambient-head{margin-bottom:10px}}
@media(max-height:460px) and (orientation:landscape){.res-ambient{gap:4px;padding:7px}.res-ambient-hint{font-size:12px}.res-ambient-board{min-height:120px}.res-ambient button:not(.res-ambient-prop){min-height:36px}}

.res-ambient-board.res-ambient-map{flex:none;width:min(100%,1000px,110dvh);aspect-ratio:16/9;min-height:0;background-size:100% 100%}
.cb-story-overlay.res-ambient-route{align-items:stretch;padding-top:calc(max(env(safe-area-inset-top,0px),6px) + 42px)}
#stage:has(.res-ambient-route) :is(#map-menu,#cb-yard-return){
  visibility:hidden!important;
}
