/* Stickman Keyboard Arena - Arena Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #08090d;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    user-select: none;
}

h1 {
    margin: 6px 0 3px 0;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #f39c12;
    text-shadow: 0 0 14px rgba(243, 156, 18, 0.6);
}

#gameContainer {
    position: relative;
    box-shadow: 0 18px 45px rgba(0,0,0,0.85);
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #232738;
    width: 800px;
    height: 500px;
    background-color: #101118;
}

canvas {
    display: block;
}

/* Hauptmenü Overlay (Left Sidebar Layout) */
.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    z-index: 20;
    pointer-events: none;
}

.menu-sidebar {
    width: 310px;
    height: 100%;
    background: linear-gradient(90deg, rgba(12, 14, 22, 0.97) 0%, rgba(15, 18, 28, 0.92) 85%, rgba(15, 18, 28, 0.2) 100%);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: auto;
    box-sizing: border-box;
}

.menu-brand h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #f39c12;
    text-shadow: 0 0 12px rgba(243, 156, 18, 0.6);
    line-height: 1.1;
}

.brand-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #64748b;
    text-transform: uppercase;
    display: block;
}

.menu-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 4px;
}

/* Modus-Kacheln */
.mode-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mode-card {
    background: rgba(30, 35, 50, 0.65);
    border: 1px solid #2d3448;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    color: #cbd5e1;
}

.mode-card:hover {
    background: rgba(45, 52, 75, 0.85);
    border-color: #f39c12;
    transform: translateX(3px);
    color: #ffffff;
}

.mode-card.active {
    background: #f59e0b;
    border-color: #fbbf24;
    color: #0b0c12;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.mode-card.active strong {
    color: #0b0c12;
}

.mode-card.active small {
    color: #3b2a04;
}

.mode-card strong {
    display: block;
    font-size: 12px;
    color: #f1f5f9;
}

.mode-card small {
    font-size: 10px;
    color: #818cf8;
}

.mode-icon {
    font-size: 16px;
}

/* Einstellungs-Gruppe */
.quick-settings {
    background: rgba(20, 24, 36, 0.7);
    border: 1px solid #232738;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

/* Pill Buttons */
.mini-pills {
    display: flex;
    gap: 2px;
    background: #0d0f17;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid #232738;
}

.mini-pill {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.mini-pill.active {
    background: #3b82f6;
    color: #ffffff;
}

select {
    background: #0d0f17;
    color: #ffffff;
    border: 1px solid #2a2e42;
    padding: 3px 6px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    width: 125px;
}

.audio-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-btn {
    background: #0d0f17;
    border: 1px solid #2a2e42;
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 4px;
    background: #2a2e42;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    flex: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #f39c12;
    border-radius: 50%;
    cursor: pointer;
}

/* Großer Start-Button */
.start-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border: none;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    text-align: center;
    width: 100%;
}

.start-btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

/* Rechter Info-Bereich */
.menu-hero-hint {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

.map-badge {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

/* In-Game Pause Button */
#pauseBtn {
    position: absolute;
    top: 14px;
    left: 360px;
    background: rgba(20, 22, 34, 0.75);
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

#pauseBtn:hover {
    background: #2a2e42;
    border-color: #f39c12;
}

/* Pausen-Overlay */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.pause-card {
    background: #161926;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 22px 28px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.pause-btn {
    width: 100%;
    background: #232738;
    color: #ffffff;
    border: 1px solid #334155;
    padding: 9px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.pause-btn:hover {
    background: #33394d;
    border-color: #f39c12;
}

.pause-btn.primary {
    background: #f59e0b;
    color: #0b0c12;
    border-color: #f59e0b;
}

.controls-info {
    display: flex;
    justify-content: space-around;
    width: 800px;
    margin-top: 10px;
    background: #12141f;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #232738;
}

.player-info {
    flex: 1;
    text-align: center;
    font-size: 12px;
}

.p1-color { color: #ff5964; font-weight: bold; }
.p2-color { color: #35a7ff; font-weight: bold; }

kbd {
    background-color: #232738;
    border: 1px solid #475569;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 11px;
    color: #fff;
}
