* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    cursor: crosshair;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.icon-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    color: #00ff00;
    width: 36px;
    height: 36px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.icon-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px #00ff00;
    transform: scale(1.1);
}

#infoPanel {
    position: fixed;
    top: 10px;
    left: 56px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    padding: 15px;
    border: 2px solid #00ff00;
    backdrop-filter: blur(10px);
    max-width: 280px;
    transition: all 0.3s ease;
}

#infoPanel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
}

#infoPanel h1 {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

#infoPanel p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #fff;
}

#infoPanel p.hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    margin-top: 10px;
}

#controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#controls button {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#controls button:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
}

#controls button:active {
    transform: scale(0.95);
}

/* Retro scanline effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}