@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #ff6b35;
    --teal: #00d9ff;
    --purple: #b565d8;
    --yellow: #ffd23f;
    --pink: #ff499e;
    --dark: #1f2937;
    --darker: #111827;
    --light: #f9fafb;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #b565d8 50%, #00d9ff 100%);
    background-attachment: fixed;
    color: var(--light);
    line-height: 1.7;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-main {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 888;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--yellow);
    text-decoration: none;
    text-shadow: 3px 3px 0 var(--orange);
    letter-spacing: 1px;
}

.nav-main ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-main a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-main a:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--yellow);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-container {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 3rem;
}

.intro-section {
    background: rgba(17, 24, 39, 0.85);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
    border: 4px solid var(--yellow);
    box-shadow: 0 10px 40px rgba(255, 210, 63, 0.3);
}

.intro-section h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 var(--orange);
}

.intro-section p {
    font-size: 1.3rem;
    max-width: 850px;
    margin: 0 auto;
    color: var(--light);
    line-height: 1.8;
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 73, 158, 0.2) 0%, rgba(181, 101, 216, 0.2) 100%);
    border: 3px solid var(--pink);
    border-radius: 25px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 8px 30px rgba(255, 73, 158, 0.25);
}

.warning-box h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    color: var(--yellow);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 var(--pink);
}

.warning-box ul {
    list-style: none;
    max-width: 950px;
    margin: 0 auto;
}

.warning-box li {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(31, 41, 55, 0.7);
    border-radius: 15px;
    border-left: 5px solid var(--teal);
}

.game-area {
    background: rgba(17, 24, 39, 0.85);
    border-radius: 25px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 3px solid var(--teal);
    box-shadow: 0 8px 35px rgba(0, 217, 255, 0.25);
}

.game-area iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 15px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3.5rem 0;
}

.fun-card {
    background: rgba(31, 41, 55, 0.8);
    border: 3px solid var(--orange);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.fun-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fun-card:hover::before {
    opacity: 1;
}

.fun-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(255, 107, 53, 0.4);
}

.fun-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: var(--yellow);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.fun-card p {
    color: var(--light);
    line-height: 1.9;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.text-content {
    background: rgba(31, 41, 55, 0.7);
    border-radius: 20px;
    padding: 3.5rem;
    margin: 3rem 0;
}

.text-content h1,
.text-content h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

.text-content h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 0 var(--orange);
}

.text-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    color: var(--teal);
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--light);
    line-height: 1.9;
    font-size: 1.08rem;
}

.footer-main {
    background: rgba(17, 24, 39, 0.95);
    padding: 3.5rem 3rem;
    margin-top: 4rem;
    border-top: 4px solid var(--yellow);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--teal);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--yellow);
}

.footer-content p {
    color: var(--light);
    font-size: 1rem;
}

.age-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.age-overlay.active {
    display: flex;
}

.age-box {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    border: 4px solid var(--yellow);
    border-radius: 25px;
    padding: 4rem 3.5rem;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 0 60px rgba(255, 210, 63, 0.5);
}

.age-box h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 var(--orange);
}

.age-box p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--light);
}

.age-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.age-button {
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-button.yes {
    background: var(--orange);
    color: white;
}

.age-button.yes:hover {
    background: var(--pink);
    transform: scale(1.08);
}

.age-button.no {
    background: transparent;
    color: var(--light);
    border: 3px solid var(--light);
}

.age-button.no:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-main ul {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(17, 24, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        padding: 2.5rem 0;
        gap: 1.5rem;
        border-top: 3px solid var(--yellow);
    }

    .nav-main ul.active {
        left: 0;
    }

    .header-content {
        padding: 0 2rem;
    }

    .logo-text {
        font-size: 1.7rem;
    }

    .intro-section h1 {
        font-size: 2.3rem;
    }

    .intro-section p {
        font-size: 1.1rem;
    }

    .intro-section {
        padding: 3rem 2rem;
    }

    .main-container {
        padding: 2rem 1.5rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .game-area iframe {
        height: 450px;
    }

    .text-content {
        padding: 2.5rem 2rem;
    }

    .text-content h1 {
        font-size: 2.2rem;
    }

    .age-box {
        margin: 0 2rem;
        padding: 3rem 2rem;
    }

    .age-actions {
        flex-direction: column;
    }
}
