@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #031103;
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
}

.sonar-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    border: 2px solid #0f0;
    box-shadow: inset 0 0 50px rgba(0, 255, 0, 0.2);
    /* Grid rings */
    background: 
        radial-gradient(circle at center, transparent 150px, rgba(0,255,0,0.2) 151px, transparent 152px),
        radial-gradient(circle at center, transparent 300px, rgba(0,255,0,0.2) 301px, transparent 302px),
        linear-gradient(90deg, transparent 49.5%, rgba(0,255,0,0.5) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(0,255,0,0.5) 50%, transparent 50.5%);
    background-size: 800px 800px;
    overflow: hidden;
}

.sweep {
    position: absolute;
    top: 0;
    left: 50%;
    width: 400px;
    height: 400px;
    transform-origin: 0 100%;
    background: conic-gradient(from 180deg at 0% 100%, transparent 0deg, rgba(0, 255, 0, 0.4) 60deg, #0f0 90deg);
    animation: spin 4s linear infinite;
    z-index: 10;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.blip {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 10px #0f0;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: opacity 0.2s;
}

.blip.ping {
    animation: fadeblip 2s forwards;
}

@keyframes fadeblip {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #0f0;
    font-size: 2rem;
    letter-spacing: 10px;
}
