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

:root {
    --lavender: #a78bfa;
    --mint: #6ee7b7;
    --peach: #fca5a5;
    --sky: #7dd3fc;
    --cream: #fefce8;
    --blush: #fef3f2;
    --dark: #1f2937;
    --gray: #6b7280;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 50%, white 100%);
    color: var(--dark);
    line-height: 1.8;
    min-height: 100vh;
}

header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-box {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--lavender);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--lavender);
}

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

.mobile-nav span {
    width: 24px;
    height: 2px;
    background: var(--lavender);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-nav.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-nav.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.welcome-area {
    padding: 100px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(110, 231, 183, 0.1) 100%);
}

.welcome-box {
    max-width: 700px;
    margin: 0 auto;
}

.welcome-box h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-box h1 span {
    color: var(--lavender);
}

.welcome-box p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 35px;
}

.soft-btn {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--lavender), var(--sky));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

.soft-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(167, 139, 250, 0.4);
}

.notice-row {
    padding: 70px 30px;
    background: white;
}

.notice-cards {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.notice-card {
    padding: 35px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.notice-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05));
}

.notice-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.15), rgba(110, 231, 183, 0.05));
}

.notice-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(252, 165, 165, 0.15), rgba(252, 165, 165, 0.05));
}

.notice-card:hover {
    transform: translateY(-5px);
}

.notice-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.notice-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.notice-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.game-area {
    padding: 80px 30px;
}

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

.area-title h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
}

.area-title h2 span {
    color: var(--mint);
}

.game-frame {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.game-frame iframe {
    width: 100%;
    height: 520px;
    border: none;
    border-radius: 15px;
}

.story-area {
    padding: 80px 30px;
    background: linear-gradient(180deg, white 0%, var(--cream) 100%);
}

.story-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-box h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: var(--lavender);
    margin-bottom: 25px;
}

.story-box p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.features-area {
    padding: 70px 30px;
    background: white;
}

.features-row {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-bubble {
    text-align: center;
    padding: 30px 20px;
}

.feature-bubble .dot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.feature-bubble:nth-child(1) .dot { background: rgba(167, 139, 250, 0.2); }
.feature-bubble:nth-child(2) .dot { background: rgba(110, 231, 183, 0.2); }
.feature-bubble:nth-child(3) .dot { background: rgba(252, 165, 165, 0.2); }
.feature-bubble:nth-child(4) .dot { background: rgba(125, 211, 252, 0.2); }

.feature-bubble h4 {
    font-family: 'DM Serif Display', serif;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-bubble p {
    color: var(--gray);
    font-size: 0.85rem;
}

footer {
    background: var(--dark);
    padding: 55px 30px;
}

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

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 25px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--lavender);
}

.help-row {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-row p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.help-row a {
    color: var(--lavender);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.8rem;
}

.help-row a:hover {
    text-decoration: underline;
}

.copy-note {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.age-popup {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

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

.age-popup-box {
    background: white;
    border-radius: 25px;
    padding: 45px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.age-popup-box h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.age-popup-box p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

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

.age-popup-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.age-popup-btn.confirm {
    background: linear-gradient(135deg, var(--lavender), var(--sky));
    color: white;
}

.age-popup-btn.confirm:hover {
    transform: scale(1.05);
}

.age-popup-btn.deny {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray);
}

.age-popup-btn.deny:hover {
    background: rgba(107, 114, 128, 0.2);
}

.page-banner {
    padding: 130px 30px 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(110, 231, 183, 0.1) 100%);
}

.page-banner h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    color: var(--dark);
}

.page-content {
    padding: 60px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--lavender);
    margin: 35px 0 15px;
}

.page-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.page-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-content li {
    color: var(--gray);
    margin-bottom: 8px;
}

.play-tip {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(110, 231, 183, 0.1));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 35px;
}

.play-tip h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--lavender);
    margin-bottom: 8px;
}

.play-tip p {
    color: var(--gray);
    margin: 0;
}

@media (max-width: 992px) {
    .notice-cards {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .features-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-box h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 30px;
        gap: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    }
    
    .welcome-box h1 {
        font-size: 2rem;
    }
    
    .game-frame iframe {
        height: 380px;
    }
    
    .features-row {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .help-row a {
        display: block;
        margin: 8px 0;
    }
    
    .age-popup-btns {
        flex-direction: column;
    }
    
    .age-popup-btn {
        width: 100%;
    }
}
