:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #9333ea;
    --accent-glow: rgba(147, 51, 234, 0.5);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    /* Let clicks pass through to potential canvas interactions if added later */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
}

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

h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px var(--accent-glow);
}

p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.back-btn:hover {
    color: white;
    background: rgba(147, 51, 234, 0.5);
    transform: translateX(-2px);
}

button {
    pointer-events: auto;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
    background: #a855f7;
}

.key-display {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-size: 5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 30px var(--accent-glow);
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

.key-display.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}