body {
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.room {
    position: relative;
    width: 400px;
    height: 300px;
    border: 4px solid #555;
    background: url('../img/background/room.png') no-repeat center/cover;
    margin: 0 auto;
    overflow: hidden;
}
.login-container {
    text-align: center;
    position: absolute;
    padding: 15px;
    top: 50%;
    left: 30%;
    z-index: 20;
}

.login-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #9146FF;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.login-btn:hover {
    background: #7a35e0;
}

.window {
    position: absolute;
    z-index: 5; /* window behind stickman */
    width: 120px;
    height: 120px;
    background: url('../img/furniture/window.gif') no-repeat center/contain;
    top: 60px;
    right: 20px;
}

.bed {
    position: absolute;
    z-index: 4;
    width: 120px;
    height: 60px;
    background: url('../img/furniture/bed.png') no-repeat center/contain;
    bottom: 55px;
    left: 30px;
    border-radius: 5px;
}

.stickman {
    position: absolute;
    z-index: 10; /* stickman always on top */
    width: 90px;
    height: 100px;
    bottom: 75px;
    left: 170px;
    background: url('../img/stickman/default.png') no-repeat center/contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: left 3s linear;
}

/* Idle animation */
.stickman.idle {
    background: url('../img/stickman/idle.gif') no-repeat center/contain;
}

/* Walk animation */
.stickman.walk {
    background: url('../img/stickman/walking.gif') no-repeat center/contain;
}

/* Sleep animation */
.stickman.sleep {
    background: url('../img/stickman/sleep.gif') no-repeat center/contain;
    bottom: 50px;
    pointer-events: none;
}

.stickman.look-window {
    background: url('../img/stickman/back.gif') no-repeat center/contain;
}

.stickman.pushup {
    background: url('../img/stickman/pushup.gif') no-repeat center/contain;
    bottom: 20px;
    left: 180px;
}

.facing-left {
    transform: scaleX(-1);
    transform-origin: center center;
}

.tv {
    position: absolute;
    z-index: 11;
    width: 80px;
    height: 60px;
    background: url('../img/furniture/tv.gif') no-repeat center/contain;
    bottom: 75px;
    right: 0px;
}

.room form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 100;
}

.logout-btn {
    padding: 8px 12px;
    background: #a00;
    color: #fff;
    border: 2px solid #700;
    cursor: pointer;
    position: static;
}
.top-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    margin: 0;
    z-index: 100;
}

.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #444;
    color: #fff;
    border: 2px solid #222;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
}

.settings-btn:hover {
    background: #555;
}

.speech-bubble {
    position: absolute;
    bottom: 180px;
    left: 140px;
    max-width: 180px;
    padding: 8px 12px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    z-index: 50;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 8px 0;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.speech-bubble::before {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 32px;
    border-width: 8px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

html,
body {
    background: transparent !important;
    margin: 0;
}