/* --- 1. Global Reset & Variables --- */
:root {
    --gold-glow: drop-shadow(0 0 10px rgba(255, 215, 0, 0.85)) drop-shadow(0 0 20px rgba(255, 140, 0, 0.4));
    --warm-bg: radial-gradient(circle, #220b33 0%, #05010a 100%);
    --text-dark: #4a2306;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--warm-bg);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

/* --- 2. Responsive Viewport Containers --- */
#game-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #05010a;
}

#game-viewport {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1920px;
    height: 1080px;
    transform-origin: center center;
    pointer-events: none;
    z-index: 10;
}

.game-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 1s ease, opacity 0.5s ease-in-out;
}

/* --- 2.5. Scene Transition Overlay --- */
#scene-transition-overlay {
    background: rgba(15, 6, 22, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    z-index: 95;
    transition: opacity 0.2s ease-in-out;
}

#scene-transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
