:root {
    /* Obsidian & Lava Theme */
    --bg-color: #050505;
    --surface-color: #0f0f0f;
    --surface-border: #1a1a1a;
    
    --lava-primary: #ff3300;
    --lava-secondary: #ff8800;
    --lava-glow: rgba(255, 68, 0, 0.15);
    --lava-intense: #ff2200;
    
    --text-main: #e0e0e0;
    --text-muted: #888888;
    
    --correct-color: #ffaa00; /* Amber/Gold for correct */
    --wrong-color: #cc2200; /* Deep red for error */
    
    --font-mono: 'Fira Code', monospace;
    --font-ui: 'Kanit', sans-serif;
    
    --border-radius: 4px; /* Industrial sharp corners */
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-ui);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Subtle industrial gradient background */
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
}

/* App Main Layout */
.app-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* --- Lava Overlay (Refined, Subtle) --- */
.lava-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 100%, rgba(255, 51, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(255, 136, 0, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* --- Navigation --- */
.main-nav {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lava-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: var(--lava-secondary);
    background: rgba(255, 68, 0, 0.1);
}

/* --- Content Container --- */
#content-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    overflow-y: auto; /* Allow scrolling for content */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
}

/* --- Tabs --- */
.tab-content {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Home Tab --- */
#tab-home {
    text-align: center;
    display: none; /* Override default block for active tab logic in JS/CSS combo */
}
#tab-home.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center;  Removed to allow sub-nav layout */
}

/* Sub Navigation (Tab within Tab) */
.sub-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 30px;
    border: 1px solid var(--surface-border);
}

.sub-nav-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sub-nav-btn.active {
    background: var(--lava-secondary);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.4);
}

.subtab-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.subtab-content.active {
    display: block;
}

/* --- Challenge Card --- */
.challenge-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.challenge-header {
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
    background: linear-gradient(to right, rgba(255, 68, 0, 0.05), transparent);
    border-bottom: 1px solid var(--surface-border);
    align-items: center;
}

.challenge-cover {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.5s ease;
}

.challenge-cover:hover .cover-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.challenge-cover:hover .cover-overlay {
    opacity: 1;
}

.btn-audio {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lava-secondary);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.5);
    transition: transform 0.2s;
}

.btn-audio:hover {
    transform: scale(1.1);
}

.challenge-info {
    flex: 1;
}

.challenge-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.challenge-artist {
    color: var(--lava-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.audio-bar-bg {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.audio-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--lava-secondary);
    transition: width 0.1s linear;
}

.challenge-body {
    padding: 1.5rem;
}

.lyrics-container {
    background: #0a0a0a;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    color: #aaa;
    line-height: 1.8;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #222;
    white-space: pre-line;
    cursor: pointer;
    transition: border-color 0.3s;
}

.lyrics-container:hover {
    border-color: var(--lava-secondary);
    color: #ddd;
}

.full-width {
    width: 100%;
}

/* Scrollbar for lyrics */
.lyrics-container::-webkit-scrollbar {
    width: 6px;
}
.lyrics-container::-webkit-scrollbar-track {
    background: #0a0a0a;
}
.lyrics-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: var(--lava-secondary);
}

.hero-section {
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.glow-text {
    background: linear-gradient(to right, var(--lava-secondary), var(--lava-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 68, 0, 0.4));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--lava-primary);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--lava-secondary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Game Tab (Existing styles + tweaks) --- */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to bottom, #fff, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 100, 0, 0.3));
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Team Panel */
.team-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    width: 100%;
}
.team-panel.hidden { display: none; }

.team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
}

.team-red { color: #ff3300; border: 1px solid rgba(255,51,0,0.3); }
.team-blue { color: #00ccff; border: 1px solid rgba(0,204,255,0.3); }
.team-green { color: #00ff66; border: 1px solid rgba(0,255,102,0.3); }
.team-yellow { color: #ffcc00; border: 1px solid rgba(255,204,0,0.3); }

.team-bar {
    height: 4px;
    background: currentColor;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
    align-self: flex-start;
    width: 100%;
}

/* Animations */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.anim-pop {
    animation: pop 0.2s ease-out;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
}

.stat-box {
    background: linear-gradient(180deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.8) 100%);
    border: 1px solid var(--surface-border);
    padding: 0.8rem 1.5rem;
    min-width: 140px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lava-secondary), transparent);
    opacity: 0.5;
}

.stat-box .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-box .value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.2);
}

