@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --primary-color: #ff0055;
    --secondary-color: #00ffaa;
    --bg-color: #1a1a2e;
    --text-color: #ffffff;
    --font-main: 'Press Start 2P', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    position: relative;
    width: 800px;
    height: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background: #000;
    border: 4px solid var(--secondary-color);
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: auto;
    z-index: 10;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px #fff;
    line-height: 1.5;
}

p {
    font-size: 14px;
    margin-bottom: 30px;
    color: #ccc;
}

button {
    background: var(--secondary-color);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-main);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 4px 4px 0px #fff;
}

button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #fff;
}

button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #fff;
}

.controls {
    margin-top: 40px;
    font-size: 10px;
    opacity: 0.7;
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
}