/* ============================================================
   1. GLOBAL RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh; 
    background-color: #000;
    color: #ffffff;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   2. TOP-LEFT GLASS SQUARE (Sharp, Fixed)
   ============================================================ */
#header-area {
    position: fixed;
    top: 50px; 
    left: 50px; 
    z-index: 2000;
    width: 320px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 0px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

#greeting { 
    display: block; 
    margin-bottom: 6px; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    font-weight: 800; 
    letter-spacing: 3px; 
    color: #888; 
}

#time-display { 
    display: block; 
    color: #444; 
    font-size: 0.72rem; 
    margin-bottom: 18px; 
    letter-spacing: 1px; 
}

/* NOW PLAYING STYLES */
#now-playing-container { 
    display: none; 
    align-items: center; 
    gap: 12px; 
    padding-top: 15px; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

#now-playing-link { 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: opacity 0.3s; 
    color: inherit;
}

#now-playing-link:hover { 
    opacity: 0.7; 
}

#now-playing-link:hover #song-name {
    text-decoration: underline;
}

.now-playing-text-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.equalizer { 
    display: flex; 
    align-items: flex-end; 
    gap: 3px; 
    width: 18px; 
    height: 16px; 
}

.equalizer .bar { 
    width: 4px; 
    background-color: #00ff64; 
    border-radius: 2px;
    animation: equalize 1s infinite ease-in-out; 
}

.equalizer .bar:nth-child(1) { animation-delay: -0.4s; }
.equalizer .bar:nth-child(2) { animation-delay: -0.2s; }
.equalizer .bar:nth-child(3) { animation-delay: 0s; }

@keyframes equalize { 
    0%, 100% { height: 30%; } 
    50% { height: 100%; } 
}

/* ============================================================
   3. DYNAMIC SLIDING PANES (Desktop)
   ============================================================ */
.panel-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.panel {
    position: relative;
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects { 
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=1000&auto=format&fit=crop'); 
}

.streaming { 
    background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=1000&auto=format&fit=crop'); 
}

.socials { 
    background-image: linear-gradient(135deg, #1e251b 0%, #0d151a 100%); 
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    transition: background 0.5s;
    z-index: 1;
}

.panel h2 {
    position: relative;
    z-index: 5;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    transition: all 0.6s ease;
    text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.6);
}

@media (min-width: 769px) {
    .panel-wrapper:hover .panel { 
        flex: 0.25; 
    }
    
    .panel-wrapper .panel:hover { 
        flex: 2; 
    }
    
    .panel-wrapper:hover .panel:not(:hover) h2 {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        font-size: 1.2rem;
        opacity: 0.4;
    }
    
    .panel:hover h2 { 
        transform: translateY(-200px); 
        opacity: 0.9; 
    }
    
    .panel:hover .overlay { 
        background: rgba(0,0,0,0.4); 
    }
    
    .panel:hover .hidden-links { 
        opacity: 1; 
        visibility: visible; 
    }
}

/* ============================================================
   4. HIDDEN LINKS & TWITCH STATES
   ============================================================ */
.hidden-links {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -40%);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
    transition: opacity 0.4s ease 0.3s;
}

.hidden-links a, 
.hidden-links button, 
.hidden-links span {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white; 
    padding: 14px; 
    border-radius: 0px;
    text-align: center; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 600;
    cursor: pointer; 
    transition: 0.3s;
}

.hidden-links a:hover, 
.hidden-links button:hover { 
    background: rgba(255,255,255,0.15); 
    border-color: rgba(255,255,255,0.4); 
    transform: translateY(-3px); 
}

.twitch-btn-offline { 
    background-color: rgba(100, 0, 0, 0.5) !important; 
    border-color: rgba(255, 50, 50, 0.3) !important; 
}

.twitch-btn-live { 
    background-color: rgba(0, 100, 40, 0.5) !important; 
    border-color: rgba(0, 255, 100, 0.3) !important; 
}

#currency-shop-panel-btn { 
    background-color: rgba(0, 138, 28, 0.1) !important; 
    border: 1px solid rgba(0, 255, 51, 0.2) !important; 
}

.disabled { 
    opacity: 0.3 !important; 
    cursor: not-allowed !important; 
    border-style: dashed !important; 
}

