@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

:root {
    --bg-dark: #070b14;
    --card-bg: rgba(15, 23, 42, 0.75);
    --card-border: rgba(56, 189, 248, 0.2);
    --neon-blue: #00f2fe;
    --neon-purple: #8b5cf6;
    --neon-rose: #f43f5e;
    --neon-green: #22c55e;
    --neon-gold: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    touch-action: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* =========================================
   HUD (HEADS-UP DISPLAY)
   ========================================= */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

#hud.hidden {
    display: none;
}

/* Stats Card (Top Left) */
.hud-stats {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.stat-pill {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    padding: 8px 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    font-weight: 600;
}

.stat-pill .stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-pill .stat-value {
    color: var(--neon-blue);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.stat-pill.kills .stat-value {
    color: var(--neon-rose);
    text-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.stat-pill.timer {
    color: var(--neon-gold);
}

/* Center Active Potions */
.hud-potions-wrapper {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.potion-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--neon-blue);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.potion-icon {
    font-size: 1.2rem;
}

.potion-meter {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.potion-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* Leaderboard (Top Right) */
.hud-leaderboard {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 220px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--neon-gold);
    text-transform: uppercase;
}

.leaderboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 3px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.leaderboard-item .rank-num {
    font-weight: 700;
    width: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.leaderboard-item .rank-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 6px;
    font-weight: 500;
    color: #e2e8f0;
}

.leaderboard-item .rank-score {
    font-weight: 700;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.leaderboard-item.is-player {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

.leaderboard-item.is-player .rank-name {
    color: var(--neon-blue);
    font-weight: 800;
}

.leaderboard-item.is-player .rank-score {
    color: var(--neon-blue);
}

/* Minimap (Bottom Right) */
.hud-minimap-container {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

#minimap-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Boost Hint (Bottom Center) */
.hud-boost-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    pointer-events: none;
}

.hud-boost-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--neon-blue);
    font-weight: 700;
}

/* HUD Controls (Bottom Left) */
.hud-controls-group {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
    pointer-events: auto !important;
    z-index: 80 !important;
}

.btn-icon-label {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 9px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(56, 189, 248, 0.4);
    user-select: none;
    -webkit-user-select: none;
}

.btn-icon-label:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
}

.btn-icon-label:active {
    background: rgba(56, 189, 248, 0.3) !important;
    transform: scale(0.95);
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-main);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* =========================================
   MODALS / OVERLAYS (MENU & GAME OVER)
   ========================================= */
.overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.75) 0%, rgba(7, 11, 20, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.menu-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(56, 189, 248, 0.15);
    border-radius: 28px;
    padding: 36px 40px;
    width: 480px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Logo & Title */
.game-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.brand-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.6));
    animation: floatMascot 2.5s ease-in-out infinite alternate;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0, 242, 254, 0.3));
}

.brand-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.high-score-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--neon-gold);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* Mode Switcher */
.mode-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 4px;
    width: 100%;
}

.mode-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 9999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-tab.active {
    background: var(--neon-blue);
    color: #090d16;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(0, 242, 254, 0.4);
}

/* Input Fields */
.input-wrapper {
    width: 100%;
}

.nickname-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    outline: none;
    transition: all 0.2s;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.nickname-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.4);
    background: rgba(56, 189, 248, 0.08);
}

.nickname-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* Skin Picker Carousel */
.skin-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skin-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 10px 4px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.skin-carousel::-webkit-scrollbar {
    height: 6px;
}

.skin-carousel::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}

.skin-card {
    flex: 0 0 85px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.skin-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
}

.skin-card.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--neon-blue);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}

.skin-preview {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.skin-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Play / Action Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: inherit;
    color: #070b14;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 242, 254, 0.6);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* =========================================
   GAME OVER MODAL
   ========================================= */
.game-over-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--neon-rose);
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-box .box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-box .box-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

/* =========================================
   MOBILE CONTROLS
   ========================================= */
#mobile-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    pointer-events: auto;
    z-index: 25;
}

#mobile-controls.hidden {
    display: none;
}

/* =========================================
   MOBILE TOUCH CONTROLS & VIRTUAL JOYSTICK
   ========================================= */
#mobile-controls {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: max(20px, env(safe-area-inset-right, 20px));
    pointer-events: auto;
    z-index: 60;
}

