:root {
    --bg: #0F1412;
    --surface: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.08);
    --emerald: #0F8A5F;
    --jade: #2FAF7C;
    --gold: #C89B3C;
    --stone: #5C5346;
    --ivory: #F6F2EA;
    --text: #FAFAFA;
    --muted: #BFC4BE;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ivory);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-muted { color: var(--muted); }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

/* Image Strategy */
.temple-image {
    max-width: 700px;
    max-height: 420px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--stone);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-emerald {
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    color: #fff;
    box-shadow: 0 4px 15px rgba(15, 138, 95, 0.3);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 138, 95, 0.5);
    color: #fff;
}

.btn-emerald:active {
    transform: translateY(1px);
}

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

.btn-stone:hover {
    background: var(--surface);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* =========================================
   TEMPLE GATE (Header)
========================================= */
.temple-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 20, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 138, 95, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-bar-notice {
    width: 100%;
    background: #050806;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 8px 1rem;
    border-bottom: 1px solid rgba(15, 138, 95, 0.3);
    line-height: 1.4;
}

.temple-gate-inner {
    width: 100%;
    height: 72px;
    max-width: 1400px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   JADE SANCTUARY (Game Section)
========================================= */
.jade-sanctuary {
    padding-top: 120px;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-container {
    width: 100%;
    max-width: 1050px;
    padding: 0 1rem;
    margin: 0 auto;
}

.game-frame {
    background: var(--bg);
    border: 2px solid var(--stone);
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 0 40px rgba(15, 138, 95, 0.2), inset 0 0 20px rgba(200, 155, 60, 0.1);
    position: relative;
}

.game-frame::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 2px solid var(--emerald);
    border-radius: 24px;
    pointer-events: none;
    z-index: -1;
}

.iframe-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

/* =========================================
   EAST CHAMBER (Tablets)
========================================= */
.east-chamber {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--bg), rgba(255,255,255,0.02), var(--bg));
}

.tablets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.stone-tablet {
    background: var(--bg);
    border: 1px solid rgba(92, 83, 70, 0.5);
    border-left: 6px solid var(--stone);
    border-right: 6px solid var(--stone);
    padding: 3rem;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.4);
}

.stone-tablet h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.stone-tablet p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* =========================================
   CENTRAL SHRINE (Monument)
========================================= */
.central-shrine {
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.monument-pillar {
    background: linear-gradient(180deg, #0A0D0B 0%, rgba(15, 138, 95, 0.1) 50%, #0A0D0B 100%);
    border-left: 4px solid var(--emerald);
    border-right: 4px solid var(--emerald);
    border-top: 2px solid var(--jade);
    border-bottom: 2px solid var(--jade);
    width: 100%;
    max-width: 600px;
    padding: 4rem 3rem;
    box-shadow: 0 0 50px rgba(15, 138, 95, 0.05);
}

.monument-data {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.data-row {
    text-align: center;
    border-bottom: 1px solid rgba(92, 83, 70, 0.3);
    padding-bottom: 1.5rem;
}

.data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    display: block;
}

.data-value {
    font-size: 1.3rem;
    color: var(--ivory);
}

/* =========================================
   WEST CHAMBER (Jade Panels)
========================================= */
.west-chamber {
    padding: 6rem 2rem;
}

.jade-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.jade-panel {
    background: linear-gradient(135deg, rgba(47, 175, 124, 0.05), rgba(15, 138, 95, 0.1));
    border: 1px solid var(--jade);
    border-radius: 4px;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.jade-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 138, 95, 0.15);
}

.jade-panel h3 {
    color: var(--jade);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(47, 175, 124, 0.3);
    padding-bottom: 1rem;
    display: inline-block;
}

.jade-panel p, .jade-panel li {
    color: var(--muted);
    margin-bottom: 1rem;
    text-align: left;
}

.jade-panel ul {
    list-style: disc inside;
    text-align: left;
}

/* =========================================
   EMERALD ARCHIVE
========================================= */
.emerald-archive {
    padding: 6rem 2rem;
    background: var(--bg);
}

.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

/* Archive 1: Compact Image Left, Text Right */
.archive-one {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.archive-text-editorial h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.archive-text-editorial p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Archive 2: Large Typography, No Image */
.archive-two {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-top: 1px solid var(--stone);
    border-bottom: 1px solid var(--stone);
}

.archive-two h3 {
    font-size: 2.5rem;
    color: var(--emerald);
    margin-bottom: 3rem;
}

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

.typ-item h4 {
    font-size: 1.5rem;
    color: var(--ivory);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.typ-item p {
    color: var(--muted);
}

/* Archive 3: Text Left, Image Right */
.archive-three {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* =========================================
   GUARDIAN HALL (Support Area)
========================================= */
.guardian-hall {
    padding: 8rem 2rem;
    background: linear-gradient(to top, rgba(15, 138, 95, 0.05), var(--bg));
}

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

.hall-column {
    background: var(--glass);
    padding: 3rem 2rem;
    border: 1px solid rgba(92, 83, 70, 0.3);
}

.hall-column h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.support-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.support-item p {
    color: var(--ivory);
    font-size: 1.1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item strong {
    display: block;
    color: var(--ivory);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--stone);
    color: var(--ivory);
    font-family: var(--font-body);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-emerald {
    width: 100%;
    margin-top: 1rem;
}

/* =========================================
   FOOTER
========================================= */
.temple-footer {
    background: #0A0D0B;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(15, 138, 95, 0.2);
    text-align: center;
}

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

.footer-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-notices {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--stone);
    font-size: 0.85rem;
}

.age-badge {
    display: inline-block;
    border: 1px solid var(--stone);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--muted);
}

.copyright {
    color: var(--stone);
    font-size: 0.85rem;
}

/* =========================================
   LEGAL PAGES
========================================= */
.legal-page {
    padding: 120px 2rem 6rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: 70vh;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: var(--emerald);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.legal-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style: disc inside;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .archive-one, .archive-three {
        grid-template-columns: 1fr;
    }
    
    .archive-three .temple-image {
        grid-row: 1; /* Move image to top on mobile */
    }
    
    .hall-grid {
        grid-template-columns: 1fr;
    }
    
    .temple-gate-inner {
        justify-content: center;
    }
    
    .nav-links {
        display: none; /* Mobile menu would go here, hidden for simplicity as per spec strictness */
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .typography-grid {
        grid-template-columns: 1fr;
    }
    
    .jade-panels-grid {
        grid-template-columns: 1fr;
    }
    
    .stone-tablet {
        padding: 2rem 1.5rem;
    }
    
    .monument-pillar {
        padding: 3rem 1.5rem;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }
}