* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', Arial, sans-serif;
    cursor: none;
}

canvas {
    display: block;
}

/* Start Screen */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFB0C8 0%, #e06090 40%, #c04080 40.5%, #901050 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#start-screen h1 {
    font-size: 72px;
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: pulse 2s ease-in-out infinite;
}

#start-screen > p {
    font-size: 24px;
    animation: blink 1.5s ease-in-out infinite;
}

#start-screen .controls-info {
    margin-top: 40px;
    background: rgba(0,0,0,0.4);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

#start-screen .controls-info p {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* HUD */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    font-weight: 100;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    opacity: 0.8;
    line-height: 1;
}

/* Hotbar */
#hotbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.4);
    padding: 4px;
    border-radius: 4px;
}

.hotbar-slot {
    width: 52px;
    height: 52px;
    background: rgba(100,100,100,0.5);
    border: 2px solid rgba(50,50,50,0.8);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hotbar-slot.selected {
    border-color: #fff;
    background: rgba(200,200,200,0.4);
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.hotbar-slot canvas {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
}

.hotbar-slot span {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    font-weight: bold;
}

/* Death Screen */
#death-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(120, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 500;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    cursor: pointer;
}

#death-screen h1 {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ff4444;
}

#death-screen p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.8;
}

#death-screen button {
    padding: 15px 40px;
    font-size: 20px;
    background: #cc3333;
    color: white;
    border: 2px solid #ff6666;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s;
}

#death-screen button:hover {
    background: #ee4444;
}

/* Damage Flash */
#damage-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0);
    pointer-events: none;
    z-index: 200;
    transition: background 0.1s;
}

#damage-flash.active {
    background: rgba(255, 0, 0, 0.4);
}

/* Health Bar */
#health-bar {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(100, 0, 0, 0.8);
    border-radius: 3px;
    overflow: hidden;
}

#health-bar-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ff4444, #cc0000);
    transition: width 0.3s;
}

#health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

/* High Effect Overlay */
#high-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
    opacity: 0;
    background: radial-gradient(ellipse at center, 
        rgba(0, 180, 0, 0.0) 20%, 
        rgba(0, 120, 0, 0.3) 60%, 
        rgba(0, 80, 0, 0.6) 100%);
    mix-blend-mode: multiply;
    transition: opacity 0.5s;
}

#high-overlay.active {
    opacity: 1;
}

/* Underwater Overlay */
#underwater-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 145;
    opacity: 0;
    background: radial-gradient(ellipse at center,
        rgba(224, 96, 160, 0.15) 0%,
        rgba(200, 60, 130, 0.35) 40%,
        rgba(160, 40, 100, 0.55) 80%,
        rgba(120, 20, 70, 0.7) 100%);
    transition: opacity 0.3s;
}

#underwater-overlay.active {
    opacity: 1;
    animation: underwaterWave 3s ease-in-out infinite;
}

@keyframes underwaterWave {
    0%, 100% { 
        background-size: 100% 100%;
        filter: brightness(1.0);
    }
    25% {
        filter: brightness(0.92);
    }
    50% { 
        background-size: 105% 105%;
        filter: brightness(1.05);
    }
    75% {
        filter: brightness(0.95);
    }
}

/* Swimming indicator */
#swim-indicator {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 180, 220, 0.9);
    font-size: 14px;
    font-family: monospace;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#swim-indicator.active {
    opacity: 1;
}

/* Debug Info - Graphic HUD Counters */
#debug-info {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Individual HUD counter rows */
.hud-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    transition: transform 0.15s, background 0.3s;
    min-width: 60px;
    white-space: nowrap;
}

.hud-row:hover {
    transform: scale(1.05);
    background: rgba(0,0,0,0.6);
}

.hud-row .hud-emoji {
    font-size: 18px;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.3));
    animation: hudBob 2s ease-in-out infinite;
    display: inline-block;
}

.hud-row .hud-val {
    font-size: 16px;
    font-weight: bold;
    min-width: 20px;
    text-align: right;
}

