@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;900&family=Source+Sans+Pro:wght@300;400;600&display=swap');

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

:root {
    --sand: #c9a962;
    --bronze: #a67c3d;
    --onyx: #141414;
    --obsidian: #0a0a0a;
    --ivory: #f8f4e3;
    --stone: #8c8c8c;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--obsidian);
    color: var(--ivory);
    line-height: 1.75;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.masthead {
    background: linear-gradient(180deg, var(--onyx) 0%, transparent 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 169, 98, 0.3);
}

.masthead-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
}

.sigil {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.sigil-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sand), var(--bronze));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.sigil-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--sand);
    font-weight: 700;
}

.links-row {
    display: flex;
    gap: 45px;
}

.links-row a {
    color: var(--stone);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.links-row a:hover {
    color: var(--sand);
}

.toggle-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.toggle-menu span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--sand);
    margin: 6px 0;
    transition: 0.3s;
}

.slide-menu {
    display: none;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--onyx);
    border-bottom: 2px solid var(--sand);
    padding: 20px;
}

.slide-menu.revealed {
    display: block;
}

.slide-menu a {
    display: block;
    color: var(--ivory);
    text-decoration: none;
    padding: 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-main {
    margin-top: 84px;
}

.pharaoh-hero {
    background: linear-gradient(135deg, var(--onyx) 0%, #1a1510 100%);
    padding: 100px 30px 85px;
    text-align: center;
    border-bottom: 3px solid var(--sand);
    position: relative;
}

.pharaoh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 20-20 20L0 20z' fill='%23c9a962' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.pharaoh-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--sand);
    margin-bottom: 25px;
    position: relative;
}

.pharaoh-hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--stone);
    position: relative;
}

.decree-signs {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
}

.decree {
    background: rgba(201, 169, 98, 0.1);
    padding: 16px 30px;
    border: 1px solid var(--sand);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.decree-symbol {
    font-size: 1.4rem;
}

.tomb-games {
    padding: 70px 30px;
}

.tomb-games h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--sand);
    margin-bottom: 45px;
}

.game-sarcophagus {
    max-width: 1050px;
    margin: 0 auto;
    background: var(--onyx);
    border: 4px solid var(--sand);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 50px rgba(201, 169, 98, 0.1);
}

.game-sarcophagus iframe {
    width: 100%;
    height: 580px;
    border: none;
    display: block;
}

.treasures-section {
    padding: 80px 30px;
    background: var(--onyx);
}

.treasures-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--sand);
    margin-bottom: 55px;
}

.treasure-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1350px;
    margin: 0 auto;
}

.treasure-piece {
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.1), transparent);
    padding: 40px 30px;
    border-top: 3px solid var(--sand);
    text-align: center;
    transition: transform 0.3s;
}

.treasure-piece:hover {
    transform: translateY(-8px);
}

.treasure-glyph {
    font-size: 3rem;
    margin-bottom: 20px;
}

.treasure-piece h3 {
    color: var(--sand);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.treasure-piece p {
    color: var(--stone);
}

.scrolls-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 60px 30px;
}

.scroll-card {
    background: var(--onyx);
    padding: 35px;
    border-left: 4px solid var(--bronze);
}

.scroll-card h3 {
    color: var(--sand);
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.scroll-card p {
    color: var(--stone);
}

.temple-footer {
    background: var(--onyx);
    padding: 55px 30px;
    border-top: 2px solid var(--sand);
}

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

.footer-paths {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.footer-paths a {
    color: var(--stone);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-paths a:hover {
    color: var(--sand);
}

.obelisk-section {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.obelisk-section p {
    color: var(--stone);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.obelisk-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.obelisk-links a {
    color: var(--sand);
    text-decoration: none;
    font-size: 0.9rem;
}

.seal-text {
    margin-top: 30px;
    color: var(--stone);
    font-size: 0.85rem;
}

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

.gate-barrier.unsealed {
    display: none;
}

.gate-chamber {
    background: linear-gradient(145deg, var(--onyx), #1a1510);
    padding: 55px 45px;
    text-align: center;
    max-width: 480px;
    margin: 20px;
    border: 3px solid var(--sand);
    box-shadow: 0 20px 80px rgba(201, 169, 98, 0.2);
}

.gate-emblem {
    font-size: 4.5rem;
    margin-bottom: 25px;
}

.gate-chamber h2 {
    color: var(--sand);
    font-size: 2rem;
    margin-bottom: 18px;
}

.gate-chamber p {
    color: var(--stone);
    margin-bottom: 30px;
}

.gate-options {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.btn-ancient {
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Source Sans Pro', sans-serif;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--sand), var(--bronze));
    color: var(--obsidian);
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.4);
}

.btn-stone {
    background: transparent;
    border: 2px solid var(--stone);
    color: var(--stone);
}

.btn-stone:hover {
    border-color: var(--ivory);
    color: var(--ivory);
}

.chapter-header {
    background: linear-gradient(180deg, var(--onyx), var(--obsidian));
    padding: 140px 30px 60px;
    text-align: center;
    border-bottom: 3px solid var(--sand);
}

.chapter-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--sand);
}

.manuscript {
    padding: 55px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.manuscript h2 {
    color: var(--sand);
    margin: 40px 0 20px;
    font-size: 1.5rem;
}

.manuscript p {
    color: var(--stone);
    margin-bottom: 18px;
}

.manuscript ul {
    color: var(--stone);
    margin: 20px 0 20px 30px;
}

.manuscript li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .links-row {
        display: none;
    }
    
    .toggle-menu {
        display: block;
    }
    
    .game-sarcophagus iframe {
        height: 390px;
    }
    
    .pharaoh-hero {
        padding: 70px 20px 55px;
    }
    
    .decree-signs {
        flex-direction: column;
        align-items: center;
    }
    
    .gate-options {
        flex-direction: column;
    }
}