/* ============================================================
   6. MOBILE ENGINE (Original snap-scroll features)
   ============================================================ */
@media (max-width: 768px) {
    body { 
        overflow: hidden; 
        position: fixed; 
        width: 100%; 
    }
    
    #header-area { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 140px; 
        background-color: #0f0f0f; 
        padding-top: 30px; 
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.06); 
        border-radius: 0;
    }
    
    .panel-wrapper { 
        display: block; 
        width: 100vw; 
        height: 100dvh; 
        overflow-y: scroll; 
        scroll-snap-type: y mandatory; 
    }
    
    .panel { 
        height: 100dvh; 
        width: 100vw; 
        scroll-snap-align: start; 
        scroll-snap-stop: always; 
        padding-top: 120px; 
    }
    
    .panel h2 { 
        font-size: 1.8rem; 
        margin-bottom: 30px; 
    }
    
    .hidden-links { 
        position: relative; 
        top: auto; 
        left: auto; 
        transform: none !important; 
        opacity: 1 !important; 
        visibility: visible !important; 
        margin: 0 auto; 
        display: flex; 
    }
    
    #discord-wrapper { 
        bottom: 110px; 
        left: 50%; 
        transform: translateX(-50%); 
        width: 85%; 
        align-items: center; 
    }
    
    #discord-launcher {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   7. SHOP PANEL (SLEEK GLASS DESIGN)
   ============================================================ */
#shop-panel-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    z-index: 6999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

#shop-panel-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

#shop-panel { 
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; 
    max-width: 500px; 
    max-height: 70vh;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 7000; 
    border-radius: 0px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

#shop-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.shop-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-header h2 {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
}

#shop-balance-display {
    font-size: 0.7rem;
    color: #444;
    font-weight: 400;
    letter-spacing: 1px;
}

.shop-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.shop-close-btn:hover {
    color: #fff;
}

.shop-content {
    padding: 20px 30px 25px;
    overflow-y: auto;
    flex: 1;
}

.shop-content::-webkit-scrollbar {
    width: 6px;
}

.shop-content::-webkit-scrollbar-track {
    background: transparent;
}

.shop-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.shop-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

#shop-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 18px;
    border-radius: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.shop-item span {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.shop-item button {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 0px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-item button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.shop-item button:active {
    transform: translateY(0);
}

.shop-item.purchased {
    animation: purchaseSuccess 0.6s ease;
}

@keyframes purchaseSuccess {
    0% { 
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
    50% { 
        background: rgba(0, 255, 100, 0.2);
        border-color: rgba(0, 255, 100, 0.5);
        transform: scale(1.02);
    }
    100% { 
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    #shop-panel {
        width: 95%;
        max-height: 80vh;
    }
    
    .shop-header {
        padding: 20px;
    }
    
    .shop-content {
        padding: 15px 20px 20px;
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: 30px 20px;
    }
    
    .shop-header h2 {
        font-size: 1.5rem;
    }
    
    .shop-content {
        padding: 30px 20px;
    }
    
    .shop-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .shop-item button {
        width: 100%;
    }
}

/* ============================================================
   8. SCHEDULE PANEL (SLEEK GLASS DESIGN)
   ============================================================ */
#schedule-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    z-index: 6999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

#schedule-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

#schedule-panel { 
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; 
    max-width: 500px; 
    max-height: 70vh;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 7000; 
    border-radius: 0px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

#schedule-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.schedule-header h2 {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
}

.schedule-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.schedule-close-btn:hover {
    color: #fff;
}

.schedule-content {
    padding: 20px 30px 25px;
    overflow-y: auto;
    flex: 1;
}

.schedule-content::-webkit-scrollbar {
    width: 6px;
}

.schedule-content::-webkit-scrollbar-track {
    background: transparent;
}

.schedule-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.schedule-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

#schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#schedule-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 18px;
    border-radius: 0px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

#schedule-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

#schedule-list li.schedule-today {
    background: rgba(0, 255, 100, 0.08);
    border-color: rgba(0, 255, 100, 0.3);
}

#schedule-list li.schedule-today:hover {
    background: rgba(0, 255, 100, 0.12);
    border-color: rgba(0, 255, 100, 0.4);
}

