:root {
    --sky-50: #f6fbff;
    --sky-100: #e8f6ff;
    --sky-300: #8fd5ff;
    --mint-200: #bcf0da;
    --mint-500: #39b788;
    --sun-200: #ffe6a6;
    --sun-400: #ffc95c;
    --ink-700: #355164;
    --ink-900: #1f3544;
    --white: #ffffff;
    --card-shadow: 0 18px 36px rgba(31, 53, 68, 0.12);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --max-width: 1060px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 201, 92, 0.22) 0, rgba(255, 201, 92, 0) 32%),
        radial-gradient(circle at 86% 8%, rgba(57, 183, 136, 0.2) 0, rgba(57, 183, 136, 0) 36%),
        linear-gradient(180deg, var(--sky-100), var(--sky-50));
    color: var(--ink-900);
    font-family: "Avenir Next", "Nunito", "Segoe UI", sans-serif;
    line-height: 1.55;
}

body {
    min-height: 100vh;
}

.page {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--card-shadow);
    align-items: center;
    animation: rise-in 700ms ease-out both;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 220px;
    height: 220px;
    background: rgba(143, 213, 255, 0.32);
    top: -60px;
    right: -40px;
}

.hero::after {
    width: 180px;
    height: 180px;
    background: rgba(255, 230, 166, 0.4);
    bottom: -70px;
    left: -50px;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--ink-700);
    background: linear-gradient(90deg, var(--sun-200), var(--mint-200));
}

h1 {
    margin: 0.8rem 0 0.7rem;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

.lead {
    max-width: 36ch;
    margin: 0 0 1.2rem;
    color: var(--ink-700);
    font-size: 1.06rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 53, 68, 0.14);
}

.btn-primary {
    background: var(--mint-500);
    color: var(--white);
}

.btn-secondary {
    background: var(--sky-100);
    color: var(--ink-900);
}

.btn-store {
    border: 2px solid transparent;
    box-shadow: 0 10px 22px rgba(31, 53, 68, 0.14);
}

.store-section {
    text-align: center;
}

.store-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.store-btn {
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem 1.15rem;
    font-size: 1.04rem;
    font-weight: 700;
}

.store-icon {
    width: 1.28rem;
    height: 1.28rem;
    flex: 0 0 auto;
}

.app-store-btn {
    background: linear-gradient(180deg, #2d2d2d, #111111);
    color: #ffffff;
    border-color: #000000;
}

.app-store-btn:hover {
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32);
}

.play-store-btn {
    background: linear-gradient(180deg, #ffffff, #f4f7ff);
    color: #1558d6;
    border-color: #6aa5ff;
}

.play-store-btn:hover {
    box-shadow: 0 14px 24px rgba(21, 88, 214, 0.24);
}

.hero-art {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-art img {
    max-width: min(330px, 100%);
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 16px 30px rgba(31, 53, 68, 0.2);
    animation: float 3.6s ease-in-out infinite;
    background: #dff4ff;
}

.section {
    margin-top: 1.5rem;
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(31, 53, 68, 0.08);
    animation: rise-in 850ms ease-out both;
}

.section h2 {
    margin: 0 0 0.6rem;
    font-size: 1.3rem;
    color: var(--ink-900);
}

.rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.rule {
    padding: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(160deg, #ffffff, #f3fafe);
    border: 1px solid rgba(143, 213, 255, 0.35);
    color: var(--ink-700);
    font-size: 0.96rem;
}

.rule strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink-900);
    font-size: 0.97rem;
}

.gallery {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(143, 213, 255, 0.5);
    box-shadow: 0 10px 22px rgba(31, 53, 68, 0.12);
    background: #eef8ff;
    transition: transform 160ms ease;
}

.gallery img:hover {
    transform: translateY(-3px);
}

footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--ink-700);
    font-size: 0.94rem;
}

footer a {
    color: var(--ink-900);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .button-row {
        justify-content: center;
    }

    .rules {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page {
        width: calc(100% - 1rem);
    }

    .hero {
        padding: 1.2rem;
    }

    .section {
        padding: 1rem;
    }
}