/* Stagger the bob animation for each row */
.hud-row:nth-child(1) .hud-emoji { animation-delay: 0s; }
.hud-row:nth-child(2) .hud-emoji { animation-delay: 0.15s; }
.hud-row:nth-child(3) .hud-emoji { animation-delay: 0.3s; }
.hud-row:nth-child(4) .hud-emoji { animation-delay: 0.45s; }
.hud-row:nth-child(5) .hud-emoji { animation-delay: 0.6s; }
.hud-row:nth-child(6) .hud-emoji { animation-delay: 0.75s; }
.hud-row:nth-child(7) .hud-emoji { animation-delay: 0.9s; }
.hud-row:nth-child(8) .hud-emoji { animation-delay: 1.05s; }

@keyframes hudBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Color-coded counter values */
.hud-val.money { color: #00ff44; text-shadow: 0 0 8px rgba(0,255,68,0.6); }
.hud-val.hp { color: #ff4444; text-shadow: 0 0 6px rgba(255,68,68,0.5); }
.hud-val.cats { color: #ffaa44; text-shadow: 0 0 6px rgba(255,170,68,0.4); }
.hud-val.hippies { color: #44ff88; text-shadow: 0 0 6px rgba(68,255,136,0.4); }
.hud-val.strippers { color: #ff69b4; text-shadow: 0 0 6px rgba(255,105,180,0.5); }
.hud-val.crackheads { color: #ffdd44; text-shadow: 0 0 6px rgba(255,221,68,0.4); }
.hud-val.glock { color: #aaaaaa; text-shadow: 0 0 4px rgba(170,170,170,0.4); }
.hud-val.collection { color: #ffd700; text-shadow: 0 0 8px rgba(255,215,0,0.6); }
.hud-val.swim { color: #44ccff; text-shadow: 0 0 6px rgba(68,204,255,0.5); }

/* Money flash animation when value changes */
.hud-row.flash .hud-val {
    animation: hudFlash 0.4s ease-out;
}

@keyframes hudFlash {
    0% { transform: scale(1.4); color: #ffffff; }
    100% { transform: scale(1); }
}

/* Pulse animation for low HP */
.hud-row.danger .hud-emoji {
    animation: hudDanger 0.5s ease-in-out infinite !important;
}

@keyframes hudDanger {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255,0,0,0.8)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(255,0,0,1)); }
}

/* Glock equipped glow */
.hud-row.equipped .hud-emoji {
    animation: hudGlow 1s ease-in-out infinite !important;
}

@keyframes hudGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255,215,0,0.6)); }
    50% { filter: drop-shadow(0 0 10px rgba(255,215,0,1)); }
}

/* Car Prompt */
#car-prompt {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 0, 139, 0.85);
    color: #FFD700;
    font-size: 18px;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 12px 28px;
    border-radius: 8px;
    border: 2px solid #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    z-index: 300;
    pointer-events: none;
    animation: carPromptPulse 1.5s ease-in-out infinite;
    white-space: nowrap;
}

#car-prompt strong {
    color: #fff;
    font-size: 22px;
    text-shadow: 0 0 8px rgba(255,215,0,0.8);
}

@keyframes carPromptPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.85; transform: translateX(-50%) scale(1.03); }
}

/* Driving HUD */
#driving-hud {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    pointer-events: none;
    text-align: center;
}

#speed-display {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255,0,255,0.6), 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 8px;
}

#driving-controls {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-family: 'Segoe UI', Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 4px;
}

#passenger-display {
    font-size: 20px;
    font-weight: bold;
    color: #ff69b4;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(255,105,180,0.6), 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 6px;
}

/* Broke Message */
#broke-message {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 52px;
    font-weight: bold;
    color: #ff2222;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #880000, 0 0 40px #ff0000, 3px 3px 6px rgba(0,0,0,0.9);
    z-index: 500;
    pointer-events: none;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 4px;
    text-align: center;
    white-space: nowrap;
}

#broke-message.active {
    display: block !important;
    animation: brokeShake 0.5s ease-out, brokeFade 2.5s ease-out forwards;
}

@keyframes brokeShake {
    0% { transform: translate(-50%, -50%) scale(0.5) rotate(0deg); }
    15% { transform: translate(-48%, -52%) scale(1.15) rotate(-3deg); }
    30% { transform: translate(-52%, -48%) scale(1.1) rotate(3deg); }
    45% { transform: translate(-49%, -51%) scale(1.05) rotate(-1deg); }
    60% { transform: translate(-51%, -49%) scale(1.02) rotate(1deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@keyframes brokeFade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1.1); }
}

