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

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

:root {
    --amber: #f59e0b;
    --gold: #fbbf24;
    --brown: #78350f;
    --dark-wood: #1c1917;
    --parchment: #fef3c7;
    --text-dark: #292524;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--dark-wood);
    color: var(--parchment);
    line-height: 1.75;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.realm-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.9));
    border-bottom: 3px solid var(--amber);
}

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

.realm-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.realm-logo svg {
    width: 50px;
    height: 50px;
}

.logo-name {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold);
}

.realm-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.realm-nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--parchment);
    transition: color 0.3s;
}

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

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background: var(--gold);
}

/* Hero Banner */
.hero-banner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 30px 80px;
    background: 
        linear-gradient(rgba(28, 25, 23, 0.7), rgba(28, 25, 23, 0.9)),
        radial-gradient(ellipse at top, var(--brown) 0%, var(--dark-wood) 70%);
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10 L45 35 L70 40 L45 45 L40 70 L35 45 L10 40 L35 35 Z' fill='none' stroke='%23f59e0b08' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content .tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.realm-btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--amber), var(--gold));
    color: var(--dark-wood);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid var(--gold);
}

.realm-btn:hover {
    background: transparent;
    color: var(--gold);
}

/* Notice Scrolls */
.notice-section {
    padding: 80px 30px;
    background: var(--brown);
}

.scroll-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.scroll-card {
    background: linear-gradient(135deg, var(--dark-wood), #292524);
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--amber);
    border-radius: 10px;
    position: relative;
}

.scroll-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold);
}

.scroll-card .icon {
    font-size: 3rem;
    margin-bottom: 18px;
}

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

/* Game Chamber */
.game-chamber {
    padding: 100px 30px;
    background: var(--dark-wood);
}

.chamber-title {
    text-align: center;
    margin-bottom: 50px;
}

.chamber-title h2 {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.game-stage {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--brown);
    border: 4px solid var(--amber);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

/* Treasures Section */
.treasures-section {
    padding: 100px 30px;
    background: linear-gradient(180deg, var(--brown), var(--dark-wood));
}

.treasures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.treasure-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s;
}

.treasure-box:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.treasure-box .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.treasure-box h4 {
    color: var(--amber);
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

/* Footer */
.realm-footer {
    background: var(--dark-wood);
    padding: 60px 30px 35px;
    border-top: 3px solid var(--amber);
}

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

.support-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin-bottom: 20px;
}

.support-section a {
    color: var(--amber);
    margin: 0 18px;
    transition: opacity 0.3s;
}

.support-section a:hover {
    opacity: 0.7;
}

.footer-text {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(254, 243, 199, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

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

.gate-box {
    background: linear-gradient(135deg, var(--brown), var(--dark-wood));
    border: 3px solid var(--gold);
    border-radius: 15px;
    padding: 55px 50px;
    text-align: center;
    max-width: 520px;
}

.gate-box h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
}

.gate-box p {
    margin-bottom: 35px;
}

.gate-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gate-btns button {
    padding: 15px 45px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

.btn-proceed {
    background: linear-gradient(135deg, var(--amber), var(--gold));
    color: var(--dark-wood);
    border: none;
}

.btn-proceed:hover {
    transform: scale(1.05);
}

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

.btn-retreat:hover {
    background: rgba(254, 243, 199, 0.1);
}

/* Page Banner */
.page-banner {
    padding: 160px 30px 90px;
    text-align: center;
    background: linear-gradient(rgba(28, 25, 23, 0.8), rgba(28, 25, 23, 0.95)),
                radial-gradient(ellipse at center, var(--brown), var(--dark-wood));
    border-bottom: 3px solid var(--amber);
}

.page-banner h1 {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Scroll Content */
.scroll-content {
    padding: 70px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.scroll-content h2 {
    font-family: 'Cinzel', serif;
    color: var(--amber);
    font-size: 1.5rem;
    margin: 40px 0 18px;
}

.scroll-content h2:first-child {
    margin-top: 0;
}

.scroll-content p {
    margin-bottom: 18px;
}

.scroll-content ul {
    margin: 18px 0 18px 30px;
}

.scroll-content li {
    margin-bottom: 12px;
}

/* Play Page */
.play-banner {
    padding: 140px 30px 50px;
    text-align: center;
    background: var(--dark-wood);
}

.play-banner h1 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.play-banner .info {
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .scroll-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .treasures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    .realm-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-wood);
        padding: 25px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s;
        border-bottom: 3px solid var(--amber);
    }
    
    .realm-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .realm-nav ul {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .scroll-row {
        grid-template-columns: 1fr;
    }
    
    .treasures-grid {
        grid-template-columns: 1fr;
    }
    
    .game-stage iframe {
        height: 400px;
    }
    
    .gate-box {
        margin: 20px;
        padding: 40px 25px;
    }
    
    .gate-btns {
        flex-direction: column;
    }
}
