/*-- ============================================================
██╗   ██╗██╗  ██╗██████╗     ███████╗███╗   ██╗████████╗███████╗██████╗ ████████╗ █████╗ ██╗███╗   ██╗███╗   ███╗███████╗███╗   ██╗████████╗
██║   ██║╚██╗██╔╝██╔══██╗    ██╔════╝████╗  ██║╚══██╔══╝██╔════╝██╔══██╗╚══██╔══╝██╔══██╗██║████╗  ██║████╗ ████║██╔════╝████╗  ██║╚══██╔══╝
██║   ██║ ╚███╔╝ ██████╔╝    █████╗  ██╔██╗ ██║   ██║   █████╗  ██████╔╝   ██║   ███████║██║██╔██╗ ██║██╔████╔██║█████╗  ██╔██╗ ██║   ██║
██║   ██║ ██╔██╗ ██╔══██╗    ██╔══╝  ██║╚██╗██║   ██║   ██╔══╝  ██╔══██╗   ██║   ██╔══██║██║██║╚██╗██║██║╚██╔╝██║██╔══╝  ██║╚██╗██║   ██║
╚██████╔╝██╔╝ ██╗██████╔╝    ███████╗██║ ╚████║   ██║   ███████╗██║  ██║   ██║   ██║  ██║██║██║ ╚████║██║ ╚═╝ ██║███████╗██║ ╚████║   ██║
 ╚═════╝ ╚═╝  ╚═╝╚═════╝     ╚══════╝╚═╝  ╚═══╝   ╚═╝   ╚══════╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝╚═╝     ╚═╝╚══════╝╚═╝  ╚═══╝   ╚═╝

   All styling for the website (style.css)
   Author: Bernd
   Description: Defines the complete visual styling and responsive layout of the
   UXB Entertainment website, including typography, colors, navigation, homepage
   sections, game cards, individual game pages, portrait and landscape media,
   mobile layouts, animations, accessibility states, and reusable design components.
   ============================================================ -->*/

@layer reset, base, components, layout, utilities;

/* ==========================================================
   RESET
========================================================== */

