:root {
    --primary: #E84393;
    --secondary: #FD79A8;
    --background: #111;
    --text: #fff;
    --shadow: rgba(232, 67, 147, 0.5);
    --font: 'Courier New', Courier, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

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

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 800px;
    aspect-ratio: 16/9;
    box-shadow: 0 0 20px var(--shadow);
    border: 2px solid var(--primary);
    background: #000;
}

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%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    pointer-events: auto;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.title {
    font-size: 4rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--shadow), 0 0 20px var(--shadow);
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 3rem;
    text-shadow: 0 0 5px var(--secondary);
}

.btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-family: var(--font);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px var(--shadow);
}

.btn:hover {
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 0 20px var(--shadow);
}

.controls-info {
    margin-top: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--secondary);
    text-shadow: 0 0 5px var(--secondary);
    pointer-events: none;
    z-index: 5;
}

.stats p {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }
    #game-container {
        border: none;
        max-width: 100%;
        max-height: 100%;
    }
}
