/* Core Styling */
body {
    margin: 0; padding: 0;
    background-color: #0a0212;
    font-family: 'Arial Black', sans-serif;
    overflow: hidden; 
    height: 100vh;
    width: 100vw;
    touch-action: manipulation;
}

#particleCanvas { position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none; }

/* Entry Screen */
#entry-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0a0212; display: flex; justify-content: center;
    align-items: center; z-index: 9999; cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.entry-text { color: #bc6ff1; font-size: 1.2rem; letter-spacing: 5px; text-transform: uppercase; animation: pulseEntry 2s infinite; }
@keyframes pulseEntry { 0%, 100% { opacity: 0.3; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1); } }
.fade-out { opacity: 0; visibility: hidden; }

/* Top Nav & Logo */
.navbar { 
    position: absolute; 
    top: 20px; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 10; 
}
.top-logo { 
    height: 50px; 
    filter: drop-shadow(0 0 10px #9d4edd); 
    transition: transform 0.1s; 
    pointer-events: none; 
}

.download-btn {
    position: absolute; right: 20px; text-decoration: none; color: #fff; font-size: 0.7rem; font-weight: bold;
    padding: 10px 20px; border: 1px solid #bc6ff1; border-radius: 5px; background: rgba(188, 111, 241, 0.1);
    backdrop-filter: blur(5px); transition: 0.3s ease; letter-spacing: 1px;
}
.download-btn:hover { background: rgba(188, 111, 241, 0.3); box-shadow: 0 0 15px #bc6ff1; transform: translateY(-2px); }

/* Panels */
#price-panel, #status-panel {
    position: fixed; top: 0; 
    width: 320px; 
    max-width: 85vw; /* Prevents overflow on very small phones */
    height: 100%;
    background: rgba(10, 2, 18, 0.98); backdrop-filter: blur(25px);
    z-index: 1000; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 25px; box-sizing: border-box; overflow-y: auto;
}
#price-panel { right: -350px; border-left: 1px solid rgba(157, 78, 221, 0.5); }
#status-panel { left: -350px; border-right: 1px solid rgba(157, 78, 221, 0.5); }
#price-panel.open { right: 0; box-shadow: -10px 0 40px #000; }
#status-panel.open { left: 0; box-shadow: 10px 0 40px #000; }

/* Side Toggles */
#panel-toggle, #status-toggle {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(188, 111, 241, 0.05); color: #bc6ff1;
    border: 1px solid rgba(157, 78, 221, 0.3); padding: 25px 12px; cursor: pointer;
    z-index: 100; writing-mode: vertical-rl; text-orientation: mixed;
    letter-spacing: 4px; font-weight: bold; transition: 0.3s;
}
#panel-toggle { right: 0; border-radius: 15px 0 0 15px; }
#status-toggle { left: 0; border-radius: 0 15px 15px 0; }

/* Content inside Panels */
.panel-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(188, 111, 241, 0.3); margin-bottom: 25px; padding-bottom: 15px; }
.panel-header h2 { color: #fff; font-size: 1.1rem; margin: 0; text-transform: uppercase; }
#panel-close, #status-close { background: none; border: none; color: #bc6ff1; font-size: 1.5rem; cursor: pointer; }

.product { margin-bottom: 25px; display: flex; flex-direction: column; }
.product h3 { color: #bc6ff1; font-size: 0.9rem; margin: 0 0 5px 0; text-transform: uppercase; }
.product p { color: #ffffff !important; font-size: 0.8rem; margin: 2px 0; font-family: 'Courier New', monospace; opacity: 0.9; }

.status-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.status-item span:first-child { color: #ffffff; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; }

.badge { font-size: 0.65rem; padding: 4px 10px; border-radius: 4px; font-weight: 900; text-transform: uppercase; min-width: 90px; text-align: center; }
.green { color: #00ff7f; border: 1px solid #00ff7f; background: rgba(0, 255, 127, 0.1); }
.red { color: #ff4500; border: 1px solid #ff4500; background: rgba(255, 69, 0, 0.1); }

/* Hero Text with Clamp Scaling */
.hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; z-index: 5; text-align: center; }
#visualizer-text { 
    font-size: clamp(2.5rem, 12vw, 6rem); /* Responsive fluid typography */
    color: #fff; 
    letter-spacing: clamp(5px, 2vw, 15px); 
    margin: 0; 
    text-shadow: 0 0 25px rgba(157, 78, 221, 0.8); 
}
#typing-text { font-family: 'Courier New', monospace; color: #bc6ff1; font-size: 1.1rem; margin-top: 15px; min-height: 1.5rem; letter-spacing: 2px; }

/* Volume Slider */
.volume-container { position: fixed; top: 20px; left: 20px; z-index: 100; display: flex; align-items: center; background: rgba(20, 5, 40, 0.6); padding: 8px 15px; border-radius: 30px; border: 1px solid #9d4edd; }
#volume-control { width: 80px; accent-color: #bc6ff1; cursor: pointer; }

/* Socials Footer */
.social-footer { position: fixed; bottom: 30px; width: 100%; display: flex; justify-content: center; gap: 15px; z-index: 100; }
.social-btn { text-decoration: none; color: #fff; font-size: 0.7rem; padding: 10px 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; transition: 0.4s ease; text-transform: uppercase; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(5px); }
.discord:hover { border-color: #5865F2; background: rgba(88, 101, 242, 0.2); box-shadow: 0 0 20px rgba(88, 101, 242, 0.6); }
.youtube:hover { border-color: #FF0000; background: rgba(255, 0, 0, 0.2); box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); }
.tiktok:hover { border-color: #00f2ea; background: rgba(0, 242, 234, 0.1); box-shadow: -5px 0 15px rgba(0, 242, 234, 0.4), 5px 0 15px rgba(255, 0, 80, 0.4); }

/* --- GLOBAL MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {
    /* Stack Nav Logo and Download Button */
    .navbar { flex-direction: column; top: 10px; }
    .download-btn { position: relative; right: auto; top: 15px; font-size: 0.6rem; padding: 8px 16px; }
    
    /* Move Volume away from top corner (hard to click on mobile) */
    .volume-container { top: auto; bottom: 85px; left: 50%; transform: translateX(-50%); }

    /* Adjust Toggles */
    #panel-toggle, #status-toggle { padding: 18px 8px; font-size: 0.65rem; }

    /* Footer Wrap */
    .social-footer { bottom: 15px; gap: 8px; flex-wrap: wrap; padding: 0 10px; }
    .social-btn { flex: 1 1 28%; padding: 8px 5px; font-size: 0.55rem; text-align: center; }

    /* Text Adjustments */
    #typing-text { font-size: 0.8rem; padding: 0 15px; }
}

/* Extra small devices */
@media (max-width: 380px) {
    #visualizer-text { font-size: 2.2rem; }
    .top-logo { height: 35px; }
}