:root {
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

body {
    font-family: var(--font-main);
    overflow: hidden;
    background: #000;
    width: 100vw;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #222;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Heads Up Display */
#score-display {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

#location-display {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#location-display i {
    color: #e74c3c;
}

/* Minimal Controls */
.controls-area {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
    z-index: 15;
}

.control-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.1s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:active,
.control-btn.pressed {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    border-color: rgba(255, 255, 255, 0.8);
}

/* No rotation needed for steering arrows */

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 20;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #f1c40f, #e67e22);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(243, 156, 18, 0.4));
}

h2 {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 10px;
}

p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.primary-btn {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    border: none;
    padding: 15px 50px;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    pointer-events: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.4);
}

.primary-btn:active {
    transform: scale(0.95);
}

.back-link {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    pointer-events: auto;
}

.back-link:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .controls-area {
        padding: 0 20px;
        bottom: 30px;
    }

    .control-btn {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}