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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a1628;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.compass-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.compass {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0f2a4a, #0a1628);
    box-shadow: 
        0 0 60px rgba(0, 200, 255, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.compass-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.direction {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a9eff;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.direction[data-label="N"] {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.direction[data-label="E"] {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.direction[data-label="S"] {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.direction[data-label="W"] {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    animation: drift 10s ease-in-out infinite;
    transform-origin: center;
}

.needle-pointer {
    position: absolute;
    width: 6px;
    height: 120px;
    background: linear-gradient(to top, #ff4444, #ff6b6b);
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
    box-shadow: 
        0 0 15px rgba(255, 68, 68, 0.6),
        0 0 30px rgba(255, 68, 68, 0.3);
}

.needle-pointer::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 80px;
    background: linear-gradient(to bottom, #666, #333);
    bottom: -80px;
    left: 0;
    border-radius: 0 0 3px 3px;
    box-shadow: 
        0 0 10px rgba(102, 102, 102, 0.3),
        0 0 20px rgba(102, 102, 102, 0.2);
}

.needle-shadow {
    position: absolute;
    width: 6px;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    top: -115px;
    left: 55%;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
    filter: blur(4px);
}

.center-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(145deg, #3a8eea, #1e5bb8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 15px rgba(58, 142, 234, 0.8),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

@keyframes drift {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) rotate(15deg);
    }
    50% {
        transform: translateX(-50%) rotate(-10deg);
    }
    75% {
        transform: translateX(-50%) rotate(8deg);
    }
}

.title {
    color: #4a9eff;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.6);
    letter-spacing: 0.3em;
}

@media (max-width: 768px) {
    .compass {
        width: 250px;
        height: 250px;
    }
    
    .title {
        font-size: 1.4rem;
    }
    
    .direction {
        font-size: 1.2rem;
    }
}