:root {
    --bg-color: #1A0A14;
    --primary-color: #E84393;
    --secondary-color: #FD79A8;
    --accent-color: #6C5CE7;
    --text-color: #FFFFFF;
    --glass-bg: rgba(232, 67, 147, 0.1);
    --glass-border: rgba(232, 67, 147, 0.2);
    --border-radius: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background-color: #000;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(232, 67, 147, 0.3);
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
    transition: opacity 0.3s ease;
}

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

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(232, 67, 147, 0.5);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 12px 24px;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
}

.btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.level-btn {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.level-btn:hover:not(.locked) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.level-btn.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.hud-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    font-weight: bold;
    color: var(--secondary-color);
}

.instructions {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
    line-height: 1.6;
}
