/* Show only in Theater Mode */

.theater-background {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('theater.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    z-index: -1 !important;
    image-rendering: pixelated !important;
}

/* Full-viewport container */
#screen-container.theater-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: #000 !important;
}   

#screen-container.theater-mode .theater-background {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background-size: 100% 100% !important;
}

#screen-container.theater-mode .image-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    border: none !important;
    background-color: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#screen-container.theater-mode .game-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#screen-container.theater-mode #theater-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
}

#screen-container.theater-mode #game {
    display: block !important;
    width: 67dvh !important;
    height: 80dvh !important;
    max-height: 100dvh !important;
    object-fit: contain !important;
    transform: translateZ(0) !important;
background-color: transparent !important;
}

#screen-container.theater-mode #game canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
background-color: transparent !important;

}

/* Scanline Overlay */
#screen-container.theater-mode #scanline-overlay {
    position: absolute !important;
    top: 20dvh !important;
    left: 0 !important;
    width: 67dvh !important;
    height: 40dvh;
    z-index: 20 !important;
    pointer-events: none !important;
}

/* Controls */
#screen-container.theater-mode #scale {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2000 !important;
    background: rgba(0,0,0,0.7) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
}   
