* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background-color: #000;
}

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.start-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.start-container h1 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#player-name {
    padding: 0.8rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 300px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#player-name:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.5);
}

#start-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#start-button:active {
    transform: translateY(0);
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

#player-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

#debug-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

#chat-container {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 210;
    max-width: 60vw;
}

#chat-messages {
    flex: 1;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
    font-family: monospace;
    word-break: break-word;
}

#chat-form {
    display: flex;
    gap: 6px;
}

#chat-input {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

#chat-form button {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

#chat-form button:hover {
    background: #388e3c;
}

/* --- Mobile Controls --- */
.mobile-joystick {
    width: 110px;
    height: 110px;
    background: rgba(60,60,60,0.32);
    border-radius: 50%;
    border: 2px solid #bbb;
    touch-action: none;
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 201;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.mobile-joystick-knob {
    width: 54px;
    height: 54px;
    background: rgba(220,220,220,0.85);
    border-radius: 50%;
    border: 2px solid #888;
    left: 28px;
    top: 28px;
    transition: background 0.2s;
    touch-action: none;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.mobile-jump-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #388e3c 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    touch-action: manipulation;
    outline: none;
    opacity: 0.96;
    z-index: 201;
    position: fixed;
    right: 20px;
    bottom: 38px;
}

@media (max-width: 600px) {
    #chat-container {
        bottom: 145px;
        right: 20px;
        max-width: 80vw;
    }
    .mobile-jump-btn {
        bottom: 120px;
    }
    .mobile-joystick {
        bottom: 120px;
    }
}