/* Stripper Invite Message */
#invite-message {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 42px;
    font-weight: bold;
    color: #ff69b4;
    text-shadow: 0 0 10px #ff69b4, 0 0 20px #ff1493, 0 0 40px #ff69b4, 3px 3px 6px rgba(0,0,0,0.9);
    z-index: 500;
    pointer-events: none;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 3px;
    text-align: center;
    white-space: nowrap;
}

#invite-message.active {
    display: block !important;
    animation: invitePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), inviteFade 2.5s ease-out forwards;
}

@keyframes invitePop {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes inviteFade {
    0% { opacity: 0; }
    15% { opacity: 1; }
    65% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -65%) scale(1.05); }
}

/* Wanted Stars (GTA style) */
#wanted-stars {
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 32px;
    z-index: 400;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(255,0,0,0.6), 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 4px;
    filter: drop-shadow(0 0 6px rgba(0,0,255,0.4));
}

#wanted-stars.wanted {
    animation: wantedFlash 0.8s ease-in-out infinite;
}

@keyframes wantedFlash {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(255,0,0,0.8)) drop-shadow(0 0 16px rgba(255,0,0,0.4));
    }
    50% { 
        filter: drop-shadow(0 0 8px rgba(0,0,255,0.8)) drop-shadow(0 0 16px rgba(0,0,255,0.4));
    }
}

/* Ammo Display */
#ammo-display {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 300;
    pointer-events: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
}

#ammo-icon {
    font-size: 24px;
}

#ammo-count {
    font-size: 22px;
    color: #FFD700;
}

#ammo-count.low {
    color: #ff4444;
    animation: ammoLow 0.5s ease-in-out infinite;
}

#ammo-count.empty {
    color: #ff0000;
    animation: ammoEmpty 0.3s ease-in-out infinite;
}

@keyframes ammoLow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes ammoEmpty {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

#reload-text {
    font-size: 16px;
    color: #ffaa00;
    animation: reloadPulse 0.6s ease-in-out infinite;
}

@keyframes reloadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==================== CRYPTO LIQUOR STORE ==================== */

/* Shop Prompt (near store) */
#shop-prompt {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 20, 10, 0.9);
    color: #00ff88;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    padding: 12px 28px;
    border-radius: 8px;
    border: 2px solid #00ff88;
    text-shadow: 0 0 8px rgba(0,255,136,0.6);
    box-shadow: 0 0 20px rgba(0,255,136,0.3), inset 0 0 20px rgba(0,255,136,0.1);
    z-index: 300;
    pointer-events: none;
    animation: shopPromptPulse 1.5s ease-in-out infinite;
    white-space: nowrap;
}

#shop-prompt strong {
    color: #ffd700;
    font-size: 22px;
    text-shadow: 0 0 8px rgba(255,215,0,0.8);
}

@keyframes shopPromptPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); box-shadow: 0 0 20px rgba(0,255,136,0.3); }
    50% { opacity: 0.9; transform: translateX(-50%) scale(1.02); box-shadow: 0 0 30px rgba(0,255,136,0.5); }
}

/* Shop Menu Overlay */
#shop-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(10,5,20,0.95) 0%, rgba(20,10,40,0.95) 100%);
    border: 2px solid #00ff88;
    border-radius: 16px;
    padding: 0;
    z-index: 600;
    min-width: 420px;
    box-shadow: 0 0 40px rgba(0,255,136,0.4), 0 0 80px rgba(0,255,136,0.15), inset 0 0 30px rgba(0,255,136,0.05);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    cursor: default;
}

#shop-menu .shop-header {
    background: linear-gradient(90deg, #0a0a1a, #1a0a2e, #0a0a1a);
    padding: 16px 24px;
    text-align: center;
    border-bottom: 2px solid #00ff88;
}

#shop-menu .shop-title {
    font-size: 28px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    letter-spacing: 3px;
    animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88; }
    92% { opacity: 1; }
    93% { opacity: 0.7; text-shadow: 0 0 5px #00ff88; }
    94% { opacity: 1; text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
}

#shop-menu .shop-balance {
    font-size: 18px;
    color: #ffd700;
    margin-top: 6px;
    text-shadow: 0 0 6px rgba(255,215,0,0.5);
}

#shop-menu .shop-items {
    padding: 16px 20px;
}

