/* --- CORE SYSTEM VARIABLES --- */
:root {
    --bg-deep: #020203;
    --bg-panel: #0a0b10;
    --primary: #00f3ff; /* Tron Cyan */
    --accent: #ff003c;  /* Cyberpunk Red */
    --warning: #fcee0a; /* High Voltage Yellow */
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    
    --font-code: 'Fira Code', monospace;
    --font-ui: 'Rajdhani', sans-serif;
    
    --neon-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --neon-red: 0 0 10px rgba(255, 0, 60, 0.5), 0 0 20px rgba(255, 0, 60, 0.3);
}

/* --- BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; outline: none; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { background-color: var(--bg-deep); color: var(--text-main); font-family: var(--font-ui); overflow-x: hidden; line-height: 1.6; }

/* --- PRELOADER --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 99999; display: flex; align-items: center; justify-content: center; flex-direction: column; font-family: var(--font-code); transition: opacity 0.5s ease, visibility 0.5s ease; }
.bios-text { color: var(--primary); font-size: 1rem; margin-bottom: 20px; text-align: left; width: 300px; line-height: 1.5; }
.bios-cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); animation: blink 0.8s infinite; }
.progress-container { width: 300px; height: 4px; background: #222; border: 1px solid #444; }
.progress-bit { height: 100%; width: 0%; background: var(--accent); box-shadow: var(--neon-red); animation: bootLoad 2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* --- BACKGROUND FX --- */
.scanlines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9000; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px); background-size: 100% 2px; }
#matrix-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.07; }

