
/* ROOT VARIABLES */
:root {
    --abyss: #050506;
    --obsidian: #0e0e12;
    --purple: #8852D3;
    --neon-green: #00ff88;
    --red: #ff3366;
    --text: #e0e0e0;
    --pixel-font: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--abyss);
    color: var(--text);
    font-family: var(--pixel-font);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ambient Whales */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('../assets/whale-silhouette.png');
    background-size: 120px;
    opacity: 0.12;
    z-index: -999;
    pointer-events: none !important;
}

/* RETRO OS HEADER */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: linear-gradient(180deg, #050506 0%, #160a26 100%);
    margin-bottom: 0; 
    padding: 40px 20px;
    overflow: hidden;
}

/* Base64 Checkerboards */
.checker-top-left { position: absolute; top: 0; left: 0; width: 120px; height: 120px; background-image: url('data:image/png;base64,iVORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAABmJLR0QA/wD/AP+gvaeTAAAAJklEQVQokWNgwA8YoZgY8AFGxP8ZUYwMiP8zohgZEP9nRDHyAQB8CwgL+5+4WAAAAABJRU5ErkJggg=='); opacity: 0.4; z-index: 2; pointer-events: none; }
.checker-bottom-right { position: absolute; bottom: 0; right: 0; width: 120px; height: 120px; background-image: url('data:image/png;base64,iVORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAABmJLR0QA/wD/AP+gvaeTAAAAJklEQVQokWNgwA8YoZgY8AFGxP8ZUYwMiP8zohgZEP9nRDHyAQB8CwgL+5+4WAAAAABJRU5ErkJggg=='); opacity: 0.4; z-index: 2; pointer-events: none; }

/* Base64 Pixel Stars */
.pixel-stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('data:image/png;base64,iVORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAAOklEQVQ4jWNgGAWjYBSMglEwCkbBKBgFwUBgwN+AYD6hH4+mX9Wv+lX9ql/Vr/pV/apf1a8wGgWjYBSMAgwAAJbCAb995/5DAAAAAElFTkSuQmCC'); background-repeat: repeat; background-size: 64px 64px; opacity: 0.7; z-index: 1; pointer-events: none; }

/* WATERMARK FIX: Thick canvas font, white fill, thin 1px black stroke */
.bg-text {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9.2vw;
    font-family: 'Arial Black', Impact, sans-serif;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-stroke: 1px #000000;
    text-stroke: 1px #000000;
    text-shadow: 3px 3px 0 #000000;
    opacity: 1;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 2px;
}

/* AVATAR FIX: 80% less glow, layout stabilized */
.avatar-container { min-height: 220px; display: flex; justify-content: center; align-items: center; position: relative; z-index: 3; text-align: center; }
.avatar { width: 230px; height: auto; object-fit: contain; background: transparent; border: none; border-radius: 0; box-shadow: none; image-rendering: pixelated; filter: drop-shadow(0 0 2px rgba(136, 82, 211, 0.15)); }

.hero-subtitle { position: relative; z-index: 3; margin-top: 25px; font-size: 1.1rem; color: var(--neon-green); letter-spacing: 3px; font-weight: bold; text-shadow: 0 0 8px rgba(0, 255, 136, 0.4); text-align: center; }

/* ASPECT RATIO LOCK: Module behaves exactly like a fixed phone screen */
.module-container {
    max-width: 420px; /* Smartphone width constraint */
    width: 100%;
    margin: 0 auto 30px auto;
    background: var(--obsidian);
    border: 2px solid var(--purple);
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 0 10px rgba(136, 82, 211, 0.2);
    position: relative;
    z-index: 10;
}

.module-screen {
    width: 100%;
    aspect-ratio: 9 / 16; /* 1080x1920 perfect vertical aspect ratio */
    background: #000;
    display: none;
    padding: 0;
    box-sizing: border-box;
    border-bottom: 2px solid var(--purple);
    overflow-y: auto; /* Lists scroll inside the box, the box NEVER changes size */
}
.module-screen.active { display: block; }

/* Force iframe to fill the 9:16 box perfectly */
.module-screen iframe { width: 100%; height: 100%; border: none; display: block; }

.module-controls { display: flex; flex-direction: row; background: var(--abyss); position: relative; z-index: 20; }
.tab-btn { flex: 1; background: var(--obsidian); color: #888; border: none; border-right: 1px solid #333; padding: 15px 5px; font-size: 0.85rem; font-family: var(--pixel-font); cursor: pointer; text-align: center; transition: 0.2s; font-weight: bold; text-transform: uppercase; position: relative; z-index: 9999; pointer-events: auto !important; -webkit-tap-highlight-color: transparent; }
.tab-btn:last-child { border-right: none; }
.tab-btn.active { background: var(--purple); color: #fff; text-shadow: 1px 1px 0px #000; }

.cg-list { list-style: none; padding: 0; margin: 0; }
.cg-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px dashed #333; }
.cg-left { display: flex; flex-direction: column; }
.cg-ticker { font-weight: bold; font-size: 1.2rem; color: #fff; text-transform: uppercase;}
.cg-chain { font-size: 0.75rem; color: var(--purple); margin-top: 4px; text-transform: uppercase;}
.cg-right { text-align: right; display: flex; flex-direction: column;}
.cg-price { font-size: 1.1rem; color: #fff; font-weight: bold;}
.cg-change { font-size: 0.8rem; margin-top: 4px; font-weight: bold;}
.pos { color: var(--neon-green); }
.neg { color: var(--red); }
.neu { color: var(--purple); }

/* NEWSLETTER */
.newsletter-section { max-width: 800px; margin: 0 auto 30px auto; padding: 30px 20px; background: rgba(136, 82, 211, 0.05); border: 2px solid var(--purple); border-radius: 4px; text-align: center; position: relative; z-index: 10; }
.newsletter-section h2 { margin: 0 0 10px 0; color: #fff; font-size: 1.8rem; font-weight: 900; }
.newsletter-section p { font-size: 0.95rem; color: #aaa; margin-bottom: 20px; }
.news-form { display: flex; gap: 10px; justify-content: center; }
.news-input { padding: 12px; flex: 1; max-width: 300px; background: #000; border: 1px solid var(--purple); color: #fff; font-family: var(--pixel-font); }
.news-btn { padding: 12px 20px; background: var(--purple); color: #fff; border: none; font-weight: bold; cursor: pointer; font-family: var(--pixel-font); transition: 0.2s;}
.news-btn:hover { background: var(--neon-green); color: #000; }

/* NAV BLOCKS */
.nav-blocks { max-width: 800px; margin: 0 auto 100px auto; display: flex; flex-direction: column; gap: 12px; padding: 0 15px; position: relative; z-index: 9999; }
.nav-block { display: block; background: var(--obsidian); border: 2px solid #333; color: var(--text); padding: 18px; text-align: center; text-decoration: none; font-size: 1.1rem; font-weight: bold; letter-spacing: 1px; transition: all 0.2s; border-radius: 4px; text-transform: uppercase; position: relative; z-index: 10000; pointer-events: auto !important; }
.nav-block:hover { border-color: var(--purple); background: rgba(136, 82, 211, 0.1); color: #fff; }
