* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a0033 0%, #2d1b3d 50%, #1a0033 100%);
    color: #e1bee7;
    line-height: 1.7;
    min-height: 100vh;
}

.realm-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header */
.site-header {
    background: rgba(74, 20, 140, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.5);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.2rem 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ce93d8;
    letter-spacing: 2px;
}

.primary-nav {
    display: flex;
    gap: 2rem;
}

.primary-nav a {
    color: #e1bee7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.primary-nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ce93d8;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.primary-nav a:hover {
    color: #ce93d8;
}

.primary-nav a:hover::before {
    width: 100%;
}

.nav-trigger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-trigger span {
    width: 28px;
    height: 3px;
    background: #ce93d8;
    transition: 0.3s;
}

/* Cosmic Hero */
.cosmic-hero {
    padding: 4.5rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(156, 39, 176, 0.3) 0%, transparent 70%);
}

.cosmic-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ce93d8;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(206, 147, 216, 0.5);
}

.cosmic-intro {
    font-size: 1.2rem;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Realm Principles */
.realm-principles {
    padding: 4rem 0;
}

.principle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.principle-card {
    background: rgba(74, 20, 140, 0.5);
    border: 2px solid #9c27b0;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.3);
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(156, 39, 176, 0.5);
    border-color: #ce93d8;
}

.void-card {
    border-color: #7b1fa2;
}

.shadow-card {
    border-color: #8e24aa;
}

.eclipse-card {
    border-color: #9c27b0;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.principle-card h3 {
    font-size: 1.4rem;
    color: #ce93d8;
    margin-bottom: 1rem;
    font-weight: 700;
}

.principle-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Realm Story */
.realm-story {
    padding: 4rem 0;
    background: rgba(156, 39, 176, 0.1);
}

.realm-story h2 {
    font-size: 2.3rem;
    color: #ce93d8;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
}

.story-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Featured Portal */
.featured-portal {
    padding: 4rem 0;
}

.featured-portal h2 {
    font-size: 2.3rem;
    color: #ce93d8;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}

.portal-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.game-portal {
    max-width: 950px;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(156, 39, 176, 0.6);
    border: 4px solid #9c27b0;
}

.game-portal iframe {
    width: 100%;
    height: 650px;
    display: block;
    border: none;
}

/* Realm Attributes */
.realm-attributes {
    padding: 4rem 0;
    background: rgba(156, 39, 176, 0.1);
}

.realm-attributes h2 {
    font-size: 2.3rem;
    color: #ce93d8;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 800;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.attribute {
    background: rgba(74, 20, 140, 0.4);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #7b1fa2;
    text-align: center;
    transition: all 0.3s;
}

.attribute:hover {
    border-color: #ce93d8;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.4);
}

.attr-symbol {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.attribute h4 {
    font-size: 1.3rem;
    color: #ce93d8;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.attribute p {
    font-size: 0.95rem;
}

/* Wisdom Section */
.wisdom-section {
    padding: 4rem 0;
}

.wisdom-section h2 {
    font-size: 2.3rem;
    color: #ce93d8;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
}

.wisdom-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Footer */
.realm-footer {
    background: rgba(74, 20, 140, 0.6);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid #9c27b0;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-block h3 {
    color: #ce93d8;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-block ul {
    list-style: none;
}

.footer-block ul li {
    margin-bottom: 0.7rem;
}

.footer-block a {
    color: #e1bee7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-block a:hover {
    color: #ce93d8;
}

.footer-seal {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(156, 39, 176, 0.5);
    font-size: 0.9rem;
}

/* Portal Overlay */
.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 0, 51, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.portal-overlay.hidden {
    display: none;
}

.portal-content {
    background: linear-gradient(135deg, #2d1b3d 0%, #1a0033 100%);
    border: 4px solid #9c27b0;
    border-radius: 20px;
    padding: 3rem;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 0 50px rgba(156, 39, 176, 0.7);
}

.portal-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.portal-content h2 {
    font-size: 2.2rem;
    color: #ce93d8;
    margin-bottom: 1rem;
    font-weight: 800;
}

.portal-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e1bee7;
}

.portal-note {
    font-size: 0.95rem;
    opacity: 0.8;
}

.portal-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.portal-choices button {
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid #9c27b0;
    background: rgba(156, 39, 176, 0.3);
    color: #ce93d8;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.choice-enter:hover {
    background: #9c27b0;
    color: #fff;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.8);
}

.choice-decline {
    border-color: #666 !important;
    color: #999 !important;
    background: rgba(102, 102, 102, 0.2) !important;
}

.choice-decline:hover {
    background: #666 !important;
    color: #fff !important;
}

/* Play Page */
.play-banner {
    padding: 3.5rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(156, 39, 176, 0.3) 0%, transparent 70%);
}

.play-banner h1 {
    font-size: 2.8rem;
    color: #ce93d8;
    margin-bottom: 1rem;
    font-weight: 800;
}

.play-text {
    font-size: 1.2rem;
}

.gameplay-realm {
    padding: 4rem 0;
}

.guidance-box {
    background: rgba(74, 20, 140, 0.4);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border-left: 5px solid #9c27b0;
}

.guidance-box h2 {
    color: #ce93d8;
    margin-bottom: 1rem;
    font-weight: 700;
}

.guidance-box p {
    margin-bottom: 1rem;
}

.game-chamber {
    max-width: 950px;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(156, 39, 176, 0.6);
    border: 4px solid #9c27b0;
}

.game-chamber iframe {
    width: 100%;
    height: 650px;
    display: block;
    border: none;
}

.play-wisdom {
    padding: 3rem 0;
}

.wisdom-box {
    background: rgba(255, 193, 7, 0.15);
    border: 3px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.wisdom-box h3 {
    color: #ffc107;
    margin-bottom: 1rem;
    font-weight: 700;
}

.wisdom-box p {
    color: #e1bee7;
}

/* Sacred Document */
.sacred-document {
    padding: 4rem 0;
}

.sacred-document h1 {
    font-size: 2.8rem;
    text-align: center;
    color: #ce93d8;
    margin-bottom: 1rem;
    font-weight: 800;
}

.document-date {
    text-align: center;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.covenant-section {
    margin-bottom: 2.5rem;
    background: rgba(74, 20, 140, 0.3);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #9c27b0;
}

.covenant-section h3 {
    color: #ce93d8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.covenant-section p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.covenant-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.covenant-section li {
    margin-bottom: 0.7rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-trigger {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(74, 20, 140, 0.95);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        display: none;
        border-top: 2px solid #9c27b0;
    }

    .primary-nav.active {
        display: flex;
    }

    .primary-nav a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(156, 39, 176, 0.3);
    }

    .primary-nav a::before {
        display: none;
    }

    .cosmic-content h1 {
        font-size: 2.2rem;
    }

    .cosmic-intro {
        font-size: 1.1rem;
    }

    .principle-cards {
        grid-template-columns: 1fr;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
    }

    .game-portal iframe,
    .game-chamber iframe {
        height: 450px;
    }

    .portal-content {
        padding: 2rem;
        margin: 1rem;
    }

    .portal-choices {
        flex-direction: column;
    }

    .footer-sections {
        grid-template-columns: 1fr;
    }
}