#shop-menu .shop-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(0,255,136,0.05);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 8px;
    transition: all 0.15s;
    cursor: pointer;
}

#shop-menu .shop-item:hover {
    background: rgba(0,255,136,0.15);
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0,255,136,0.2);
}

#shop-menu .shop-item.cant-afford {
    opacity: 0.4;
    border-color: rgba(255,0,0,0.3);
}

#shop-menu .shop-item.cant-afford:hover {
    background: rgba(255,0,0,0.1);
    border-color: rgba(255,0,0,0.5);
}

#shop-menu .shop-item .item-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0,255,136,0.2);
    border: 1px solid #00ff88;
    border-radius: 6px;
    color: #00ff88;
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

#shop-menu .shop-item .item-emoji {
    font-size: 28px;
    margin-right: 12px;
    flex-shrink: 0;
}

#shop-menu .shop-item .item-info {
    flex: 1;
}

#shop-menu .shop-item .item-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

#shop-menu .shop-item .item-desc {
    color: #88aacc;
    font-size: 12px;
    margin-top: 2px;
}

#shop-menu .shop-item .item-price {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255,215,0,0.4);
    flex-shrink: 0;
    margin-left: 12px;
}

#shop-menu .shop-footer {
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,255,136,0.2);
    background: rgba(0,0,0,0.3);
}

#shop-menu .shop-footer span {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

#shop-menu .shop-footer strong {
    color: #00ff88;
}

/* ==================== MISSION SYSTEM ==================== */

/* Mission Tracker (top center HUD) */
#mission-tracker {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 380;
    pointer-events: none;
    display: none;
}

#mission-tracker-inner {
    background: linear-gradient(135deg, rgba(10, 5, 20, 0.85) 0%, rgba(30, 10, 40, 0.85) 100%);
    border: 2px solid #ff69b4;
    border-radius: 10px;
    padding: 8px 20px 10px;
    text-align: center;
    min-width: 260px;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3), 0 0 40px rgba(255, 105, 180, 0.1);
}

#mission-tracker-label {
    font-size: 11px;
    color: rgba(255, 105, 180, 0.7);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

#mission-tracker-title {
    font-size: 16px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 105, 180, 0.5);
    margin-bottom: 6px;
}

#mission-tracker-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

#mission-tracker-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff1493, #ff69b4, #ff1493);
    border-radius: 4px;
    transition: width 0.4s ease-out;
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.6);
}

#mission-tracker-count {
    font-size: 13px;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-top: 4px;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

/* Flash effect when progress updates */
#mission-tracker.flash #mission-tracker-inner {
    animation: missionFlash 0.4s ease-out;
}

@keyframes missionFlash {
    0% { border-color: #ffffff; box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    100% { border-color: #ff69b4; box-shadow: 0 0 20px rgba(255, 105, 180, 0.3); }
}

/* Mission Complete Banner */
#mission-complete-banner {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    z-index: 700;
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Impact', 'Arial Black', sans-serif;
    opacity: 0;
}

#mission-complete-banner.active {
    display: flex !important;
    animation: missionCompletePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               missionCompleteFade 3.5s ease-out forwards;
}

#mission-complete-emoji {
    font-size: 64px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    margin-bottom: 8px;
}

#mission-complete-text {
    font-size: 52px;
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700, 0 0 30px #ff8c00, 0 0 60px #ffd700, 3px 3px 8px rgba(0,0,0,0.9);
    letter-spacing: 4px;
    text-transform: uppercase;
}

#mission-complete-reward {
    font-size: 28px;
    color: #00ff44;
    text-shadow: 0 0 10px #00ff44, 2px 2px 4px rgba(0,0,0,0.8);
    margin-top: 8px;
    letter-spacing: 2px;
}

@keyframes missionCompletePop {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes missionCompleteFade {
    0% { opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); }
}

/* New Mission Banner */
#mission-new-banner {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 700;
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Courier New', monospace;
    opacity: 0;
}

#mission-new-banner.active {
    display: flex !important;
    animation: missionNewSlide 0.5s ease-out forwards,
               missionNewFade 3.5s ease-out forwards;
}

#mission-new-label {
    font-size: 16px;
    color: #ff69b4;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.6);
    margin-bottom: 4px;
}

#mission-new-title {
    font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5), 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

