/* Reset und Basis-Styling */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Scrollbars verhindern */
    background-color: #87CEEB; /* Himelsblau */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none; /* Textauswahl auf Mobile verhindern */
    -webkit-user-select: none;
}

#game-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Unter dem UI */
}

/* Touch Controls Overlay */
#controls-overlay {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 10;
    display: flex; /* Flexbox kann von JS aktiviert werden */
    justify-content: space-between;
    pointer-events: none; /* Overlay selbst blockiert keine Klicks, nur die Buttons tun das */
}

.control-group {
    display: flex;
    pointer-events: auto; /* Buttons anklickbar machen */
}

.left-controls {
    margin-left: 20px;
    padding-bottom: 20px;
    align-items: flex-end;
}

.right-controls {
    margin-right: 20px;
    padding-bottom: 20px;
    align-items: flex-end;
}

.control-btn {
    width: 80px;
    height: 80px;
    margin: 0 10px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(50, 50, 50, 0.3);
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    transition: background-color 0.1s;
}

/* Aktiver (gedrückter) Zustand */
.control-btn:active, .control-btn.active {
    background-color: rgba(255, 100, 0, 0.6);
    border-color: rgba(255, 150, 0, 0.8);
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Wenn Touch unterstützt wird, Controls einblenden (einfacher Media Query) */
@media (max-width: 1024px) {
    #controls-overlay {
        display: flex !important;
    }
}

/* --- Skin Selection Screen --- */
#skin-selection-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

#skin-selection-screen h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.skin-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    padding: 0 20px;
}

.skin-card {
    background: #1a1a2e;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skin-card:hover {
    transform: translateY(-10px);
}

.skin-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.skin-card p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.skin-color-preview {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Spezifische Skin-Karten Styles (Hover-Effekte) */
#skin-card-1:hover { border-color: #9b5de5; box-shadow: 0 0 20px rgba(155, 93, 229, 0.5); }
#skin-card-2:hover { border-color: #39ff14; box-shadow: 0 0 20px rgba(57, 255, 20, 0.5); }
#skin-card-3:hover { border-color: #888888; box-shadow: 0 0 20px rgba(136, 136, 136, 0.5); }
