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

body {
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: monospace;
    overflow: hidden;
}

#game-container {
    position: relative;
    border: 4px solid #3d2a4d;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(155, 107, 138, 0.3),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #2d1f3d;
}

#scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 10;
}

#scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

#footer-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: #9b6b8a;
    text-decoration: none;
    font-size: 12px;
    font-family: monospace;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 100;
}

#footer-link:hover {
    opacity: 1;
    color: #ffd93d;
}

@media (max-width: 600px) {
    #game-container {
        border-width: 2px;
    }
    
    #footer-link {
        bottom: 5px;
        right: 5px;
        font-size: 10px;
    }
}