* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #008080;
    --dark-teal: #004D4D;
    --bronze: #CD7F32;
    --dark-bronze: #964B00;
    --sand: #F4E4C1;
    --papyrus: #E8D5B7;
    --dark-stone: #2C2416;
    --light-stone: #4A3F2A;
}

body {
    font-family: 'Karla', sans-serif;
    background: var(--sand);
    color: var(--dark-stone);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Abril Fatface', serif;
}

.age-gateway {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 22, 0.97);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.age-gateway.show {
    display: flex;
}

.gateway-card {
    background: linear-gradient(135deg, var(--papyrus), var(--sand));
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 550px;
    border: 4px solid var(--bronze);
    box-shadow: 0 0 60px rgba(205, 127, 50, 0.6);
}

.gateway-symbol {
    margin-bottom: 1.5rem;
}

.gateway-card h2 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.gateway-card p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--dark-stone);
}

.gateway-note {
    font-size: 1rem;
    font-style: italic;
    color: var(--light-stone);
}

.gateway-choices {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gate-accept, .gate-decline {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Karla', sans-serif;
    transition: all 0.3s;
}

.gate-accept {
    background: linear-gradient(90deg, var(--teal), var(--dark-teal));
    color: white;
}

.gate-accept:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.5);
}

.gate-decline {
    background: #6B7280;
    color: white;
}

.gate-decline:hover {
    background: #4B5563;
}

.primary-nav {
    background: linear-gradient(90deg, var(--bronze), var(--dark-bronze));
    border-bottom: 3px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-title {
    font-family: 'Abril Fatface', serif;
    font-size: 2rem;
    color: var(--sand);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.hamburger-bar {
    width: 28px;
    height: 3px;
    background: var(--sand);
    border-radius: 3px;
    transition: 0.3s;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-list a {
    color: var(--sand);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--teal);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--dark-bronze);
        padding: 2rem;
        gap: 0;
        transition: 0.4s;
        border-top: 3px solid var(--teal);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        padding: 1.5rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(244, 228, 193, 0.3);
    }
}

.ancient-header {
    position: relative;
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 5px solid var(--bronze);
}

.header-pattern {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(205, 127, 50, 0.1) 20px, rgba(205, 127, 50, 0.1) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(205, 127, 50, 0.1) 20px, rgba(205, 127, 50, 0.1) 40px);
}

.header-content {
    position: relative;
    z-index: 2;
}

.ancient-header h1 {
    font-size: 4rem;
    color: var(--sand);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

.header-subtitle {
    font-size: 1.8rem;
    font-family: 'Abril Fatface', serif;
    color: var(--bronze);
    margin-bottom: 3rem;
}

.header-pillars {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pillar-item {
    background: rgba(205, 127, 50, 0.3);
    border: 3px solid var(--bronze);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--sand);
}

@media (max-width: 768px) {
    .ancient-header h1 {
        font-size: 2.5rem;
    }
    .header-subtitle {
        font-size: 1.3rem;
    }
}

.pyramid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.pyramid-heading {
    font-size: 3.5rem;
    text-align: center;
    color: var(--teal);
    margin-bottom: 3rem;
}

.intro-pyramid {
    background: white;
}

.pyramid-text p {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    line-height: 1.9;
}

.chambers-section {
    background: var(--papyrus);
}

.chambers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.chamber-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--bronze);
    transition: all 0.3s;
}

.chamber-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 128, 128, 0.3);
    border-color: var(--teal);
}

.chamber-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
}

.chamber-card h3 {
    color: var(--teal);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.chamber-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.papyrus-notices {
    background: white;
}

.scroll-collection {
    display: grid;
    gap: 2.5rem;
}

.scroll-item {
    background: var(--papyrus);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 6px solid var(--teal);
}

.scroll-item h3 {
    color: var(--teal);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.scroll-item p {
    font-size: 1.1rem;
    line-height: 1.85;
}

.pharaohs-game {
    background: var(--papyrus);
}

.pharaohs-intro {
    text-align: center;
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.9;
}

.sarcophagus-frame {
    width: 100%;
    background: var(--dark-stone);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    border: 5px solid var(--bronze);
}

.game-tomb {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .game-tomb {
        height: 500px;
    }
}

.hieroglyph-guide {
    margin-top: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border: 3px solid var(--bronze);
}

.hieroglyph-guide h3 {
    color: var(--teal);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.instruction-glyphs {
    list-style: none;
    margin-bottom: 2rem;
}

.instruction-glyphs li {
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 2px solid var(--papyrus);
    line-height: 1.8;
}

.instruction-glyphs li strong {
    color: var(--teal);
    font-weight: 700;
}

.compatibility-papyrus {
    background: var(--sand);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--bronze);
}

.compatibility-papyrus p {
    font-size: 1.05rem;
    margin: 0;
}

.wisdom-section {
    background: white;
}

.wisdom-text p {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    line-height: 1.9;
}

.balance-section {
    background: var(--papyrus);
}

.balance-intro {
    text-align: center;
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
}

.balance-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.balance-tile {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 3px solid var(--bronze);
    transition: 0.3s;
}

.balance-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.2);
}

.balance-note {
    text-align: center;
    font-size: 1.05rem;
}

.ancient-footer {
    background: linear-gradient(90deg, var(--dark-stone), var(--light-stone));
    border-top: 3px solid var(--bronze);
    color: var(--sand);
    padding: 3rem 2rem 1.5rem;
}

.footer-pyramid {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-column h4 {
    color: var(--bronze);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: 1rem;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.85rem;
}

.footer-column a {
    color: var(--sand);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--teal);
}

.footer-base {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--bronze);
    font-size: 0.95rem;
}
