:root {
    --bg-dark: #13141f;
    --bg-panel: #1a1b26;
    --accent: #7aa2f7;
    --accent-glow: rgba(122, 162, 247, 0.3);
    --text-main: #c0caf5;
    --text-muted: #565f89;
    --border: #414868;
    --success: #9ece6a;
    --danger: #f7768e;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', monospace;
    margin: 0;
    overflow: hidden;
}

/* --- LANDING PAGE --- */
h1 { text-align: center; color: #fff; margin-top: 40px; }
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    padding: 20px; 
    max-width: 1000px; 
    margin: 0 auto; 
}
.card { 
    background: var(--bg-panel); 
    border: 1px solid var(--border); 
    padding: 30px; 
    cursor: pointer; 
    border-radius: 12px; 
    text-align: center; 
    transition: all 0.2s;
    font-weight: bold;
    letter-spacing: 1px;
}
.card:hover { 
    border-color: var(--accent); 
    background: #24283b; 
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* --- GAME HUD --- */
#game-ui {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
}
.hud-panel {
    position: absolute;
    background: rgba(26, 27, 38, 0.9);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 20px;
    color: #fff;
    pointer-events: auto;
}
#hud-top-left { top: 20px; left: 20px; }
#hud-bottom { 
    bottom: 20px; left: 50%; 
    transform: translateX(-50%);
}

/* --- GAME ENTITIES --- */
#game-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
    overflow: hidden;
}
.game-entity {
    position: absolute;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* HP Bar */
.hp-bar-bg {
    position: absolute;
    bottom: -5px;
    width: 40px;
    height: 4px;
    background: #000;
    border: 1px solid #414868;
}
.hp-bar-fill {
    height: 100%;
    background: var(--success);
    width: 100%;
}
.game-entity.hostile .hp-bar-fill { background: var(--danger); }

/* Visual Effects */
.vip-glow svg {
    filter: drop-shadow(0 0 15px var(--accent));
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
