:root {
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --text-main: #ff7e5f;
    --text-sub: #feb47b;
    --btn-glass: rgba(255, 255, 255, 0.05);
    --btn-border: rgba(255, 255, 255, 0.15);
    --glow-color: #ff7e5f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
    text-align: center;
}

.page-header {
    margin-bottom: 40px;
    max-width: 800px;
}

h1 {
    color: var(--text-main);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 126, 95, 0.4);
}

p {
    color: var(--text-sub);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 10px;
}

p.note {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.6;
    margin-top: 15px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    flex-grow: 1;
}

.element {
    display: flex;
    justify-content: center;
    align-items: center;
}

button.btn {
    background: var(--btn-glass);
    border: 1px solid var(--btn-border);
    border-radius: 24px;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; /* Needed for the key hint badges */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

button.btn img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
    pointer-events: none;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.9);
}

button.btn::after {
    content: attr(id);
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

@media (hover: hover) {
    button.btn:hover {
        transform: translateY(-8px);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    button.btn:hover img {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

.pressed {
    transform: scale(0.92) !important;
}

.playing {
    border-color: var(--glow-color) !important;
    box-shadow: 0 0 25px rgba(255, 126, 95, 0.6), inset 0 0 15px rgba(255, 126, 95, 0.2) !important;
}

footer {
    margin-top: 50px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}