:root {
    /* Dark Theme (Default) */
    --bg-color: #121212;
    --text-color: #eee;
    --muted-color: #888;
    --accent-color: #00ff88;
    --panel-bg: #1e1e1e;
    --panel-border: rgba(255,255,255,0.08);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.title span { color: var(--accent-color); }

.gamepad-container {
    width: 600px;
    height: 400px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.status {
    font-size: 18px;
    color: var(--muted-color);
    margin-top: 20px;
    text-align: center;
}

.status.connected {
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.back-link {
    margin-top: 30px;
    color: var(--muted-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.back-link:hover { color: var(--accent-color); }

/* Simple visual representation */
.controller-visual {
    width: 300px;
    height: 180px;
    border: 2px solid #444;
    border-radius: 40px;
    position: relative;
    background: #252525;
}

.btn {
    position: absolute;
    background: #333;
    border: 1px solid #555;
    border-radius: 50%;
    transition: all 0.1s;
}

.btn.active {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    border-color: transparent;
}

/* ABXY */
.btn-a { bottom: 30px; right: 40px; width: 20px; height: 20px; }
.btn-b { bottom: 50px; right: 20px; width: 20px; height: 20px; }
.btn-x { bottom: 50px; right: 60px; width: 20px; height: 20px; }
.btn-y { bottom: 70px; right: 40px; width: 20px; height: 20px; }

/* D-Pad */
.dpad { position: absolute; bottom: 30px; left: 40px; width: 60px; height: 60px; }
.btn-up { top: 0; left: 20px; width: 20px; height: 20px; border-radius: 4px; }
.btn-down { bottom: 0; left: 20px; width: 20px; height: 20px; border-radius: 4px; }
.btn-left { top: 20px; left: 0; width: 20px; height: 20px; border-radius: 4px; }
.btn-right { top: 20px; right: 0; width: 20px; height: 20px; border-radius: 4px; }

/* Joysticks */
.stick { width: 40px; height: 40px; border-radius: 50%; background: #333; border: 1px solid #555; position: absolute; bottom: 30px; }
.stick-l { left: 110px; }
.stick-r { right: 110px; }
.stick.active { border-color: var(--accent-color); }

/* Shoulders */
.btn-l1 { top: -10px; left: 30px; width: 60px; height: 15px; border-radius: 10px; }
.btn-r1 { top: -10px; right: 30px; width: 60px; height: 15px; border-radius: 10px; }
