:root {
    --bg-color: #0b0d11;
    --text-color: #d1d5db;
    --text-muted: #9ca3af;
    --primary-accent: #f59e0b;
    --secondary-accent: #ef4444;
    --emerald-accent: #10b981;
    --cyan-accent: #06b6d4;
    --purple-accent: #a855f7;
    --container-bg: #161c26;
    --card-bg: #1f2937;
    --nav-bg: #0f172a;
    --monster-bg: #201317;
    --boss-bg: #1a162b;
    --subboss-bg: #241a15;
    --border-color: #374151;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    margin: 0;
    padding: 24px 16px;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    background-color: var(--container-bg);
    padding: 36px;
    border-radius: 12px;
    border: 1px solid #1f293d;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
}

/* NAVEGAÇÃO: Gerenciada de forma exclusiva e modular em assets/css/nav.css */

/* CABEÇALHOS */
h1 {
    color: var(--primary-accent);
    text-align: center;
    border-bottom: 2px solid var(--secondary-accent);
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    font-size: 2rem;
}

h2 {
    color: var(--primary-accent);
    margin-top: 42px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
}

h3 {
    color: #fbbf24;
    margin-top: 20px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 14px;
    color: #d1d5db;
}

.director-note {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-left: 4px solid var(--secondary-accent);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.director-note strong {
    color: #fca5a5;
}

/* CARDS DE INIMIGOS */
.enemy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 18px;
    margin: 18px 0;
}

.enemy-card {
    background-color: var(--monster-bg);
    border: 1px solid #4a2128;
    border-left: 4px solid var(--secondary-accent);
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.enemy-card.featured-concept {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1f141a 0%, #120c11 100%);
    border-color: #5a2630;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.enemy-card.boss.featured-concept {
    background: linear-gradient(135deg, #1e152e 0%, #100b1a 100%);
    border-color: #5c3282;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.enemy-card:hover {
    transform: translateY(-2px);
    border-color: var(--cyan-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.enemy-card.subboss {
    background-color: var(--subboss-bg);
    border-color: #5c381e;
    border-left-color: var(--primary-accent);
}

.enemy-card.boss {
    background-color: var(--boss-bg);
    border-color: #482a69;
    border-left-color: var(--purple-accent);
}

.enemy-card.omega {
    background: linear-gradient(135deg, #1c142b 0%, #0d0a17 100%);
    border-color: #7e22ce;
    border-left-color: #d946ef;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.enemy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed #3f2933;
    padding-bottom: 8px;
    margin-bottom: 12px;
    gap: 8px;
}

.enemy-header h4 {
    margin: 0;
    color: #f87171;
    font-size: 1.15rem;
}

.subboss .enemy-header h4 { color: #fbbf24; }
.boss .enemy-header h4 { color: #c084fc; }
.omega .enemy-header h4 { color: #f0abfc; font-size: 1.35rem; }

.scientific-name {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

.tier-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--secondary-accent);
    color: #fca5a5;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
}

.tier-subboss {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--primary-accent);
    color: #fcd34d;
}

.tier-boss {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--purple-accent);
    color: #e9d5ff;
}

.tier-omega {
    background: rgba(217, 70, 239, 0.3);
    border-color: #d946ef;
    color: #fae8ff;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* CONCEPT ART PREVIEWS */
.enemy-concept-preview {
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #334155;
    background-color: #05070a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.enemy-concept-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.enemy-concept-preview:hover img {
    transform: scale(1.01);
}

.concept-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 8px 12px;
    background: #090d14;
    border-top: 1px solid #1e293b;
    margin: 0;
    text-align: left;
}

.concept-caption strong {
    color: #38bdf8;
}

.mechanic-taught {
    background-color: rgba(6, 182, 212, 0.1);
    border-left: 3px solid var(--cyan-accent);
    padding: 8px 12px;
    margin-top: 12px;
    border-radius: 0 4px 4px 0;
    font-size: 0.88rem;
}

.mechanic-taught strong {
    color: var(--cyan-accent);
}

.reward-box {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--emerald-accent);
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 0 4px 4px 0;
    font-size: 0.88rem;
}

.reward-box strong {
    color: var(--emerald-accent);
}

.phase-step {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2d263b;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.phase-step h5 {
    margin: 0 0 4px 0;
    color: #e9d5ff;
    font-size: 0.95rem;
}

/* CARDS VISUAIS DE TAXONOMIA */
.taxonomy-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0 28px 0;
}

.taxonomy-card {
    background: linear-gradient(135deg, #171d2b 0%, #101520 100%);
    border: 1px solid #253347;
    border-left: 4px solid var(--secondary-accent);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.taxonomy-card:hover {
    transform: translateX(4px);
    border-color: var(--primary-accent);
}

.taxonomy-card.tax-class1 { border-left-color: #f87171; }
.taxonomy-card.tax-class2 { border-left-color: #f59e0b; }
.taxonomy-card.tax-subboss { border-left-color: #eab308; }
.taxonomy-card.tax-boss { border-left-color: #a855f7; }
.taxonomy-card.tax-omega { 
    border-left-color: #d946ef; 
    background: linear-gradient(135deg, #1d132b 0%, #110b1a 100%);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
}

.taxonomy-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #2b3a4f;
    padding-bottom: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.taxonomy-title h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #f1f5f9;
}

.tax-class1 .taxonomy-title h4 { color: #fca5a5; }
.tax-class2 .taxonomy-title h4 { color: #fde047; }
.tax-subboss .taxonomy-title h4 { color: #fef08a; }
.tax-boss .taxonomy-title h4 { color: #d8b4fe; }
.tax-omega .taxonomy-title h4 { color: #f5d0fe; }

.taxonomy-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.taxonomy-pill {
    background: #0d121c;
    border: 1px solid #233044;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.84rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.taxonomy-pill strong {
    color: #38bdf8;
}

.taxonomy-pill span.subtext {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ÁRVORE VISUAL ASCII EM <PRE> */
.taxonomy-tree {
    background-color: #0d121c;
    border: 1px solid #283548;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.92rem;
    margin: 20px 0;
    color: #93c5fd;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    display: block;
}

.lore-callout {
    background: linear-gradient(135deg, #181c26 0%, #10141d 100%);
    border: 1px solid #2c394d;
    border-left: 4px solid #38bdf8;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}
