:root {
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --font-main: 'Outfit', sans-serif;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0f;
    color: #ffffff;
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Dynamic Background */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.15), transparent 25%);
    z-index: -1;
}

/* Typography */
h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass-nav,
.glass-card,
.glass-panel,
.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

/* Buttons */
.secondary-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: background 0.3s;
    cursor: pointer;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- PIANO GAME STYLES --- */

.piano-container {
    padding-top: 100px;
    /* Nav spacing */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 600px;
    align-items: center;
    padding: 1rem 2rem;
}

.score-display {
    font-size: 1.5rem;
    font-weight: 800;
}

.clef-selector {
    display: flex;
    gap: 1rem;
}

.clef-selector .secondary-btn.active {
    background: var(--accent-primary);
    border-color: transparent;
    color: #000;
}

.sheet-music {
    background: white;
    /* High contrast for music reading */
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .sheet-music {
        padding: 10px 5px;
    }
}

.feedback-msg {
    color: #333;
    font-weight: bold;
    margin-top: 10px;
    height: 1.5rem;
}

/* Piano Keys */
.piano-keyboard {
    display: flex;
    gap: 10px;
    width: 90%;
    max-width: 800px;
    height: 200px;
}

.piano-key {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0 0 8px 8px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.piano-key:active,
.piano-key.active-pressed {
    transform: translateY(5px);
    background: var(--accent-secondary);
    color: white;
    box-shadow: 0 0 20px var(--accent-secondary);
}

.piano-key:hover {
    background: white;
}

/* Mobile responsive keys */
@media (max-width: 600px) {
    .piano-keyboard {
        height: 120px;
        gap: 5px;
    }

    .piano-key {
        font-size: 0.9rem;
        padding-bottom: 10px;
    }

    .clef-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
}