@media (max-width: 780px) {
    body {
        overflow-y: auto;
        justify-content: space-between;
    }

    body.lights-on {
        background: radial-gradient(circle at 50% 8%, #202630 0%, #0e1015 55%, #050608 100%);
    }

    .stage {
        height: auto;
        min-height: calc(100dvh - 42px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px 22px;
    }

    .ceiling-lamp {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        order: 1;
    }
    .lamp-cord { height: 32px; }

    .ceiling-beam {
        top: 68px;
        left: 50%;
        width: 100vw;
        height: calc(100% - 68px);
        clip-path: polygon(38% 0%, 62% 0%, 100% 100%, 0% 100%);
    }

    .login-card {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 360px;
        margin: 18px 0;
        padding: 22px 20px;
        order: 2;
        transform: translateY(14px) scale(0.95);
    }
    .login-card.visible { transform: translateY(0) scale(1); }
    .login-card h2 { font-size: 1.25rem; margin-bottom: 14px; }

    .switch-mount {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: auto;
        padding-top: 10px;
        order: 3;
    }
    .switch-frame { width: 90px; height: 128px; padding: 14px; }
    .switch-hint { margin-top: 8px; font-size: 0.74rem; }

    .floor { height: 42px; }
}
