/* ui_hud.css - Top HUD Bar, Stage Info, and Global Controls */

#hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 69, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
    padding: 0 5px;
}

.hud-side-left, .hud-side-right {
    flex: 1;
    display: flex;
    align-items: center;
}
.hud-side-left { justify-content: flex-start; }
.hud-side-right { justify-content: flex-end; }

#settings-btn {
    z-index: 5;
    background: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-size: 10px;
    cursor: pointer;
    width: 18px; 
    height: 18px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s;
    background: rgba(0,0,0,0.3);
}

#settings-btn:hover {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    transform: scale(1.1);
    color: #fff;
}

#stage-title-central {
    text-align: center;
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

#stage-name {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 900;
    color: #ff4500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 20px;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

.stage-depth {
    font-size: 9px;
    color: #ffd700;
    letter-spacing: 1px;
    font-weight: bold;
    opacity: 0.8;
    line-height: 20px;
}

#restart-btn-top, #game-pause-btn {
    min-width: 45px;
    height: 16px;
    background: #1a0000;
    color: #ff4500;
    border: 1px solid #8b0000;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    padding: 0 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#restart-btn-top {
    width: 136px;
    height: 14.5px;
    padding: 10px 5px;
    border: 1px solid #8b0000;
}

#restart-btn-top:hover, #game-pause-btn:hover {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    color: #fff;
    transform: scale(1.05);
}

#cursed-status-container {
    cursor: pointer;
    padding: 0 6px;
    border-radius: 2px;
    background: rgba(148, 0, 211, 0.1);
    border: 1px solid rgba(148, 0, 211, 0.3);
    transition: all 0.2s;
    height: 16px;
    display: flex;
    align-items: center;
}

#cursed-status-container:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    transform: scale(1.02);
}

#cursed-status {
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
}

#cursed-status[data-level="0"] { color: #00ff00; }
#cursed-status[data-level="1"] { color: #ffa500; }
#cursed-status[data-level="2"] { color: #ff4500; }
#cursed-status[data-level="3"] { color: #ff0000; animation: cursedPulse 1s infinite alternate; }

@keyframes cursedPulse {
    from { text-shadow: 0 0 2px #ff0000; }
    to { text-shadow: 0 0 8px #ff0000, 0 0 12px #ff4500; }
}

#game-tutorial-toggle-container {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 7px;
    color: #ff4500;
    height: 16px;
}
