/* gameHUD.css */

/* Saubere Ausrichtung der Systemknöpfe nebeneinander über Flexbox */
.control-row {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 10px 15px 0 15px;
    box-sizing: border-box;
    position: relative;
    z-index: 5000; 
}

.control-block {
    display: flex;
    flex-direction: row;
    gap: 10px; 
}

/* Einheitliche Kachelgröße für alle Knöpfe in der Leiste */
#mute-btn, #fullscreen-btn, #settings-btn, #home-btn {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1); 
    color: #fff; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: background 0.2s ease;
    border-radius: 6px;
    box-sizing: border-box;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

/* Farbliche Sonderregelung für den Menü-Button */
#home-btn {
    background: #e74c3c !important;
    border-color: transparent !important;
    font-size: 11px !important;
    font-weight: bold !important;
    width: auto !important; /* Erlaubt dem Text '✕ Menü' Platz zu nehmen */
    padding: 0 10px !important;
}

#mute-btn svg, #fullscreen-btn svg, #settings-btn svg {
    width: 24px !important;
    height: 24px !important;
}

#mute-btn:active, #fullscreen-btn:active, #settings-btn:active, #home-btn:active { 
    background: rgba(255, 255, 255, 0.3); 
}

/* Muted-Design-Look */
#mute-btn[style*="background"] {
    border: 1px solid transparent;
    --current-bg: #c0392b;
}

/* HUD Zeile */
#dynamic-hud-row {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 320px;
    height: 30px; 
    margin: 2px auto;
}

#combo-container {
    width: 130px;
    height: 20px;
    background: #2a2a30;
    border-radius: 12px;
    padding: 2px;
    border: 1px solid #444;
    position: relative;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
#combo-container.active { opacity: 1; }
#combo-bar { width: 100%; height: 100%; background: linear-gradient(90deg, #f1c40f, #e67e22); border-radius: 8px; }
#combo-text-display { position: absolute; width: 100%; text-align: center; left: 0; top: 0; font-size: 11px; color: #fff; font-weight: 900; line-height: 20px; text-shadow: 1px 1px 2px #000; }
#reward-container { width: 140px; height: 20px; display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.hud-text { font-size: 12px; font-weight: bold; color: #f1c40f; line-height: 16px; }
.progress-bg { width: 65px; height: 6px; background: #2a2a30; border-radius: 3px; overflow: hidden; border: 1px solid #444; }
#chest-fill-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #9b59b6, #8e44ad); transition: width 0.3s ease; }

/* 🟢 DER FORCE-KILLER: Diese Klasse überschreibt absolut alles und blendet Elemente sicher aus */
.hidden {
    display: none !important;
}
