:root {
    --primary: #9d4edd;
    --secondary: #7b2cbf;
    --bg: #0d0914;
    --text: #f8f9fa;
    --border: 1px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: var(--border) solid var(--primary);
    border-radius: 4px;
    transition: 0.2s;
    z-index: 100;
}

.back-btn:hover {
    background: rgba(123, 44, 191, 0.2);
    color: var(--text);
}

#game-container {
    position: relative;
    border: var(--border) solid var(--secondary);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.3);
    background: #000;
    overflow: hidden;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
    touch-action: none;
}

#hud {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    pointer-events: none;
}

#overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 9, 20, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

h1 {
    font-size: 3rem;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--primary);
    background: transparent;
    padding: 10px 20px;
    border: var(--border) solid var(--secondary);
    border-radius: 4px;
    margin: 0;
}

.instructions {
    margin-top: 20px;
    font-weight: 400;
    color: var(--text);
}
