body {
    margin: 0;
    padding: 0;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 4px solid #ecf0f1;
    border-radius: 8px;
}

canvas {
    display: block;
    background-color: #000;
}

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

#score, #lives {
    position: absolute;
    top: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

#score {
    left: 10px;
}

#lives {
    right: 10px;
}

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

.screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e91e63; /* Pink for magical girl vibe */
    text-shadow: 2px 2px 0 #fff;
}

.screen p {
    font-size: 24px;
    animation: blink 1s infinite;
}

.hidden {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
