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

body {
    background: #0a0a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 3px solid #2a2a5a;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(33, 150, 243, 0.15), 0 0 80px rgba(33, 150, 243, 0.05);
}

canvas {
    display: block;
    background: #1a1a2e;
    image-rendering: auto;
}

#name-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

#name-input {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 20px;
    width: 320px;
    background: #0d1b2a;
    border: 2px solid #3a7bd5;
    border-radius: 4px;
    color: #e0e0e0;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

#name-input:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 12px rgba(100, 181, 246, 0.3);
}

#name-input::placeholder {
    color: #546e7a;
    font-size: 12px;
}

#start-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    padding: 14px 36px;
    background: linear-gradient(180deg, #e91e63, #c2185b);
    color: #fff;
    border: 2px solid #f06292;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#start-btn:hover {
    background: linear-gradient(180deg, #f06292, #e91e63);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
}

#start-btn:active {
    transform: translateY(0);
}

#footer {
    margin-top: 12px;
    text-align: center;
}

#footer a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #546e7a;
    text-decoration: none;
    transition: color 0.2s;
}

#footer a:hover {
    color: #90a4ae;
}

@media (max-width: 820px) {
    #game-container {
        width: 100vw;
        height: calc(100vw * 0.75);
        max-width: 800px;
        max-height: 600px;
    }
    canvas {
        width: 100%;
        height: 100%;
    }
    #name-input {
        width: 260px;
        font-size: 14px;
    }
    #start-btn {
        font-size: 12px;
        padding: 12px 28px;
    }
}