@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Libre+Baskerville:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --purple-deep: #4c1d95;
    --purple-mid: #7c3aed;
    --pink-bright: #ec4899;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-mid: #94a3b8;
    --dark: #1e1b4b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background: var(--gray-light);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
}

a {
    color: var(--purple-mid);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--pink-bright);
}

/* Gradient Header */
.gradient-header {
    background: var(--gradient-1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 35px;
    max-width: 1500px;
    margin: 0 auto;
}

.vibrant-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vibrant-logo svg {
    width: 48px;
    height: 48px;
}

.vibrant-logo span {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
}

.nav-btn {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.nav-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.gradient-nav ul {
    display: flex;
    list-style: none;
    gap: 38px;
}

.gradient-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
}

.gradient-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gradient-nav a:hover {
    color: var(--white);
}

.gradient-nav a:hover::after {
    width: 100%;
}

/* Colorful Hero */
.colorful-hero {
    padding: 160px 35px 100px;
    background: var(--gradient-1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.colorful-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-2);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(80px);
}

.colorful-hero h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Vivid Cards */
.vivid-cards {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 70px 35px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}

.vivid-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    min-width: 260px;
    max-width: 360px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vivid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

.vivid-card .card-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
}

.vivid-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple-deep);
    margin-bottom: 12px;
}

.vivid-card p {
    color: var(--gray-mid);
    font-size: 0.95rem;
}

/* Game Showcase */
.game-showcase {
    padding: 80px 35px;
    background: var(--white);
}

.game-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 45px;
    color: var(--purple-deep);
}

.showcase-frame {
    background: var(--gradient-1);
    border-radius: 24px;
    padding: 8px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.showcase-frame iframe {
    width: 100%;
    height: 550px;
    border: none;
    border-radius: 18px;
    display: block;
}

/* Perks */
.perks-section {
    padding: 90px 35px;
    background: var(--gray-light);
}

.perks-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 55px;
    color: var(--purple-deep);
}

.perks-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    max-width: 1350px;
    margin: 0 auto;
}

.perk-item {
    text-align: center;
    padding: 30px 22px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.perk-item .perk-icon {
    font-size: 3rem;
    margin-bottom: 18px;
}

.perk-item h4 {
    color: var(--purple-mid);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.perk-item p {
    color: var(--gray-mid);
    font-size: 0.9rem;
}

/* About */
.about-block {
    padding: 90px 35px;
    background: var(--gradient-1);
    color: var(--white);
}

.about-text {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.3rem;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

/* Footer */
.gradient-footer {
    background: var(--dark);
    padding: 55px 35px;
    text-align: center;
}

.gradient-footer h4 {
    color: var(--purple-mid);
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.footer-nav a {
    color: var(--gray-mid);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-legal {
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    padding-top: 25px;
    color: var(--gray-mid);
    font-size: 0.85rem;
}

/* Age Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 27, 75, 0.97);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-content {
    background: var(--white);
    border-radius: 24px;
    padding: 55px;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.age-content h2 {
    color: var(--purple-deep);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.age-content p {
    color: var(--gray-mid);
    margin-bottom: 32px;
}

.age-choices {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-allow, .btn-deny {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-allow {
    background: var(--gradient-1);
    color: var(--white);
}

.btn-allow:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-deny {
    background: transparent;
    border: 2px solid var(--gray-mid);
    color: var(--gray-mid);
}

.btn-deny:hover {
    border-color: var(--pink-bright);
    color: var(--pink-bright);
}

.popup-hidden {
    display: none !important;
}

/* Page Styles */
.page-top {
    padding: 150px 35px 65px;
    background: var(--gradient-1);
    text-align: center;
}

.page-top h1 {
    font-size: 2.7rem;
    color: var(--white);
}

.page-body {
    padding: 55px 35px 90px;
    max-width: 900px;
    margin: 0 auto;
}

.page-body h2 {
    margin: 48px 0 22px;
    font-size: 1.7rem;
    color: var(--purple-deep);
}

.page-body h3 {
    margin: 38px 0 16px;
    font-size: 1.3rem;
    color: var(--purple-mid);
}

.page-body p {
    margin-bottom: 20px;
    color: var(--gray-mid);
}

.page-body ul {
    margin: 22px 0 28px 32px;
    color: var(--gray-mid);
}

.page-body li {
    margin-bottom: 14px;
}

/* Play Page */
.play-top {
    padding: 140px 35px 55px;
    background: var(--gradient-1);
    text-align: center;
}

.play-top h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 18px;
}

.game-tips {
    max-width: 760px;
    margin: 40px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.15);
}

.game-tips h3 {
    color: var(--purple-deep);
    margin-bottom: 14px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .perks-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-btn {
        display: block;
    }
    
    .gradient-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .gradient-nav.open {
        max-height: 380px;
    }
    
    .gradient-nav ul {
        flex-direction: column;
        padding: 22px 35px;
        gap: 0;
    }
    
    .gradient-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .gradient-nav a {
        display: block;
        padding: 16px 0;
    }
    
    .colorful-hero h1 {
        font-size: 2.2rem;
    }
    
    .vivid-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .vivid-card {
        max-width: 100%;
    }
    
    .perks-row {
        grid-template-columns: 1fr;
    }
    
    .showcase-frame iframe {
        height: 400px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .age-content {
        margin: 22px;
        padding: 40px 30px;
    }
    
    .age-choices {
        flex-direction: column;
    }
}