.schedule-box-art {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 0px;
    flex-shrink: 0;
}

.schedule-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-date {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-today .schedule-date {
    color: #00ff64;
}

.today-badge {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 0px;
    border: 1px solid rgba(0, 255, 100, 0.3);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.schedule-title {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.schedule-category {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

.no-schedule {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    padding: 30px 20px;
    border: none !important;
    background: none !important;
}

@media (max-width: 768px) {
    #schedule-panel {
        width: 95%;
        max-height: 80vh;
    }
    
    .schedule-header {
        padding: 20px;
    }
    
    .schedule-content {
        padding: 15px 20px 20px;
    }
}

/* ============================================================
   9. CONFIRMATION MODAL
   ============================================================ */
#confirm-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 7999; 
}

#confirm-modal { 
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: #18181b; 
    border: 1px solid #333; 
    padding: 25px; 
    z-index: 8000; 
    text-align: center; 
    width: 300px; 
    border-radius: 0px; 
}

/* ============================================================
   10. TWITCH LOGIN & USER MENU (Inside Glass Box)
   ============================================================ */
#auth-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.twitch-login-btn { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(145, 70, 255, 0.15); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(145, 70, 255, 0.4); 
    color: white; 
    padding: 12px 20px; 
    border-radius: 0px; 
    cursor: pointer; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.85rem; 
    transition: all 0.3s ease;
    gap: 10px;
}

.twitch-login-btn:hover {
    background: rgba(145, 70, 255, 0.3);
    border-color: rgba(145, 70, 255, 0.6);
    transform: translateY(-2px);
}

.user-menu-container {
    position: relative;
}

.dropdown-menu { 
    display: none; 
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0;
    right: 0;
    background: #18181b; 
    border: 1px solid #333; 
    border-radius: 0px; 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100;
}

.dropdown-menu.show { 
    display: block; 
}

.dropdown-menu a { 
    display: block; 
    padding: 12px; 
    color: #efeff1; 
    text-decoration: none; 
    font-size: 0.8rem; 
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #26262c;
    color: #bf94ff;
}

/* ============================================================
   11. DISCORD WIDGET
   ============================================================ */
#discord-launcher { 
    position: fixed;
    bottom: 35px;
    left: 35px;
    z-index: 1000;
    background: rgba(88, 101, 242, 0.15); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 101, 242, 0.3); 
    color: #fff; 
    padding: 15px 30px; 
    border-radius: 0px; 
    cursor: pointer; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: all 0.3s ease;
    text-decoration: none;
}

#discord-launcher:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

#discord-launcher:active {
    transform: translateY(0);
}


/* ============================================================
   SETUP SLIDE-OUT PANEL
   ============================================================ */
#setup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#setup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#setup-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#setup-panel.active {
    right: 0;
}

.setup-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    z-index: 10;
}

.setup-header h2 {
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    margin: 0;
}

.setup-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.setup-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.setup-content {
    padding: 30px;
}

.setup-section {
    margin-bottom: 35px;
}

.setup-section h3 {
    font-size: 0.9rem;
    color: #00ff64;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.2);
}

.setup-item {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.setup-label {
    color: #888;
    font-weight: 700;
    display: inline-block;
    min-width: 140px;
}

/* ============================================================
   LEADERBOARD/WALL OF FAME SLIDE-OUT PANEL
   ============================================================ */
#leaderboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#leaderboard-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#leaderboard-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#leaderboard-panel.active {
    right: 0;
}

.leaderboard-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    z-index: 10;
}

.leaderboard-header h2 {
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    margin: 0;
}

