body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

header h1 {
    margin-bottom: 5px;
    color: #00d2ff;
}

#status-container {
    margin-bottom: 30px;
    font-size: 0.9em;
}

#status-dot {
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.online { background-color: #00ff00 !important; box-shadow: 0 0 10px #00ff00; }

.joystick-grid {
    display: grid;
    grid-template-areas:
        ". up ."
        "left stop right"
        ". down .";
    gap: 15px;
    justify-content: center;
}

.btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 15px;
    background: #16213e;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px #0f3460;
    transition: all 0.1s;
}

.btn:active {
    background: #0f3460;
    box-shadow: 0 0px #0f3460;
    transform: translateY(4px);
}

.btn-up { grid-area: up; }
.btn-left { grid-area: left; }
.btn-right { grid-area: right; }
.btn-down { grid-area: down; }
.btn-stop {
    grid-area: stop;
    background: #e94560;
    box-shadow: 0 4px #a01a30;
}

.btn-stop:active { background: #ff2e63; }

