@font-face {
    font-family: "Bricolage";
    src: url("assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DMSans";
    src: url("assets/fonts/DMSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    font-family: "DMSans", "Inter", "Helvetica Neue", sans-serif;
    --cream: #fdfaf0;
    --cream-soft: #f5efde;
    --backdrop: #1f2330;
    --ink: #1b1b1b;
    --ink-dim: #4d4d4d;
    --ink-faint: #8a8270;
    --red: #e85b5b;
    --blue: #4a8df0;
    --yellow: #f5c84a;
    --green: #4cae5c;
    --purple: #9b6fe8;
    --teal: #3fb8b0;
    --shadow-card: 0 18px 40px rgba(20, 18, 12, 0.18);
    --shadow-button: 0 6px 0 rgba(0, 0, 0, 0.18), 0 12px 24px rgba(232, 91, 91, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--backdrop);
    color: var(--ink);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--ink);
    text-decoration: none;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    padding: 56px clamp(24px, 6vw, 96px);
    align-items: center;
    max-width: 1180px;
    margin: 32px auto;
    background: var(--cream);
    border-radius: 36px;
    box-shadow: var(--shadow-card);
}

.hero-content {
    display: grid;
    gap: 18px;
    max-width: 520px;
    align-self: center;
    justify-items: start;
}

.hero-wordmark {
    display: block;
    width: clamp(220px, 38vw, 380px);
    height: auto;
}

.hero-content h1 {
    font-family: "Bricolage", "Inter", sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin: 0;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: 0;
}

.tagline {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink-dim);
}

.feature-list {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-dim);
    display: grid;
    gap: 6px;
    line-height: 1.5;
}

.feature-list li::marker {
    color: var(--red);
}

/* Actions */

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.cta,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 999px;
    font-family: "Bricolage", "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta {
    background: var(--red);
    color: #fff;
    border: none;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
    box-shadow: var(--shadow-button);
    letter-spacing: 0.02em;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 16px 32px rgba(232, 91, 91, 0.36);
}

.cta:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 6px 12px rgba(232, 91, 91, 0.24);
}

.cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Store Badges */

.store-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.store-badge:hover {
    opacity: 1;
}

.store-badge img {
    display: block;
    height: 44px;
    width: auto;
}

.store-badge.google-play img {
    height: 52px;
}

.store-badge:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Gallery / Carousel */

.hero-gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    align-self: center;
}

.carousel {
    position: relative;
    width: min(72vw, 300px);
    background: #2a2e3a;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 22px 50px rgba(20, 18, 12, 0.35);
}

.carousel-track {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f8f4ec;
}

.carousel-track::before {
    content: "";
    display: block;
    padding-top: calc(932 / 430 * 100%);
}

.carousel-track img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-track img.active {
    opacity: 1;
}

@supports (aspect-ratio: 1 / 1) {
    .carousel-track {
        aspect-ratio: 430 / 932;
    }
    .carousel-track::before {
        content: none;
    }
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--cream);
    color: var(--ink);
    font-family: "Bricolage", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.carousel-control:hover {
    transform: translateY(calc(-50% - 2px));
}

.carousel-control:active {
    transform: translateY(calc(-50% + 2px));
}

.carousel-control.prev {
    left: -22px;
}

.carousel-control.next {
    right: -22px;
}

.carousel-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dots .dot.active {
    background: var(--red);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(232, 91, 91, 0.25);
}

button {
    font: inherit;
    color: inherit;
}

/* More games strip */

.more-games-label {
    text-align: center;
    font-family: "Bricolage", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    margin: 40px auto 12px;
    max-width: 1100px;
    padding: 0 24px;
    color: rgba(253, 250, 240, 0.65);
}

.more-games-frame {
    width: 100%;
    max-width: 1100px;
    height: 139px;
    border: none;
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
}

/* Footer */

.footer {
    padding: 36px clamp(24px, 6vw, 96px) 28px;
    text-align: center;
    display: grid;
    gap: 12px;
    color: rgba(253, 250, 240, 0.55);
    font-family: "DMSans", sans-serif;
    font-size: 0.9rem;
}

.footer nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer a {
    color: rgba(253, 250, 240, 0.7);
    font-family: "Bricolage", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer a:hover {
    color: var(--cream);
    text-decoration: underline;
}

.footer p {
    margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
    .hero {
        padding: 40px clamp(20px, 5vw, 64px);
        margin: 16px auto;
        border-radius: 28px;
    }
}

@media (max-width: 680px) {
    .hero {
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        width: 100%;
    }

    .hero-content {
        justify-items: center;
        text-align: center;
    }

    .store-badges {
        justify-content: center;
    }

    .carousel {
        width: min(68vw, 280px);
    }
}
