:root {
    --primary: #00f0ff;
    /* Cyan Neon */
    --secondary: #ff0055;
    /* Pink Neon */
    --bg-deep: #050508;
    /* Void Black */
    --text: #ffffff;
    --font-mono: 'Oxanium', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-sans);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* UI Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.content {
    text-align: center;
    max-width: 500px;
}

/* Typography */
h1.title {
    font-family: var(--font-mono);
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0;
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.glitch {
    position: relative;
    animation: glitch 1s infinite alternate;
}

.subtitle {
    font-size: 18px;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0.8;
}

.instructions {
    margin-top: 40px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.key {
    display: inline-block;
    border: 1px solid #444;
    padding: 2px 8px;
    border-radius: 4px;
    background: #111;
    color: #aaa;
    font-family: monospace;
}

/* Buttons */
.game-btn {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 24px;
    padding: 20px 60px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-btn:hover {
    background: var(--text);
    color: var(--bg-deep);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* HUD */
#hud {
    position: absolute;
    top: 40px;
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 5;
}

.score-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #444;
    display: block;
}

#score,
#finalScore {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Animations */
@keyframes glitch {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    h1.title {
        font-size: 50px;
    }

    .game-btn {
        padding: 15px 40px;
        font-size: 18px;
    }
}

/* ========== PROFESSIONAL EDITOR STYLES ========== */
#editorHud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
}

.editor-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid #333;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    pointer-events: all;
}

.toolbar-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toolbar-label {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    letter-spacing: 2px;
}

.orb-btn,
.tool-btn {
    background: transparent;
    border: 2px solid #444;
    color: #aaa;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
}

.orb-btn:hover,
.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.orb-btn.active {
    background: rgba(0, 240, 255, 0.2);
    color: #fff;
    border-color: var(--primary);
}

.tool-btn.save-btn {
    border-color: #00ff88;
    color: #00ff88;
}

.tool-btn.danger-btn {
    border-color: #ff0055;
    color: #ff0055;
}

.tool-btn.test-btn {
    border-color: #ffff00;
    color: #ffff00;
}

.editor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 12px;
    color: #666;
    pointer-events: all;
}

.editor-info span {
    display: inline-block;
}

#editorCoords,
#orbCount {
    font-family: var(--font-mono);
    color: var(--primary);
}