/* the living room (living-room.html): Panda's real house drawn live (js/living-room.js); scene.css does the rest */

/* overlays on the scene at native-pixel rects (placed in % by scene.js's placeNative) */
.lr-layer {
    position: absolute;
    display: block;
    pointer-events: none;
}

/* the TV's picture: the idle backdrop, or (playing) a grid of frames js/house-room.js steps through */
.lr-ac {
    background-repeat: no-repeat;
    image-rendering: auto;
}

.lr-tv {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: auto;
}

/* the speakers' light bar while music plays */
.lr-led {
    background: #fff;
    box-shadow: 0 0 2px #fff;
}

/* a note rising off a speaker */
.lr-note {
    animation: lr-note 2.6s steps(13) forwards;
}

@keyframes lr-note {
    from { transform: translate(0, 0); opacity: 1; }
    to { transform: translate(40%, -260%); opacity: 0; }
}

/* the house's clock, phase and temperature, in the scene's top-left corner */
#lr-hud {
    position: absolute;
    left: 1%;
    top: 1.2%;
    padding: 1px 6px;
    font-family: 'pc-98';
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    letter-spacing: 1px;
}

/* the wall clock's secret: a click target over it (ten clicks open the debug panel) */
.lr-debug-clock {
    pointer-events: auto;
}

/* the debug panel (ten clicks on the wall clock): a PC-98 window over the page, for trying states without the house */
#lr-debug {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100;
    width: 290px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 8px 10px;
    font-family: 'pc-98';
    font-size: 13px;
    color: #fff;
    background: #2a2a66;
    border: 3px outset #8799ff;
}

#lr-debug label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
    white-space: pre;
}

#lr-debug input[type="range"],
#lr-debug input[type="text"],
#lr-debug select {
    width: 130px;
    font-family: inherit;
}

#lr-debug .lr-debug-head {
    margin: 8px 0 2px;
    color: #ffaaba;
}

#lr-debug button {
    margin-top: 8px;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: #000;
    background: #ffaaba;
    border: 2px outset #fff;
    cursor: pointer;
}


@media (max-width: 768px) {
    #lr-hud {
        font-size: 10px;
        padding: 0 4px;
    }
}
