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

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

:root {
    --royal-purple: #581c87;
    --deep-violet: #3b0764;
    --fortune-gold: #fbbf24;
    --light-gold: #fde68a;
    --white: #ffffff;
    --off-white: #faf5ff;
    --text-dark: #1e1b4b;
    --text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

a {
    color: var(--royal-purple);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--fortune-gold);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--deep-violet), var(--royal-purple));
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(88, 28, 135, 0.3);
}

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

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--fortune-gold);
    letter-spacing: 2px;
}

.nav-main {
    display: flex;
    gap: 2.5rem;
}

.nav-main a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
}

.nav-main a:hover {
    color: var(--fortune-gold);
    opacity: 1;
}

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

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--fortune-gold);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--deep-violet), var(--royal-purple));
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--white);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--fortune-gold);
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    background: 
        radial-gradient(ellipse at top, rgba(88, 28, 135, 0.1) 0%, transparent 50%),
        linear-gradient(to bottom, var(--off-white), var(--white));
}

.hero-inner {
    max-width: 850px;
    text-align: center;
}

.hero-inner h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--deep-violet);
}

.hero-inner h1 span {
    color: var(--royal-purple);
}

.hero-inner p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.fortune-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--royal-purple), var(--deep-violet));
    color: var(--fortune-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s;
}

.fortune-btn:hover {
    box-shadow: 0 10px 40px rgba(88, 28, 135, 0.4);
    color: var(--light-gold);
}

/* Cards Section */
.cards-area {
    padding: 4rem 2rem;
    background: var(--white);
}

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

.info-card {
    background: var(--off-white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--fortune-gold);
    transition: all 0.3s;
}

.info-card:hover {
    box-shadow: 0 10px 40px rgba(88, 28, 135, 0.15);
}

.info-card .symbol {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--royal-purple);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Game Section */
.game-area {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--deep-violet), var(--royal-purple));
}

.game-area h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--fortune-gold);
}

.game-frame {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

/* Benefits */
.benefits {
    padding: 5rem 2rem;
    background: var(--off-white);
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--deep-violet);
}

.benefits-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.benefit-box {
    background: var(--white);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    border-left: 4px solid var(--royal-purple);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benefit-box .ico {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--royal-purple);
}

.benefit-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Page Content */
.page-area {
    min-height: 100vh;
    padding: 100px 2rem 4rem;
    background: var(--off-white);
}

.content-card {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid var(--fortune-gold);
}

.content-card h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--royal-purple);
}

.content-card h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--deep-violet);
}

.content-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content-card ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.content-card li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.game-hint {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.1), rgba(59, 7, 100, 0.1));
    border-left: 4px solid var(--fortune-gold);
    padding: 1rem 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

.game-hint p {
    margin: 0;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--deep-violet), var(--royal-purple));
    padding: 4rem 2rem;
}

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

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fortune-gold);
    margin-bottom: 1.5rem;
}

.resources {
    margin-bottom: 1.5rem;
}

.resources p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.resources a {
    color: var(--white);
    margin: 0 1rem;
    font-size: 0.9rem;
}

.resources a:hover {
    color: var(--fortune-gold);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.legal {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Age Popup */
.age-popup {
    position: fixed;
    inset: 0;
    background: rgba(59, 7, 100, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

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

.age-content {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    max-width: 450px;
    margin: 1rem;
    border-bottom: 4px solid var(--fortune-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.age-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--royal-purple);
}

.age-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-actions button {
    padding: 0.9rem 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.accept-btn {
    background: linear-gradient(135deg, var(--royal-purple), var(--deep-violet));
    color: var(--fortune-gold);
}

.accept-btn:hover {
    box-shadow: 0 5px 20px rgba(88, 28, 135, 0.4);
}

.decline-btn {
    background: var(--off-white);
    color: var(--text-dark);
}

.decline-btn:hover {
    background: var(--fortune-gold);
}

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

@media (max-width: 768px) {
    .nav-main {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-wrap {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 100px 1rem 60px;
    }
    
    .game-frame iframe {
        height: 400px;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
    }
    
    .age-content {
        padding: 2rem;
    }
    
    .age-actions {
        flex-direction: column;
    }
    
    .resources a {
        display: block;
        margin: 0.5rem 0;
    }
}
