:root {
    --primary: #00B894;
    --secondary: #55EFC4;
    --accent: #FD79A8;
    --background: #0A1A10;
    --surface: rgba(255, 255, 255, 0.1);
    --text: #FFFFFF;
    --border-radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

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

canvas {
    display: block;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

#header {
    display: flex;
    gap: 20px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    pointer-events: auto;
    align-self: flex-start;
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.value {
    font-size: 1.2rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

#controls {
    display: flex;
    gap: 10px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    pointer-events: auto;
    align-self: center;
    margin-bottom: 20px;
}

.btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
    margin-top: 0;
    color: var(--primary);
    font-size: 2rem;
}

p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #cbd5e1;
}
