body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #050510;
    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
}

#game-container {
    position: relative;
    /* Dimensions handled by JS for responsiveness */
    /* width: 320px; */
    /* height: 568px; */
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.5);
    border-radius: 5px;
    overflow: hidden;
    background-color: #000;
}

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

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

#score {
    position: absolute;
    top: 10%;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    z-index: 10;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    text-align: center;
    color: #fff;
}

.hidden {
    display: none;
}

h1 {
    font-size: 1.5rem;
    color: #00ffea;
    text-shadow: 2px 2px #ff00de;
    margin-bottom: 2rem;
}

button {
    background: linear-gradient(45deg, #00ffea, #ff00de);
    border: none;
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
    text-transform: uppercase;
}

button:active {
    transform: scale(0.95);
}

.home-btn {
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding: 10px;
    border: 1px solid #555;
    background: #222;
}

p {
    line-height: 1.5;
    margin-bottom: 2rem;
}