Necromancer Auto Battler :root { --bg-color: #121212; --panel-bg: #1e1e1e; --accent-green: #4caf50; --accent-purple: #9c27b0; --text-color: #e0e0e0; --slot-bg: #2c2c2c; --hp-bar-bg: #550000; --hp-bar-fill: #ff3333; --selected-color: #ffd700; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-color); color: var(--text-color); margin: 0; display: flex; flex-direction: column; align-items: center; height: 100vh; overflow: hidden; user-select: none; } /* --- Header --- */ header { width: 100%; padding: 15px; background-color: #000; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #333; box-sizing: border-box; } h1 { margin: 0; font-size: 1.2rem; color: var(--accent-purple); } .stats { font-size: 0.9rem; } /* --- Game Container --- */ #game-container { display: flex; flex-direction: column; width: 100%; max-width: 600px; height: 100%; padding: 10px; box-sizing: border-box; } /* --- Battlefield --- */ #battlefield { flex: 2; background-color: var(--panel-bg); border-radius: 8px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid #333; } .battle-side { flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px; } #enemy-side { border-bottom: 1px dashed #444; background: rgba(50,0,0,0.1); } #player-side { background: rgba(0,50,0,0.1); } /* --- Management / Bench --- */ #management-panel { flex: 1; background-color: #181818; border-top: 2px solid #333; padding: 10px; display: flex; flex-direction: column; gap: 10px; } .bench-label { font-size: 0.8rem; color: #888; display: flex; justify-content: space-between; } #bench-grid { display: flex; flex-wrap: wrap; gap: 8px; height: 100%; align-content: flex-start; overflow-y: auto; } /* --- Units & Slots --- */ .slot { width: 70px; height: 90px; background-color: var(--slot-bg); border: 2px solid #444; border-radius: 6px; position: relative; display: flex; justify-content: center; align-items: center; transition: all 0.2s; } /* Hover effect for player slots to indicate they are interactive */ .player-slot:hover { border-color: #666; } /* Highlight valid drop zones */ .slot.active-drop { border-color: var(--accent-green); background-color: #2a3a2a; cursor: pointer; box-shadow: inset 0 0 10px rgba(76, 175, 80, 0.2); } .unit { width: 64px; height: 84px; background-color: #333; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px; box-sizing: border-box; cursor: pointer; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.5); transition: transform 0.1s, border-color 0.2s; } .unit:active { transform: scale(0.95); } .unit-icon { font-size: 1.5rem; margin-top: 5px; } .unit-stats { font-size: 0.6rem; width: 100%; display: flex; justify-content: space-around; pointer-events: none; } .hp-bar { width: 100%; height: 6px; background: var(--hp-bar-bg); border-radius: 2px; margin-top: 2px; overflow: hidden; pointer-events: none; } .hp-fill { height: 100%; background: var(--hp-bar-fill); width: 100%; transition: width 0.2s; } /* --- Rarities (Base Styles) --- */ .unit.common { border: 2px solid #888; } .unit.uncommon { border: 2px solid var(--accent-green); box-shadow: 0 0 5px var(--accent-green); } .unit.rare { border: 2px solid var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); } /* --- SELECTION STATE (Must be after rarities to override) --- */ .unit.selected { border: 3px solid var(--selected-color) !important; box-shadow: 0 0 15px var(--selected-color); transform: translateY(-5px); z-index: 10; } /* --- Controls --- */ #controls { display: flex; gap: 10px; justify-content: center; padding-top: 10px; } button { padding: 12px 24px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; } #fight-btn { background-color: #8b0000; color: white; } #fight-btn:disabled { background-color: #444; cursor: not-allowed; opacity: 0.5; } /* --- Notifications --- */ #log-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; font-size: 2rem; font-weight: bold; text-shadow: 0 0 10px black; opacity: 0; transition: opacity 0.3s; z-index: 20; text-align: center; background: rgba(0,0,0,0.7); padding: 20px; border-radius: 10px; } .damage-text { position: absolute; color: #ff3333; font-weight: bold; font-size: 12px; animation: floatUp 0.8s forwards; pointer-events: none; z-index: 5; width: 100px; text-align: center; } @keyframes floatUp { 0% { transform: translateY(0) translateX(-50%); opacity: 1; } 100% { transform: translateY(-30px) translateX(-50%); opacity: 0; } }

💀 NecroBattler

Level: 1 | Army: 0/5
Crypt (Bench) 1. Click Unit → 2. Click Slot