/* ==========================================================================
   AZƏRGUESSER 360° - Stylesheet
   Full 360-degree interactive panorama viewport, floating HUD & radar map
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --primary-neon: #00f0ff;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --glass-bg: rgba(10, 14, 24, 0.85);
    --border-glass: rgba(255, 255, 255, 0.12);
}

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

body {
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    user-select: none;
}

/* Glassmorphism helpers */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
}

/* 360 Panorama Viewport */
.panorama-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
    cursor: grab;
}

.panorama-viewport:active {
    cursor: grabbing;
}

#panorama-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 360 Degree Drag Hint Pill */
.drag-hint-pill {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 35;
    pointer-events: none;
    animation: fadePulse 3s infinite ease-in-out;
}

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

/* Rotating Compass */
.compass-dial {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 14, 24, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s linear;
}

.compass-arrow-north {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 14px solid #f43f5e;
    position: absolute;
    top: 6px;
}

.compass-arrow-south {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 14px solid #94a3b8;
    position: absolute;
    bottom: 6px;
}

/* Floating Mini-Map (Radar) */
.minimap-wrapper {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    width: 320px;
    height: 240px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-glass);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.92;
}

.minimap-wrapper:hover,
.minimap-wrapper.expanded {
    width: 520px;
    height: 380px;
    opacity: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.25);
}

@media (max-width: 640px) {
    .minimap-wrapper {
        width: calc(100vw - 32px);
        height: 220px;
        bottom: 16px;
        right: 16px;
    }
    .minimap-wrapper:hover,
    .minimap-wrapper.expanded {
        width: calc(100vw - 32px);
        height: 340px;
    }
}

#map {
    width: 100%;
    height: 100%;
    background-color: #0d1527 !important;
}

/* Custom Marker Pins */
.guess-marker {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: #f43f5e;
    position: absolute;
    transform: rotate(-45deg);
    margin: -24px 0 0 -12px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: dropBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.actual-marker {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: #10b981;
    position: absolute;
    transform: rotate(-45deg);
    margin: -28px 0 0 -14px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
    animation: dropBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dropBounce {
    0% { transform: translateY(-30px) rotate(-45deg) scale(0.5); opacity: 0; }
    70% { transform: translateY(4px) rotate(-45deg) scale(1.1); }
    100% { transform: translateY(0) rotate(-45deg) scale(1); opacity: 1; }
}

/* Score Pulse animation */
@keyframes scoreGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); text-shadow: 0 0 25px rgba(245, 158, 11, 0.9); }
    100% { transform: scale(1); }
}

.animate-score-gain {
    animation: scoreGlow 0.8s ease-out;
}

/* Confetti canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

/* Toast */
#toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#toast.show {
    transform: translate(-50%, 0);
}
