/* --- Backgrounds --- */
#login-visuals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    /* Above game, below overlay (1000) */
    pointer-events: none;
    overflow: hidden;
}

#login-bg-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/static_images/login_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#fog-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.8;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}

/* --- Main Layout --- */
.container {
    display: flex;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-container {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 300px;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow: hidden;
}

.sidebar {
    height: 100%;
    background-color: var(--panel-bg);
    border: 2px solid var(--border-color);
    padding: 15px;
    overflow-y: auto;
}

/* --- Panels --- */
#room-info {
    flex: 0 0 auto;
    border: 2px solid var(--border-color);
    padding: 15px;
    background-color: var(--panel-bg);
}

#room-title {
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 0 5px #ffb700;
    font-size: 1.5em;
    text-transform: uppercase;
}

#room-desc {
    margin: 0;
    line-height: 1.4;
    color: #e0d0a0;
}

#room-exits {
    margin-top: 10px;
    font-weight: bold;
    color: #00ff00;
}

#room-image {
    flex: 0 1 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 50vh;
    border: 2px solid var(--phosphor-secondary);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#room-image img#room-visual {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.5s ease;
}

.room-dimmed {
    filter: grayscale(80%) brightness(40%);
}