@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --primary: #00CEC9;
    --secondary: #81ECEC;
    --accent: #E17055;
    --background: #0A1A1A;
    --glass: rgba(10, 26, 26, 0.8);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: white;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 10;
}

.hidden {
    display: none !important;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 206, 201, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    max-width: 450px;
    width: 90%;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.controls-hint {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.controls-hint div {
    display: flex;
    justify-content: space-between;
}

.controls-hint span {
    color: var(--primary);
    font-weight: bold;
}

button {
    background: var(--primary);
    color: var(--background);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.4);
}

button:active {
    transform: translateY(0);
}

#gameUI {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.ui-item {
    background: var(--glass);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 206, 201, 0.1);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#scoreValue {
    font-family: monospace;
    font-size: 1.4rem;
    color: var(--primary);
}

#livesValue {
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    .glass-panel {
        padding: 1.5rem;
    }
}