.leaderboard-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.leaderboard-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.leaderboard-tabs {
    display: flex;
    padding: 0 30px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 91px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    z-index: 9;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn span {
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #00ff64;
    border-bottom-color: #00ff64;
}

.tab-content {
    display: none;
}

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

.leaderboard-content {
    padding: 30px;
}

.leaderboard-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.leaderboard-item.top-1 {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-item.top-2 {
    background: rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.3);
}

.leaderboard-item.top-3 {
    background: rgba(205, 127, 50, 0.1);
    border-color: rgba(205, 127, 50, 0.3);
}

.leaderboard-rank {
    font-size: 1.2rem;
    font-weight: 900;
    color: #666;
    min-width: 40px;
}

.leaderboard-item.top-1 .leaderboard-rank {
    color: #FFD700;
}

.leaderboard-item.top-2 .leaderboard-rank {
    color: #C0C0C0;
}

.leaderboard-item.top-3 .leaderboard-rank {
    color: #CD7F32;
}

.leaderboard-user {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.leaderboard-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00ff64;
}

.leaderboard-loading,
.leaderboard-empty,
.leaderboard-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Wall of Fame Styles */
.fame-section {
    margin-bottom: 35px;
}

.fame-section h3 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 15px;
}

.fame-item-large {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.fame-item-large:hover {
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.fame-user {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.fame-detail {
    font-size: 1rem;
    color: #00ff64;
    font-weight: 700;
}

.fame-loading,
.fame-empty {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================================
   ABOUT SLIDE-OUT PANEL
   ============================================================ */
#about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#about-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#about-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#about-panel.active {
    right: 0;
}

.about-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    z-index: 10;
}

.about-header h2 {
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    margin: 0;
}

.about-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.about-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.about-content {
    padding: 30px;
}

.about-intro {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(0, 255, 100, 0.05);
    border-left: 3px solid #00ff64;
}

.about-section {
    margin-bottom: 30px;
}

.about-section h3 {
    font-size: 0.9rem;
    color: #00ff64;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.2);
}

.about-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ccc;
}

/* ============================================================
   GAME TRACKER SLIDE-OUT PANEL
   ============================================================ */
#game-tracker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#game-tracker-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#game-tracker-panel {
    position: fixed;
    top: 0;
    right: -650px;
    width: 650px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#game-tracker-panel.active {
    right: 0;
}

.game-tracker-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    z-index: 10;
}

.game-tracker-header h2 {
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    margin: 0;
}

.game-tracker-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-tracker-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.game-tracker-tabs {
    display: flex;
    padding: 0 30px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 91px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    z-index: 9;
}

.game-tracker-tabs .tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.game-tracker-tabs .tab-btn span {
    font-size: 1.1rem;
}

.game-tracker-tabs .tab-btn:hover {
    color: #fff;
}

.game-tracker-tabs .tab-btn.active {
    color: #00ff64;
    border-bottom-color: #00ff64;
}

.game-tracker-content {
    padding: 30px;
}

.tracker-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    padding: 15px;
    transition: all 0.3s ease;
}

.game-card:hover {
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.game-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.game-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-playing {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.status-beaten {
    background: rgba(255, 164, 107, 0.2);
    color: #ffa46b;
}

.status-completed {
    background: rgba(76, 209, 55, 0.2);
    color: #4cd137;
}

.game-platform {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.game-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    overflow: hidden;
    margin-top: 10px;
}

.game-progress-fill {
    height: 100%;
    background: #00ff64;
    transition: width 0.5s ease;
}

.game-progress-fill.animated {
    animation: pulseProgress 3s ease-in-out infinite;
}

@keyframes pulseProgress {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.games-loading,
.games-empty,
.games-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 0.9rem;
}

.sheet-embed-container {
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0px;
    overflow: hidden;
}

.tracker-legend {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 100, 0.05);
    border-left: 3px solid #00ff64;
    border-radius: 0px;
}

.legend-title {
    font-size: 0.85rem;
    color: #00ff64;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 15px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #ccc;
}

.legend-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
}

.legend-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    overflow: hidden;
    position: relative;
}

.legend-bar-fill {
    height: 100%;
    background: #00ff64;
    display: block;
    animation: pulseLegend 3s ease-in-out infinite;
}

.legend-bar-fill.completed {
    animation: none;
}

