:root {
    --bg-color: #121212;
    --accent-green: #4CAF50;
    --text-light: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh; /* Wichtig für Safari Mobile */
    overflow: hidden;
    touch-action: none;
    color: var(--text-light);
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-height: 100dvh;
}

.top-bar {
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stat-item {
    font-size: 0.8rem;
    font-weight: bold;
}

.stat-item span {
    color: var(--accent-green);
    font-size: 1.1rem;
}

#gameCanvas {
    background-color: #000;
    border: 2px solid #333;
    border-radius: 10px;
    width: 75vw;
    height: 75vw;
    max-width: 300px;
    max-height: 300px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Steuerung Layout */
.controls {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-row-middle {
    display: flex;
    flex-direction: row; /* Erzwingt Nebeneinander-Anordnung */
    gap: 8px;
}

.btn {
    width: 100px;
    height: 100px;
    border: none;
    border-radius: 15px;
    background: #2a2a2a;
    color: var(--accent-green);
    font-size: 1.5rem;
    box-shadow: 0 4px 0 #000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pause-btn {
    background: #444;
    color: white;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #000;
}

#reset-highscore {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
}

