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

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: #faf7f2;
    color: #2d2a26;
    min-height: 100vh;
    line-height: 1.8;
}

/* Header */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9000;
    background: #faf7f2;
    border-bottom: 1px solid #d4c5b0;
    transition: box-shadow 0.3s;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #8b5a2b;
    text-decoration: none;
    letter-spacing: 2px;
}

.mobile-nav-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: #8b5a2b;
    margin: 6px 0;
    transition: 0.3s;
}

.mobile-nav-btn.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-btn.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 45px;
}

.main-menu a {
    font-weight: 600;
    color: #5a524a;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    position: relative;
}

.main-menu a:hover {
    color: #8b5a2b;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b5a2b;
    transition: width 0.3s;
}

.main-menu a:hover::after {
    width: 100%;
}

/* Main Content */
.page-main {
    padding-top: 100px;
}

/* Hero Section */
.hero-section {
    padding: 100px 40px;
    text-align: center;
    background: linear-gradient(180deg, #faf7f2 0%, #f5efe5 100%);
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    color: #8b5a2b;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-section .tagline {
    font-size: 1.3rem;
    color: #6b635a;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
}

/* Notice Blocks */
.notice-blocks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    padding: 70px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.notice-item {
    flex: 1 1 300px;
    max-width: 380px;
    background: white;
    border: 1px solid #e5ddd0;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.3s;
}

.notice-item:hover {
    box-shadow: 0 15px 40px rgba(139, 90, 43, 0.1);
    transform: translateY(-5px);
}

.notice-item .icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.notice-item h3 {
    font-family: 'Playfair Display', serif;
    color: #8b5a2b;
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.notice-item p {
    color: #6b635a;
    font-size: 1rem;
}

/* Game Section */
.game-section {
    padding: 80px 40px;
    background: #f5efe5;
}

.game-section h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #8b5a2b;
    font-size: 2.4rem;
    margin-bottom: 45px;
}

.game-frame {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border: 1px solid #d4c5b0;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.feature-box {
    padding: 50px 40px;
    text-align: center;
    border: 1px solid #e5ddd0;
    border-right: none;
}

.feature-box:last-child {
    border-right: 1px solid #e5ddd0;
}

.feature-box span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 18px;
}

.feature-box h4 {
    font-family: 'Playfair Display', serif;
    color: #8b5a2b;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-box p {
    color: #6b635a;
    font-size: 0.95rem;
}

/* Text Content */
.text-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 70px 40px;
}

.text-content h1 {
    font-family: 'Playfair Display', serif;
    color: #8b5a2b;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
}

.text-content h2 {
    font-family: 'Playfair Display', serif;
    color: #8b5a2b;
    font-size: 1.4rem;
    margin: 40px 0 15px;
}

.text-content p {
    color: #5a524a;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.text-content ul {
    color: #5a524a;
    margin: 18px 0 18px 30px;
}

.text-content li {
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background: #2d2a26;
    color: #d4c5b0;
    padding: 60px 40px 40px;
    margin-top: 80px;
}

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

.footer-inner h4 {
    font-family: 'Playfair Display', serif;
    color: #e5ddd0;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.resource-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.resource-links a {
    color: #a89a88;
    text-decoration: none;
    transition: color 0.3s;
}

.resource-links a:hover {
    color: #e5ddd0;
}

.footer-copy {
    color: #7a7168;
    font-size: 0.9rem;
    padding-top: 25px;
    border-top: 1px solid #3d3a36;
}

/* Age Modal */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 42, 38, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

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

.age-modal-box {
    background: #faf7f2;
    border: 1px solid #d4c5b0;
    padding: 60px;
    text-align: center;
    max-width: 480px;
}

.age-modal-box h2 {
    font-family: 'Playfair Display', serif;
    color: #8b5a2b;
    font-size: 1.9rem;
    margin-bottom: 18px;
}

.age-modal-box p {
    color: #5a524a;
    margin-bottom: 35px;
}

.age-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.age-btn {
    font-family: 'Source Sans Pro', sans-serif;
    padding: 14px 48px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.age-btn.yes {
    background: #8b5a2b;
    color: white;
    border: none;
}

.age-btn.yes:hover {
    background: #a06b34;
}

.age-btn.no {
    background: transparent;
    color: #8b5a2b;
    border: 2px solid #8b5a2b;
}

.age-btn.no:hover {
    background: rgba(139, 90, 43, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        border-right: 1px solid #e5ddd0;
        border-bottom: none;
    }

    .feature-box:last-child {
        border-bottom: 1px solid #e5ddd0;
    }
}

@media (max-width: 768px) {
    .mobile-nav-btn {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #faf7f2;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s ease;
    }

    .main-menu.open {
        right: 0;
    }

    .main-menu a {
        font-size: 1.3rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .tagline {
        font-size: 1.1rem;
    }

    .game-frame iframe {
        height: 420px;
    }

    .age-modal-box {
        margin: 20px;
        padding: 40px 30px;
    }

    .age-btns {
        flex-direction: column;
    }
}