@layer reset {

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body,
    h1,
    h2,
    h3,
    p,
    dl,
    dd {
        margin: 0;
    }

    img,
    picture,
    video,
    canvas,
    svg {
        display: block;
        max-width: 100%;
    }

    button,
    input,
    textarea,
    select {
        font: inherit;
    }

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ==========================================================
   BASE
========================================================== */

@layer base {
    :root {
        color-scheme: dark;

        --color-bg: #070708;
        --color-bg-soft: #0c0c0f;
        --color-surface: #111116;
        --color-surface-hover: #17171e;
        --color-text: #f7f7f9;
        --color-text-muted: #9d9da8;
        --color-blue: #5c83ea;
        --color-blue-light: #7799f2;
        --color-blue-soft: rgb(92 131 234 / 14%);
        --color-border: rgb(255 255 255 / 8%);
        --color-border-strong: rgb(255 255 255 / 14%);
        --color-border-blue: rgb(92 131 234 / 42%);
        --shadow-blue: 0 0 40px rgb(92 131 234 / 18%);
        --container-width: 1440px;
        --radius-sm: 10px;
        --radius-md: 18px;
        --radius-lg: 28px;
        --transition: 180ms ease;
    }

    html {
        background: var(--color-bg);
        scroll-behavior: smooth;
    }

    body {
        min-width: 320px;
        background:
            radial-gradient(circle at 80% 10%,
                rgb(92 131 234 / 6%),
                transparent 32rem),
            var(--color-bg);
        color: var(--color-text);
        font-family:
            Inter,
            ui-sans-serif,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
        line-height: 1.6;
    }

    body.nav-open {
        overflow: hidden;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    button {
        color: inherit;
    }

    ::selection {
        background: var(--color-blue);
        color: #fff;
    }

    :focus-visible {
        outline: 2px solid var(--color-blue);
        outline-offset: 4px;
    }
}

/* ==========================================================
   COMPONENTS
========================================================== */

@layer components {
    .container {
        width: min(calc(100% - 48px), var(--container-width));
        margin-inline: auto;
    }

    .eyebrow {
        color: var(--color-blue);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding-inline: 24px;
        border: 1px solid transparent;
        border-radius: 999px;
        font-size: 0.9rem;
        font-weight: 650;
        transition:
            transform var(--transition),
            background-color var(--transition),
            border-color var(--transition),
            box-shadow var(--transition);
    }

    .button:hover {
        transform: translateY(-2px);
    }

    .button--primary {
        background: var(--color-blue);
        color: #fff;
        box-shadow: 0 8px 30px rgb(92 131 234 / 20%);
    }

    .button--primary:hover {
        background: var(--color-blue-light);
        box-shadow: 0 12px 36px rgb(92 131 234 / 28%);
    }

    .button--secondary {
        border-color: var(--color-border-strong);
        background: rgb(255 255 255 / 3%);
    }

    .button--secondary:hover {
        border-color: var(--color-border-blue);
        background: var(--color-blue-soft);
    }

    .text-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--color-text);
        font-weight: 650;
    }

    .text-link span {
        color: var(--color-blue);
        transition: transform var(--transition);
    }

    .text-link:hover span {
        transform: translateX(4px);
    }

    .brand {
        position: relative;
        z-index: 20;
        display: inline-flex;
        align-items: baseline;
        gap: 8px;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .brand__uxb {
        color: var(--color-blue);
        font-size: 1.3rem;
    }

    .brand__name {
        color: var(--color-text);
        font-size: 0.95rem;
    }

    .brand--logo {
        align-items: center;
    }

    .brand__logo {
        display: block;
        width: auto;
        height: 82px;
        object-fit: contain;
    }
}

/* ==========================================================
   MAIN SITE + GAME PAGE LAYOUT
========================================================== */

@layer layout {
    /* ------------------------------
       HEADER
    ------------------------------ */

    .site-header {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 100;
        transition:
            background-color var(--transition),
            border-color var(--transition),
            backdrop-filter var(--transition);
    }

    .site-header.is-scrolled {
        border-bottom: 1px solid var(--color-border);
        background: rgb(7 7 8 / 82%);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .site-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 76px;
    }

    .main-nav {
        display: flex;
        align-items: center;
        gap: 32px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .main-nav a {
        color: var(--color-text-muted);
        transition: color var(--transition);
    }

    .main-nav a:hover {
        color: var(--color-text);
    }

    .nav-toggle {
        display: none;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .nav-toggle__line {
        display: block;
        width: 22px;
        height: 2px;
        margin: 5px auto;
        background: var(--color-text);
        transition:
            transform var(--transition),
            opacity var(--transition);
    }

    /* ------------------------------
       HERO
    ------------------------------ */

    .hero {
        position: relative;
        display: grid;
        min-height: 100svh;
        align-items: center;
        overflow: hidden;
        isolation: isolate;
    }

    .hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.75fr);
        gap: clamp(40px, 7vw, 120px);
        align-items: center;
        padding-block: 130px 100px;
    }

    .hero__content {
        position: relative;
        z-index: 2;
    }

    .hero__title {
        margin-block: 18px 28px;
        font-size: clamp(4rem, 9vw, 9rem);
        font-weight: 850;
        letter-spacing: -0.065em;
        line-height: 0.8;
        text-transform: uppercase;
    }

    .hero__title span {
        display: block;
    }

    .hero__title span:last-child {
        color: var(--color-text-muted);
        font-size: clamp(2.3rem, 5.4vw, 5.5rem);
        letter-spacing: -0.05em;
    }

    .hero__description {
        max-width: 620px;
        color: var(--color-text-muted);
        font-size: clamp(1rem, 1.5vw, 1.25rem);
    }

    .hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 36px;
    }

    .hero__visual {
        position: relative;
        aspect-ratio: 0.9;
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background: var(--color-surface);
        box-shadow: 0 30px 100px rgb(0 0 0 / 50%);
    }

    .hero__visual--image {
        padding: 0;
        background: #0b0b0f;
    }

    .hero__visual-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero__glow {
        position: absolute;
        z-index: -1;
        width: 50rem;
        height: 50rem;
        border-radius: 50%;
        background: rgb(92 131 234 / 10%);
        filter: blur(120px);
        pointer-events: none;
    }

    .hero__glow--one {
        top: -25rem;
        right: -15rem;
    }

    .hero__glow--two {
        bottom: -30rem;
        left: -25rem;
        opacity: 0.35;
    }

    .hero__scroll {
        position: absolute;
        bottom: 32px;
        left: 50%;
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--color-text-muted);
        font-size: 0.7rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        transform: translateX(-50%);
    }

    .hero__scroll-line {
        width: 38px;
        height: 1px;
        background: var(--color-blue);
    }

    /* ------------------------------
       GENERAL SECTIONS
    ------------------------------ */

    .section {
        padding-block: clamp(90px, 10vw, 160px);
    }

    .section-heading {
        display: block;
        margin-bottom: clamp(36px, 4vw, 56px);
    }

    .section-heading>div {
        max-width: 760px;
    }

    .section-heading h2 {
        max-width: 760px;
        margin-top: 12px;
        font-size: clamp(2.4rem, 4.5vw, 4.5rem);
        line-height: 0.95;
        letter-spacing: -0.045em;
    }

    .section-heading__description {
        max-width: 620px;
        margin-top: 22px;
        color: var(--color-text-muted);
        font-size: clamp(1rem, 1.15vw, 1.15rem);
        line-height: 1.7;
    }

    /* ------------------------------
       FEATURED GAME
    ------------------------------ */

    .featured-game {
        border-top: 1px solid var(--color-border);
    }

    .featured-card {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
        min-height: 620px;
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background: var(--color-surface);
    }

    .featured-card__visual {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 560px;
        padding: clamp(28px, 4vw, 56px);
        overflow: hidden;
        background:
            radial-gradient(circle at 65% 40%,
                rgb(92 131 234 / 34%),
                transparent 34%),
            linear-gradient(135deg, #0c0d13, #171d31 65%, #0a0b0f);
    }

    .featured-card__background {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 60%;
        aspect-ratio: 1;
        border: 1px solid rgb(92 131 234 / 30%);
        border-radius: 50%;
        box-shadow: 0 0 100px rgb(92 131 234 / 15%);
        transform: translate(-50%, -50%);
    }

    .featured-card__label,
    .featured-card__visual-title {
        position: relative;
        z-index: 2;
    }

    .featured-card__label {
        color: rgb(255 255 255 / 55%);
        font-size: 0.75rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .featured-card__visual-title {
        max-width: 700px;
        font-size: clamp(3.5rem, 7vw, 7rem);
        line-height: 0.9;
        letter-spacing: -0.06em;
    }

    .featured-card__visual--image {
        min-height: 560px;
        padding: 0;
        background: #0b0b0f;
    }

    .featured-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 65%;
    }

    .featured-card__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(32px, 5vw, 64px);
    }

    .featured-card__content h3 {
        margin: 22px 0 18px;
        font-size: clamp(2rem, 3vw, 3rem);
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .featured-card__content>p {
        color: var(--color-text-muted);
    }

    .status {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: fit-content;
        color: var(--color-blue);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .status__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--color-blue);
        box-shadow: 0 0 12px var(--color-blue);
    }

    .game-meta {
        display: grid;
        gap: 16px;
        margin: 36px 0;
    }

    .game-meta div {
        display: flex;
        justify-content: space-between;
        gap: 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
    }

    .game-meta dt {
        color: var(--color-text-muted);
    }

    .game-meta dd {
        text-align: right;
    }

    /* ------------------------------
       GAMES
    ------------------------------ */

    .games-section {
        background: var(--color-bg-soft);
    }

    .games-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .game-card {
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-surface);
        transition:
            transform var(--transition),
            border-color var(--transition),
            box-shadow var(--transition);
    }

    .game-card:hover {
        border-color: var(--color-border-blue);
        box-shadow: var(--shadow-blue);
        transform: translateY(-5px);
    }

    .game-card__link {
        display: block;
        height: 100%;
    }

    .game-card__visual {
        position: relative;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #0b0b0f;
    }

    .game-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 80%;
        transition: transform 450ms ease;
    }

    .game-card:hover .game-card__image {
        transform: scale(1.04);
    }

    .game-card__mark {
        color: transparent;
        font-size: clamp(3rem, 6vw, 6rem);
        font-weight: 900;
        letter-spacing: -0.07em;
        -webkit-text-stroke: 1px rgb(92 131 234 / 60%);
        transition: transform 450ms ease;
    }

    .game-card:hover .game-card__mark {
        transform: scale(1.05);
    }

    .game-card__content {
        padding: 22px;
    }

    .game-card__topline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--color-blue);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .game-card h3 {
        margin-top: 18px;
        font-size: 1.5rem;
        letter-spacing: -0.03em;
    }

    .game-card p {
        margin-top: 2px;
        color: var(--color-text-muted);
    }

    /* ------------------------------
       VISION
    ------------------------------ */

    .vision__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
        gap: clamp(50px, 10vw, 150px);
    }

    .vision__title {
        max-width: 760px;
        margin-top: 18px;
        font-size: clamp(3rem, 7vw, 7rem);
        line-height: 0.9;
        letter-spacing: -0.06em;
    }

    .vision__title span {
        display: block;
        color: var(--color-blue);
    }

    .vision__content {
        align-self: end;
    }

    .vision__content p {
        margin-bottom: 18px;
        color: var(--color-text-muted);
        font-size: 1.05rem;
    }

    .vision__content .text-link {
        margin-top: 20px;
    }

    /* ------------------------------
       ABOUT
    ------------------------------ */

    .about {
        border-block: 1px solid var(--color-border);
        background: var(--color-bg-soft);
    }

    .about__inner {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr) minmax(320px, 0.7fr);

        gap:
            clamp(50px,
                10vw,
                150px);

        align-items: center;
    }

    .about__number {
        color: transparent;
        font-size: clamp(7rem, 18vw, 16rem);
        font-weight: 900;
        line-height: 0.8;
        letter-spacing: -0.08em;
        -webkit-text-stroke: 1px rgb(92 131 234 / 40%);
    }

    .about__content h2 {
        max-width: 800px;
        margin: 14px 0 24px;
        font-size: clamp(2.2rem, 4.5vw, 4.5rem);
        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .about__content p:not(.eyebrow) {
        max-width: 650px;

        margin-bottom: 18px;

        color: var(--color-text-muted);

        font-size: 1.05rem;

        line-height: 1.6;
    }


    .about__content p:not(.eyebrow):last-child {
        margin-bottom: 0;
    }

    .about__visual {
        display: flex;
        flex-direction: column;
        align-self: center;
    }


    .about__visual .eyebrow {
        margin-bottom: 32px;
    }

    /* ------------------------------
       CONTACT
    ------------------------------ */

    .contact-cta__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        padding: clamp(36px, 6vw, 72px);
        border: 1px solid var(--color-border-blue);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(circle at 85% 50%,
                rgb(92 131 234 / 15%),
                transparent 35%),
            var(--color-surface);
        box-shadow: var(--shadow-blue);
    }

    .contact-cta h2 {
        margin-top: 10px;
        font-size: clamp(2rem, 4vw, 4rem);
        line-height: 1;
        letter-spacing: -0.045em;
    }

    /* ------------------------------
       FOOTER
    ------------------------------ */

    .site-footer {
        padding-block: 36px;
        border-top: 1px solid var(--color-border);
    }

    .site-footer__inner {
        display: grid;

        grid-template-columns:
            1fr auto 1fr;

        align-items: center;
    }


    .back-to-top {
        grid-column: 2;

        justify-self: center;
    }


    .site-footer__inner p {
        grid-column: 3;

        justify-self: end;
    }

    .site-footer p {
        color: var(--color-text-muted);
        font-size: 0.8rem;
    }

    .back-to-top {
        display: inline-flex;

        align-items: center;

        gap: 10px;

        color: var(--color-text-muted);

        font-size: 0.85rem;

        font-weight: 650;

        transition:
            color var(--transition),
            transform var(--transition);
    }


    .back-to-top span {
        color: var(--color-blue);

        transition:
            transform var(--transition);
    }


    .back-to-top:hover {
        color: var(--color-text);
    }


    .back-to-top:hover span {
        transform: translateY(-3px);
    }

    /* ------------------------------
       GAME HERO
    ------------------------------ */

    .game-hero {
        padding-block: 160px 80px;
        border-bottom: 1px solid var(--color-border);
    }

    .game-back-link {
        display: inline-flex;
        margin-bottom: 60px;
        color: var(--color-text-muted);
        font-size: 0.9rem;
        transition: color var(--transition);
    }

    .game-back-link:hover {
        color: var(--color-blue);
    }

    .game-hero__content {
        max-width: 1000px;
    }

    .game-hero__title {
        margin-block: 16px 30px;
        font-size: clamp(4rem, 10vw, 9rem);
        font-weight: 850;
        line-height: 0.85;
        letter-spacing: -0.065em;
    }

    .game-hero__description {
        max-width: 720px;
        color: var(--color-text-muted);
        font-size: clamp(1.05rem, 2vw, 1.3rem);
    }

    /* ------------------------------
       GAME COVER
    ------------------------------ */

    .game-cover-section {
        padding-block: clamp(60px, 7vw, 100px);
    }

    .game-cover {
        width: min(100%, 1280px);
        margin-inline: auto;
        padding: 18px;
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background: var(--color-surface);
        box-shadow: 0 30px 80px rgb(0 0 0 / 35%);
    }

    .game-cover img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }

    /* ------------------------------
       GAMEPLAY
    ------------------------------ */

    .game-video-section {
        border-block: 1px solid var(--color-border);
        background: var(--color-bg-soft);
    }

    .game-video-layout {
        display: grid;
        align-items: center;
    }

    .game-video-content {
        min-width: 0;
    }

    .game-video-content h2 {
        margin: 12px 0 24px;
        font-size: clamp(2.6rem, 5vw, 5.5rem);
        line-height: 0.95;
        letter-spacing: -0.055em;
    }

    .game-video-description {
        max-width: 620px;
        color: var(--color-text-muted);
        font-size: 1.05rem;
    }

    .game-video-meta {
        display: grid;
        gap: 12px;
        max-width: 520px;
        margin-top: 36px;
    }

    .game-video-meta>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding-block: 14px;
        border-bottom: 1px solid var(--color-border);
    }

    .game-video-meta__label {
        color: var(--color-text-muted);
    }

    .game-video {
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background: var(--color-surface);
        box-shadow: 0 30px 80px rgb(0 0 0 / 35%);
    }

    .game-video video {
        width: 100%;
        height: 100%;
        background: #000;
    }

    .game-portrait .game-video-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
        gap: clamp(60px, 9vw, 150px);
    }

    .game-portrait .game-video {
        width: 100%;
        padding: 14px;
    }

    .game-portrait .game-video video {
        aspect-ratio: 9 / 16;
        object-fit: cover;
        border-radius: calc(var(--radius-md) - 2px);
    }

    .game-landscape .game-video-layout {
        grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.45fr);
        gap: clamp(48px, 6vw, 100px);
        align-items: center;
    }

    .game-landscape .game-video-content {
        width: 100%;
        max-width: 520px;
    }

    .game-landscape .game-video {
        width: 100%;
        margin: 0;
        padding: 14px;
    }

    .game-landscape .game-video video {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: calc(var(--radius-md) - 2px);
    }

    /* ------------------------------
       GAME GALLERY
    ------------------------------ */

    .game-gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        width: 100%;
    }

    .game-gallery img {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
    }

    .game-portrait .game-gallery img {
        aspect-ratio: 9 / 16;
    }

    .game-landscape .game-gallery img {
        aspect-ratio: 16 / 9;
    }

    /* ------------------------------
       GAME ERROR PAGE
    ------------------------------ */

    .game-error-page {
        display: grid;
        min-height: 80svh;
        align-items: center;
        padding-block: 160px;
    }

    .game-error-page h1 {
        margin: 14px 0;
        font-size: clamp(3rem, 8vw, 7rem);
        line-height: 0.9;
        letter-spacing: -0.06em;
    }

    .game-error-page p {
        margin-bottom: 32px;
        color: var(--color-text-muted);
    }
}

