:root {
    --color-background: #050b18;
    --color-surface: #0d1729;
    --color-text: #f7f9ff;
    --color-muted: #9ba8bd;
    --color-blue: #22a7ff;
    --color-purple: #8b5cf6;
    --color-border: rgba(255, 255, 255, 0.12);
    --page-width: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.5;
}

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

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

.container {
    width: min(calc(100% - 40px), var(--page-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(5, 11, 24, 0.82);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-container {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;
    padding-block: 21px 18px;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(34, 167, 255, 0.7);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
    background-color: rgba(34, 167, 255, 0.14);
    transform: translateY(-2px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: rgba(13, 23, 41, 0.8);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background-color: var(--color-text);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-button:focus-visible {
    outline: 3px solid rgba(34, 167, 255, 0.45);
    outline-offset: 3px;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 520px;
    display: grid;
    align-items: center;
    padding: 56px 0 64px;
    background:
        linear-gradient(90deg,
            rgba(3, 9, 22, 0.96) 0%,
            rgba(3, 9, 22, 0.88) 34%,
            rgba(3, 9, 22, 0.48) 62%,
            rgba(3, 9, 22, 0.28) 100%),
        linear-gradient(180deg,
            rgba(5, 11, 24, 0.08),
            rgba(5, 11, 24, 0.38)),
        url("assets/hero-background.png") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 36px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.9rem, 4vw, 3.9rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, var(--color-blue), #42d9ff 45%, var(--color-purple));
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-description {
    max-width: 610px;
    margin-top: 26px;
    color: var(--color-muted);
    font-size: 1.06rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.primary-button,
.secondary-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button {
    background: linear-gradient(90deg, #149cff, #356cff);
    box-shadow: 0 14px 34px rgba(20, 156, 255, 0.25);
}

.secondary-button {
    border: 1px solid rgba(139, 92, 246, 0.85);
    background-color: rgba(13, 23, 41, 0.6);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-3px);
}

.primary-button:hover {
    box-shadow: 0 18px 42px rgba(20, 156, 255, 0.38);
}

.secondary-button:hover {
    border-color: var(--color-blue);
}

.hero-art {
    position: relative;
    min-height: 420px;
    opacity: 1;
}

.art-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(34, 167, 255, 0.35),
            rgba(139, 92, 246, 0.16) 45%,
            transparent 70%);
    filter: blur(12px);
    transform: translate(-50%, -50%);
}

.phone {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 230px;
    height: 420px;
    padding: 22px 18px 18px;
    border: 7px solid rgba(224, 235, 255, 0.92);
    border-radius: 46px;
    background: linear-gradient(160deg, #0b1e47, #061127);
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(34, 167, 255, 0.22);
    transform: translate(-50%, -50%) rotate(8deg);
}

.phone::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 82px;
    height: 18px;
    border-radius: 999px;
    background-color: #020712;
    transform: translateX(-50%);
}

.game-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: center;
    gap: 14px;
    padding: 32px 7px 8px;
}

.game-grid span {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 21px;
    color: white;
    font-size: 2.4rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        0 10px 24px rgba(0, 0, 0, 0.25);
}

.game-grid span:nth-child(1),
.game-grid span:nth-child(6) {
    background: linear-gradient(145deg, #ffe45e, #ff9d00);
}

.game-grid span:nth-child(2),
.game-grid span:nth-child(4) {
    background: linear-gradient(145deg, #30d8ff, #1475ff);
}

.game-grid span:nth-child(3) {
    background: linear-gradient(145deg, #ff6685, #ff245a);
}

.game-grid span:nth-child(5) {
    background: linear-gradient(145deg, #a96cff, #6435e8);
}

.floating-shape {
    position: absolute;
    z-index: 3;
    width: 76px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 26px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
}

.shape-one {
    top: 17%;
    left: 3%;
    background: linear-gradient(145deg, #21d7ff, #176cff);
    transform: rotate(-16deg);
}

.shape-two {
    right: 2%;
    bottom: 16%;
    background: linear-gradient(145deg, #b86cff, #6333dd);
    transform: rotate(18deg);
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(640px, 125%);
    max-width: none;
    height: auto;
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.35));
    transform: translate(-50%, -50%);
}

/* Featured games marquee */
.games-section {
    overflow: hidden;
    padding: 32px 0 44px;
    background:
        radial-gradient(circle at 85% 20%, rgba(34, 167, 255, 0.1), transparent 32%),
        var(--color-background);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.section-heading h2 span {
    font-size: 1.4rem;
}

.section-heading p {
    margin-top: 5px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #53c8ff;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: white;
}

.games-marquee {
    --marquee-distance: min(calc(100vw - 40px), var(--page-width));

    overflow: hidden;
    padding: 2px 0 8px;
    mask-image: linear-gradient(90deg,
            transparent,
            black 28px,
            black calc(100% - 28px),
            transparent);
    -webkit-mask-image: linear-gradient(90deg,
            transparent,
            black 28px,
            black calc(100% - 28px),
            transparent);
}

.games-track {
    position: relative;
    left: 50%;
    display: flex;
    gap: 16px;
    width: max-content;
    animation:
        games-marquee-intro 16s linear 0s 1 both,
        games-marquee-loop 32s linear 16s infinite;
    will-change: left, transform;
}

.games-track:has(.game-card:hover) {
    animation-play-state: paused;
}

.game-card {
    width: min(300px, calc(100vw - 40px));
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(20, 34, 57, 0.98), rgba(9, 18, 33, 0.98));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.game-card:hover {
    border-color: rgba(34, 167, 255, 0.65);
    transform: translateY(-3px);
}

.game-card-image {
    width: 100%;
    height: 112px;
    object-fit: cover;
    object-position: center top;
}

.game-card-body {
    padding: 11px 12px 12px;
}

.game-card-body h3 {
    overflow: hidden;
    font-size: 0.94rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-body>p {
    overflow: hidden;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.game-tags span {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #c7d2e5;
    font-size: 0.64rem;
}

@keyframes games-marquee-intro {
    from {
        left: 50%;
        transform: translateX(-50%);
    }

    to {
        left: 0;
        transform: translateX(-100%);
    }
}

@keyframes games-marquee-loop {
    from {
        left: 100%;
        transform: translateX(0);
    }

    to {
        left: 0;
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-track {
        left: 50%;
        animation: none;
        transform: translateX(-50%);
    }
}

/* Apps section */
.apps-section {
    overflow: hidden;
    padding: 32px 0 44px;
    background:
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.09), transparent 30%),
        var(--color-background);
}

.coming-soon-label {
    padding: 6px 11px;
    border: 1px solid rgba(139, 92, 246, 0.55);
    border-radius: 999px;
    background-color: rgba(139, 92, 246, 0.12);
    color: #b99aff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.apps-marquee {
    overflow: hidden;
    padding: 2px 0 8px;
    mask-image: linear-gradient(90deg,
            transparent,
            black 28px,
            black calc(100% - 28px),
            transparent);
    -webkit-mask-image: linear-gradient(90deg,
            transparent,
            black 28px,
            black calc(100% - 28px),
            transparent);
}

.apps-track {
    position: relative;
    left: 50%;
    display: flex;
    width: max-content;
    animation:
        games-marquee-intro 16s linear 0s 1 both,
        games-marquee-loop 32s linear 16s infinite;
    will-change: left, transform;
}

.apps-track:has(.app-card:hover) {
    animation-play-state: paused;
}

.app-card {
    width: min(300px, calc(100vw - 40px));
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(18, 32, 55, 0.98), rgba(8, 17, 31, 0.98));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease;
}

.app-card:hover {
    border-color: rgba(139, 92, 246, 0.7);
}

.app-card-visual {
    position: relative;
    height: 112px;
    overflow: hidden;
    background-color: #061632;
}

.app-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.app-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background-color: rgba(5, 11, 24, 0.84);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-card-body {
    padding: 11px 12px 12px;
}

.app-card-body h3 {
    overflow: hidden;
    font-size: 0.94rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-body>p {
    overflow: hidden;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.app-tags span {
    padding: 4px 8px;
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 999px;
    background-color: rgba(139, 92, 246, 0.09);
    color: #d0c2f5;
    font-size: 0.64rem;
}

@media (prefers-reduced-motion: reduce) {
    .apps-track {
        left: 50%;
        animation: none;
        transform: translateX(-50%);
    }
}

/* About section */
.about-section {
    padding: 24px 0 48px;
    background:
        radial-gradient(circle at 80% 50%, rgba(34, 167, 255, 0.08), transparent 35%),
        var(--color-background);
}

.about-card {
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.35fr);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(13, 26, 47, 0.98), rgba(7, 15, 28, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.about-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.about-eyebrow {
    margin-bottom: 10px;
    color: var(--color-blue);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.about-copy h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-copy h2 span {
    display: block;
    color: #c8d8f5;
}

.about-description {
    max-width: 430px;
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.about-visual {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.about-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(9, 18, 33, 0.9) 0%,
            rgba(9, 18, 33, 0.18) 24%,
            transparent 48%);
    pointer-events: none;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 800px) {
    .about-card {
        grid-template-columns: 1fr;
    }

    .about-copy {
        padding: 28px 24px;
    }

    .about-visual {
        min-height: 220px;
    }

    .about-visual::after {
        background:
            linear-gradient(180deg,
                rgba(9, 18, 33, 0.75),
                transparent 38%);
    }
}

/* Studio statistics */
.stats-section {
    position: relative;
    z-index: 3;
    margin-top: -24px;
    padding: 0 0 40px;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(34, 167, 255, 0.32);
    border-radius: 14px;
    background:
        linear-gradient(90deg,
            rgba(8, 28, 48, 0.96),
            rgba(9, 19, 36, 0.98));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.stat-item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 18px;
    border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-icon {
    width: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: var(--color-blue);
    font-size: 1.45rem;
}

.stat-item div {
    min-width: 0;
}

.stat-item strong {
    display: block;
    overflow: hidden;
    color: #6bc8ff;
    font-size: 1rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-item>div>span {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 520px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .stat-item:nth-child(3) {
        border-bottom: 1px solid var(--color-border);
    }

    .stat-item:last-child {
        border-bottom: 0;
    }
}

/* Contact and support */
.contact-section {

    padding: 8px 0 56px;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08), transparent 34%),
        var(--color-background);
}

.contact-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    padding: 32px 36px;
    border: 1px solid rgba(34, 167, 255, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(13, 26, 47, 0.98), rgba(9, 17, 34, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.contact-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: -90px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: rgba(34, 167, 255, 0.12);
    filter: blur(60px);
    transform: translateY(-50%);
    pointer-events: none;
}

.contact-copy,
.contact-actions {
    position: relative;
    z-index: 1;
}

.contact-copy {
    max-width: 620px;
}

.contact-eyebrow {
    margin-bottom: 8px;
    color: var(--color-blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.contact-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.contact-description {
    max-width: 570px;
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-primary,
.contact-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 17px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-primary {
    border: 1px solid transparent;
    background: linear-gradient(90deg, var(--color-blue), #3979ff);
    box-shadow: 0 10px 26px rgba(34, 167, 255, 0.22);
}

.contact-secondary {
    border: 1px solid rgba(139, 92, 246, 0.7);
    background-color: rgba(8, 17, 32, 0.55);
}

.contact-primary:hover,
.contact-secondary:hover {
    transform: translateY(-2px);
}

.contact-primary:hover {
    box-shadow: 0 14px 30px rgba(34, 167, 255, 0.3);
}

.contact-secondary:hover {
    border-color: var(--color-blue);
    background-color: rgba(34, 167, 255, 0.1);
}

.contact-primary:focus-visible,
.contact-secondary:focus-visible {
    outline: 3px solid rgba(34, 167, 255, 0.45);
    outline-offset: 3px;
}

@media (max-width: 850px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .contact-card {
        padding: 28px 22px;
    }

    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-primary,
    .contact-secondary {
        width: 100%;
    }
}

/* Site footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    background:
        linear-gradient(180deg, rgba(9, 20, 37, 0.98), rgba(5, 11, 24, 1));
}

.footer-main {
    min-height: 100px;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
    align-items: center;
    gap: 32px;
    padding: 24px 0 20px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
}

.footer-brand-icon {
    flex: 0 0 auto;
    font-size: 1.9rem;
}

.footer-brand strong {
    display: block;
    font-size: 0.94rem;
    line-height: 1.2;
}

.footer-brand small {
    display: block;
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 0.65rem;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer-nav a {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.footer-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.67rem;
    font-weight: 700;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.footer-actions a:hover {
    color: var(--color-text);
    border-color: rgba(34, 167, 255, 0.55);
    background-color: rgba(34, 167, 255, 0.09);
    transform: translateY(-2px);
}

.footer-actions a:focus-visible,
.footer-nav a:focus-visible,
.footer-brand:focus-visible {
    outline: 3px solid rgba(34, 167, 255, 0.4);
    outline-offset: 3px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 18px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.65rem;
}

.footer-bottom>span {
    color: #6bc8ff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .footer-actions {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .footer-nav {
        gap: 12px 18px;
    }

    .footer-actions {
        flex-wrap: wrap;
    }

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

@media (max-width: 900px) {
    .nav-container {
        position: relative;
        gap: 16px;
    }

    .contact-button {
        display: none;
    }

    .menu-button {
        display: block;
        flex: 0 0 44px;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--color-border);
        border-radius: 14px;
        background-color: rgba(9, 18, 33, 0.98);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 16px;
        border-radius: 9px;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: rgba(34, 167, 255, 0.1);
    }

    .main-nav a.active::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 48px 0 24px;
        background:
            linear-gradient(180deg,
                rgba(3, 9, 22, 0.94) 0%,
                rgba(3, 9, 22, 0.82) 48%,
                rgba(3, 9, 22, 0.5) 100%),
            url("assets/hero-background.png") center / cover no-repeat;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-copy {
        max-width: 700px;
        margin-inline: auto;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 8vw, 3.8rem);
        line-height: 1.02;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-art {
        min-height: 390px;
    }

    .hero-image {
        width: min(640px, 90%);
    }
}

@media (max-width: 560px) {
    html {
        scroll-padding-top: 72px;
    }

    .container {
        width: min(calc(100% - 28px), var(--page-width));
    }

    .nav-container {
        min-height: 60px;
    }

    .brand {
        gap: 8px;
        font-size: 0.9rem;
    }

    .brand-icon {
        font-size: 1.35rem;
    }

    .menu-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .main-nav {
        right: 14px;
        left: 14px;
    }

    .hero {
        padding: 36px 0 12px;
    }

    .eyebrow {
        margin-bottom: 14px;
        font-size: 0.66rem;
        letter-spacing: 0.18em;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 11vw, 3rem);
        line-height: 1.03;
        letter-spacing: -0.045em;
    }

    .hero-description {
        margin-top: 20px;
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 26px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        min-height: 50px;
        padding-inline: 18px;
    }

    .hero-art {
        min-height: min(410px, 102vw);
    }

    .hero-image {
        width: min(500px, 135%);
    }

    .games-section,
    .apps-section {
        padding: 26px 0 34px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
    }

    .section-heading h2 {
        font-size: 1.2rem;
    }

    .section-heading h2 span {
        font-size: 1.25rem;
    }

    .section-heading p {
        font-size: 0.76rem;
    }

    .section-link,
    .coming-soon-label {
        align-self: flex-start;
    }

    .games-marquee,
    .apps-marquee {
        margin-inline: -14px;
    }

    .game-card,
    .app-card {
        width: min(290px, calc(100vw - 28px));
    }
}

/* Privacy policy page */
.privacy-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 167, 255, 0.1), transparent 30%),
        var(--color-background);
}

.privacy-main {
    min-height: calc(100vh - 160px);
    padding-bottom: 64px;
}

.privacy-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(34, 167, 255, 0.55);
    border-radius: 999px;
    color: #dcefff;
    font-size: 0.82rem;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.privacy-back:hover {
    border-color: var(--color-blue);
    background-color: rgba(34, 167, 255, 0.12);
    transform: translateY(-2px);
}

.privacy-hero {
    padding: 72px 0 54px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.16), transparent 42%);
}

.privacy-hero .eyebrow {
    margin-bottom: 14px;
    color: #53c8ff;
}

.privacy-hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.privacy-updated {
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.privacy-card {
    position: relative;
    max-width: 900px;
    margin: -20px auto 0;
    padding: 46px 54px;
    border: 1px solid rgba(34, 167, 255, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(145deg,
            rgba(14, 29, 50, 0.98),
            rgba(7, 16, 30, 0.99));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.privacy-card section+section {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid var(--color-border);
}

.privacy-card h2 {
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.privacy-card h3 {
    margin-top: 24px;
    color: #d9e9ff;
    font-size: 1rem;
}

.privacy-card p,
.privacy-card li {
    color: var(--color-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.privacy-card h2+p,
.privacy-card h3+p {
    margin-top: 12px;
}

.privacy-card p+p {
    margin-top: 14px;
}

.privacy-card ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0 22px;
}

.privacy-card ul+p {
    margin-top: 16px;
}

.privacy-links {
    list-style: none;
    margin-left: 0 !important;
}

.privacy-links a {
    color: #62caff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(98, 202, 255, 0.35);
    text-underline-offset: 4px;
}

.privacy-links a:hover {
    color: white;
    text-decoration-color: var(--color-blue);
}

.privacy-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-top: 20px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #149cff, #356cff);
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(34, 167, 255, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.privacy-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(34, 167, 255, 0.36);
}

.privacy-back:focus-visible,
.privacy-contact:focus-visible,
.privacy-links a:focus-visible {
    outline: 3px solid rgba(34, 167, 255, 0.45);
    outline-offset: 3px;
}

/* Analytics consent */
.consent-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    padding: 16px;
}

.consent-banner[hidden] {
    display: none;
}

.consent-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 20px 22px;
    border: 1px solid rgba(83, 200, 255, 0.3);
    border-radius: 18px;
    background: rgba(7, 16, 30, 0.96);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
}

.consent-copy {
    max-width: 760px;
}

.consent-copy strong {
    display: block;
    color: var(--color-text);
    font-size: 1rem;
}

.consent-copy p {
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 0.83rem;
    line-height: 1.6;
}

.consent-copy a {
    color: #62caff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.consent-actions button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.consent-reject {
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--color-text);
    background: transparent;
}

.consent-accept {
    border: 1px solid transparent;
    color: white;
    background: linear-gradient(90deg, #149cff, #356cff);
}

.consent-actions button:hover {
    transform: translateY(-2px);
}

.consent-reject:hover {
    border-color: #62caff;
    background: rgba(34, 167, 255, 0.1);
}

.consent-actions button:focus-visible,
.consent-copy a:focus-visible {
    outline: 3px solid rgba(83, 200, 255, 0.45);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .consent-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .consent-actions button {
        flex: 1;
    }
}

@media (max-width: 460px) {
    .consent-banner {
        padding: 10px;
    }

    .consent-panel {
        padding: 18px;
    }

    .consent-actions {
        flex-direction: column-reverse;
    }

    .consent-actions button {
        width: 100%;
    }
}

.consent-settings-button {
    appearance: none;
    padding: 0;
    border: 0;
    color: var(--color-muted);
    background: transparent;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-bottom .consent-settings-button {
    font-size: 0.65rem;
}

.consent-settings-button:hover {
    color: var(--color-text);
}

.consent-settings-button:focus-visible {
    outline: 3px solid rgba(34, 167, 255, 0.4);
    outline-offset: 3px;
}