:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
    font-family: var(--font-family);
    color: var(--text-color);
    touch-action: none; /* Prevent default touch actions like scrolling */
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#ui-overlay {
    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.8);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

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

#game-hud {
    background: none;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none; /* Let clicks pass through to canvas */
}

#game-hud button {
    pointer-events: auto;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

button:active {
    transform: translateY(1px);
}

.icon-btn {
    padding: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    position: absolute;
    top: 20px;
    right: 20px;
}

ul {
    list-style: none;
    padding: 0;
    text-align: center;
    font-size: 1.2rem;
}

li {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    width: 300px;
    display: flex;
    justify-content: space-between;
}
