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

:root {
    /* Color Palette */
    --c-midnight-forest: #07110C;
    --c-ancient-emerald: #102218;
    --c-royal-emerald: #1F8A5B;
    --c-elven-gold: #D8B65A;
    --c-ancient-bronze: #8A6A3F;
    --c-crystal-silver: #DCE7E3;
    --c-ivory: #F8F6EF;
    --c-forest-moss: #6B8F71;
    
    /* Surfaces */
    --surface-glass: rgba(255, 255, 255, 0.05);
    --surface-emerald-glass: rgba(31, 138, 91, 0.1);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1320px;
    --nav-width: 120px;
    --nav-spacing: 40px;
}

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

body {
    background-color: var(--c-midnight-forest);
    color: var(--c-crystal-silver);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle stone texture via radial gradients */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(31, 138, 91, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(216, 182, 90, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--c-ivory);
    font-weight: 600;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography Classes */
.text-gold { color: var(--c-elven-gold); }
.text-emerald { color: var(--c-royal-emerald); }
.heading-xl { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.heading-l { font-size: clamp(2rem, 3vw, 3.5rem); line-height: 1.2; margin-bottom: 1.5rem; }
.heading-m { font-size: clamp(1.5rem, 2vw, 2.5rem); margin-bottom: 1rem; }
.body-l { font-size: 1.125rem; color: var(--c-crystal-silver); margin-bottom: 2rem; font-weight: 300; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 18px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-royal-emerald) 0%, var(--c-ancient-bronze) 100%);
    color: var(--c-ivory);
    border: 1px solid rgba(216, 182, 90, 0.3);
    box-shadow: 0 4px 15px rgba(31, 138, 91, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 138, 91, 0.5);
    border-color: var(--c-elven-gold);
}

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

.btn-secondary {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 231, 227, 0.3);
    color: var(--c-ivory);
}

.btn-secondary:hover {
    border-color: var(--c-elven-gold);
    background: rgba(216, 182, 90, 0.1);
    transform: translateY(-2px);
}

/* --- Floating Royal Navigation Frame --- */
.royal-nav-frame {
    position: fixed;
    left: var(--nav-spacing);
    top: 50%;
    transform: translateY(-50%);
    width: var(--nav-width);
    height: calc(100vh - (var(--nav-spacing) * 2));
    background: var(--surface-emerald-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(216, 182, 90, 0.4);
    border-radius: 40px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(31, 138, 91, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 0;
    z-index: 1000;
}

.royal-nav-frame::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(216, 182, 90, 0.1);
    border-radius: 30px;
    pointer-events: none;
}

.nav-logo-icon {
    width: 50px;
    height: 50px;
    margin-bottom: auto;
    fill: var(--c-elven-gold);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    padding: 1rem 0;
    border-radius: 16px;
    color: var(--c-crystal-silver);
    text-align: center;
    position: relative;
    border: 1px solid transparent;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.nav-item span {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.nav-item:hover {
    background: rgba(31, 138, 91, 0.2);
    border-color: rgba(216, 182, 90, 0.5);
    color: var(--c-ivory);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-item.active {
    color: var(--c-ivory);
}

.nav-item.active svg {
    fill: var(--c-elven-gold);
    stroke: var(--c-elven-gold);
    filter: drop-shadow(0 0 5px rgba(216, 182, 90, 0.5));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--c-elven-gold);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--c-royal-emerald);
}

/* --- Layout Main Structure --- */
.kingdom-wrapper {
    margin-left: calc(var(--nav-width) + (var(--nav-spacing) * 2));
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
.site-header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.top-disclaimer-banner {
    background: rgba(16, 34, 24, 0.95);
    color: var(--c-crystal-silver);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-family: var(--font-body);
    border-bottom: 1px solid rgba(216, 182, 90, 0.2);
    letter-spacing: 0.05em;
    width: 100%;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--c-elven-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px; /* Space for header + banner */
}

/* Background Img Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(to right, var(--c-midnight-forest) 10%, transparent 60%),
        linear-gradient(to bottom, var(--c-midnight-forest) 0%, transparent 20%, var(--c-midnight-forest) 100%),
        url('images/photo-1542317769-1a61cb38ba23.png') center/cover no-repeat;
    opacity: 0.4;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Hero Game Panel */
.hero-game-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(216, 182, 90, 0.3);
    border-radius: 30px;
    padding: 20px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.hero-game-panel::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--c-elven-gold), transparent 40%, transparent 60%, var(--c-royal-emerald));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.5;
}

.game-preview-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--c-ancient-emerald);
}

.game-preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Royal Chamber (Game Experience) --- */
.section-padding {
    padding: 8rem 0;
}

.royal-chamber {
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(16, 34, 24, 0.8), transparent);
}

