body {
    margin: 0;
    background: #000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    color: white;
}

#tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tutorial-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    max-width: 500px;
    text-align: center;
}

#tutorial-content h2 {
    color: #0ff;
    margin-bottom: 20px;
}

.tutorial-step {
    margin: 15px 0;
    padding: 10px;
    border-left: 3px solid #f0f;
    text-align: left;
}

#start-game-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

#start-game-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
}

#victory-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(20, 20, 20, 0.95);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
    z-index: 90;
    transition: transform 0.3s ease;
}

#victory-message.show {
    transform: translate(-50%, -50%) scale(1);
}

#victory-message h2 {
    color: #0ff;
    margin-bottom: 15px;
}

#continue-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #f0f;
    color: #f0f;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

#continue-btn:hover {
    background: rgba(255, 0, 255, 0.1);
    transform: scale(1.05);
}

#logo {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    z-index: 10;
    animation: textGlitch 3s infinite;
}

@keyframes textGlitch {
    0%, 100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: none;
    }
    5% {
        opacity: 0.8;
        transform: translateX(3px) translateY(-2px);
        filter: hue-rotate(90deg);
    }
    10% {
        opacity: 0.9;
        transform: translateX(-4px) translateY(3px);
        filter: hue-rotate(-90deg);
    }
    15% {
        opacity: 0.7;
        transform: translateX(2px) translateY(-1px);
        filter: hue-rotate(180deg);
    }
    20% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: none;
    }
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#target-wave {
    height: 200px;
    border-bottom: 1px solid #333;
    position: relative;
}

#workspace {
    flex-grow: 1;
    position: relative;
}

#tools {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
}

.tool-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
    color: white;
    border: 1px solid currentColor;
}

.tool-btn.frequency { color: #0ff; }
.tool-btn.amplitude { color: #f0f; }
.tool-btn.phase { color: #ff0; }

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

        #credits {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: white;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
}

#credits:hover {
    opacity: 1;
    transform: scale(1.05);
}

#credits .heart {
    color: #f0f;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#score {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
}

#accuracy-meter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 10px;
    overflow: hidden;
}

#accuracy-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0ff, #f0f, #ff0);
    transition: width 0.3s ease;
}