:root {
    --color-sky: #4f73ff;
    --color-sky-light: #8cc9ff;
    --color-sky-dark: #2a3ab3;
    --color-pink: #ff6dd6;
    --color-lavender: #c89cff;
    --color-yellow: #ffd966;
    --color-cloud: #ffffff;
    --color-midnight: #141437;
    --color-text: #1c1b3a;
    --color-text-muted: #4a4b6c;
    --shadow-soft: 0 20px 45px rgba(47, 57, 125, 0.2);
    --shadow-card: 0 12px 32px rgba(40, 45, 125, 0.18);
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, rgba(204, 229, 255, 0.6), rgba(255, 255, 255, 0.9));
    min-height: 100vh;
}

.legal-page {
    background: linear-gradient(180deg, rgba(204, 229, 255, 0.4), rgba(255, 255, 255, 0.95));
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}


.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--color-pink), var(--color-sky));
    color: var(--color-cloud);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.05);
}

.cta--ghost {
    background: transparent;
    color: var(--color-sky);
    box-shadow: inset 0 0 0 2px var(--color-sky);
}

.hero {
    padding: 0;
    margin: 0;
    background: #f4e4bc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__media {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 115, 255, 0.05), rgba(255, 109, 214, 0.05));
    pointer-events: none;
}

.cta--play {
    position: absolute;
    top: 75%;
    left: 55%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.4rem, 2.4vw + 0.5rem, 2.8rem);
    padding: clamp(1.4rem, 2.8vw + 0.5rem, 3rem);
    background: radial-gradient(circle at center, #4fc3f7, #2196f3, #1976d2);
    border: 3px solid rgba(33, 150, 243, 0.8);
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-family: 'Fredoka One', 'Nunito', cursive;
    color: #ffffff;
    text-align: center;
    line-height: 0.9;
    box-shadow:
        0 0 30px rgba(33, 150, 243, 0.6),
        0 0 60px rgba(33, 150, 243, 0.4),
        0 0 90px rgba(33, 150, 243, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    width: clamp(120px, 14vw + 20px, 260px);
    height: clamp(120px, 14vw + 20px, 260px);
}

.cta--play::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    opacity: 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.cta--play:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: radial-gradient(circle at center, #64b5f6, #42a5f5, #1e88e5);
    border-color: rgba(30, 136, 229, 1);
    box-shadow:
        0 0 40px rgba(30, 136, 229, 0.8),
        0 0 80px rgba(30, 136, 229, 0.6),
        0 0 120px rgba(30, 136, 229, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
}

.cta--play:hover::before {
    opacity: 1;
    left: 100%;
}

.cta--play:focus-visible {
    outline: 4px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}


.floating-balloons {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 182, 193, 0.3), transparent 55%),
        radial-gradient(circle at 85% 30%, rgba(137, 196, 244, 0.3), transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(255, 236, 179, 0.3), transparent 60%);
    z-index: -1;
}

.section {
    padding: 5rem 0;
}

.section--bright {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(214, 228, 255, 0.6));
}

.section--highlight {
    background: linear-gradient(180deg, rgba(79, 115, 255, 0.12), rgba(200, 156, 255, 0.12));
}

.section--cta {
    padding: 4rem 0;
}

.section__title {
    font-family: 'Fredoka One', 'Baloo 2', cursive;
    font-size: 2.4rem;
    color: var(--color-midnight);
    text-align: center;
    margin: 0 0 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section__intro {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    text-align: left;
    border: 2px solid rgba(79, 115, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 115, 255, 0.2);
}

.feature-card h3 {
    font-family: 'Fredoka One', 'Baloo 2', cursive;
    font-size: 1.6rem;
    color: var(--color-sky);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 500;
}

.gameplay {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.media-frame {
    position: relative;
    border-radius: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(200, 156, 255, 0.35));
    box-shadow: var(--shadow-soft);
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.2rem;
}

.bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.bullet-list li::before {
    content: '🦇';
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.bullet-list span {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 500;
}

.safety {
    text-align: center;
}

.safety__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.safety-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(79, 115, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 115, 255, 0.2);
}

.safety-card h3 {
    font-family: 'Fredoka One', 'Baloo 2', cursive;
    color: var(--color-sky);
    margin-bottom: 0.7rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.community {
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
    font-weight: 700;
    color: var(--color-sky-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 2px solid rgba(79, 115, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 115, 255, 0.25);
    background: rgba(79, 115, 255, 0.05);
    border-color: rgba(79, 115, 255, 0.3);
}

.cta-banner {
    background: linear-gradient(135deg, var(--color-sky), #42a5f5, var(--color-pink));
    border-radius: 2rem;
    padding: 2.5rem;
    color: var(--color-cloud);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) translateX(-100%); }
    50% { transform: rotate(180deg) translateX(100%); }
}

.cta-banner p {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.site-footer {
    background: var(--color-midnight);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0;
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__brand img {
    width: 48px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-weight: 600;
    justify-content: center;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.85);
}

.legal {
    padding: 6rem 0 5rem;
}

.legal__content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.legal__content h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.6rem;
    color: var(--color-midnight);
    margin-top: 0;
}

.legal__content h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    color: var(--color-sky-dark);
    margin-top: 2.5rem;
}

.legal__intro {
    font-weight: 600;
    color: var(--color-text-muted);
}

.legal__content ul {
    padding-left: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.legal__content p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.legal__content section {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .cta-banner {
        text-align: center;
        justify-content: center;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile breakpoint - single responsive rule */
@media (max-width: 768px) {
    .hero {
        padding: 0;
        margin: 0;
    }

    .hero__media {
        width: 100vw;
        height: 100vh;
    }

    .cta--play {
        top: 73%;
        left: 55%;
        font-size: clamp(1.2rem, 3.2vw + 0.3rem, 2.4rem);
        padding: clamp(1.2rem, 3vw + 0.3rem, 2.4rem);
        width: clamp(100px, 18vw + 10px, 220px);
        height: clamp(100px, 18vw + 10px, 220px);
        font-family: 'Fredoka One', 'Nunito', cursive;
        text-align: center;
        line-height: 0.9;
    }
}

/* Additional animations for enhanced visual appeal */
.floating-balloons {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 193, 7, 0.2), transparent 50%),
        radial-gradient(circle at 85% 35%, rgba(76, 175, 80, 0.2), transparent 50%),
        radial-gradient(circle at 60% 75%, rgba(33, 150, 243, 0.2), transparent 50%);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Add floating animation to feature cards */
.feature-card {
    animation: floatCard 8s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.5s);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.section--download {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-sky), #42a5f5, var(--color-pink));
    position: relative;
    overflow: hidden;
}

.section--download::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.download-banner {
    text-align: center;
    color: var(--color-cloud);
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-sky);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 1.5rem 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(79, 115, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(79, 115, 255, 0.5);
}

.download-button:hover::before {
    opacity: 1;
    left: 100%;
}

.download-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.download-text strong {
    display: block;
    font-size: 1.3rem;
    color: var(--color-sky);
    margin-bottom: 0.2rem;
}

.download-text small {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.download-note {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .section--download {
        padding: 3rem 0;
    }

    .download-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .download-text strong {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .floating-balloons,
    .feature-card {
        animation: none;
    }
}