.chamber-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(31, 138, 91, 0.4);
    border-radius: 40px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.chamber-panel::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(216, 182, 90, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.chamber-game-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(216, 182, 90, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: #000;
}

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

.chamber-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '✧';
    color: var(--c-elven-gold);
    font-size: 1.2rem;
}

/* --- The Six Kingdom Halls (Features) --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

/* Staggered effect */
.masonry-grid > .hall-card:nth-child(2),
.masonry-grid > .hall-card:nth-child(5) {
    margin-top: 4rem;
}

.hall-card {
    background: rgba(16, 34, 24, 0.4);
    border: 1px solid rgba(220, 231, 227, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hall-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(216, 182, 90, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hall-card:hover {
    transform: translateY(-10px);
    border-color: rgba(216, 182, 90, 0.3);
    background: rgba(16, 34, 24, 0.6);
}

.hall-icon {
    font-size: 2.5rem;
    color: var(--c-royal-emerald);
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(31, 138, 91, 0.3));
}

.hall-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--c-ivory);
}

/* --- Discovery Section --- */
.discovery {
    position: relative;
    padding: 10rem 0;
    margin: 4rem 0;
    display: flex;
    align-items: center;
}

.discovery::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(to bottom, var(--c-midnight-forest) 0%, transparent 20%, transparent 80%, var(--c-midnight-forest) 100%),
        url('images/photo-1448375240586-882707db888b.png') center/cover fixed;
    opacity: 0.3;
    z-index: -1;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.discovery-card {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border-top: 2px solid rgba(216, 182, 90, 0.3);
}

.discovery-card h4 {
    color: var(--c-elven-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid rgba(216, 182, 90, 0.2);
    padding: 4rem 0 2rem 0;
    background: var(--c-ancient-emerald);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--c-forest-moss);
    margin-top: 1rem;
}

.footer-links h5 {
    color: var(--c-ivory);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--c-crystal-silver);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--c-elven-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
}

.disclaimer {
    color: var(--c-forest-moss);
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.5;
    padding: 1rem;
    border: 1px solid rgba(107, 143, 113, 0.3);
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}

.copyright {
    color: var(--c-forest-moss);
    font-size: 0.9rem;
}

/* --- Standard Page Content (About, Contact, Legal) --- */
.page-hero {
    padding: 12rem 0 6rem;
    text-align: center;
    position: relative;
    background: 
        linear-gradient(to bottom, var(--c-midnight-forest), transparent),
        url('images/photo-1518709268805-4e9042af9f23.png') center 20%/cover;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-midnight-forest);
    opacity: 0.8;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.content-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(216, 182, 90, 0.2);
    border-radius: 24px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-panel h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--c-elven-gold); }
.content-panel p { margin-bottom: 1.5rem; }
.content-panel ul { margin-bottom: 1.5rem; padding-left: 2rem; list-style: disc; color: var(--c-crystal-silver); }
.content-panel li { margin-bottom: 0.5rem; }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-family: var(--font-heading);
    color: var(--c-ivory);
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(216, 182, 90, 0.3);
    padding: 1rem;
    border-radius: 12px;
    color: var(--c-ivory);
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--c-elven-gold);
    background: rgba(31, 138, 91, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .chamber-panel { grid-template-columns: 1fr; padding: 2rem; }
    .hero-grid { gap: 2rem; }
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
    .hero-content { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry-grid > .hall-card:nth-child(2), .masonry-grid > .hall-card:nth-child(5) { margin-top: 0; }
    .discovery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

@media (max-width: 768px) {
    /* Mobile Navigation Adjustments */
    :root {
        --nav-width: 70px;
        --nav-spacing: 15px;
    }
    
    .royal-nav-frame {
        padding: 1.5rem 0;
        border-radius: 20px;
    }
    
    .nav-item span { display: none; } /* Hide text on mobile nav */
    .nav-item svg { margin-bottom: 0; width: 28px; height: 28px; }
    .nav-logo-icon { width: 40px; height: 40px; }
    
    .kingdom-wrapper {
        margin-left: calc(var(--nav-width) + (var(--nav-spacing) * 2));
    }

    .heading-xl { font-size: 2.5rem; }
    .masonry-grid { grid-template-columns: 1fr; }
    .discovery-grid { grid-template-columns: 1fr; }
    .content-panel { padding: 2rem; }
    .btn { padding: 0.8rem 1.5rem; }
}

@media (max-width: 480px) {
    /* Transform to bottom nav for very small screens if desired, but prompt says left side permanent. 
       We keep it left but very slim. */
    .container { padding: 0 1rem; }
    .hero-actions { flex-direction: column; }
    .site-header { flex-direction: column; gap: 1rem; }
}