/* Chemical Apparatus Doodles */
.chemical-doodles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.doodle {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    pointer-events: all;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: fall linear infinite;
}

.doodle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.doodle svg {
    width: 100%;
    height: 100%;
    stroke: #667eea;
    stroke-width: 2;
    fill: none;
}

/* Falling Animation */
@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(102, 126, 234, 0.95);
}

/* Royal appreciation symbols with unique colors */
.doodle.crown svg { stroke: #ffd700; fill: rgba(255, 215, 0, 0.2); }
.doodle.star svg { stroke: #ff6b6b; fill: rgba(255, 107, 107, 0.2); }
.doodle.heart svg { stroke: #ff69b4; fill: rgba(255, 105, 180, 0.2); }
.doodle.diamond svg { stroke: #00d4ff; fill: rgba(0, 212, 255, 0.2); }
.doodle.trophy svg { stroke: #ffa500; fill: rgba(255, 165, 0, 0.2); }
.doodle.flower svg { stroke: #ff1493; fill: rgba(255, 20, 147, 0.2); }
.doodle.sun svg { stroke: #ffeb3b; fill: rgba(255, 235, 59, 0.2); }
.doodle.gift svg { stroke: #9c27b0; fill: rgba(156, 39, 176, 0.2); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .doodle {
        width: 30px;
        height: 30px;
        animation: fall linear infinite;
    }
    
    .tooltip {
        font-size: 11px;
        padding: 6px 10px;
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .doodle {
        width: 25px;
        height: 25px;
        animation: fall linear infinite;
    }
    
    .tooltip {
        font-size: 10px;
        padding: 5px 8px;
        max-width: 180px;
    }
}

/* Dark mode adjustments */
body.dark-mode .tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

body.dark-mode .tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.95);
}