@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    /* --- Base Layout & Text --- */
    --bg-color: #1a1a1a;
    --panel-bg: #222;
    --text-color: #e0e0e0;

    /* --- Default Theme (Gold/Imperial) --- */
    --theme-accent: #c5a059;
    --theme-secondary: #e0e0e0;
    --theme-glow: #c5a059;
    --theme-tech: #00bcd4;
    --theme-special-1: #e91e63; /* Plasma */
    --theme-special-2: #9b59b6; /* Warp */
    --theme-danger: #ff4444;
    --theme-success: #00ff00;
    --theme-metal-1: #90a4ae; /* Adamantium */
    --theme-metal-2: #7f8c8d; /* Plasteel */
}

/* --- Thèmes Factions --- */
body.theme-mechanicus { --theme-accent: #d92f21; --theme-secondary: #a0a0a0; --theme-glow: #ff4136; --theme-tech: #00bcd4; }
body.theme-navy { --theme-accent: #0074D9; --theme-secondary: #FFDC00; --theme-glow: #0074D9; --theme-tech: #FFFFFF; }
body.theme-rogue { --theme-accent: #B10DC9; --theme-secondary: #FFDC00; --theme-glow: #F012BE; }
body.theme-dark_mechanicum { --theme-accent: #9b59b6; --theme-secondary: #4a148c; --theme-glow: #e040fb; --theme-tech: #ff5252; }
body.theme-tyranids { --theme-accent: #8e44ad; --theme-secondary: #e74c3c; --theme-glow: #9b59b6; --theme-tech: #2ecc71; }
body.theme-aeldari { --theme-accent: #3498db; --theme-secondary: #f1c40f; --theme-glow: #2980b9; --theme-tech: #ecf0f1; }
body.theme-tau { --theme-accent: #e67e22; --theme-secondary: #ecf0f1; --theme-glow: #d35400; --theme-tech: #3498db; }
body.theme-orks { --theme-accent: #27ae60; --theme-secondary: #c0392b; --theme-glow: #2ecc71; --theme-tech: #f39c12; }
body.theme-chaos_daemons { --theme-accent: #c0392b; --theme-secondary: #f1c40f; --theme-glow: #e74c3c; --theme-tech: #8e44ad; }
body.theme-necrons { --theme-accent: #2ecc71; --theme-secondary: #2c3e50; --theme-glow: #00ff00; --theme-tech: #2ecc71; }

body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

h1, h2, h3 { font-family: 'Orbitron', sans-serif; }
h1 { 
    color: var(--theme-accent); 
    text-transform: uppercase; 
    margin-bottom: 5px; 
    text-shadow: 0 0 10px #000; 
    font-size: 1.6em; 
    text-align: center; 
    letter-spacing: 2px;
}
.subtitle { font-size: 0.8em; opacity: 0.7; margin-top: 0; }

/* --- Animations Globales --- */
@keyframes scanline { from { background-position: 0 0; } to { background-position: 0 -40px; } }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.05); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes pulse-button { 0% { transform: scale(1); box-shadow: 0 0 10px var(--theme-danger); } 50% { transform: scale(1.02); box-shadow: 0 0 20px var(--theme-danger); } 100% { transform: scale(1); box-shadow: 0 0 10px var(--theme-danger); } }
@keyframes shake { 0% { transform: translate(1px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-3px, 0px) rotate(1deg); } 30% { transform: translate(3px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } 60% { transform: translate(-3px, 1px) rotate(0deg); } 70% { transform: translate(3px, 1px) rotate(-1deg); } 80% { transform: translate(-1px, -1px) rotate(1deg); } 90% { transform: translate(1px, 2px) rotate(0deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeOutToast { to { opacity: 0; transform: translateY(-20px); } }
@keyframes slideDownToast { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modal-fade-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.shake { animation: shake 0.2s; }

/* Effet CRT */
.scanline-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(20,20,30,0) 0%, rgba(20,20,30,0.1) 50%, rgba(20,20,30,0) 100%),
                linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 2px);
    background-size: 100% 100%, 100% 4px;
    animation: scanline 10s linear infinite;
    pointer-events: none;
    z-index: 9999;
}