/* --- RESET & BASE --- */
* { 
    padding: 0; 
    margin: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: #1a1a1a; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: white; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* --- UI HEADER (Top Bar) --- */
#ui {
    width: 450px; 
    box-sizing: border-box; 
    display: flex; 
    justify-content: space-between;
    background: linear-gradient(180deg, #333 0%, #222 100%); 
    padding: 15px 20px; 
    border-radius: 12px 12px 0 0; 
    border: 2px solid #444; 
    border-bottom: 2px solid #555; 
    text-align: center;
    z-index: 200;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.score-box { 
    flex: 1; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.score-box div { margin: 2px 0; }
.score-box span { font-weight: bold; color: #fff; }

.level-box { 
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px; 
    font-weight: bold; 
    color: #ffeb3b; 
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.level-indicator { font-size: 10px; color: rgba(255,235,59,0.7); margin-bottom: -4px; }
.timer-display { font-size: 12px; font-family: monospace; color: #888; margin-top: 4px; }

.circle { color: #ff4444; font-weight: 900; } 
.square { color: #4444ff; font-weight: 900; }

/* --- UPDATED: GAME STATE VISIBILITY & BANK --- */
.menu-open .ingame-only { 
    display: none !important; 
}

#bank-display {
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 235, 59, 0.3); 
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); 
    transition: all 0.3s ease;
}

.menu-open #bank-display {
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.1), inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.bank-label { 
    color: rgba(255, 255, 255, 0.5); 
    font-size: 9px; 
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

#permanentTotalCoins { 
    color: #ffeb3b; 
    font-family: 'Courier New', monospace; 
    font-weight: bold; 
    font-size: 16px;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.4);
}

/* --- GAME CONTAINER --- */
#game-container { 
    position: relative; 
    width: 450px; 
    box-sizing: border-box;
    /* FIX: Match the bottom rounding of the menu */
    border: 2px solid #444; 
    border-top: none; /* Prevents double-border between UI and Game */
    border-radius: 0 0 12px 12px; 
}

#game { 
    width: 100%; 
    height: 550px; 
    background-color: #fff; 
    position: relative; 
    overflow: hidden; 
    transition: background 0.5s, transform 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);    
    /* FIX: Ensure content doesn't bleed out of rounded corners */
    border-radius: 0 0 10px 10px; 
}

/* --- CHARACTERS --- */
#character, #character2, .preview-box { 
    width: 20px; 
    height: 20px; 
    position: absolute; 
    z-index: 10; 
    transition: transform 0.1s ease;
    transform-origin: bottom; 
    /* FIX: Ensure skin image patterns sit on top of the color */
    background-size: cover !important;
    background-repeat: repeat !important;
}

#character { 
    background-color: #ff4444; 
    border-radius: 50%; 
}

#character2 { 
    background-color: #4444ff; 
}

/* FIX: Ensure skins actually render patterns over the background color */
[class^="skin-"] {
    background-blend-mode: multiply; /* Blends the color with the pattern */
}

/* --- TORCH GLOW EFFECT --- */
.torch-glow {
    z-index: 100;
    animation: torch-flicker 0.15s infinite alternate;
}

#character.torch-glow {
    box-shadow: 0 0 35px 10px rgba(255, 68, 68, 0.7), 
                0 0 80px 40px rgba(255, 68, 68, 0.3);
}

#character2.torch-glow {
    box-shadow: 0 0 35px 10px rgba(68, 68, 255, 0.7), 
                0 0 80px 40px rgba(68, 68, 255, 0.3);
}

@keyframes torch-flicker {
    0% { filter: brightness(1); transform: scale(1); }
    100% { filter: brightness(1.3); transform: scale(1.08) translateY(-2px); }
}

/* --- CROUCH EFFECT --- */
.crouching {
    transform: scaleY(0.5); 
    filter: brightness(0.8);
}

/* --- PLATFORMS --- */
.block { 
    width: 450px; 
    height: 20px; 
    background-color: #222; 
    position: absolute; 
}

.hole { 
    width: 50px; 
    height: 20px; 
    background-color: inherit; 
    position: absolute; 
}

