/* Mythrex - Ancient Mythology Social Casino Styles */
/* Elegant classical design with gold and burgundy theme */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #d4af37;
    --gold-light: #f0d875;
    --gold-dark: #b8960c;
    --burgundy: #4a0e0e;
    --burgundy-deep: #2d0808;
    --burgundy-light: #6b1515;
    --cream: #f5f0e1;
    --text-light: #e8e0d0;
    --text-muted: #b8a88a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    background: var(--burgundy-deep);
    color: var(--text-light);
    line-height: 1.8;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

/* Age Verification */
.age-veil {
    position: fixed;
    inset: 0;
    background: rgba(26, 10, 10, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-veil.hidden {
    display: none;
}

.age-chamber {
    background: linear-gradient(145deg, var(--burgundy), var(--burgundy-deep));
    border: 2px solid var(--gold);
    padding: 50px 45px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.age-chamber::before,
.age-chamber::after {
    content: '✦';
    position: absolute;
    font-size: 1.5rem;
    color: var(--gold);
}

.age-chamber::before {
    top: 15px;
    left: 15px;
}

.age-chamber::after {
    bottom: 15px;
    right: 15px;
}

.age-emblem {
    font-size: 60px;
    margin-bottom: 15px;
}

.age-chamber h2 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.age-chamber p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.age-choices {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-enter, .btn-leave {
    padding: 14px 32px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-enter {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--burgundy-deep);
}

.btn-enter:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
}

.btn-leave {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-leave:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* Header */
.grand-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(45, 8, 8, 0.95);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.crest {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.crest:hover {
    color: var(--gold-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.grand-nav {
    display: flex;
    gap: 40px;
}

.grand-nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0;
    position: relative;
}

.grand-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.grand-nav a:hover,
.grand-nav a.active {
    color: var(--gold);
}

.grand-nav a:hover::after,
.grand-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-realm {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    overflow: hidden;
}

.realm-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--burgundy-deep) 0%, var(--burgundy) 100%);
}

.realm-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.realm-content {
    position: relative;
    max-width: 900px;
    z-index: 1;
}

.realm-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 25px;
    color: var(--gold);
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.realm-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.golden-btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--burgundy-deep);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.golden-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.golden-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    color: var(--burgundy-deep);
}

.golden-btn:hover::before {
    left: 100%;
}

.scroll-ornament {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 15px;
    opacity: 0.5;
}

.scroll-ornament::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 10px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(15px); opacity: 0.3; }
}

/* Proclamations */
.proclamations {
    padding: 100px 0;
    background: var(--burgundy);
}

.proclamation-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.proclamation {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(45, 8, 8, 0.5);
    transition: all 0.3s ease;
}

.proclamation:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.proc-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.proclamation h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.proclamation p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Featured Legend */
.featured-legend {
    padding: 100px 0;
    background: var(--burgundy-deep);
}

.legend-header {
    text-align: center;
    margin-bottom: 50px;
}

.legend-mark {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    padding: 8px 20px;
    border: 1px solid var(--gold);
    margin-bottom: 20px;
}

.legend-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--cream);
    margin-bottom: 10px;
}

.legend-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.legend-game {
    max-width: 1000px;
    margin: 0 auto;
}

.game-border {
    border: 3px solid var(--gold);
    padding: 8px;
    background: rgba(212, 175, 55, 0.1);
}

.game-border iframe {
    width: 100%;
    aspect-ratio: 16/10;
    border: none;
    display: block;
}

/* Chronicles */
.chronicles {
    padding: 100px 0;
    background: var(--burgundy);
}

.chronicle-scroll {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.chronicle-scroll h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold);
    margin-bottom: 40px;
}

.chronicle-text p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: justify;
}

/* Pillars */
.pillars {
    padding: 100px 0;
    background: var(--burgundy-deep);
}

.pillars h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold);
    margin-bottom: 60px;
}

.pillar-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pillar {
    padding: 35px 25px;
    border-left: 3px solid var(--gold);
    background: rgba(74, 14, 14, 0.5);
}

.pillar-num {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    opacity: 0.6;
}

.pillar h3 {
    font-size: 1.15rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Call Section */
.call-section {
    padding: 100px 0;
    background: var(--burgundy);
}

.call-banner {
    text-align: center;
    padding: 70px 40px;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    max-width: 800px;
    margin: 0 auto;
}

.call-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--cream);
    margin-bottom: 15px;
}

.call-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* Page Banner */
.page-banner {
    padding: 160px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--burgundy-deep), var(--burgundy));
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.1), transparent 70%);
}

.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    margin-bottom: 10px;
    position: relative;
}

.page-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    position: relative;
}

/* Play Chamber */
.play-chamber {
    padding: 60px 0 100px;
    background: var(--burgundy-deep);
}

.guidance-scroll {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 35px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(74, 14, 14, 0.5);
}

.guidance-scroll h2 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 25px;
    text-align: center;
}

.guidance-items {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.guidance-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.guidance-num {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    min-width: 30px;
}

.guidance-item p {
    color: var(--text-muted);
}

.guidance-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.sacred-game {
    max-width: 1100px;
    margin: 0 auto;
}

.game-ornament {
    border: 3px solid var(--gold);
    padding: 8px;
    background: rgba(212, 175, 55, 0.1);
}

.game-ornament iframe {
    width: 100%;
    aspect-ratio: 16/10;
    border: none;
    display: block;
}

.reminder-scroll {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 30px;
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold);
    text-align: center;
}

.reminder-scroll p {
    color: var(--text-muted);
}

/* Legal Chamber */
.legal-chamber {
    padding: 60px 0 100px;
    background: var(--burgundy-deep);
}

.legal-article {
    margin-bottom: 40px;
}

.legal-article h2 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.legal-article p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.legal-article ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-article li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.legal-date {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.proclamation-box {
    padding: 35px;
    background: rgba(74, 14, 14, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 35px;
}

.proclamation-box h2 {
    font-size: 1.35rem;
    color: var(--gold);
    margin-bottom: 18px;
    border: none;
    padding: 0;
}

.proclamation-box p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.proclamation-box p:last-child {
    margin-bottom: 0;
}

/* Footer */
.grand-footer {
    background: var(--burgundy);
    padding: 60px 0 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-links h4,
.footer-responsibility h4 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.footer-links a,
.footer-responsibility a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-responsibility a:hover {
    color: var(--gold);
}

.footer-seal {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-seal p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .proclamation-trio {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pillar-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .grand-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--burgundy-deep);
        flex-direction: column;
        padding: 100px 40px;
        gap: 25px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(212, 175, 55, 0.3);
    }

    .grand-nav.active {
        right: 0;
    }

    .grand-nav a {
        font-size: 1rem;
    }

    .hero-realm {
        min-height: auto;
        padding: 150px 24px 100px;
    }

    .pillar-row {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .age-chamber {
        margin: 20px;
        padding: 40px 25px;
    }

    .guidance-scroll {
        padding: 25px 20px;
    }
}