/* --- CURSOR --- */
#cursor { width: 20px; height: 20px; border: 1px solid var(--primary); position: fixed; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, border-color 0.2s; mix-blend-mode: difference; }
#cursor::before, #cursor::after { content: ''; position: absolute; background: var(--primary); transition: 0.2s; }
#cursor::before { top: 50%; left: -5px; width: 30px; height: 1px; transform: translateY(-50%); }
#cursor::after { left: 50%; top: -5px; height: 30px; width: 1px; transform: translateX(-50%); }
#cursor.hovered { width: 40px; height: 40px; border-color: var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
#cursor.hovered::before, #cursor.hovered::after { background: var(--accent); }
@media (hover: none) { #cursor { display: none; } }

/* --- HTOP WIDGET --- */
.sys-monitor { position: fixed; top: 120px; right: 40px; width: 200px; background: rgba(10, 11, 16, 0.9); border: 1px solid #333; border-right: 2px solid var(--accent); padding: 15px; font-family: var(--font-code); font-size: 0.7rem; z-index: 90; display: none; backdrop-filter: blur(5px); box-shadow: 0 0 20px rgba(0,0,0,0.8); }
.mon-title { color: var(--warning); border-bottom: 1px solid #333; margin-bottom: 8px; font-weight: bold; }
.mon-row { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--text-dim); }
.mon-bar { width: 100%; height: 4px; background: #222; margin-bottom: 8px; overflow: hidden; }
.mon-fill { height: 100%; background: var(--primary); width: 0%; animation: cpu-jitter 2s infinite; }
.mon-fill.ram { background: var(--accent); animation: ram-jitter 5s infinite; }
@media(min-width: 1200px) { .sys-monitor { display: block; } }

/* --- HEADER & NAV --- */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(2, 2, 3, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--font-ui); font-size: 1.8rem; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.brand span { color: var(--accent); }

nav ul { display: flex; list-style: none; gap: 2.5rem; }
nav a { color: var(--text-dim); text-decoration: none; font-family: var(--font-code); font-size: 0.85rem; transition: 0.3s; position: relative; }
nav a:hover { color: var(--primary); text-shadow: var(--neon-cyan); }
nav a::before { content: '>'; margin-right: 5px; color: var(--accent); opacity: 0; transition: 0.3s; }
nav a:hover::before { opacity: 1; }

.menu-btn { display: none; color: var(--primary); background: none; border: none; font-size: 1.5rem; z-index: 1002; }

/* --- SECTIONS --- */
section { padding: 8rem 8% 5rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 1400px; margin: 0 auto; position: relative; }
.section-label { font-family: var(--font-code); color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; display: block; letter-spacing: 2px; }
.section-title { font-size: clamp(2.5rem, 6vw, 4rem); color: #fff; font-weight: 800; text-transform: uppercase; margin-bottom: 3rem; line-height: 1; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
.section-title span { -webkit-text-stroke: 1px var(--primary); color: transparent; }

/* --- HERO --- */
#home { align-items: flex-start; }
.hero-glitch { font-size: clamp(4rem, 15vw, 9rem); font-weight: 900; line-height: 0.85; color: #fff; position: relative; text-transform: uppercase; margin-bottom: 1.5rem; letter-spacing: -3px; }
.hero-glitch::before, .hero-glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.7; }
.hero-glitch::before { color: var(--accent); z-index: -1; animation: glitch-hard 3s infinite reverse; }
.hero-glitch::after { color: var(--primary); z-index: -2; animation: glitch-soft 4s infinite; }

.hero-role { font-family: var(--font-code); font-size: clamp(1rem, 3vw, 1.3rem); color: var(--text-dim); margin-bottom: 2rem; display: flex; align-items: center; gap: 15px; }
.hero-role i { color: var(--warning); }
.typing-text { color: var(--primary); font-weight: bold; }

.btn-main { padding: 15px 40px; background: rgba(255, 0, 60, 0.1); border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-ui); font-size: 1.1rem; text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; transition: 0.4s; position: relative; overflow: hidden; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn-main:hover { background: var(--accent); color: #000; box-shadow: var(--neon-red); }

/* --- ABOUT (THE LORE) --- */
.lore-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.lore-img { position: relative; padding: 20px; border: 1px solid #333; background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,243,255,0.02) 5px, rgba(0,243,255,0.02) 10px); }
.lore-img img { width: 100%; display: block; filter: grayscale(100%) contrast(1.2) brightness(0.9); transition: 0.5s; mix-blend-mode: luminosity; }
.lore-img:hover img { filter: grayscale(0%); mix-blend-mode: normal; }
.decor-corner { position: absolute; width: 30px; height: 30px; border: 2px solid var(--primary); transition: 0.3s; }
.dc-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.dc-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.lore-text p { margin-bottom: 1.8rem; font-size: 1.1rem; color: var(--text-dim); border-left: 2px solid transparent; padding-left: 15px; transition: 0.3s; }
.lore-text p:hover { border-left-color: var(--accent); color: var(--text-main); }
.hl-red { color: var(--accent); font-weight: 700; }
.hl-cyan { color: var(--primary); font-weight: 700; font-family: var(--font-code); }

/* --- TECH STACK --- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.stack-card { background: var(--bg-panel); border: 1px solid #222; padding: 2rem; transition: 0.3s; position: relative; overflow: hidden; }
.stack-card:hover { border-color: var(--primary); box-shadow: var(--neon-cyan); transform: translateY(-5px); }
.stack-icon { font-size: 2.5rem; color: var(--text-dim); margin-bottom: 1.5rem; transition: 0.3s; }
.stack-card:hover .stack-icon { color: var(--primary); }
.stack-title { font-family: var(--font-ui); color: #fff; font-size: 1.4rem; margin-bottom: 1rem; text-transform: uppercase; }
.stack-list { list-style: none; font-family: var(--font-code); font-size: 0.85rem; color: var(--text-dim); }
.stack-list li { margin-bottom: 8px; display: flex; align-items: center; }
.stack-list li::before { content: '+'; color: var(--accent); margin-right: 10px; font-weight: bold; }

/* --- PROJECTS --- */
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.op-card { border: 1px solid #333; background: #080808; padding: 0; position: relative; transition: 0.4s; overflow: hidden; }
.op-card:hover { border-color: var(--accent); }
.op-header { padding: 1.5rem; border-bottom: 1px solid #222; background: rgba(255,255,255,0.01); display: flex; justify-content: space-between; align-items: center; }
.op-status { font-family: var(--font-code); font-size: 0.7rem; color: var(--primary); background: rgba(0, 243, 255, 0.1); padding: 4px 8px; border-radius: 2px; }
.op-body { padding: 2rem; }
.op-title { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; font-weight: 800; font-family: var(--font-ui); text-transform: uppercase; }
.op-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.5; }
.op-tech { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-pill { font-family: var(--font-code); font-size: 0.7rem; color: #fff; border: 1px solid #444; padding: 3px 8px; }

/* --- TERMINAL --- */
.terminal-shell { width: 100%; max-width: 900px; margin: 0 auto; background: rgba(10, 10, 13, 0.95); border: 1px solid #333; box-shadow: 0 0 50px rgba(0,0,0,0.5); border-radius: 4px; }
.shell-bar { background: #151515; padding: 8px 15px; display: flex; align-items: center; border-bottom: 1px solid #222; font-family: var(--font-code); font-size: 0.75rem; color: #666; justify-content: space-between; }
.shell-controls { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.shell-content { padding: 20px; height: 350px; overflow-y: auto; font-family: var(--font-code); font-size: 0.9rem; color: #ccc; }

.shell-input-zone { background: #080808; padding: 15px; border-top: 1px solid #222; display: flex; align-items: center; }
.prompt-ps1 { color: var(--accent); font-weight: bold; margin-right: 10px; }
.prompt-path { color: var(--primary); margin-right: 10px; }
.cmd-input { background: transparent; border: none; color: #fff; flex: 1; font-family: inherit; font-size: 1rem; }

.macro-row { display: flex; gap: 10px; padding: 10px; background: #111; overflow-x: auto; border-top: 1px solid #222; }
.macro-btn { background: #222; border: 1px solid var(--primary); color: var(--primary); padding: 8px 12px; font-family: var(--font-code); font-size: 0.75rem; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.macro-btn:hover, .macro-btn:active { background: var(--primary); color: #000; }

.log-ok { color: var(--primary); }
.log-warn { color: var(--warning); }
.log-err { color: var(--accent); }

/* --- FOOTER --- */
footer { border-top: 1px solid #222; padding: 4rem 10%; text-align: center; margin-top: 6rem; background: #010101; }
.footer-text { font-family: var(--font-code); font-size: 0.8rem; color: #555; }

/* --- ANIMATIONS --- */
@keyframes bootLoad { 0% {width:0%} 100% {width:100%} }
@keyframes blink { 50% {opacity:0} }
@keyframes cpu-jitter { 0%,100% {width:12%} 20% {width:45%} 40% {width:20%} 60% {width:70%} 80% {width:30%} }
@keyframes ram-jitter { 0%,100% {width:35%} 50% {width:42%} }
@keyframes glitch-hard { 0% {clip-path:inset(20% 0 80% 0); transform:translate(-2px,2px)} 20% {clip-path:inset(60% 0 10% 0); transform:translate(2px,-2px)} 40% {clip-path:inset(40% 0 50% 0); transform:translate(-2px,2px)} 60% {clip-path:inset(80% 0 5% 0); transform:translate(2px,-2px)} 80% {clip-path:inset(10% 0 70% 0); transform:translate(-2px,2px)} 100% {clip-path:inset(30% 0 50% 0); transform:translate(0)} }
@keyframes glitch-soft { 0% {transform:translate(0)} 20% {transform:translate(-1px,1px)} 40% {transform:translate(-1px,-1px)} 60% {transform:translate(1px,1px)} 80% {transform:translate(1px,-1px)} 100% {transform:translate(0)} }

/* --- RESPONSIVE 768px --- */
@media (max-width: 768px) {
    section { padding: 5rem 5% 3rem; }
    .hero-glitch { font-size: 3.2rem; }
    .lore-grid { grid-template-columns: 1fr; }
    .menu-btn { display: block; }
    nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(2,2,3,0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; transform: translateX(100%); transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); border-bottom: none; z-index: 1001; }
    nav.active { transform: translateX(0); }
    nav ul { flex-direction: column; text-align: center; }
    nav a { font-size: 1.5rem; color: #fff; }
    .sys-monitor { display: none; }
}

/* --- RESPONSIVE FIX PARA 320px (MOBILE SMALL) --- */
@media (max-width: 380px) {
    header { padding: 0.5rem 5%; }
    .brand { font-size: 1.5rem; }
    
    section { padding: 4rem 1rem 2rem; }
    
    .hero-glitch { font-size: 2.8rem; margin-bottom: 1rem; }
    .hero-role { font-size: 0.85rem; flex-direction: column; align-items: flex-start; gap: 5px; }
    
    .stack-grid { grid-template-columns: 1fr; }
    .ops-grid { grid-template-columns: 1fr; }
    
    .terminal-shell { border-radius: 0; border-left: none; border-right: none; width: 100%; }
    .shell-content { height: 250px; }
    .shell-input-zone { padding: 10px; }
    .prompt-ps1 { display: none; } /* Ahorrar espacio en input */
    
    .btn-main { width: 100%; text-align: center; padding: 12px 20px; font-size: 1rem; }
    
    footer { padding: 2rem 5%; }
}

/* --- CRT OVERLAY EFFECT --- */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 9998;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.7);
}

/* Flicker sutil de pantalla */
@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.95; }
    100% { opacity: 0.97; }
}
body {
    animation: flicker 0.15s infinite;
}

/* --- QUAKE CONSOLE --- */
.quake-console {
    position: fixed;
    top: -50vh; /* Oculto arriba */
    left: 0;
    width: 100%;
    height: 50vh; /* Ocupa la mitad de la pantalla */
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 2px solid var(--accent);
    z-index: 999999; /* Por encima de TODO */
    display: flex;
    flex-direction: column;
    transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.quake-console.open {
    top: 0; /* Visible */
}

.quake-header {
    background: var(--accent);
    color: #000;
    padding: 5px 15px;
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.quake-output {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #ccc;
    border-bottom: 1px solid #333;
}

.quake-input-area {
    padding: 10px 20px;
    background: #000;
    display: flex;
    align-items: center;
}

.quake-input-area .prompt {
    color: var(--accent);
    margin-right: 10px;
    font-family: var(--font-code);
    font-weight: bold;
}

.quake-input-area input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-code);
    font-size: 1rem;
    width: 100%;
}

.log-line { margin-bottom: 5px; }

/* --- PREDATOR / THERMAL MODE --- */
body.predator-mode {
    /* Paleta Térmica: Fondo Azul Frío -> Texto Amarillo/Rojo Caliente */
    --bg-deep: #020412; /* Azul casi negro */
    --bg-panel: #050a24;
    --primary: #ffff00; /* Amarillo (Calor Medio) */
    --accent: #ff003c;  /* Rojo (Calor Extremo) */
    --warning: #00ff00; /* Verde HUD */
    --text-main: #00f3ff; /* Cian (Zonas Frías) */
    --text-dim: #2d5af0;  /* Azul Profundo */
    
    /* Efecto de brillo intenso */
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* Efecto en Imágenes: Invertir colores y rotar tono para parecer infrarrojo */
body.predator-mode img {
    filter: invert(1) hue-rotate(180deg) contrast(1.2);
    mix-blend-mode: hard-light;
}

/* Overlay de "Ruido de Calor" */
body.predator-mode::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 10, 60, 0.5) 100%);
    pointer-events: none;
    z-index: 9997;
    mix-blend-mode: overlay;
}

/* Cursor se vuelve una mira roja */
body.predator-mode #cursor {
    border-color: #ff0000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
body.predator-mode #cursor::before, 
body.predator-mode #cursor::after {
    background: #ff0000;
}

/* --- SONAR RIPPLE EFFECT --- */
.sonar-ripple {
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Para que no bloquee clics */
    background: transparent;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary), inset 0 0 10px var(--primary);
    animation: sonar-expand 0.6s linear forwards;
    z-index: 9999;
}

/* En modo Predator, el radar es rojo */
body.predator-mode .sonar-ripple {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent), inset 0 0 10px var(--accent);
}

@keyframes sonar-expand {
    0% {
        width: 0px;
        height: 0px;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
        border-width: 0px;
    }
}

/* --- MATRIX MODE (THE TRUTH) --- */
body.matrix-mode {
    --bg-deep: #000;
    --text-main: #00ff00;
    --primary: #00ff00;
    --accent: #00ff00;
    --text-dim: #004400;
    overflow: hidden; /* Bloquear scroll */
}

/* Ocultar contenido normal */
body.matrix-mode section,
body.matrix-mode header,
body.matrix-mode footer,
body.matrix-mode .sys-monitor,
body.matrix-mode #cursor {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* El lienzo Matrix pasa al frente */
body.matrix-mode #matrix-canvas {
    opacity: 1 !important;
    z-index: 9998 !important; /* Encima de todo */
}

/* Mensaje de despertar */
#matrix-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    z-index: 9999;
    display: none;
    text-shadow: 0 0 10px #00ff00;
}

body.matrix-mode #matrix-overlay {
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* --- CYBER-KATANA GLITCH EFFECT --- */
.op-card {
    /* ... estilos anteriores ... */
    position: relative;
    overflow: hidden;
}

/* Efecto de corte al pasar el mouse */
.op-card:hover {
    animation: katana-slice 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    border-color: var(--accent);
    box-shadow: 5px 5px 0px rgba(255, 0, 60, 0.2);
}

/* El "fantasma" del glitch (RGB Split) */
.op-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: 2;
    opacity: 0.5;
    transform: translate(5px, 0);
    mix-blend-mode: hard-light;
    animation: glitch-anim 0.3s infinite;
    pointer-events: none;
}

@keyframes katana-slice {
    0% { transform: scale(1); clip-path: inset(0 0 0 0); }
    20% { transform: scale(1.02) skewX(-2deg); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 55%, 0 100%, 100% 100%); }
    40% { transform: scale(1.02) skewX(2deg); clip-path: polygon(0 0, 100% 0, 100% 55%, 0 45%, 0 100%, 100% 100%); }
    60% { transform: scale(1.01); clip-path: inset(0 0 0 0); }
    100% { transform: scale(1.02); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-anim {
    0% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(40% 0 20% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

/* --- DOOM DAMAGE SHAKE --- */
body.damage-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Overlay de daño rojo (sangre en pantalla) */
body.damage-shake::before {
    content: "";
    position: fixed;
    inset: 0;
    box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.8);
    pointer-events: none;
    z-index: 99999;
    animation: damage-flash 0.5s ease-out forwards;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, -2px, 0); }
    20%, 80% { transform: translate3d(4px, 4px, 0); }
    30%, 50%, 70% { transform: translate3d(-8px, -8px, 0); }
    40%, 60% { transform: translate3d(8px, 8px, 0); }
}

@keyframes damage-flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}