* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-primary: #2C5AA0;
    --blue-light: #4A7BC8;
    --gold: #D4AF37;
    --sand: #E8D7B8;
    --sand-dark: #C4A572;
    --dark-blue: #1A3A5C;
    --cream: #F5F1E8;
    --text-dark: #2A2A2A;
    --text-medium: #5A5A5A;
    --border-light: #D0C4A8;
}

body {
    font-family: 'Lora', serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Age Verification */
.age-verification-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.age-verification-screen.hidden {
    display: none;
}

.age-verification-panel {
    background: var(--cream);
    padding: 50px 40px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--gold);
}

.verify-symbol {
    font-size: 72px;
    margin-bottom: 20px;
}

.age-verification-panel h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 32px;
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.age-verification-panel p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.verify-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.verify-yes,
.verify-no {
    flex: 1;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Philosopher', sans-serif;
    border-radius: 5px;
}

.verify-yes {
    background: var(--blue-primary);
    color: white;
    border-color: var(--blue-primary);
}

.verify-yes:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.verify-no {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.verify-no:hover {
    background: var(--text-dark);
    color: white;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--dark-blue) 100%);
    border-bottom: 4px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-symbol {
    font-size: 40px;
}

.brand-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.primary-nav {
    display: flex;
    gap: 35px;
}

.primary-nav a {
    font-family: 'Philosopher', sans-serif;
    font-size: 17px;
    color: var(--sand);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--gold);
}

.primary-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(26, 58, 92, 0.8), rgba(44, 90, 160, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232C5AA0" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    width: 100%;
    padding: 60px 20px;
}

.hero-message h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 20px;
    color: var(--sand);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-action {
    display: inline-block;
    padding: 16px 45px;
    background: var(--gold);
    color: var(--dark-blue);
    text-decoration: none;
    font-family: 'Philosopher', sans-serif;
    font-size: 19px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Section Wrapper */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Welcome Section */
.welcome-section {
    padding: 80px 20px;
    background: var(--cream);
}

.welcome-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-text h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 42px;
    color: var(--blue-primary);
    margin-bottom: 25px;
}

.welcome-text p {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.8;
}

.welcome-visual {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
    border: 3px solid var(--gold);
    border-radius: 10px;
}

.visual-icon {
    font-size: 96px;
    margin-bottom: 20px;
}

.visual-caption {
    font-family: 'Philosopher', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    font-style: italic;
}

/* Pillars Section */
.pillars-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.section-heading {
    font-family: 'Philosopher', sans-serif;
    font-size: 42px;
    color: var(--blue-primary);
    text-align: center;
    margin-bottom: 50px;
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.pillar-card {
    background: var(--cream);
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid var(--blue-primary);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    font-size: 56px;
    margin-bottom: 20px;
    text-align: center;
}

.pillar-card h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 26px;
    color: var(--blue-primary);
    margin-bottom: 15px;
    text-align: center;
}

.pillar-card p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Mandatory Notices */
.mandatory-notices {
    padding: 80px 20px;
    background: var(--cream);
}

.notices-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.notice-item {
    padding: 35px;
    border-radius: 8px;
    border-left: 5px solid;
}

.notice-item.critical {
    background: rgba(211, 47, 47, 0.08);
    border-color: #D32F2F;
}

.notice-item.info {
    background: rgba(44, 90, 160, 0.08);
    border-color: var(--blue-primary);
}

.notice-item.warning {
    background: rgba(255, 152, 0, 0.08);
    border-color: #FF9800;
}

.notice-item h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.notice-item p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Featured Treasure */
.featured-treasure {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.treasure-display {
    background: var(--cream);
    padding: 25px;
    border-radius: 8px;
    border: 3px solid var(--gold);
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.treasure-game {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 5px;
    background: #000;
}

.treasure-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.note-block {
    background: var(--cream);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--blue-primary);
}

.note-block h4 {
    font-family: 'Philosopher', sans-serif;
    font-size: 20px;
    color: var(--blue-primary);
    margin-bottom: 12px;
}

.note-block p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Treasures List */
.treasures-list {
    padding: 80px 20px;
    background: var(--cream);
}

.treasures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.treasure-item {
    text-align: center;
    padding: 35px 25px;
    background: var(--sand);
    border-radius: 8px;
    border: 2px solid var(--border-light);
    transition: all 0.3s;
}

.treasure-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.treasure-symbol {
    font-size: 52px;
    display: block;
    margin-bottom: 20px;
}

.treasure-item h4 {
    font-family: 'Philosopher', sans-serif;
    font-size: 22px;
    color: var(--blue-primary);
    margin-bottom: 12px;
}

.treasure-item p {
    font-size: 14px;
    color: var(--text-medium);
}

/* Wisdom Section */
.wisdom-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--dark-blue) 100%);
}

