/* --- VARIABLES OF POWER --- */
:root {
    --ki-yellow: #fffb00;
    --ki-orange: #ff8c00;
    --ki-red: #ff0000;
    --energy-blue: #00eaff;
    --bg-dark: #0a0000;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Anton', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   BACKGROUND CHAOS LAYERS (NEW ANIMATIONS)
   ========================================= */

/* Layer 1: The Dark Dimension Sky */
.bg-dimension {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* Dark purple/red ominous gradient representing a dying planet */
    background: linear-gradient(180deg, #1a0033 0%, #000000 50%, #2b0000 100%);
    z-index: -5;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Layer 2: The Dragon Gaze (Glowing Eyes in Sky) - NEW */
.bg-dragon-eyes {
    position: fixed; top: 15%; width: 100%; height: auto;
    z-index: -4;
    display: flex; justify-content: center; gap: 120px;
    pointer-events: none;
    opacity: 0; /* Starts hidden, fades in slowly */
    animation: dragonPresence 30s ease-in-out infinite alternate;
}

.eye {
    width: 180px; height: 60px; border-radius: 50%;
    /* Glowing red/orange gradient */
    background: radial-gradient(ellipse at center, #ffea00 0%, #ff0000 40%, transparent 70%);
    box-shadow: 0 0 80px #ff0000, inset 0 0 20px #ffff00;
    filter: blur(10px);
    animation: eyePulse 4s infinite alternate;
}

/* Layer 3: Stars */
.bg-stars {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px);
    background-size: 550px 550px, 350px 350px;
    z-index: -3;
    animation: starsMove 60s linear infinite;
}

/* Layer 4: Subtle Screen Flash Overlay */
.lightning-flash-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0; z-index: -1; pointer-events: none;
    animation: randomFlashSubtle 8s infinite linear;
}

/* Layer 5: Violent Lightning Bolts (Generated by JS) - NEW */
/* Using an SVG data URI for a jagged bolt shape */
.lightning-bolt-strike {
    position: fixed;
    top: -20%;
    width: 150px; /* Base width */
    height: 140%; /* Span entire height + extra */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 500' preserveAspectRatio='none'><path d='M50,0 L30,150 L60,140 L20,300 L50,280 L0,500 L50,500 L70,350 L40,370 L80,200 L50,220 L100,0 Z' fill='white'/></svg>");
    background-size: 100% 100%;
    filter: drop-shadow(0 0 30px var(--ki-yellow)) drop-shadow(0 0 10px white);
    opacity: 0;
    z-index: 0; /* Behind main content, in front of bg */
    pointer-events: none;
}

/* Animation class added by JS when striking */
.bolt-striking { animation: violentStrike 0.4s linear forwards; }

/* Anti-Gravity Debris (Styling for JS elements) */
.debris {
    position: fixed; bottom: -50px; background: #3d3d3d;
    border: 1px solid #555; z-index: -2; opacity: 0.7;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    animation: riseUp linear forwards;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes starsMove { from { transform: translateY(0); } to { transform: translateY(-1000px); } }
@keyframes randomFlashSubtle { 
    0%, 95%, 98% { opacity: 0; } 
    96%, 99% { opacity: 0.5; background: rgba(255,255,255,0.1); }
    97% { opacity: 0.2; }
}
@keyframes riseUp { 
    0% { transform: translateY(0) rotate(0deg); opacity: 0; } 
    20% { opacity: 0.8; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; } 
}
/* New Dragon Eye Animations */
@keyframes dragonPresence { 0% { opacity: 0; } 50% { opacity: 0.8; } 100% { opacity: 0.4; } }
@keyframes eyePulse { 0% { transform: scale(1); box-shadow: 0 0 50px #ff0000; } 100% { transform: scale(1.1); box-shadow: 0 0 100px #ff0000, 0 0 30px #ffff00; } }
/* New Violent Bolt Animation */
@keyframes violentStrike {
    0% { opacity: 0; transform: scaleX(0.8); } 
    20% { opacity: 1; transform: scaleX(1); } 
    40% { opacity: 0; }
    60% { opacity: 0.8; transform: scaleX(1.1) translateX(10px); } /* Second flash, slight shift */
    100% { opacity: 0; }
}


/* =========================================
   MAIN UI COMPONENTS
   ========================================= */

/* --- NAVIGATION --- */
.power-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; background: rgba(0,0,0,0.8);
    border-bottom: 3px solid var(--ki-yellow);
    box-shadow: 0 5px 20px var(--ki-orange);
    position: sticky; top: 0; z-index: 100;
}
.nav-logo { font-family: 'Bangers', cursive; font-size: 2rem; text-shadow: 2px 2px 0 var(--ki-orange); transform: skew(-10deg); }
.z-red { color: var(--ki-red); font-size: 2.5rem; }
.nav-items { display: flex; align-items: center; gap: 20px; }
.mini-scouter {
    font-family: 'Orbitron', monospace; color: var(--energy-blue);
    border: 2px solid var(--energy-blue); padding: 5px 15px;
    background: rgba(0, 50, 255, 0.2); text-shadow: 0 0 5px var(--energy-blue); display: none;
}
@media (min-width: 768px) { .mini-scouter { display: block; } }
.nav-link { color: var(--energy-blue); font-family: 'Orbitron'; text-decoration: none; margin-right: 15px; font-weight: bold; display: none; }
@media (min-width: 768px) { .nav-link { display: inline; } }
.nav-btn {
    text-decoration: none; color: black; background: var(--ki-yellow);
    padding: 10px 20px; font-weight: 900; transform: skew(-15deg);
    border: 2px solid black; transition: 0.3s;
}
.nav-btn:hover { background: white; box-shadow: 0 0 20px white; }

/* --- HERO SECTION --- */
#hero {
    min-height: 90vh; display: flex; flex-direction: column-reverse;
    align-items: center; justify-content: center;
    padding: 50px 20px; gap: 50px;
}
@media (min-width: 992px) { #hero { flex-direction: row; justify-content: space-around; } }

.hero-content { text-align: center; z-index: 2; max-width: 600px; }
@media (min-width: 992px) { .hero-content { text-align: left; } }

.mega-title {
    font-size: 4rem; line-height: 0.9; color: var(--ki-yellow);
    -webkit-text-stroke: 2px black; text-shadow: 4px 4px 0 var(--ki-orange), 8px 8px 0 var(--ki-red);
    transform: skew(-5deg) rotate(-2deg); margin-bottom: 20px;
}
.pump-text { color: white; font-size: 5rem; text-shadow: 0 0 20px var(--ki-yellow); }
.sub-rally { font-family: 'Orbitron'; letter-spacing: 2px; color: var(--energy-blue); margin-bottom: 30px; font-weight: bold; }

/* CA BOX */
.ca-wrapper.glow-box {
    background: rgba(0,0,0,0.6); border: 3px solid var(--ki-orange);
    padding: 15px; display: inline-flex; flex-direction: column; gap: 10px;
    box-shadow: 0 0 30px var(--ki-orange) inset, 0 0 20px var(--ki-orange);
    margin-bottom: 30px;
}
.ca-label { font-family: 'Orbitron'; color: var(--ki-orange); font-size: 0.8rem; }
#ca-text { font-family: monospace; font-size: 1.1rem; color: white; word-break: break-all; }
.copy-btn {
    background: var(--ki-red); border: none; padding: 10px;
    color: white; font-family: 'Anton'; font-size: 1rem; cursor: pointer;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}
.copy-btn:hover { background: white; color: black; }

/* CTA BUTTONS */
.cta-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 992px) { .cta-group { justify-content: flex-start; } }
.super-btn {
    padding: 15px 25px; font-size: 1.1rem; text-decoration: none;
    color: white; text-transform: uppercase; font-weight: 900;
    border: 3px solid black; transform: skew(-10deg);
    transition: all 0.2s; position: relative; display: inline-flex;
    align-items: center; justify-content: center;
}
.chart-btn { background: var(--energy-blue); color: black; box-shadow: 8px 8px 0 black; }
.chart-btn:hover { background: white; color: var(--energy-blue); box-shadow: 0 0 20px var(--energy-blue); }
.telegram-btn { background: var(--ki-orange); box-shadow: 8px 8px 0 black; }
.telegram-btn:hover { background: var(--ki-yellow); color: black; box-shadow: 0 0 20px var(--ki-yellow); }
.x-btn { background: #000000; border-color: white; box-shadow: 8px 8px 0 var(--ki-red); }
.x-btn:hover { background: white; color: black; box-shadow: 0 0 20px white; }
.super-btn:hover { transform: skew(-10deg) translate(-3px, -3px); }

/* --- VISUAL CORE --- */
.visual-core {
    position: relative; width: 400px; height: 400px;
    display: flex; justify-content: center; align-items: center;
}
.saiyan-char {
    width: 90%; height: 90%; object-fit: cover; border-radius: 50%;
    z-index: 5; position: relative; border: 5px solid var(--ki-yellow);
    animation: ultraShake 0.5s infinite;
}
.massive-aura {
    position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(255,230,0,0.8) 0%, rgba(255,100,0,0) 70%);
    border-radius: 50%; z-index: 1; filter: blur(20px);
    animation: auraExplode 0.2s infinite alternate;
}
/* ORBITS */
.hyper-orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; }
.orbit-1 { width: 450px; height: 450px; animation: spinChaos1 8s linear infinite; }
.orbit-2 { width: 550px; height: 550px; animation: spinChaos2 12s linear infinite reverse; }
.ball {
    width: 60px; height: 60px; position: absolute;
    background-size: cover; border-radius: 50%;
    box-shadow: 0 0 20px var(--ki-orange); filter: brightness(1.2);
}
.orbit-1 .b1 { top: 0; left: 50%; background-image: url('../images/1star.png'); }
.orbit-1 .b2 { top: 60%; right: 0%; background-image: url('../images/2star.png'); }
.orbit-1 .b3 { bottom: 10%; left: 20%; background-image: url('../images/3star.png'); }
.orbit-2 .b4 { top: 20%; left: 10%; background-image: url('../images/4star.png'); }
.orbit-2 .b5 { bottom: 0; left: 50%; background-image: url('../images/5star.png'); }
.orbit-2 .b6 { top: 50%; right: -5%; background-image: url('../images/6star.png'); }
.orbit-2 .b7 { top: -10%; right: 30%; background-image: url('../images/7star.png'); }

@keyframes ultraShake {
    0% { transform: translate(2px, 2px) rotate(0deg); } 25% { transform: translate(-2px, -3px) rotate(-1deg); }
    50% { transform: translate(3px, 0px) rotate(1deg); } 75% { transform: translate(-3px, 2px) rotate(0deg); }
    100% { transform: translate(2px, -2px) rotate(-1deg); }
}
@keyframes auraExplode { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 1; transform: scale(1.15); } }
@keyframes spinChaos1 { from { transform: translate(-50%, -50%) rotate(0deg) skewX(5deg); } to { transform: translate(-50%, -50%) rotate(360deg) skewX(-5deg); } }
@keyframes spinChaos2 { from { transform: translate(-50%, -50%) rotate(360deg); } to { transform: translate(-50%, -50%) rotate(0deg); } }

/* --- LORE SECTION --- */
.lore-container { padding: 50px 20px; display: flex; justify-content: center; }
.lore-box {
    background: rgba(0, 20, 0, 0.85); border: 3px solid var(--ki-yellow);
    box-shadow: 0 0 20px var(--ki-yellow); max-width: 800px; padding: 40px;
    text-align: center; transform: skew(-2deg); position: relative; overflow: hidden;
}
.lore-title { font-family: 'Bangers', cursive; font-size: 3rem; color: var(--ki-orange); text-shadow: 2px 2px 0 black; margin-bottom: 20px; }
.lore-content p { font-family: 'Orbitron', sans-serif; color: #ccffcc; font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }
.lore-wish { font-family: 'Anton', sans-serif; font-size: 2.5rem; color: white; background: var(--ki-red); display: inline-block; padding: 5px 20px; transform: skew(-10deg); box-shadow: 5px 5px 0 black; }

/* --- SAIYAN TEK SECTION --- */
.tech-section {
    position: relative; padding: 60px 20px; background: #001100;
    border-top: 4px solid var(--energy-blue); border-bottom: 4px solid var(--energy-blue);
    margin: 50px 0; overflow: hidden; text-align: center;
}
.tech-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px; z-index: 0; pointer-events: none;
}
.tech-header { font-family: 'Orbitron', sans-serif; font-size: 3rem; color: var(--energy-blue); text-shadow: 0 0 15px var(--energy-blue); position: relative; z-index: 1; margin-bottom: 10px; }
.tech-subtitle { font-family: 'Share Tech Mono', monospace; color: #00ff00; font-size: 1.2rem; margin-bottom: 40px; position: relative; z-index: 1; }
.blink { animation: blinker 1s linear infinite; color: red; }
@keyframes blinker { 50% { opacity: 0; } }

.tek-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
@media (min-width: 768px) { .tek-grid { grid-template-columns: repeat(2, 1fr); } }
.tek-card {
    background: rgba(0, 20, 0, 0.8); border: 1px solid #00ff00; padding: 25px;
    text-align: left; transition: 0.3s; position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}
.tek-card:hover { background: rgba(0, 40, 0, 0.9); transform: translateY(-5px); box-shadow: 0 0 20px #00ff00; }
.tek-icon { font-size: 2.5rem; float: right; opacity: 0.5; }
.tek-percent { font-family: 'Anton', sans-serif; font-size: 3.5rem; color: white; margin-bottom: 5px; text-shadow: 2px 2px 0px #000; }
.reward-card .tek-percent { color: var(--ki-blue); text-shadow: 0 0 10px var(--ki-blue); }
.burn-card .tek-percent { color: var(--ki-red); text-shadow: 0 0 10px var(--ki-red); }
.volume-card .tek-percent { color: var(--ki-yellow); text-shadow: 0 0 10px var(--ki-yellow); }
.reserve-card .tek-percent { color: #00ff00; text-shadow: 0 0 10px #00ff00; }
.tek-card h4 { font-family: 'Orbitron', sans-serif; color: white; margin-bottom: 10px; letter-spacing: 1px; font-size: 1.2rem; }
.tek-card p { font-family: 'Share Tech Mono', monospace; color: #aaffaa; font-size: 0.95rem; line-height: 1.4; }

.tek-logs-container { margin-top: 50px; position: relative; z-index: 2; }
.log-text { font-family: 'Orbitron'; color: white; font-size: 0.9rem; margin-bottom: 15px; letter-spacing: 2px; }
.log-btn {
    display: inline-block; background: transparent; border: 2px solid var(--energy-blue);
    color: var(--energy-blue); padding: 15px 40px; font-family: 'Orbitron';
    text-decoration: none; font-weight: bold; text-transform: uppercase;
    position: relative; overflow: hidden; transition: 0.3s;
}
.log-btn:hover { background: var(--energy-blue); color: black; box-shadow: 0 0 30px var(--energy-blue); }
.scan-line {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-20deg); animation: scanBtn 3s infinite;
}
@keyframes scanBtn { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.footer-text { text-align: center; font-family: 'Orbitron'; color: #777; padding: 20px; font-size: 0.8rem; }