/* --- MENUS (Main Menu & Game Over) --- */
/* --- MENUS (Main Menu & Game Over) --- */
#menu, #gameOver {
    position: absolute; 
    inset: 0; 
    z-index: 100; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    padding: 20px; 
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* FIX: Match the parent width exactly and fix bottom corners */
    width: 100% !important; 
    border-radius: 0 0 12px 12px !important;
}

#menu h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#gameOver h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 15px; 
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #ff4444, #880000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CUSTOMIZATION MENU --- */
#customizationMenu {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#customizationMenu h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* --- GLASS CONTAINER --- */
.glass {
    background: rgba(20, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 20px;
}

.wide { width: 500px; padding: 30px; }

.custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.player-col {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 100%;
}

.preview-box {
    position: relative; /* Fixed from absolute for layout */
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.input-group { width: 100%; }

.input-group label {
    display: block;
    font-size: 10px;
    color: #888;
    letter-spacing: 1px;
    margin: 10px 0 4px 0;
    text-align: left;
}

.input-group input, .input-group select {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* --- DEATH SCREEN SCORES --- */
#finalScores {
    margin: 10px 0 20px 0;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.final-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.final-score-row span:first-child {
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 10px currentColor;
}

#finalP1, #finalP2 {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

/* --- ADDED: COIN BONUS SPACING --- */
#deathCoinBonus {
    margin: 15px 0;
}

#coinsEarned {
    margin-left: 8px; /* Adds space between text and the coin number */
}

/* --- PAUSE OVERLAY --- */
#pauseOverlay {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 150;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    pointer-events: none;
}

.pause-icon { 
    display: flex; gap: 15px; margin-bottom: 10px; animation: pulse 1.5s infinite; 
}

