:root {
    --bg-color: #f4f4f5;
    --text-color: #111111;
    --player-color: #2962ff;
    --wall-color: #888899;
    --trap-color: #e53935;
    --exit-color: #00ff00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    /* Fully disable scrollbars, JS handles camera */
    width: 100vw;
    height: 100vh;
}

#ui-layer {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

#level-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#message {
    font-size: 18px;
    margin-top: 8px;
    font-weight: 600;
    color: #555566;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
}

#reveal-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(244, 244, 245, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 2s ease;
}

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

#reveal-title {
    font-size: 32px;
    margin-bottom: 20px;
}

#reveal-trait {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

#reveal-description {
    font-size: 20px;
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 50px;
}

#restart-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: var(--bg-color);
    background-color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(244, 244, 245, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

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

.start-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.start-prompt {
    font-size: 24px;
    font-weight: 600;
    color: #444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}