/* =====================================================================
   LIQUID GLASS DESIGN SYSTEM (MINIMALIST ROBLOX HUD)
   ===================================================================== */
.liquid-glass {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.30) 0%,
        rgba(255, 255, 255, 0.11) 48%,
        rgba(255, 255, 255, 0.22) 100%
    );
    backdrop-filter: blur(24px) saturate(190%) brightness(1.06);
    -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        0 10px 30px rgba(8, 20, 46, 0.20),
        0 2px 8px rgba(8, 20, 46, 0.12),
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.72),
        inset 0 -1.5px 3px rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.22s ease,
                box-shadow 0.22s ease,
                border-color 0.22s ease;
}

.liquid-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.liquid-btn::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 14%;
    right: 14%;
    height: 36%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.liquid-btn:active,
.liquid-btn.pressed {
    transform: scale(0.90);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.22) 100%);
}

.liquid-btn.active-state {
    background: linear-gradient(145deg, rgba(110, 210, 255, 0.45) 0%, rgba(75, 165, 255, 0.24) 100%);
    border-color: rgba(255, 255, 255, 0.80);
    box-shadow:
        0 8px 24px rgba(30, 130, 255, 0.28),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.9);
}

.hud-icon {
    width: 21px;
    height: 21px;
    filter: drop-shadow(0 1px 2px rgba(0, 12, 36, 0.35));
    pointer-events: none;
    flex-shrink: 0;
}

/* =====================================================================
   MINIMALIST HUD LAYOUT
   ===================================================================== */
#hud-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.top-left-bar {
    position: absolute;
    top: var(--safe-top);
    left: var(--safe-left);
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

/* Sleek Liquid Glass HP Pill */
.hp-pill {
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.hp-track {
    width: 72px;
    height: 10px;
    border-radius: 999px;
    background: rgba(10, 20, 40, 0.32);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

#hp-fill {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #32e875 0%, #7dffb0 100%);
    box-shadow: 0 0 10px rgba(70, 255, 145, 0.55);
    transition: width 0.2s ease, background 0.25s ease;
}

/* Top-Center Disaster & Round Timer Pill */
#round-pill {
    position: absolute;
    top: var(--safe-top);
    left: 50%;
    transform: translateX(-50%);
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0, 14, 38, 0.42);
    white-space: nowrap;
    pointer-events: auto;
}

#round-pill.danger {
    background: linear-gradient(145deg, rgba(255, 95, 75, 0.44) 0%, rgba(220, 40, 55, 0.24) 100%);
    border-color: rgba(255, 195, 185, 0.72);
    box-shadow: 0 10px 30px rgba(200, 30, 45, 0.28), inset 0 1.5px 2px rgba(255, 255, 255, 0.75);
}

#round-pill.survived {
    background: linear-gradient(145deg, rgba(60, 235, 140, 0.44) 0%, rgba(25, 180, 100, 0.24) 100%);
    border-color: rgba(190, 255, 220, 0.78);
}

#round-timer {
    font-variant-numeric: tabular-nums;
    opacity: 0.94;
}

/* Top-Right Streak + Action Buttons */
.top-right-bar {
    position: absolute;
    top: var(--safe-top);
    right: var(--safe-right);
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-pill {
    height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 15px;
    text-shadow: 0 1px 4px rgba(0, 14, 38, 0.35);
    pointer-events: auto;
}

/* Compact Icon-Only Popover Drawer */
#glass-drawer {
    position: absolute;
    top: calc(var(--safe-top) + 52px);
    left: var(--safe-left);
    border-radius: 24px;
    padding: 9px;
    display: flex;
    gap: 9px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s;
}

#glass-drawer.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Disaster Dramatic Flash Banner (auto-hides in 2.6s) */
#disaster-banner {
    position: fixed;
    top: calc(var(--safe-top) + 56px);
    left: 50%;
    transform: translateX(-50%) scale(0.86);
    padding: 10px 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 8px rgba(0, 10, 30, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#disaster-banner.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Shift-Lock Center Reticle */
#shiftlock-dot {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

#shiftlock-dot.visible {
    opacity: 1;
}
