:root {
    --bg-color: #0a0a1a;
    --text-color: #e0e0ff;
    --primary-color: #00f3ff;
    --secondary-color: #ff00ea;
    --danger-color: #ff3333;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 800px;
    max-height: 1000px;
    background: radial-gradient(circle at center, #1a1a3a 0%, #050510 100%);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    overflow: hidden;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

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

#hud {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-color);
    z-index: 10;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    z-index: 20;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    text-align: center;
}

h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--danger-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--danger-color);
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
}

button {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3) inset, 0 0 15px rgba(0, 243, 255, 0.3);
}

button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6) inset, 0 0 30px rgba(0, 243, 255, 0.6);
}

#input-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    z-index: 10;
}

.game-input {
    width: 100%;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.game-input:focus {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    border-color: #fff;
}

/* Hide number arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
