/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 1); }
::-webkit-scrollbar-thumb { background: rgba(51, 65, 85, 1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(71, 85, 105, 1); }

/* Debug Terminal Scrollbar */
.debug-scroll::-webkit-scrollbar { width: 4px; }
.debug-scroll::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.5); }

/* Custom Leaflet Map Markers */
.map-marker {
    background-color: #3b82f6;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(59,130,246,0.6);
    transition: all 0.3s ease;
}
.map-marker.active {
    background-color: #10b981;
    box-shadow: 0 0 15px rgba(16,185,129,0.9);
    transform: scale(1.3);
    animation: pulse-marker 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-marker {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* Map Cursor Overrides */
.leaflet-container {
    cursor: crosshair !important;
}
.leaflet-dragging, .leaflet-dragging .leaflet-container {
    cursor: grabbing !important;
}

/* Game Map Resizer Handle */
.resize-handle {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, transparent 50%, #10b981 50%);
    cursor: nwse-resize;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 50;
    border-bottom-right-radius: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.resize-handle:hover { opacity: 1; }

/* Submit Button Pulse Animation */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); }
}
.animate-highlight {
    animation: highlight-pulse 0.5s ease-out;
}

.writing-vertical {
    writing-mode: vertical-rl;
}

@keyframes rainbow-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-rainbow {
    background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
    background-size: 1800% 1800%;
    animation: rainbow-shine 0.5s ease;
    color: white !important;
    border: none;
}