@keyframes pulseLegend {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.status-streaming-soon {
    background: rgba(138, 138, 255, 0.2);
    color: #8a8aff;
}

.status-100 {
    background: rgba(76, 209, 55, 0.2);
    color: #4cd137;
}

.game-date {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* ============================================================
   MOBILE RESPONSIVENESS - ALL PANELS
   ============================================================ */
@media (max-width: 768px) {
    /* Prevent panels from creating stacking context on mobile */
    .panel {
        z-index: 1;
    }
    
    /* Make all slide-out panels full width and scrollable */
    #setup-panel,
    #leaderboard-panel,
    #about-panel,
    #game-tracker-panel,
    #photography-panel {
        width: 100%;
        right: -100%;
        z-index: 10000 !important; /* Force above everything */
        position: fixed !important;
    }
    
    #setup-panel.active,
    #leaderboard-panel.active,
    #about-panel.active,
    #game-tracker-panel.active,
    #photography-panel.active {
        right: 0;
    }
    
    /* Overlays need high z-index too */
    #setup-overlay,
    #leaderboard-overlay,
    #about-overlay,
    #game-tracker-overlay,
    #photography-overlay {
        z-index: 9999 !important;
        position: fixed !important;
    }
    
    /* Discord button - centered on mobile */
    #discord-launcher {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 20px;
        font-size: 0.7rem;
        gap: 10px;
        letter-spacing: 1.5px;
        width: auto;
        max-width: calc(100vw - 40px);
    }
    
    #discord-launcher:hover {
        transform: translateX(-50%) translateY(-2px);
    }
    
    #discord-launcher svg {
        width: 16px;
        height: 16px;
    }
    
    /* Ensure content is scrollable */
    .setup-content,
    .leaderboard-content,
    .about-content,
    .game-tracker-content {
        padding: 20px;
        overflow-y: auto;
    }
    
    /* Header adjustments */
    .setup-header,
    .leaderboard-header,
    .about-header,
    .game-tracker-header {
        padding: 20px;
    }
    
    .setup-header h2,
    .leaderboard-header h2,
    .about-header h2,
    .game-tracker-header h2 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    /* Setup sections */
    .setup-section {
        padding: 15px;
    }
    
    .setup-section h3 {
        font-size: 0.9rem;
    }
    
    .setup-item {
        font-size: 0.85rem;
    }
    
    /* Wall of Fame cards */
    .fame-item-large {
        padding: 20px;
    }
    
    /* Game cards */
    .game-card {
        padding: 12px;
    }
    
    .game-title {
        font-size: 0.9rem;
    }
    
    /* Live embed - hide on mobile when hovered */
    #live-embed-container {
        display: none !important;
    }
    
    /* Keep buttons vertical on mobile even when live */
    .panel.streaming:hover #offline-buttons {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Currency shop modal */
    .shop-modal {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .shop-header {
        padding: 20px;
    }
    
    .shop-items {
        padding: 15px;
    }
    
    .shop-item {
        padding: 15px;
    }
    
    /* Tabs */
    .leaderboard-tabs,
    .game-tracker-tabs {
        padding: 0 15px;
    }
    
    .leaderboard-tabs .tab-btn,
    .game-tracker-tabs .tab-btn {
        font-size: 0.75rem;
        padding: 12px 10px;
    }
    
    /* Legend */
    .tracker-legend,
    .legend-items {
        padding: 15px;
    }
    
    .legend-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .legend-bar {
        width: 100%;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .setup-header h2,
    .leaderboard-header h2,
    .about-header h2,
    .game-tracker-header h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .setup-close-btn,
    .leaderboard-close-btn,
    .about-close-btn,
    .game-tracker-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* ============================================================
   PHOTOGRAPHY SLIDE-OUT PANEL
   ============================================================ */
#photography-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#photography-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#photography-panel {
    position: fixed;
    top: 0;
    right: -700px;
    width: 700px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#photography-panel.active {
    right: 0;
}

.photography-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(40px);
    z-index: 10;
}

.photography-header h2 {
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    margin: 0;
}

.photography-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photography-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.photography-content {
    padding: 30px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.photo-item {
    aspect-ratio: 1;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    border-color: rgba(0, 255, 100, 0.3);
    transform: scale(1.02);
}

.photo-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.3);
    cursor: default;
}

.photo-item.placeholder:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.photo-placeholder-text {
    text-align: center;
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photography-note {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 100, 0.05);
    border-left: 3px solid #00ff64;
    border-radius: 0px;
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    #photography-panel {
        width: 100%;
        right: -100%;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photography-content {
        padding: 20px;
    }
}
