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

:root {
    --sand-gold: #c9a227;
    --pharaoh-blue: #1a365d;
    --desert-tan: #d4a574;
    --papyrus: #f5e6c8;
    --deep-night: #0d1b2a;
    --ivory: #fffff0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(180deg, var(--deep-night) 0%, var(--pharaoh-blue) 100%);
    color: var(--papyrus);
    min-height: 100vh;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
}

a {
    color: var(--sand-gold);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--desert-tan);
}

/* Header */
.ancient-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.98), rgba(26, 54, 93, 0.95));
    border-bottom: 2px solid var(--sand-gold);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emblem {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--sand-gold), var(--desert-tan));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sand-gold);
    letter-spacing: 2px;
}

/* Mobile Menu */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-icon span {
    width: 26px;
    height: 2px;
    background: var(--sand-gold);
    transition: all 0.3s;
}

.menu-icon.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-ancient {
    display: flex;
    gap: 0.5rem;
}

.nav-ancient a {
    color: var(--papyrus);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-ancient a:hover,
.nav-ancient a.current {
    background: rgba(201, 162, 39, 0.2);
    color: var(--sand-gold);
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-ancient {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, var(--pharaoh-blue), var(--deep-night));
        flex-direction: column;
        padding: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s;
        border-bottom: 2px solid var(--sand-gold);
    }

    .nav-ancient.open {
        transform: translateY(0);
    }

    .nav-ancient a {
        padding: 1rem;
        border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    }
}

/* Main */
main {
    padding-top: 75px;
}

/* Hero */
.pharaoh-hero {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
    position: relative;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text h1 .gold {
    color: var(--sand-gold);
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.enter-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--sand-gold), var(--desert-tan));
    color: var(--deep-night);
    padding: 1rem 2.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
    transition: all 0.3s;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.4);
    color: var(--deep-night);
}

.decree-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.decree {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--sand-gold);
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-game {
    border: 3px solid var(--sand-gold);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-game iframe {
    width: 100%;
    height: 500px;
    border: none;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-game {
        order: -1;
    }

    .hero-game iframe {
        height: 400px;
    }
}

/* Treasury Section */
.treasury-section {
    padding: 5rem 2rem;
    background: rgba(13, 27, 42, 0.5);
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: var(--sand-gold);
    margin-bottom: 3rem;
}

.treasury-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.treasure-card {
    background: linear-gradient(145deg, rgba(26, 54, 93, 0.6), rgba(13, 27, 42, 0.8));
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.treasure-card:hover {
    transform: translateY(-8px);
    border-color: var(--sand-gold);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.2);
}

.treasure-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.treasure-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--sand-gold);
}

.treasure-card p {
    opacity: 0.85;
}

@media (max-width: 992px) {
    .treasury-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .treasury-grid {
        grid-template-columns: 1fr;
    }
}

/* Chronicle Section */
.chronicle-section {
    padding: 5rem 2rem;
}

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

.chronicle-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(26, 54, 93, 0.3);
    border-left: 4px solid var(--sand-gold);
}

.chronicle-item:nth-child(even) {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 4px solid var(--sand-gold);
}

.chronicle-symbol {
    flex: 0 0 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--sand-gold), var(--desert-tan));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.chronicle-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--desert-tan);
}

.chronicle-text p {
    opacity: 0.85;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .chronicle-item,
    .chronicle-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-right: none;
        border-top: 4px solid var(--sand-gold);
    }

    .chronicle-symbol {
        flex: 0 0 120px;
        height: 120px;
        font-size: 2.5rem;
    }
}

/* Page Styles */
.page-banner {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.1), transparent);
}

.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--sand-gold);
    margin-bottom: 0.5rem;
}

.page-banner p {
    opacity: 0.7;
}

.page-scroll {
    max-width: 880px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.page-scroll h2 {
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--sand-gold);
    padding-left: 15px;
    border-left: 3px solid var(--desert-tan);
}

.page-scroll p {
    opacity: 0.85;
    margin-bottom: 1.2rem;
}

.page-scroll ul {
    margin: 1rem 0 1.5rem 1.5rem;
    opacity: 0.85;
}

.page-scroll li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.chamber-section {
    padding: 2rem;
    min-height: calc(100vh - 75px);
}

.chamber-content {
    max-width: 1150px;
    margin: 0 auto;
}

.game-chamber {
    border: 3px solid var(--sand-gold);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.game-chamber iframe {
    width: 100%;
    height: 620px;
    border: none;
}

.chamber-guide {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(26, 54, 93, 0.4);
    border-left: 4px solid var(--sand-gold);
}

.chamber-guide h3 {
    color: var(--sand-gold);
    margin-bottom: 0.5rem;
}

.chamber-guide p {
    opacity: 0.8;
}

/* Footer */
.ancient-footer {
    background: var(--deep-night);
    border-top: 2px solid var(--sand-gold);
    padding: 3rem 2rem 1.5rem;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-about h4 {
    font-family: 'Cinzel', serif;
    color: var(--sand-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.7;
    line-height: 1.8;
}

.footer-nav h5,
.footer-resources h5 {
    color: var(--desert-tan);
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.4rem;
}

.footer-nav a {
    color: var(--papyrus);
    opacity: 0.7;
}

.footer-nav a:hover {
    opacity: 1;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.resource-links a {
    background: rgba(201, 162, 39, 0.1);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--papyrus);
}

.resource-links a:hover {
    background: rgba(201, 162, 39, 0.2);
}

.footer-base {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .resource-links {
        align-items: center;
    }
}

/* Age Verification */
.age-veil {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-tablet {
    background: linear-gradient(145deg, var(--pharaoh-blue), var(--deep-night));
    border: 3px solid var(--sand-gold);
    padding: 3rem;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 60px rgba(201, 162, 39, 0.3);
}

.age-symbol {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.age-tablet h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--sand-gold);
}

.age-tablet p {
    opacity: 0.85;
    margin-bottom: 2rem;
}

.age-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-proceed {
    background: linear-gradient(135deg, var(--sand-gold), var(--desert-tan));
    color: var(--deep-night);
    border: none;
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-proceed:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

.btn-retreat {
    background: transparent;
    border: 2px solid var(--papyrus);
    color: var(--papyrus);
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-retreat:hover {
    border-color: var(--sand-gold);
    color: var(--sand-gold);
}

.age-veil.hidden {
    display: none;
}
