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

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #fef3c7;
    line-height: 1.7;
    min-height: 100vh;
}

.entrance-gate {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.98) 0%, rgba(76, 29, 149, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

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

.gate-chamber {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.4);
    border: 3px solid #fbbf24;
}

.crown-emblem {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.gate-chamber h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.gate-chamber p {
    font-size: 1.05rem;
    color: #fef3c7;
    margin-bottom: 1rem;
}

.decree {
    font-size: 0.95rem;
    color: #fde68a;
}

.gate-options {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.royal-enter,
.royal-leave {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.royal-enter {
    background: #fbbf24;
    color: #1e1b4b;
}

.royal-enter:hover {
    background: #fcd34d;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.royal-leave {
    background: #dc2626;
    color: #fff;
}

.royal-leave:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.royal-header {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
    padding: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #fbbf24;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crest {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crest-emblem {
    width: 85px;
    height: 85px;
}

.kingdom-name {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.toggle-bar {
    width: 32px;
    height: 4px;
    background: #fbbf24;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.royal-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-option {
    padding: 0.9rem 1.8rem;
    color: #fef3c7;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-option:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.nav-option.selected {
    background: #fbbf24;
    color: #1e1b4b;
    font-weight: 700;
}

.kingdom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.throne-room {
    text-align: center;
    padding: 5rem 2rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(126, 34, 206, 0.2) 100%);
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.proclamation h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 15px rgba(251, 191, 36, 0.5);
}

.royal-greeting {
    font-size: 1.5rem;
    color: #fde68a;
    margin-bottom: 2.5rem;
}

.royal-seals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.seal {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: #fbbf24;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

.royal-decree {
    margin: 4rem 0;
}

.decree-scroll {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(49, 46, 129, 0.6) 100%);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid #fbbf24;
    margin-bottom: 3rem;
}

.scroll-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.scroll-icon {
    font-size: 3rem;
}

.scroll-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #fbbf24;
}

.decree-scroll p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.royal-notices {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.notice-banner {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-radius: 12px;
    border-left: 6px solid;
    align-items: flex-start;
}

.banner-crest {
    font-size: 3rem;
    flex-shrink: 0;
}

.banner-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.critical-notice {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.2) 100%);
    border-color: #dc2626;
}

.info-notice {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(126, 34, 206, 0.2) 100%);
    border-color: #9333ea;
}

.warning-notice {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    border-color: #f59e0b;
}

.gaming-hall {
    margin: 4rem 0;
}

.hall-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hall-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.hall-header p {
    font-size: 1.2rem;
    color: #fde68a;
}

.game-throne {
    max-width: 1100px;
    margin: 0 auto;
    background: #1e1b4b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.3);
    border: 4px solid #fbbf24;
}

.game-throne iframe {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

.hall-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #fde68a;
    font-weight: 600;
}

.royal-virtues {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(126, 34, 206, 0.15) 100%);
    border-radius: 16px;
}

.virtues-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 3rem;
}

.virtues-court {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.virtue-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.virtue-card:hover {
    transform: translateY(-8px);
    border-color: #fbbf24;
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.3);
}

.virtue-symbol {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.virtue-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.royal-census {
    margin: 4rem 0;
}

.census-records {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.census-entry {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 3px solid #fbbf24;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.census-number {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.census-label {
    font-size: 1.2rem;
    color: #fef3c7;
}

.page-crown {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(126, 34, 206, 0.2) 100%);
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.page-crown h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.crown-subtitle {
    font-size: 1.4rem;
    color: #fde68a;
}

.play-invitation {
    margin-bottom: 3rem;
}

.invitation-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(49, 46, 129, 0.6) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #fbbf24;
}

.invitation-icon {
    font-size: 5rem;
    flex-shrink: 0;
}

.invitation-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.chamber-main {
    margin: 3rem 0;
}

.game-display {
    max-width: 1100px;
    margin: 0 auto;
    background: #1e1b4b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.3);
    border: 4px solid #fbbf24;
}

.game-display iframe {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

.royal-instructions {
    margin: 4rem 0;
}

.instructions-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 3rem;
}

.protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.protocol-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.protocol-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.protocol-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.play-advisories {
    margin: 3rem 0;
}

.advisory-scroll {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.2) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 6px solid #dc2626;
    max-width: 900px;
    margin: 0 auto;
}

.advisory-scroll h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.advisory-list {
    list-style: none;
    padding-left: 1rem;
}

.advisory-list li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.document-header {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(126, 34, 206, 0.2) 100%);
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.document-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.document-date {
    font-size: 1.2rem;
    color: #fde68a;
}

.royal-document {
    max-width: 1000px;
    margin: 0 auto;
}

.document-article {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(49, 46, 129, 0.6) 100%);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border-left: 6px solid #fbbf24;
}

.document-article h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.document-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.document-article.proclamation {
    border: 3px solid #fbbf24;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(126, 34, 206, 0.3) 100%);
}

.confirmation-registry,
.support-registry {
    list-style: none;
    padding-left: 1rem;
}

.confirmation-registry li,
.support-registry li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.support-registry a {
    color: #fbbf24;
    font-weight: 600;
}

.support-registry a:hover {
    text-decoration: underline;
}

.kingdom-footer {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid #fbbf24;
}

.footer-chamber {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.footer-column p {
    color: #fef3c7;
    line-height: 1.6;
}

.document-registry {
    list-style: none;
    margin-top: 1rem;
}

.document-registry li {
    margin-bottom: 0.5rem;
}

.document-registry a {
    color: #fde68a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.document-registry a:hover {
    color: #fbbf24;
}

.footer-seal {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(251, 191, 36, 0.3);
    color: #fef3c7;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .royal-nav {
        position: fixed;
        top: 115px;
        right: -100%;
        width: 280px;
        flex-direction: column;
        background: #1e1b4b;
        padding: 1.5rem;
        border-radius: 12px;
        transition: right 0.3s ease;
        box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.5);
        border: 2px solid #fbbf24;
    }

    .royal-nav.active {
        right: 1rem;
    }

    .proclamation h1 {
        font-size: 2.5rem;
    }

    .page-crown h1 {
        font-size: 2.2rem;
    }

    .notice-banner {
        flex-direction: column;
        text-align: center;
    }

    .invitation-card {
        flex-direction: column;
        text-align: center;
    }

    .game-throne iframe,
    .game-display iframe {
        height: 450px;
    }

    .gate-options {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .crest-emblem {
        width: 65px;
        height: 65px;
    }

    .kingdom-name {
        font-size: 1.8rem;
    }

    .royal-seals {
        flex-direction: column;
        align-items: center;
    }
}