/* ==========================================================
   RESPONSIVE / UTILITIES
========================================================== */

@layer utilities {
    @media (max-width: 1024px) {
        .hero__inner {
            grid-template-columns: 1fr 0.7fr;
        }

        .featured-card {
            grid-template-columns: 1fr;
        }

        .featured-card__visual,
        .featured-card__visual--image {
            min-height: 500px;
        }

        .featured-card__content {
            padding-block: 48px;
        }

        .games-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .vision__inner,
        .about__inner {
            grid-template-columns: 1fr;
        }

        .about__number {
            font-size: clamp(6rem, 25vw, 13rem);
        }

        .game-portrait .game-video-layout {
            grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
            gap: 48px;
        }
    }

    @media (max-width: 768px) {
        .container {
            width: min(calc(100% - 32px), var(--container-width));
        }

        /* Mobile header / menu */
        .site-header {
            z-index: 1000;
        }

        .site-header__inner {
            position: relative;
            min-height: 68px;
        }

        .brand {
            z-index: 1002;
        }

        .brand__logo {
            height: 42px;
        }

        .nav-toggle {
            position: relative;
            z-index: 1002;
            display: flex;
            width: 44px;
            height: 44px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
        }

        .nav-toggle__line {
            width: 24px;
            height: 2px;
            margin: 0;
        }

        .nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
            transform: translateY(4px) rotate(45deg);
        }

        .nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child {
            transform: translateY(-4px) rotate(-45deg);
        }

        .main-nav {
            position: fixed;
            inset: 0;
            z-index: 1001;
            display: flex;
            width: 100vw;
            height: 100dvh;
            flex-direction: column;
            align-items: stretch;
            justify-content: center;
            gap: 0;
            padding: 110px 32px 56px;
            background: #070708;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-12px);
            transition:
                opacity var(--transition),
                visibility var(--transition),
                transform var(--transition);
        }

        .main-nav.is-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }

        .main-nav a {
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 92px;
            padding-block: 18px;
            border-bottom: 1px solid rgb(255 255 255 / 10%);
            color: var(--color-text);
            font-size: clamp(2.4rem, 11vw, 4.5rem);
            font-weight: 750;
            line-height: 1;
            letter-spacing: -0.05em;
            transition:
                color var(--transition),
                padding-left var(--transition),
                border-color var(--transition);
        }

        .main-nav a:first-child {
            border-top: 1px solid rgb(255 255 255 / 10%);
        }

        .main-nav a:hover {
            padding-left: 10px;
            border-color: var(--color-border-blue);
            color: var(--color-blue);
        }

        /* Homepage */
        .hero {
            min-height: auto;
        }

        .hero__inner {
            grid-template-columns: 1fr;
            padding-block: 130px 80px;
        }

        .hero__title {
            font-size: clamp(3.5rem, 18vw, 6rem);
        }

        .hero__title span:last-child {
            font-size: clamp(2rem, 10vw, 3.7rem);
        }

        .hero__visual {
            aspect-ratio: 16 / 12;
        }

        .hero__scroll {
            display: none;
        }

        .section-heading__description {
            margin-top: 20px;
        }

        .games-grid {
            grid-template-columns: 1fr;
        }

        .contact-cta__inner,
        .site-footer__inner {
            align-items: flex-start;
            flex-direction: column;
        }

        /* Game page */
        .game-hero {
            padding-block: 110px 50px;
        }

        .game-back-link {
            margin-bottom: 36px;
        }

        .game-hero__title {
            font-size: clamp(3rem, 16vw, 5rem);
        }

        .game-cover-section {
            padding-block: 48px;
        }

        .game-cover {
            width: 100%;
            padding: 10px;
        }

        .game-portrait .game-video-layout,
        .game-landscape .game-video-layout {
            grid-template-columns: 1fr;
            gap: 36px;
            width: 100%;
        }

        .game-video-content {
            width: 100%;
            max-width: none;
            min-width: 0;
        }

        .game-video-content h2 {
            max-width: 100%;
            margin: 10px 0 20px;
            font-size: clamp(2.4rem, 11vw, 4rem);
            line-height: 0.95;
        }

        .game-video-description {
            width: 100%;
            max-width: 100%;
            font-size: 1rem;
            line-height: 1.7;
        }

        .game-video-meta {
            width: 100%;
            max-width: none;
            margin-top: 28px;
        }

        .game-video-meta>div {
            gap: 20px;
        }

        .game-portrait .game-video {
            width: min(100%, 380px);
            margin-inline: auto;
            padding: 10px;
        }

        .game-landscape .game-video {
            width: 100%;
            margin-inline: auto;
            padding: 10px;
        }

        .game-portrait .game-video video {
            width: 100%;
            aspect-ratio: 9 / 16;
            object-fit: cover;
        }

        .game-landscape .game-video video {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
        }

        .game-portrait .game-gallery,
        .game-landscape .game-gallery {
            display: flex;
            width: 100%;
            gap: 16px;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            padding-bottom: 12px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .game-portrait .game-gallery::-webkit-scrollbar,
        .game-landscape .game-gallery::-webkit-scrollbar {
            display: none;
        }

        .game-portrait .game-gallery img {
            flex: 0 0 min(78vw, 340px);
            width: min(78vw, 340px);
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }

        .game-landscape .game-gallery img {
            flex: 0 0 min(88vw, 620px);
            width: min(88vw, 620px);
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }

        .site-footer__inner {
            grid-template-columns: 1fr;

            gap: 20px;

            text-align: center;
        }


        .back-to-top,
        .site-footer__inner p {
            grid-column: 1;

            justify-self: center;
        }

    }
}

@media (max-width: 480px) {
    .hero__actions {
        display: grid;
    }

    .hero__actions .button {
        width: 100%;
    }

    .featured-card__visual,
    .featured-card__visual--image {
        min-height: 380px;
    }

    .game-meta div {
        display: block;
    }

    .game-meta dd {
        margin-top: 3px;
        text-align: left;
    }

    .game-cover,
    .game-video {
        width: 100%;
        padding: 10px;
    }

    .game-video-content h2 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}