.game-area {
    position: relative;
    background: #080808;
    border-radius: 8px;
    padding: 3rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    background-image: linear-gradient(#080808, #080808), 
                      linear-gradient(135deg, #333, var(--lava-primary), #333);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        0 0 20px rgba(255, 68, 0, 0.05);
    transition: box-shadow 0.5s ease;
}

.game-area:focus-within {
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.9),
        0 0 30px rgba(255, 68, 0, 0.15);
    background-image: linear-gradient(#080808, #080808), 
                      linear-gradient(135deg, #444, var(--lava-secondary), var(--lava-primary), #444);
    animation: heatPulse 4s infinite alternate;
}

@keyframes heatPulse {
    0% { box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 25px rgba(255, 68, 0, 0.1); }
    100% { box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 45px rgba(255, 80, 0, 0.25); }
}

.word-display {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    line-height: 1.8;
    color: #666;
    width: 100%;
    text-align: left;
    user-select: none;
}

.loading-text {
    color: var(--lava-secondary);
    font-size: 1.2rem;
    animation: textPulse 1.5s infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.char {
    transition: color 0.1s, text-shadow 0.2s;
    position: relative;
}

.char.correct {
    color: var(--text-main);
    text-shadow: 0 0 8px var(--correct-color);
}

.char.wrong {
    color: var(--wrong-color);
    text-shadow: 0 0 8px rgba(204, 34, 0, 0.4);
    border-bottom: 2px solid var(--wrong-color);
}

.char.current {
    color: #fff;
    background: rgba(255, 100, 0, 0.1);
}

.char.current::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: var(--lava-secondary);
    box-shadow: 0 0 10px var(--lava-secondary);
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.input-field {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    cursor: default;
    z-index: 20;
}

/* --- Controls --- */
.actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-lava {
    background: transparent;
    border: 1px solid var(--lava-primary);
    color: var(--lava-secondary);
    padding: 10px 24px;
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.btn-lava::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 85, 0, 0.2), transparent);
    transition: 0.4s;
}

.btn-lava:hover::before {
    left: 100%;
}

.btn-lava:hover {
    background: rgba(255, 51, 0, 0.1);
    color: #fff;
    border-color: var(--lava-secondary);
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.3);
}

.btn-lava:active {
    transform: scale(0.98);
}

.btn-lava.secondary {
    border-color: #444;
    color: #888;
}

.btn-lava.secondary:hover {
    border-color: #666;
    color: #ddd;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
}

.btn-lava.large {
    font-size: 1.2rem;
    padding: 15px 40px;
    font-weight: bold;
}

.select-lava {
    background: #0f0f0f;
    border: 1px solid #333;
    color: #aaa;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    cursor: pointer;
}

.select-lava:focus {
    border-color: var(--lava-primary);
    outline: none;
    color: #fff;
}

.input-lava-modal {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    font-family: var(--font-ui);
    text-align: center;
    margin-bottom: 1rem;
}
.input-lava-modal:focus {
    border-color: var(--lava-primary);
    outline: none;
}

/* --- Leaderboard Tab --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.leaderboard-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-label {
    color: #666;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--lava-secondary);
    color: var(--lava-secondary);
    background: rgba(255, 136, 0, 0.05);
}

.table-responsive {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-border);
}

.leaderboard-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--lava-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.leaderboard-table td {
    color: #ddd;
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Profile Tab --- */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--surface-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--lava-secondary);
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.history-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 0.5rem;
}

.history-list {
    list-style: none;
}

.history-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
}

/* --- Modals --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, #333, var(--lava-primary), #333);
    z-index: -1;
    border-radius: 9px;
    opacity: 0.5;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 4px;
}

.result-item .label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.result-item .value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--lava-secondary);
    font-weight: bold;
}

.help-list {
    text-align: left;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.help-list li {
    margin-bottom: 0.5rem;
}

/* --- Special Tab Brand --- */
.brand-special {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.special-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 68, 0, 0.2);
    position: relative;
    cursor: pointer;
}

.special-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.5s ease;
}

.special-cover:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.special-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--lava-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.1;
}

.special-info .subtitle {
    margin-top: 0.2rem;
    color: var(--text-muted);
}

/* --- Special Track List Grid --- */
.special-header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.special-header-section h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.track-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    group: track-card;
}

.track-card:hover {
    transform: translateY(-8px);
    border-color: var(--lava-secondary);
    box-shadow: 0 10px 30px rgba(255, 68, 0, 0.15);
}

.track-cover-art {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
}

.track-cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) brightness(0.8);
    transition: all 0.5s ease;
}

.track-card:hover .track-cover-art img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.play-overlay i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 0 10px var(--lava-primary));
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.track-card:hover .play-overlay {
    opacity: 1;
}

.track-card:hover .play-overlay i {
    transform: scale(1);
}

.track-details {
    padding: 1.5rem;
}

.track-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-details .artist {
    color: var(--lava-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-meta-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: #222;
    color: #aaa;
    font-weight: 600;
}

.badge.hard {
    background: rgba(255, 51, 0, 0.2);
    color: var(--lava-primary);
    border: 1px solid rgba(255, 51, 0, 0.3);
}

.badge.time {
    background: rgba(255, 255, 255, 0.1);
}

/* Coming Soon State */
.track-card.coming-soon {
    cursor: default;
    opacity: 0.6;
}
.track-card.coming-soon:hover {
    transform: none;
    border-color: var(--surface-border);
    box-shadow: none;
}
.placeholder-art {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #333;
}

/* Special Game View */
.special-cover-small {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 68, 0, 0.2);
}
.special-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-lava.small {
    padding: 5px 15px;
    font-size: 0.8rem;
}

/* Helper Class */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
        font-size: 0.8rem;
    }
    
    .nav-btn {
        padding: 0.5rem;
    }

    .topbar {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .game-stats {
        gap: 1rem;
    }
    
    .stat-box {
        min-width: auto;
        padding: 0.5rem 1rem;
    }
    
    .stat-box .value {
        font-size: 1.2rem;
    }
    
    .brand h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-header {
        flex-direction: column;
        text-align: center;
    }
    
    .challenge-cover {
        margin: 0 auto;
    }
}