@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Josefin+Sans:wght@300;400;600;700&display=swap');

:root {
    --moonlight: #e8f4f8;
    --midnight: #0c1445;
    --deep-blue: #1a237e;
    --silver-glow: #b0bec5;
    --lunar-white: #ffffff;
    --soft-violet: #7c4dff;
    --star-yellow: #ffd54f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--midnight);
    color: var(--moonlight);
    min-height: 100vh;
}

/* Navigation */
.top-nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(12, 20, 69, 0.98) 0%, rgba(12, 20, 69, 0.85) 100%);
    backdrop-filter: blur(10px);
}

.nav-row {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--moonlight);
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(232, 244, 248, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--moonlight);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--moonlight);
    margin: 5px 0;
}

.nav-items {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-items a {
    color: var(--silver-glow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-items a:hover {
    color: var(--lunar-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Landing Section */
.landing {
    min-height: 100vh;
    padding: 140px 40px 80px;
    background: 
        radial-gradient(ellipse at 70% 20%, rgba(124, 77, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(255, 213, 79, 0.08) 0%, transparent 40%),
        var(--midnight);
    display: flex;
    align-items: center;
}

.landing-inner {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.landing h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--moonlight) 0%, var(--soft-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing p {
    font-size: 1.25rem;
    color: var(--silver-glow);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.notice-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.pill {
    background: rgba(124, 77, 255, 0.2);
    border: 1px solid var(--soft-violet);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--moonlight);
}

/* Game Display */
.game-display {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--deep-blue);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(124, 77, 255, 0.25);
}

.game-display iframe {
    display: block;
    width: 100%;
    height: 550px;
    border: none;
}

/* Features Grid */
.features-area {
    padding: 100px 40px;
    background: linear-gradient(180deg, var(--midnight) 0%, var(--deep-blue) 100%);
}

.features-wrap {
    max-width: 1400px;
    margin: 0 auto;
}

.area-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--moonlight);
}

.feature-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.f-box {
    background: rgba(26, 35, 126, 0.5);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(124, 77, 255, 0.2);
    transition: all 0.3s;
}

.f-box:hover {
    transform: translateY(-8px);
    border-color: var(--soft-violet);
    box-shadow: 0 20px 40px rgba(124, 77, 255, 0.2);
}

.f-box .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.f-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--moonlight);
}

.f-box p {
    font-size: 0.9rem;
    color: var(--silver-glow);
    line-height: 1.6;
}

/* Content Blocks */
.content-blocks {
    padding: 100px 40px;
    background: var(--deep-blue);
}

.blocks-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.c-block {
    background: rgba(12, 20, 69, 0.6);
    padding: 45px;
    border-radius: 20px;
    border-left: 4px solid var(--soft-violet);
}

.c-block h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6rem;
    color: var(--star-yellow);
    margin-bottom: 18px;
}

.c-block p {
    color: var(--silver-glow);
    line-height: 1.8;
}

/* Full Game Section */
.full-game {
    padding: 80px 40px;
    background: var(--midnight);
}

.full-game-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--deep-blue);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--soft-violet);
    box-shadow: 0 0 100px rgba(124, 77, 255, 0.3);
}

.full-game-inner iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
}

/* Page Styles */
.page-top {
    padding: 140px 40px 50px;
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--midnight) 100%);
    text-align: center;
}

.page-top h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.8rem;
    color: var(--moonlight);
    margin-bottom: 10px;
}

.page-top p {
    color: var(--silver-glow);
}

.page-content {
    padding: 60px 40px 100px;
    max-width: 950px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.7rem;
    color: var(--soft-violet);
    margin: 40px 0 18px;
}

.page-content p {
    color: var(--silver-glow);
    margin-bottom: 16px;
    line-height: 1.85;
    font-size: 1.05rem;
}

.page-content ul {
    color: var(--silver-glow);
    margin: 15px 0 25px 30px;
}

.page-content li {
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: var(--deep-blue);
    padding: 60px 40px;
    border-top: 1px solid rgba(124, 77, 255, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h4 {
    color: var(--star-yellow);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--moonlight);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-text {
    color: var(--silver-glow);
    opacity: 0.5;
    font-size: 0.9rem;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Age Check */
.age-check {
    position: fixed;
    inset: 0;
    background: rgba(12, 20, 69, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.age-check.confirmed {
    display: none;
}

.age-dialog {
    background: var(--deep-blue);
    border: 2px solid var(--soft-violet);
    border-radius: 24px;
    padding: 55px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 80px rgba(124, 77, 255, 0.4);
}

.age-dialog h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    color: var(--moonlight);
    margin-bottom: 20px;
}

.age-dialog p {
    color: var(--silver-glow);
    margin-bottom: 35px;
    line-height: 1.7;
}

.age-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.age-btn {
    padding: 15px 45px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Quicksand', sans-serif;
}

.age-btn.yes {
    background: var(--soft-violet);
    color: var(--lunar-white);
}

.age-btn.no {
    background: transparent;
    border: 2px solid var(--silver-glow);
    color: var(--silver-glow);
}

.age-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blocks-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-items {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--midnight);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s;
    }

    .nav-items.active {
        transform: translateY(0);
    }

    .landing h1 {
        font-size: 2.5rem;
    }

    .feature-boxes {
        grid-template-columns: 1fr;
    }

    .game-display iframe,
    .full-game-inner iframe {
        height: 400px;
    }

    .notice-pills {
        flex-direction: column;
        align-items: center;
    }

    .age-dialog {
        margin: 20px;
        padding: 40px 25px;
    }

    .age-buttons {
        flex-direction: column;
    }

    .page-top h1 {
        font-size: 2rem;
    }
}
