* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4a90e2;
    --secondary-purple: #9b59b6;
    --accent-orange: #e67e22;
    --light-bg: #f8f9fc;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-medium: #555555;
    --text-light: #7f8c8d;
    --border-light: #e0e6ed;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.star {
    color: var(--accent-orange);
    font-size: 2rem;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: width 0.3s;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-blue);
}

/* Hero Section */
.hero-space {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.6;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.cosmic-divider {
    width: 80px;
    height: 4px;
    background: white;
    margin: 0 auto;
    border-radius: 2px;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.section-intro {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Cards */
.welcome-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    border-top: 4px solid var(--primary-blue);
}

.welcome-card h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.welcome-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-blue {
    border-color: var(--primary-blue);
}

.card-purple {
    border-color: var(--secondary-purple);
}

.card-orange {
    border-color: var(--accent-orange);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Game Display */
.game-display {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.game-iframe {
    width: 100%;
    height: 600px;
    border-radius: 10px;
}

/* Features List */
.features-list {
    display: grid;
    gap: 2rem;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    align-items: center;
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    opacity: 0.3;
}

.feature-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.feature-content p {
    color: var(--text-medium);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
    text-align: center;
}

.highlight-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
}

.highlight-box h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-col p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.modal-box h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-box p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.age-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0;
    color: var(--text-dark);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-yes,
.btn-no {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-yes {
    background: var(--primary-blue);
    color: white;
}

.btn-yes:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-no {
    background: var(--border-light);
    color: var(--text-medium);
}

.btn-no:hover {
    background: var(--text-light);
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    font-weight: 300;
}

.date-updated {
    color: rgba(255, 255, 255, 0.8);
}

/* Legal Document */
.legal-document {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.legal-document h2 {
    color: var(--primary-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.legal-document p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.legal-document ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-document li {
    color: var(--text-medium);
    margin-bottom: 0.8rem;
}

/* Play Page Specific */
.subsection-title {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.styled-list {
    margin-left: 2rem;
    margin-top: 1rem;
}

.styled-list li {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.instruction-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.instruction-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.instruction-box p {
    color: var(--text-medium);
    margin: 0;
}

.tech-note {
    background: rgba(74, 144, 226, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    margin-top: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
}

.tip-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tip-box h3 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.tip-box p {
    color: var(--text-medium);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 5px 10px var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-item {
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-item::after {
        display: none;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .main-subtitle {
        font-size: 1.2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .feature-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .game-iframe {
        height: 400px;
    }

    .modal-box {
        margin: 1rem;
        padding: 2rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .btn-yes,
    .btn-no {
        width: 100%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .instruction-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}
