/* User decision, 22.10.2026: remove these presentation shortcuts in every
   cinema world, including mobile and the embedded original-panel preview.
   Source selection and normal playback controls remain available. */
#app [data-tour],
#app [data-experience="enter"],
#app .hero-actions [data-cinema-spot] {
  display: none !important;
}

/* User decision, 23.10.2026: remove the lower control-card strip, including
   its heading. Keep native controls/handlers for the film-evening sequence. */
#app .tools{display:none!important}

/* Remove the hero shortcut and preset strip, not the native focus controls. */
#app .hero-actions,
#app .scene-strip{display:none!important}
#app #heroCopy{white-space:pre-line}

/* Light is already driven frame-by-frame from the opening position. Avoid
   extra CSS lag behind the curtain position / 90%-open movie start. */
#app[data-cinema-evening="dimming"] :is(.backdrops,.backdrop-off,.warm-light){transition:none}

/* Use the former tools-strip space for four equally sized area images. */
#app .world-overview{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:none;margin-top:auto;margin-bottom:0;padding-top:28px}
#app :is(.world-strip,.world-overview) .world-card{height:clamp(180px,28vh,280px)}
#app :is(.world-strip,.world-overview) .world-card-caption{left:18px;right:18px;bottom:18px;color:#f8f4eb}
#app :is(.world-strip,.world-overview) .world-card-caption strong{font-size:clamp(22px,1.7vw,30px);color:inherit}
#app .world-overview .world-card-caption small{font:7px Arial,sans-serif;letter-spacing:.14em;margin-bottom:6px}
@media(max-width:600px){
  #app .world-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #app :is(.world-strip,.world-overview) .world-card{height:170px}
  #app :is(.world-strip,.world-overview) .world-card-caption{left:11px;right:11px;bottom:12px}
  #app :is(.world-strip,.world-overview) .world-card-caption strong{font-size:20px}
  #app .world-overview .world-card-caption small{font-size:6px}
}

/* Fade the existing screen video, not the room or its controls. */
#app #visulineCinemaSpot{opacity:1;transition:opacity .65s ease}
#app:is([data-cinema-evening="lights-on"],[data-cinema-evening="dimming"],
  [data-cinema-evening="starting-video"],[data-cinema-evening="closing"],
  [data-cinema-evening="complete"]) #visulineCinemaSpot{opacity:0}
@media(prefers-reduced-motion:reduce){#app #visulineCinemaSpot{transition:none}}

/* Cloth movement is separate from the original outer opening translation.
   No idle looping: sway only while moving, then a short damped settling. */
#app .left-curtain{--curtain-sway:2.8deg}
#app .right-curtain{--curtain-sway:-2.8deg}
#app .cinema-curtain>g{transform-box:view-box;transform-origin:645px 180px}
#app .left-curtain>g{transform-origin:497.5px 180px}
#app .right-curtain>g{transform-origin:792.5px 180px}
#app .curtain-swinging>g{animation:cinema-cloth-sway 1.2s ease-in-out infinite}
#app .curtain-settling>g{animation:cinema-cloth-settle .9s ease-out both}
@keyframes cinema-cloth-sway{
  0%,100%{transform:skewX(0deg) scaleX(1)}
  25%{transform:skewX(var(--curtain-sway)) scaleX(1.025)}
  75%{transform:skewX(calc(var(--curtain-sway) * -.75)) scaleX(.986)}
}
@keyframes cinema-cloth-settle{
  0%{transform:var(--curtain-last-transform,none)}
  40%{transform:skewX(calc(var(--curtain-sway) * -.35)) scaleX(1.004)}
  70%{transform:skewX(calc(var(--curtain-sway) * .12))}
  100%{transform:skewX(0deg) scaleX(1)}
}
@media(prefers-reduced-motion:reduce){#app .cinema-curtain>g{animation:none!important;transform:none!important}}
/* Native dialogs remain above the room-focus controls, including pointer input. */
#app .stage[data-project=heimkino].dialog-open>.room-focusbar{visibility:hidden;pointer-events:none}
#app .stage[data-project=heimkino]>.overlay{z-index:20}
