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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a0a1e;
    font-family: 'Press Start 2P', monospace;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a1a2e 0%, #1a0a1e 50%, #2a1a2e 100%);
}

#canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 4px solid #4a2a4e;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(255, 107, 157, 0.3),
        0 0 60px rgba(200, 160, 220, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

#ui-overlay {
    position: absolute;
    pointer-events: none;
}

/* Scanline overlay effect */
#canvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* Prevent text selection */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    #canvas {
        border-width: 2px;
    }
}