.btn-mobile-boost {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    border: 3.5px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    touch-action: none;
    animation: boostGlow 2s infinite alternate;
}

.btn-mobile-boost:active, .btn-mobile-boost.is-boosting {
    transform: scale(0.92);
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.9), inset 0 2px 8px rgba(0, 0, 0, 0.3);
    filter: brightness(1.2);
}

.btn-mobile-boost .boost-icon {
    font-size: 1.7rem;
    line-height: 1;
}

.btn-mobile-boost .boost-text {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 900;
}

@keyframes boostGlow {
    0% { box-shadow: 0 0 14px rgba(244, 63, 94, 0.4); }
    100% { box-shadow: 0 0 28px rgba(244, 63, 94, 0.85); }
}

/* Dynamic Floating Virtual Joystick */
.virtual-joystick {
    position: absolute;
    pointer-events: none;
    z-index: 55;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s ease;
}

.virtual-joystick.hidden {
    display: none;
    opacity: 0;
}

.joystick-base {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.3), inset 0 0 16px rgba(56, 189, 248, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joystick-knob {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.6);
    position: absolute;
    transform: translate(0px, 0px);
}

.btn-icon-mini {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    border-radius: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-icon-mini:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
}

.hud-leaderboard.collapsed .leaderboard-list {
    display: none;
}

/* Keyframe Animations */
@keyframes floatMascot {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(6deg); }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   MOBILE & TABLET RESPONSIVE ADAPTATIONS
   ========================================= */
@media (max-width: 768px) {
    .menu-card {
        padding: 22px 18px;
        gap: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .brand-title {
        font-size: 2.2rem;
    }
    .brand-icon {
        font-size: 2.8rem;
    }
    .hud-stats {
        top: max(10px, env(safe-area-inset-top, 10px));
        left: max(10px, env(safe-area-inset-left, 10px));
        gap: 6px;
    }
    .stat-pill {
        padding: 5px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }
    .stat-pill .stat-value {
        font-size: 0.95rem;
    }
    .hud-leaderboard {
        top: max(10px, env(safe-area-inset-top, 10px));
        right: max(10px, env(safe-area-inset-right, 10px));
        width: 145px;
        padding: 8px 10px;
    }
    .leaderboard-header {
        font-size: 0.72rem;
        margin-bottom: 4px;
        padding-bottom: 4px;
    }
    .leaderboard-item {
        font-size: 0.72rem;
        padding: 2px 4px;
    }
    .hud-minimap-container {
        width: 85px;
        height: 85px;
        top: auto;
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
        right: auto;
        left: max(12px, env(safe-area-inset-left, 12px));
    }
    .hud-controls-group {
        bottom: max(115px, calc(env(safe-area-inset-bottom, 0px) + 115px));
        left: max(12px, env(safe-area-inset-left, 12px));
        flex-direction: column;
        gap: 6px;
        pointer-events: auto !important;
        z-index: 90 !important;
    }
    .btn-icon-label {
        padding: 8px 14px;
        font-size: 0.8rem;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    .hud-potions-wrapper {
        top: max(10px, env(safe-area-inset-top, 10px));
        gap: 6px;
    }
    .potion-badge {
        padding: 4px 8px;
    }
    .potion-badge-title {
        display: none;
    }
    .hud-boost-hint {
        display: none;
    }
}

/* =========================================
   POWER-UPS GUIDE MODAL & ENHANCED BADGES
   ========================================= */
.powerups-card {
    width: 580px;
    max-width: 92vw;
    gap: 18px;
    padding: 32px;
}

.modal-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--neon-gold);
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
    letter-spacing: -0.01em;
}

.btn-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--neon-rose);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: -8px;
}

.powerups-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.powerup-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    text-align: left;
    transition: all 0.2s;
}

.powerup-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.powerup-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.powerup-icon {
    font-size: 1.5rem;
}

.powerup-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.powerup-name {
    font-size: 1.05rem;
    font-weight: 800;
}

.powerup-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.powerup-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.35;
}

/* Enhanced Active Potion HUD Badges */
.potion-badge {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--neon-blue);
    border-radius: 14px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    cursor: help;
    position: relative;
}

.potion-badge-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.potion-badge-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.potion-badge-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-gold);
}

.potion-tooltip {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    color: #f1f5f9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.potion-badge:hover .potion-tooltip {
    opacity: 1;
}

