:root {
    --stone-dark: #0d0d0d;
    --stone-light: #1a1a1a;
    --blood: #8b0000;
    --blood-glow: #ff0000;
    --gold: #d4af37;
    --parchment: #f4e4bc;
    --heal-green: #2ecc71;
    --stun-white: #ffffff;
    --chain-grey: #888888;
    --transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--stone-dark);
    color: var(--parchment);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

header {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--blood);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    border-left: 4px solid var(--blood);
    padding-left: 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--parchment);
    text-decoration: none;
    margin-left: 20px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.nav-menu li a:hover, .nav-menu li a.active {
    color: var(--gold);
    text-shadow: 0 0 8px var(--gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    margin: 4px 0;
    transition: var(--transition);
}

.page {
    display: none;
    padding-top: 80px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero {
    height: calc(100vh - 80px);
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('assets/dungeon_bg.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
}

.cta-btn {
    background: var(--blood);
    color: white;
    border: 1px solid var(--gold);
    padding: 15px 40px;
    font-size: 1.3rem;
    font-family: 'MedievalSharp', cursive;
    cursor: pointer;
    margin-top: 30px;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--blood-glow);
    transform: scale(1.05);
}

.world-section, .nfc-section, .progression, .features, .enemies, .gallery-section {
    padding: 60px 10%;
    text-align: center;
}

.world-grid, .feature-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.world-card, .feature-card {
    background: #111;
    padding: 30px;
    border: 1px solid #222;
}

.nfc-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.nfc-card {
    background: var(--stone-light);
    border: 1px solid #333;
    padding: 40px 20px;
    width: 280px;
    border-radius: 10px;
    transition: var(--transition);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #444;
}

#card-heal:hover { border-color: var(--heal-green); }
#card-heal:hover .card-icon { color: var(--heal-green); filter: drop-shadow(0 0 10px var(--heal-green)); }

#card-stun:hover { border-color: var(--stun-white); }
#card-stun:hover .card-icon { color: var(--stun-white); filter: drop-shadow(0 0 15px var(--stun-white)); }

#card-chain:hover { border-color: var(--chain-grey); }
#card-chain:hover .card-icon { color: var(--chain-grey); filter: drop-shadow(0 0 10px var(--chain-grey)); }

.exp-bar-container {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 40px auto;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-bottom: 3px solid var(--blood);
}

.level-unlocks {
    background: #000;
    display: inline-block;
    padding: 15px 30px;
    border: 1px dashed var(--gold);
}

.enemy-list {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.enemy-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    background: radial-gradient(circle, #222 0%, #0d0d0d 70%);
}

.gallery-item .img-box {
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .img-box {
    border-color: var(--gold);
}

.placeholder-text {
    color: #444;
    font-family: 'MedievalSharp';
    text-transform: uppercase;
}

footer {
    background: #000;
    padding: 30px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

@media (max-width: 1100px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--stone-dark);
        width: 100%;
        text-align: center;
        border-bottom: 2px solid var(--blood);
        transition: 0.3s;
        height: calc(100vh - 70px);
        justify-content: center;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu li a {
        margin: 0;
        font-size: 1.5rem;
    }

    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}