:root {
    --bg: #050505;
    --primary: #00ff9d;
    --secondary: #008f5d;
    --accent: #ff0055;
    --text: #e0e0e0;
    --panel-bg: rgba(10, 20, 15, 0.85);
    --border: 1px solid #003322;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 100;
}

.ui-layer {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: 60px 1fr;
    height: 100%;
    position: relative;
    z-index: 1;
}

header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: var(--border);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.logo {
    font-size: 0.8rem;
    color: var(--secondary);
}

h1 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary);
}

.blink {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

main {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0f0d 0%, #000 100%);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

aside.controls {
    border-left: var(--border);
    background: var(--panel-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.75rem;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
}

label span {
    color: var(--primary);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #333;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

select {
    background: #000;
    color: var(--primary);
    border: var(--border);
    padding: 8px;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
}

button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

button:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

.log-output {
    margin-top: auto;
    height: 150px;
    border-top: var(--border);
    padding-top: 10px;
    font-size: 0.7rem;
    color: #666;
    overflow-y: auto;
    font-family: monospace;
}

.log-entry {
    margin-bottom: 4px;
}
.log-entry::before {
    content: "> ";
    color: var(--secondary);
}

@media (max-width: 768px) {
    .ui-layer {
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr auto;
    }
    aside.controls {
        height: 300px;
        overflow-y: auto;
        border-left: none;
        border-top: var(--border);
    }
}