.wisdom-box {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 8px;
    border: 3px solid var(--gold);
}

.wisdom-box h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 36px;
    color: var(--blue-primary);
    text-align: center;
    margin-bottom: 25px;
}

.wisdom-intro {
    text-align: center;
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.wisdom-list {
    list-style: none;
    margin: 30px 0;
}

.wisdom-list li {
    padding: 15px 0;
    font-size: 16px;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-light);
}

.wisdom-list li:last-child {
    border-bottom: none;
}

.wisdom-footer {
    text-align: center;
    font-style: italic;
    color: var(--blue-primary);
    font-size: 16px;
    margin-top: 30px;
}

/* Play Page */
.play-introduction {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
    text-align: center;
}

.play-introduction h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 52px;
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.play-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.gameplay-area {
    padding: 40px 20px;
    background: var(--cream);
}

.game-frame-container {
    background: var(--sand);
    padding: 25px;
    border-radius: 8px;
    border: 3px solid var(--gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.gameplay-frame {
    width: 100%;
    height: 750px;
    border: none;
    border-radius: 5px;
    background: #000;
}

.instructions-area {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.instruction-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.instruction-panel {
    background: var(--cream);
    padding: 35px;
    border-radius: 8px;
    border-top: 4px solid var(--blue-primary);
}

.panel-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.instruction-panel h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 22px;
    color: var(--blue-primary);
    margin-bottom: 20px;
    text-align: center;
}

.instruction-panel ul {
    list-style: none;
}

.instruction-panel li {
    padding: 8px 0 8px 20px;
    font-size: 14px;
    color: var(--text-medium);
    position: relative;
}

.instruction-panel li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.guidance-section {
    padding: 80px 20px;
    background: var(--cream);
}

.guidance-content {
    max-width: 900px;
    margin: 0 auto;
}

.guidance-entry {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--sand);
    border-radius: 8px;
    border-left: 4px solid var(--blue-primary);
}

.entry-marker {
    font-size: 32px;
    color: var(--gold);
    flex-shrink: 0;
}

.entry-text h4 {
    font-family: 'Philosopher', sans-serif;
    font-size: 20px;
    color: var(--blue-primary);
    margin-bottom: 10px;
}

.entry-text p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Legal Pages */
.legal-intro {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--dark-blue) 100%);
    text-align: center;
}

.legal-intro h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 52px;
    color: var(--gold);
    margin-bottom: 15px;
}

.legal-effective {
    font-size: 16px;
    color: var(--sand);
}

.legal-document {
    padding: 60px 20px 100px;
    background: var(--cream);
}

.document-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.document-content h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 28px;
    color: var(--blue-primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.document-content h2:first-child {
    margin-top: 0;
}

.document-content h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 22px;
    color: var(--dark-blue);
    margin-top: 25px;
    margin-bottom: 15px;
}

.document-content p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.8;
}

.document-content ul {
    margin: 15px 0 15px 30px;
    color: var(--text-medium);
}

.document-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.warning-panel,
.info-panel,
.casual-panel {
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 5px solid;
}

.warning-panel {
    background: rgba(211, 47, 47, 0.08);
    border-color: #D32F2F;
}

.info-panel {
    background: rgba(44, 90, 160, 0.08);
    border-color: var(--blue-primary);
}

.casual-panel {
    background: rgba(76, 175, 80, 0.08);
    border-color: #4CAF50;
}

.final-notice {
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    color: #D32F2F;
    margin-top: 40px;
    padding: 25px;
    background: rgba(211, 47, 47, 0.08);
    border: 2px solid #D32F2F;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue-primary) 100%);
    border-top: 4px solid var(--gold);
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 14px;
    color: var(--sand);
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 14px;
    color: var(--sand);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--sand);
    font-size: 13px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 87px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--dark-blue);
        padding: 20px;
        gap: 0;
        transition: left 0.3s;
        border-bottom: 4px solid var(--gold);
    }

    .primary-nav.active {
        left: 0;
    }

    .primary-nav a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    }

    .hero-message h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }

    .welcome-content {
        grid-template-columns: 1fr;
    }

    .pillars-container,
    .notices-layout,
    .treasures-grid,
    .instruction-panels {
        grid-template-columns: 1fr;
    }

    .treasure-game {
        height: 450px;
    }

    .gameplay-frame {
        height: 500px;
    }

    .document-content {
        padding: 30px 20px;
    }

    .age-verification-panel {
        margin: 20px;
        padding: 40px 25px;
    }

    .verify-actions {
        flex-direction: column;
    }

    .guidance-entry {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-message h1 {
        font-size: 32px;
    }

    .brand-title {
        font-size: 24px;
    }

    .treasure-game {
        height: 350px;
    }

    .gameplay-frame {
        height: 400px;
    }
}
