* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
    background-color: #000000; /* Deep OLED black to blend the logo */
    color: #e0e0e0;
    min-height: 100vh; 
    overflow-x: hidden; 
    /* Prevents the app from hiding behind mobile notches/cutouts */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.container { 
    width: 100%; 
    height: 100vh; /* Forces it to stretch to the bottom of the screen */
    padding: 0; /* Removes the website margins */
}

.app-card {
    background: #000000; 
    padding: 40px 25px; 
    border-radius: 0; /* Removes the rounded website corners */
    border: none; /* Removes the box outline */
    box-shadow: none; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    height: 100%; /* Stretches the card edge-to-edge */
    display: flex; 
    flex-direction: column;
}

/* RAW SPLASH SCREEN */
.splash-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000000; z-index: 9999; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 30px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.splash-screen.fade-out {
    transform: translateY(-100%); opacity: 0; pointer-events: none;
}
.splash-logo { width: 280px; height: auto; object-fit: contain; margin-bottom: 50px; }

.enter-btn {
    width: 100%; padding: 16px; font-size: 16px; font-weight: 600; color: #fff;
    background: #4a90e2; border: none; border-radius: 12px; cursor: pointer; transition: 0.2s;
}
.enter-btn:hover { background: #357abd; }

.disclaimer-box {
    background: #111111; border: 1px solid #333; border-radius: 12px;
    padding: 20px; text-align: left; margin-bottom: 30px;
}
.disclaimer-box h3 { color: #e24a4a; font-size: 14px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.disclaimer-box p { color: #888; font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.disclaimer-box strong { color: #aaa; }

/* MAIN APP HEADER (MASSIVE RAW LOGO) */
.header { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 25px; }
.logo { width: 220px; height: auto; max-height: 60px; object-fit: contain; flex-shrink: 0; }
.burger-btn { position: absolute; right: 0; background: none; border: none; color: #aaa; width: 40px; height: 40px; cursor: pointer; transition: 0.2s; }
.burger-btn:hover { color: #fff; }

canvas { width: 100%; height: 80px; background: #0d0d0d; border-radius: 12px; border: 1px solid #222; margin-bottom: 30px; }
.control-group { margin-bottom: 25px; text-align: left; }
label { display: block; font-size: 14px; color: #aaa; margin-bottom: 10px; }
span { color: #fff; font-weight: bold; }
input[type=range] { width: 100%; accent-color: #4a90e2; cursor: pointer; }

.wave-select {
    width: 100%; padding: 12px; background: #222; color: #eee;
    border: 1px solid #444; border-radius: 8px; font-size: 14px; cursor: pointer; outline: none; appearance: none;
}
.wave-select:focus { border-color: #4a90e2; }

button#toggleBtn {
    width: 100%; padding: 16px; font-size: 16px; font-weight: 600; color: #fff;
    background: #4a90e2; border: none; border-radius: 12px; cursor: pointer; transition: 0.2s; margin-top: auto;
}
button#toggleBtn.active { background: #e24a4a; }

/* SLIDE PAGES */
.slide-page {
    position: absolute; top: 0; right: -100%; 
    width: 100%; height: 100%; 
    background: #000000; /* Updated to pure black */
    z-index: 10;
    padding: 30px; display: flex; flex-direction: column; text-align: left;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-page.open { right: 0; }
.slide-page.secondary-page { z-index: 20; } 

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.page-header h2 { font-size: 18px; color: #fff; font-weight: 600; }
.icon-btn { background: none; border: none; color: #888; font-size: 28px; cursor: pointer; padding: 0 10px; }
.icon-btn:hover { color: #fff; }

.menu-list { display: flex; flex-direction: column; gap: 15px; }
.nav-btn {
    background: #222; border: 1px solid #333; color: #eee; padding: 20px; border-radius: 12px; font-size: 16px;
    display: flex; justify-content: space-between; cursor: pointer; transition: 0.2s;
}
.nav-btn:hover { background: #2a2a2a; border-color: #4a90e2; }
.arrow { color: #4a90e2; }

.scroll-content { flex: 1; overflow-y: auto; padding-right: 5px; }
.scroll-content::-webkit-scrollbar { width: 4px; }
.scroll-content::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.lore-text { font-size: 14px; color: #aaa; line-height: 1.6; margin-bottom: 20px; }
.lore-quote { border-left: 3px solid #4a90e2; padding-left: 15px; margin: 25px 0; font-style: italic; color: #eee; font-size: 15px; line-height: 1.5; }
.quote-author { display: block; font-size: 12px; color: #888; margin-top: 10px; font-style: normal; }
.step-block { margin-bottom: 25px; }
.step-block h3 { color: #4a90e2; font-size: 15px; margin-bottom: 8px; }
.step-block p { color: #aaa; font-size: 14px; line-height: 1.5; }

.preset-category-title { font-size: 12px; color: #4a90e2; text-transform: uppercase; letter-spacing: 1px; margin: 25px 0 10px 0; border-bottom: 1px solid #333; padding-bottom: 5px; }
.preset-stack { display: flex; flex-direction: column; gap: 10px; }
.preset-card { background: #222; border: 1px solid #333; border-radius: 12px; padding: 15px; cursor: pointer; transition: 0.2s; }
.preset-card:hover { background: #2a2a2a; border-color: #4a90e2; }
.preset-card h3 { font-size: 15px; color: #eee; margin-bottom: 5px; }
.preset-card p { font-size: 12px; color: #888; line-height: 1.4; }
.preset-math { font-size: 11px; color: #555; margin-top: 8px; font-family: monospace; }