.pause-bar { 
    width: 18px; height: 60px; background: rgba(255,255,255,0.9); border-radius: 4px; 
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* --- BUTTONS --- */
.btn-group-vertical { 
    display: flex; flex-direction: column; gap: 10px; width: 220px; margin: 0 auto;
}

button { 
    padding: 12px 20px; 
    cursor: pointer; 
    background: #ff4444; 
    color: white; 
    border: none; 
    font-weight: 800; 
    border-radius: 50px; 
    font-size: 13px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

button:hover { 
    background: #ff5555; 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.menu-btn {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    box-shadow: none;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: white !important;
}

/* --- HELPERS --- */
.hidden { display: none !important; }
.dead { display: none; }

/* --- ABILITY & CHEAT EFFECTS --- */
.toggle-flash { 
    animation: flash-white 0.4s ease; 
}

@keyframes flash-white {
    0% { filter: brightness(1); }
    50% { filter: brightness(4); transform: scale(1.4); }
    100% { filter: brightness(1); }
}

.lightning-bolt { 
    position: absolute; width: 6px; background: white; box-shadow: 0 0 15px #0ff; z-index: 99; animation: flash-bolt 0.2s forwards; 
}

@keyframes flash-bolt { 
    0% { opacity: 0; } 50% { opacity: 1; transform: scaleX(3); } 100% { opacity: 0; } 
}

.shake { animation: shakeAnim 0.2s; }
@keyframes shakeAnim { 
    25% { transform: translate(5px,-5px); } 75% { transform: translate(-5px,5px); } 
}

.burning { 
    background-color: #ff5722 !important; box-shadow: 0 0 20px #ffeb3b; animation: crisp 1.5s forwards; 
}

@keyframes crisp { 
    100% { transform: scale(0.5); background-color: #111; opacity: 0; } 
}

.particle { 
    position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; animation: explode 0.8s ease-out forwards; 
}

@keyframes explode { 
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } 
}

/* --- THEMES --- */
.theme-neon { background-color: #000 !important; }
.theme-neon .block { background-color: #00f7ff !important; box-shadow: 0 0 15px #00f7ff; }

.theme-magma { background-color: #2b0000 !important; }
.theme-magma .block { background-color: #ff4500 !important; box-shadow: 0 0 20px #ff0000; }

.theme-cyber { background-color: #001a00 !important; }
.theme-cyber .block { background-color: #0f0 !important; border-top: 2px solid #fff; }

.theme-toxic { background-color: #0e1a00 !important; }
.theme-toxic .block { background-color: #99ff00 !important; box-shadow: 0 0 10px #99ff00; }

.theme-frozen { background-color: #e0f7fa !important; }
.theme-frozen .block { background-color: #00bcd4 !important; border-top: 2px solid #fff; }

.theme-void { background-color: #050505 !important; } 
.theme-void .block { background-color: #333 !important; }

/* --- ENVIRONMENTAL PARTICLES --- */
.env-particle { position: absolute; pointer-events: none; z-index: 1; }

.ash { 
    width: 4px; height: 4px; background: #ff5722; border-radius: 50%; filter: blur(1px); animation: fall-sway 3s linear forwards; 
}

.matrix { 
    width: 2px; height: 15px; background: #0f0; box-shadow: 0 0 5px #0f0; animation: fall-fast 1s linear forwards; 
}

.bubble { 
    width: 10px; height: 10px; border: 1px solid #99ff00; border-radius: 50%; animation: float-up 4s ease-in forwards; 
}

.snowflake { 
    width: 5px; height: 5px; background: white; border-radius: 50%; opacity: 0.8; opacity: 0.8; animation: fall-sway 5s linear forwards; 
}

@keyframes fall-sway { to { transform: translate(40px, 600px) rotate(360deg); opacity: 0; } }
@keyframes fall-fast { to { transform: translateY(600px); opacity: 0; } }
@keyframes float-up { to { transform: translate(-20px, -600px); opacity: 0; } }

/* Stage 1: Level 9 Warning */
.rumble { animation: rumble 0.12s infinite; }
.cracking {
    filter: contrast(120%) brightness(90%);
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 10px);
}

@keyframes rumble {
    0% { transform: translate(1px, 1px); }
    50% { transform: translate(-1.5px, -1px); }
    100% { transform: translate(1px, -1px); }
}

/* Debris Chunks */
.floor-chunk {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* --- SHAPE DEFINITIONS --- */
.shape-triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%) !important; border-radius: 0 !important; }
.shape-diamond { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important; border-radius: 0 !important; }
.shape-hexagon { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%) !important; border-radius: 0 !important; }

.coin-display {
    color: #ffeb3b;
    font-size: 14px;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.coin-icon {
    display: inline-block;
    animation: coin-spin 2s infinite linear;
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.player {
    overflow: visible !important; /* This allows the glowing skins to actually glow */
    position: relative;
    z-index: 10;
}
/* ============================================================
   SHAPE ESCAPE - MASTER STABILIZED SKIN ENGINE
   ============================================================ */

/* --- 1. THE RENDERING OVERRIDE --- */
#character[class*="skin-"], 
#character2[class*="skin-"],
.preview-box[class*="skin-"],
.item-preview[class*="skin-"],
.user-shape[class*="skin-"],
.spinner-item [class*="skin-"] {
    background-color: transparent !important; 
    overflow: visible !important;           
    z-index: 10;
    background-repeat: repeat !important;
    background-position: center !important;
    position: relative;
}

/* --- COMMON SKINS --- */
.skin-stripes { background: repeating-linear-gradient(45deg, #ffffff 0, #ffffff 8px, #111 8px, #111 16px) !important; border: 2px solid #fff !important; }
.skin-dots { background: #000 !important; background-image: radial-gradient(#fff 30%, transparent 30%) !important; background-size: 12px 12px !important; box-shadow: inset 0 0 15px rgba(255,255,255,0.4); }
.skin-bricks { background: #4a2511 !important; background-image: linear-gradient(335deg, #000 5px, transparent 5px), linear-gradient(155deg, #000 5px, transparent 5px) !important; background-size: 15px 15px !important; }
.skin-grid { background: #111 !important; background-image: linear-gradient(#333 1px, transparent 1px), linear-gradient(90deg, #333 1px, transparent 1px) !important; background-size: 10px 10px !important; }
.skin-blueprint { background: #0044aa !important; background-image: linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px) !important; background-size: 8px 8px !important; }
.skin-camo { background: #4b5320 !important; background-image: radial-gradient(#2b3010 20%, transparent 20%), radial-gradient(#6b7340 20%, transparent 20%) !important; background-size: 15px 15px !important; background-position: 0 0, 7px 7px !important; }

/* --- UNCOMMON SKINS --- */
.skin-checkered { background-image: conic-gradient(#fff 90deg, #111 90deg 180deg, #fff 180deg 270deg, #111 270deg) !important; background-size: 16px 16px !important; }
.skin-zigzag { background: linear-gradient(135deg, #ff0055 25%, transparent 25%), linear-gradient(225deg, #ff0055 25%, transparent 25%) !important; background-size: 20px 20px !important; background-color: #000 !important; box-shadow: 0 0 10px #ff0055, inset 0 0 10px #ff0055; }
.skin-hex { background: #000 !important; background-image: linear-gradient(30deg, #333 12%, transparent 12.5%, transparent 87%, #333 87.5%, #333), linear-gradient(150deg, #333 12%, transparent 12.5%, transparent 87%, #333 87.5%, #333) !important; background-size: 20px 35px !important; }
.skin-carbon { background: #111 !important; background-image: linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222), linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222) !important; background-size: 4px 4px !important; background-position: 0 0, 2px 2px !important; }
.skin-hazard { background: #ffcc00 !important; background-image: linear-gradient(45deg, #000 25%, transparent 25%, transparent 50%, #000 50%, #000 75%, transparent 75%, transparent) !important; background-size: 20px 20px !important; }

/* --- RARE SKINS --- */
.skin-waves { background: #000 !important; background-image: repeating-radial-gradient(circle at 0% 50%, transparent, transparent 10px, #00bbff 10px, #00bbff 14px) !important; box-shadow: 0 0 15px #00bbff, inset 0 0 20px #00bbff !important; }
.skin-circuit { background: #000 !important; background-image: linear-gradient(rgba(0, 255, 136, 1) 2px, transparent 2px), linear-gradient(90deg, rgba(0, 255, 136, 1) 2px, transparent 2px) !important; background-size: 15px 15px !important; box-shadow: 0 0 20px #00ff88, inset 0 0 15px #00ff88 !important; }
.skin-toxic { background: #ccff00 !important; background-image: repeating-linear-gradient(45deg, #000 0, #000 10px, transparent 10px, transparent 20px) !important; box-shadow: 0 0 15px #ccff00, inset 0 0 20px #000 !important; }
.skin-ruby { background: linear-gradient(135deg, #ff0000 0%, #400000 100%) !important; box-shadow: 0 0 20px #ff0000, inset 0 0 25px #ff4444 !important; }
.skin-lava-static { background: radial-gradient(circle at center, #ffea00, #ff4500, #440000) !important; box-shadow: 0 0 20px #ff4500, inset 0 0 30px #ff0000 !important; }
.skin-glitch-static { background: #222 !important; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, transparent 1px, transparent 2px) !important; animation: staticFlicker 0.2s infinite; }
.skin-gold-leaf { background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c) !important; box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }

/* --- LEGENDARY SKINS --- */
.skin-matrix { background: #000 !important; background-image: linear-gradient(0deg, transparent 0, #00ff46 50%, transparent 100%) !important; background-size: 100% 15px !important; animation: matrixScroll 0.3s linear infinite !important; box-shadow: 0 0 25px #00ff46, inset 0 0 25px #00ff46 !important; }
.skin-solar { background: radial-gradient(circle, #fff, #ffeb3b, #ff5722) !important; animation: solarPulse 1s ease-in-out infinite !important; box-shadow: 0 0 40px #ff5722, inset 0 0 20px #fff !important; }
.skin-void { background: #000 !important; background-image: radial-gradient(circle at center, #7b61ff 0%, #000 80%) !important; animation: voidGlow 1.5s infinite alternate !important; box-shadow: 0 0 30px #7b61ff, inset 0 0 40px #7b61ff !important; }
.skin-plasma { background: linear-gradient(-45deg, #ff00cc, #3333ff, #00ffff, #ff00cc) !important; background-size: 300% 300% !important; animation: plasmaShift 2s ease infinite !important; filter: saturate(2) brightness(1.4) !important; box-shadow: 0 0 30px rgba(255, 0, 204, 0.6) !important; }
.skin-cyber-pulse { background-color: #000 !important; background-image: linear-gradient(transparent 50%, #00ffff 50%) !important; background-size: 100% 40px !important; animation: scanLine 0.8s linear infinite !important; box-shadow: 0 0 25px #00ffff, inset 0 0 20px #00ffff !important; }
.skin-nebula { background: radial-gradient(circle, #6a11cb, #2575fc, #000) !important; background-size: 200% 200% !important; animation: nebulaMove 3s ease infinite !important; box-shadow: 0 0 35px #2575fc !important; }
.skin-ghost { background: #fff !important; animation: ghostFlicker 0.1s steps(2) infinite !important; box-shadow: 0 0 40px #00ffff !important; }
.skin-emerald { background: #000 !important; background-image: radial-gradient(#00ff88 4px, transparent 4px) !important; background-size: 20px 20px !important; animation: emeraldPulse 1s ease-in-out infinite !important; box-shadow: 0 0 20px #00ff88 !important; }
.skin-overdrive { background: linear-gradient(90deg, #ff00ff, #222 50%, #ff00ff) !important; background-size: 200% 100% !important; animation: overdriveSpeed 0.2s linear infinite !important; box-shadow: 0 0 30px #ff00ff !important; }
.skin-supernova { background: #fff !important; box-shadow: 0 0 80px #fff, 0 0 150px #ffea00 !important; animation: solarPulse 0.5s infinite !important; }
.skin-frozen { background: #00ffff !important; background-image: radial-gradient(circle, #fff 10%, #0066ff 90%) !important; box-shadow: 0 0 35px #00ffff, inset 0 0 20px #fff !important; animation: emeraldPulse 2s infinite !important; }
.skin-rainbow-cycle { background: #ff0000 !important; animation: hueShift 2s linear infinite !important; box-shadow: 0 0 40px currentColor, inset 0 0 25px rgba(255,255,255,0.7) !important; }

/* MYTHIC SKINS (NEW) */
.skin-neural { background: #000 !important; background-image: radial-gradient(circle at 50% 50%, #00f2ff 2px, transparent 3px) !important; animation: neuralZap 0.5s steps(4) infinite !important; box-shadow: 0 0 30px #00f2ff, inset 0 0 15px #00f2ff !important; }
.skin-black-hole { background: radial-gradient(circle, #000 20%, #4b0082 80%) !important; animation: eventHorizon 2s linear infinite !important; box-shadow: 0 0 40px #4b0082, inset 0 0 30px #000 !important; }
.skin-glitch-overlord { background: #111 !important; animation: overlordShift 0.15s infinite !important; box-shadow: 5px 0 #ff0055, -5px 0 #00ffff !important; }

/* --- ANIMATION ENGINE --- */
@keyframes matrixScroll { from { background-position: 0 0; } to { background-position: 0 30px; } }
@keyframes solarPulse { 0%, 100% { transform: scale(1); filter: brightness(1.2); } 50% { transform: scale(1.1); filter: brightness(2.5); } }
@keyframes voidGlow { from { box-shadow: 0 0 10px #7b61ff; } to { box-shadow: 0 0 60px #7b61ff, inset 0 0 50px #7b61ff; } }
@keyframes plasmaShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes scanLine { from { background-position: 0 0; } to { background-position: 0 40px; } }
@keyframes nebulaMove { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
@keyframes ghostFlicker { 0% { opacity: 1; filter: invert(0); transform: skewX(0deg); } 50% { opacity: 0.6; filter: invert(1); transform: skewX(8deg); } }
@keyframes emeraldPulse { 0%, 100% { filter: brightness(1); box-shadow: 0 0 20px #00ff88; } 50% { filter: brightness(2.8); box-shadow: 0 0 50px #00ff88; } }
@keyframes overdriveSpeed { from { background-position: 0 0; } to { background-position: 40px 0; } }
@keyframes hueShift { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes staticFlicker { 0% { opacity: 0.8; } 50% { opacity: 1; transform: scale(1.02); } 100% { opacity: 0.9; } }
@keyframes neuralZap { from { filter: hue-rotate(0deg) contrast(1.5); } to { filter: hue-rotate(180deg) contrast(2.5); } }
@keyframes eventHorizon { from { transform: rotate(0deg) scale(1); } to { transform: rotate(360deg) scale(1.15); } }
@keyframes overlordShift { 0% { transform: translate(2px, -1px); filter: contrast(1.5); } 50% { transform: translate(-2px, 2px); filter: hue-rotate(45deg); } 100% { transform: translate(1px, -2px); } }
