:root {
    --bg-color: #111;
    --neon-green: #39ff14;
    --scanline-color: rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Press Start 2P', system-ui, sans-serif;
    color: var(--neon-green);
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(var(--scanline-color) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    text-align: center;
}

#start-screen h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0px #ff00ff, -2px -2px 0px #00ffff;
}

.blink {
    animation: blinker 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes blinker {
    50% { opacity: 0; }
}

#start-btn {
    font-family: 'Press Start 2P', system-ui;
    background: transparent;
    color: var(--neon-green);
    border: 4px solid var(--neon-green);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

#start-btn:hover {
    background: var(--neon-green);
    color: var(--bg-color);
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.hidden {
    display: none !important;
}

#score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #000;
}

#dock {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.dock-slot {
    width: 60px;
    height: 60px;
    border: 4px dashed rgba(57, 255, 20, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    /* Adding some retro box shadow */
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.2);
}

.dock-slot.filled {
    border-style: solid;
    border-color: var(--neon-green);
    color: #fff;
    text-shadow: 0 0 10px var(--neon-green);
    animation: pop 0.3s ease-out;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

#message-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: yellow;
    text-shadow: 4px 4px 0px red;
    text-align: center;
    pointer-events: auto;
}

#message-area p { margin: 0; }

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}
