@import url('https://fonts.googleapis.com/css2?family=Metamorphous&family=Nunito:wght@300;400;600;700&display=swap');

:root {
    --forge-black: #121210;
    --iron-gray: #1e1e1c;
    --steel-blue: #4682b4;
    --molten-orange: #ff8c00;
    --spark-yellow: #ffc125;
    --smoke-gray: #7a7a7a;
    --ash-white: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--forge-black);
    color: var(--ash-white);
    min-height: 100vh;
    line-height: 1.8;
}

.forge-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 16, 0.95);
    padding: 1.25rem 2rem;
    z-index: 1000;
    border-bottom: 3px solid var(--molten-orange);
}

.header-forge {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forge-logo {
    font-family: 'Metamorphous', cursive;
    font-size: 2rem;
    color: var(--molten-orange);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.anvil-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--molten-orange);
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
}

.anvil-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--spark-yellow);
    margin: 4px 0;
}

.anvil-nav {
    display: flex;
    gap: 2.5rem;
}

.anvil-nav a {
    color: var(--ash-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.anvil-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--molten-orange);
    transition: width 0.3s;
}

.anvil-nav a:hover {
    color: var(--spark-yellow);
}

.anvil-nav a:hover::after {
    width: 100%;
}

.main-forge {
    padding-top: 90px;
}

.hero-forge {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem;
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--forge-black) 0%, var(--iron-gray) 100%);
    text-align: center;
}

.hero-forge h1 {
    font-family: 'Metamorphous', cursive;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--spark-yellow);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.hero-forge .desc {
    font-size: 1.2rem;
    color: var(--smoke-gray);
    max-width: 750px;
    margin: 0 auto 4rem;
    font-weight: 300;
}

.shield-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.shield-card {
    background: var(--iron-gray);
    border-radius: 8px;
    padding: 2.25rem;
    width: 340px;
    text-align: center;
    border-bottom: 4px solid var(--steel-blue);
    transition: transform 0.3s;
}

.shield-card:hover {
    transform: scale(1.02);
}

.shield-card .emblem {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.shield-card h3 {
    font-family: 'Metamorphous', cursive;
    font-size: 1.15rem;
    color: var(--molten-orange);
    margin-bottom: 0.75rem;
}

.shield-card p {
    color: var(--smoke-gray);
    font-size: 0.95rem;
}

.battle-arena {
    padding: 5rem 2rem;
    background: var(--iron-gray);
}

.arena-container {
    max-width: 1100px;
    margin: 0 auto;
}

.arena-container h2 {
    font-family: 'Metamorphous', cursive;
    text-align: center;
    font-size: 2rem;
    color: var(--spark-yellow);
    margin-bottom: 2rem;
}

.battle-screen {
    width: 100%;
    height: 580px;
    border-radius: 8px;
    border: 3px solid var(--steel-blue);
    background: #000;
}

.valor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.valor-block {
    background: linear-gradient(145deg, var(--iron-gray), var(--forge-black));
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    border-left: 4px solid var(--molten-orange);
}

.valor-block .badge {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.valor-block h3 {
    font-family: 'Metamorphous', cursive;
    font-size: 1.1rem;
    color: var(--spark-yellow);
    margin-bottom: 1rem;
}

.valor-block p {
    color: var(--smoke-gray);
    font-size: 0.95rem;
}

.chronicle-section {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.chronicle-section h1 {
    font-family: 'Metamorphous', cursive;
    font-size: 2.5rem;
    color: var(--spark-yellow);
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.chronicle-section h2 {
    font-family: 'Metamorphous', cursive;
    font-size: 1.3rem;
    color: var(--molten-orange);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--steel-blue);
}

.chronicle-section p {
    color: var(--smoke-gray);
    margin-bottom: 1.25rem;
}

.chronicle-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.chronicle-section li {
    color: var(--smoke-gray);
    padding: 0.5rem 0;
    position: relative;
}

.chronicle-section li::before {
    content: '⚔';
    position: absolute;
    left: -1.5rem;
    color: var(--molten-orange);
}

.forge-footer {
    background: var(--iron-gray);
    padding: 4rem 2rem;
    border-top: 3px solid var(--molten-orange);
}

.footer-anvil {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-anvil h4 {
    font-family: 'Metamorphous', cursive;
    color: var(--spark-yellow);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.guild-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.guild-links a {
    color: var(--smoke-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.guild-links a:hover {
    color: var(--molten-orange);
}

.path-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.path-links a {
    color: var(--ash-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.path-links a:hover {
    color: var(--spark-yellow);
}

.forge-legal {
    padding-top: 2rem;
    border-top: 1px solid var(--forge-black);
    color: var(--smoke-gray);
    font-size: 0.9rem;
}

.gate-barrier {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 16, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gate-modal {
    background: var(--iron-gray);
    border: 3px solid var(--molten-orange);
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.gate-modal .crest {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.gate-modal h2 {
    font-family: 'Metamorphous', cursive;
    font-size: 1.7rem;
    color: var(--spark-yellow);
    margin-bottom: 1rem;
}

.gate-modal p {
    color: var(--smoke-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-btn {
    padding: 1rem 2.5rem;
    font-family: 'Metamorphous', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    border-radius: 6px;
}

.gate-btn.enter {
    background: linear-gradient(135deg, var(--molten-orange), var(--spark-yellow));
    color: var(--forge-black);
}

.gate-btn.enter:hover {
    transform: scale(1.05);
}

.gate-btn.retreat {
    background: transparent;
    border: 2px solid var(--steel-blue);
    color: var(--steel-blue);
}

.gate-btn.retreat:hover {
    background: rgba(70, 130, 180, 0.1);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .anvil-toggle {
        display: block;
    }
    
    .anvil-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--forge-black);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .anvil-nav.forged {
        opacity: 1;
        visibility: visible;
    }
    
    .anvil-nav a {
        display: block;
        padding: 1rem;
        background: var(--iron-gray);
        text-align: center;
        border-radius: 6px;
    }
    
    .anvil-nav a::after {
        display: none;
    }
    
    .shield-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .shield-card {
        width: 100%;
        max-width: 380px;
    }
    
    .battle-screen {
        height: 420px;
    }
    
    .gate-actions {
        flex-direction: column;
    }
}