#mission-new-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@keyframes missionNewSlide {
    0% { transform: translate(-50%, -30%) scale(0.8); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes missionNewFade {
    0% { opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Final Banner - PIMP KING */
#mission-final-banner {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    z-index: 800;
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Impact', 'Arial Black', sans-serif;
    opacity: 0;
}

#mission-final-banner.active {
    display: flex !important;
    animation: missionFinalPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               missionFinalFade 6s ease-out forwards;
}

#mission-final-crown {
    font-size: 96px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    animation: crownBounce 1s ease-in-out infinite;
}

#mission-final-text {
    font-size: 72px;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #ff8c00, 0 0 80px #ffd700, 4px 4px 10px rgba(0,0,0,0.9);
    letter-spacing: 8px;
    text-transform: uppercase;
}

#mission-final-sub {
    font-size: 22px;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.6), 2px 2px 4px rgba(0,0,0,0.8);
    margin-top: 8px;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

@keyframes missionFinalPop {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    60% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes missionFinalFade {
    0% { opacity: 0; }
    12% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-8px) rotate(3deg); }
}

/* ==================== MINIMAP ==================== */
#minimap-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 350;
    pointer-events: none;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(68, 255, 255, 0.6);
    box-shadow: 0 0 12px rgba(68, 255, 255, 0.3), 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

#minimap {
    display: block;
    border-radius: 50%;
}

/* ==================== SETTINGS OVERLAY ==================== */
#settings-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.settings-panel {
    background: linear-gradient(135deg, rgba(20, 10, 40, 0.98) 0%, rgba(40, 15, 60, 0.98) 100%);
    border: 2px solid #ff69b4;
    border-radius: 16px;
    width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.3), 0 0 80px rgba(255, 105, 180, 0.1);
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.settings-header {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 105, 180, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

.settings-header h2 {
    color: #ff69b4;
    font-size: 28px;
    margin: 0;
    text-shadow: 0 0 10px #ff69b4;
    letter-spacing: 3px;
}

.settings-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 6px;
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: #ff69b4 rgba(0,0,0,0.3);
}

.settings-body::-webkit-scrollbar {
    width: 6px;
}
.settings-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
.settings-body::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 3px;
}

.settings-category {
    color: #ff69b4;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 8px 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
    margin-bottom: 4px;
}

.settings-row {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 2px 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.15s;
    cursor: pointer;
}

.settings-row:hover {
    background: rgba(255, 105, 180, 0.08);
    border-color: rgba(255, 105, 180, 0.2);
}

.settings-row.selected {
    background: rgba(255, 105, 180, 0.15);
    border-color: #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

.settings-action-label {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

.settings-binding {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 4px 12px;
    margin-left: 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.settings-kb {
    background: rgba(100, 100, 255, 0.15);
    border: 1px solid rgba(100, 100, 255, 0.4);
    color: #aaaaff;
}

.settings-kb:hover {
    background: rgba(100, 100, 255, 0.3);
    border-color: #aaaaff;
    box-shadow: 0 0 8px rgba(100, 100, 255, 0.3);
}

.settings-gp {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.settings-gp:hover {
    background: rgba(0, 255, 136, 0.25);
    border-color: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.settings-footer {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid rgba(255, 105, 180, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

.settings-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.settings-btn-primary {
    background: rgba(255, 105, 180, 0.2);
    border-color: #ff69b4;
    color: #ff69b4;
}

.settings-btn-primary:hover {
    background: rgba(255, 105, 180, 0.35);
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.3);
}

/* Listening overlay */
.settings-listening-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listening-box {
    text-align: center;
    padding: 40px 60px;
    border: 2px solid #ffaa00;
    border-radius: 16px;
    background: rgba(40, 20, 0, 0.9);
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.3);
}

.listening-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffaa00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    animation: listeningPulse 1s ease-in-out infinite;
}

.listening-hint {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

@keyframes listeningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Settings button on start screen */
#settings-btn-start {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: rgba(255, 105, 180, 0.2);
    border: 2px solid #ff69b4;
    border-radius: 8px;
    color: #ff69b4;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 0 6px rgba(255, 105, 180, 0.5);
    pointer-events: all;
}

#settings-btn-start:hover {
    background: rgba(255, 105, 180, 0.35);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
    transform: scale(1.05);
}
