/* ===========================================
   Space Boy! — Styles
   =========================================== */

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

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: monospace;
    cursor: crosshair;
}

#game-wrapper {
    position: relative;
    /* Fit the game to the viewport while preserving 16:9.
       Internal canvas resolution stays 960x540 — mouse coords are rescaled
       in input.js so aiming still lines up after CSS scaling. */
    width: min(96vw, calc(96vh * 16 / 9));
    height: min(96vh, calc(96vw * 9 / 16));
}

canvas#game-canvas {
    display: block;
    border: 2px solid #1a1a2e;
    width: 100%;
    height: 100%;
}

#start-screen,
#death-screen,
#win-screen,
#mobile-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    z-index: 10;
}

#start-screen h1,
#death-screen h1,
#win-screen h1,
#mobile-screen h1 {
    font-size: 48px;
    color: #00ccff;
    text-shadow: 0 0 20px rgba(0, 204, 255, 0.6);
    margin-bottom: 20px;
}

#start-screen p,
#death-screen p,
#win-screen p,
#mobile-screen p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 8px;
}

#mobile-screen {
    z-index: 100;
}

.hidden {
    display: none !important;
}
