.floating-text {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1000;
    transform-origin: center;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1);
    }
}

.chat-message {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

.chat-name {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 12px;
}

.chat-text {
    color: white;
}

.chat-message.local .chat-name {
    color: #90EE90;
}

/* Compact Inventory Styles (integrated with miner journal) */
.open-inventory-btn {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.open-inventory-btn:hover {
    background: linear-gradient(135deg, #A0522D, #FF8C00);
    transform: scale(1.05);
}

/* Compass Strip Styles */
#compass {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: 200px;
    height: 30px;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    visibility: visible;
    display: block;
}

.compass-strip {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
    border: 2px solid #FFD700;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.compass-directions-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.compass-direction {
    color: #FFD700;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.compass-needle-strip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #FF4444, #FFFFFF);
    transform: translate(-50%, -50%);
    border-radius: 1px;
    box-shadow: 0 0 3px rgba(255, 68, 68, 0.8);
    z-index: 10;
}

/* Radar Overlay Styles */
.compass-radar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.radar-dots-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.radar-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.radar-dot.radar-gold {
    background: #FFD700;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.8);
}

.radar-dot.radar-silver {
    background: #C0C0C0;
    box-shadow: 0 0 4px rgba(192, 192, 192, 0.8);
}

.radar-dot.radar-copper {
    background: #B87333;
    box-shadow: 0 0 4px rgba(184, 115, 51, 0.8);
}

.radar-dot.radar-prismatic {
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3);
    background-size: 200% 200%;
    animation: prismaticPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    opacity: 1 !important; /* Always bright */
}

@keyframes prismaticPulse {
    0%, 100% {
        background-position: 0% 50%;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: translate(-50%, -50%) scale(1.2);
    }
}


/* Prismatic compass sparkle effect - TEST: make it more obvious */
#compass.prismatic-active .compass-strip {
    border: 3px solid #FF00FF !important;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 100, 255, 0.3),
        0 0 30px rgba(100, 255, 255, 0.2);
    animation: prismaticCompassGlow 3s ease-in-out infinite;
}

#compass.prismatic-active .compass-strip::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent, 
        rgba(255, 100, 255, 0.1), 
        transparent,
        rgba(100, 255, 255, 0.1),
        transparent);
    background-size: 400% 400%;
    border-radius: 17px;
    animation: prismaticCompassSparkle 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes prismaticCompassGlow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 100, 255, 0.3),
            0 0 30px rgba(100, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.7),
            0 0 25px rgba(255, 100, 255, 0.5),
            0 0 35px rgba(100, 255, 255, 0.4);
    }
}

@keyframes prismaticCompassSparkle {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 400% 400%;
    }
}