@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&family=Karla:wght@300;400;500;600&display=swap');

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

:root {
    --cosmic-orange: #f97316;
    --solar-yellow: #fbbf24;
    --universe-dark: #1c1917;
    --space-brown: #292524;
    --meteor: #ea580c;
    --stardust: #fef3c7;
    --ember: #fed7aa;
}

body {
    font-family: 'Karla', sans-serif;
    background: var(--universe-dark);
    color: var(--stardust);
    line-height: 1.7;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, var(--universe-dark), transparent);
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cosmic-orange);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--cosmic-orange);
    border-radius: 2px;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-menu a {
    color: var(--stardust);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.main-menu a:hover {
    color: var(--cosmic-orange);
}

main {
    padding-top: 75px;
}

.cosmic-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: 
        radial-gradient(ellipse at 40% 30%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        var(--universe-dark);
    text-align: center;
}

.hero-box {
    max-width: 900px;
}

.hero-box h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--stardust);
}

.hero-box h1 span {
    color: var(--cosmic-orange);
}

.hero-box .lead {
    font-size: 1.3rem;
    color: var(--solar-yellow);
    margin-bottom: 1rem;
}

.hero-box p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.9;
}

.ignite-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--cosmic-orange), var(--meteor));
    color: white;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: 0.3s;
}

.ignite-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.info-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.info-item {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 0.8rem 1.3rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-section {
    padding: 5rem 2rem;
    background: var(--space-brown);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.5rem;
    color: var(--cosmic-orange);
}

.game-frame {
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid var(--cosmic-orange);
    border-radius: 12px;
    overflow: hidden;
    background: var(--universe-dark);
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.2);
}

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

.features-grid {
    padding: 6rem 2rem;
    background: var(--universe-dark);
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-header {
    text-align: center;
    margin-bottom: 4rem;
}

.grid-header h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.3rem;
    color: var(--stardust);
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: linear-gradient(145deg, var(--space-brown), var(--universe-dark));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--cosmic-orange);
    transform: translateY(-8px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.card h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
    color: var(--solar-yellow);
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.7;
}

.about-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--space-brown) 0%, var(--universe-dark) 100%);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.2rem;
    color: var(--cosmic-orange);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

footer {
    background: var(--space-brown);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
}

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

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

.footer-links a {
    color: var(--stardust);
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--cosmic-orange);
    opacity: 1;
}

.help-links {
    padding-top: 2rem;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
    margin-top: 1rem;
}

.help-links p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.8rem;
}

.help-links a {
    color: var(--solar-yellow);
    margin: 0 0.7rem;
    text-decoration: none;
}

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

.copy {
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Age Modal */
.cosmic-gate {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cosmic-gate.hidden {
    display: none;
}

.gate-modal {
    background: linear-gradient(145deg, var(--space-brown), var(--universe-dark));
    border: 2px solid var(--cosmic-orange);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    margin: 1rem;
    text-align: center;
}

.gate-modal h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.8rem;
    color: var(--cosmic-orange);
    margin-bottom: 1.5rem;
}

.gate-modal p {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.modal-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.9rem 2rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, var(--cosmic-orange), var(--meteor));
    color: white;
}

.modal-btn.deny {
    background: transparent;
    border: 2px solid var(--stardust);
    color: var(--stardust);
}

.modal-btn:hover {
    transform: scale(1.05);
}

.blocked {
    position: fixed;
    inset: 0;
    background: var(--universe-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    text-align: center;
    padding: 2rem;
}

.blocked.hidden {
    display: none;
}

.blocked h2 {
    font-family: 'Rubik', sans-serif;
    color: var(--meteor);
    font-size: 1.8rem;
}

/* Page styles */
.page-header {
    padding: 9rem 2rem 4rem;
    background: linear-gradient(180deg, var(--space-brown) 0%, var(--universe-dark) 100%);
    text-align: center;
}

.page-header h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.8rem;
    color: var(--cosmic-orange);
}

.page-body {
    padding: 4rem 2rem;
    background: var(--universe-dark);
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    color: var(--solar-yellow);
    margin: 2.5rem 0 1rem;
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-menu ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--space-brown);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        gap: 2rem;
    }

    .main-menu ul.active {
        right: 0;
    }

    .hero-box h1 {
        font-size: 2.4rem;
    }

    .cards-row {
        grid-template-columns: 1fr;
    }

    .game-frame iframe {
        height: 420px;
    }

    .modal-btns {
        flex-direction: column;
    }

    .info-strip {
        flex-direction: column;
        align-items: center;
    }
}
