:root {
    --bg-color: #0d0d12;
    --text-color: #ffffff;
    --primary-red: #ff4d4d;
    --primary-blue: #4d94ff;
    --primary-green: #4dff88;
    --primary-yellow: #ffeb3b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

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

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

#score-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#score-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

#score-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

#controls-hint {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hint-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.key {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 25px;
    text-align: center;
}

#game-over-overlay,
#start-screen {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.glitch-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff4d4d, #4dff88, #4d94ff, #ffeb3b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.game-over-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.main-btn {
    padding: 1rem 4rem;
    font-size: 1.5rem;
    font-weight: 900;
    background: #ffffff;
    color: #0d0d12;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.secondary-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#current-track-name {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 2px;
}