/* Cosmic Catcher - I made this myself */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a1d4a 0%, #080a1f 100%);
    color: #eef1ff;
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    padding-bottom: 20px;
}

header { padding: 30px 10px 10px; }
header h1 { 
    font-size: 42px; 
    letter-spacing: 1px;
    text-shadow: 0 0 12px #6c7bff;
}
header p { color: #9aa6ff; margin-top: 6px; }

.game-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 820px;
    margin: 18px auto;
    padding: 0 12px;
}

/* I wanted each box to look like a little console */
.info-box {
    flex: 1;
    padding: 12px 8px;
    background: #121431;
    border: 2px solid #3d4ac7;
    border-bottom-width: 5px;
    border-radius: 12px;
}
.info-box span { display:block; font-size:11px; opacity:0.7; text-transform:uppercase; letter-spacing:1px; }
.info-box strong { display:block; font-size:22px; margin-top:4px; }

#lives { letter-spacing:2px; }

.game-container {
    position: relative;
    width: 800px;
    max-width: 92%;
    margin: 0 auto;
}

#gameCanvas {
    width: 100%;
    background: #040514;
    border: 3px solid #4a5cff;
    border-radius: 18px;
    box-shadow: 0 8px 0 #1e2470, 0 0 30px rgba(74,92,255,0.2);
}

.game-screen {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    max-width: 400px;
    background: #0d0f2e;
    border: 2px dashed #6a78ff; /* dashed because i liked it more */
    border-radius: 20px;
    padding: 28px 20px;
}

.game-screen h2 { font-size: 28px; }
.game-screen p { color:#b8c0ff; line-height:1.5; margin:14px 0 18px; font-size:15px; }
#finalScore { font-size: 48px; color:#ffdd55; }

button {
    padding: 12px 24px;
    background: #ffdd55;
    color: #121431;
    border: none;
    border-radius: 10px;
    border-bottom: 4px solid #c9a800;
    font-weight: 700;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(2px); border-bottom-width: 2px; }

.controls { margin-top:14px; color:#7e89c0; font-size:13px; }
footer { margin-top:20px; color:#5a64a0; font-size:12px; }
.hidden { display:none !important; }

@media(max-width:600px){
    header h1{font-size:28px}
    .game-info{display:grid; grid-template-columns:1fr 1fr}
}