:root {
    --bg: #050816;
    --bg-2: #0b1123;
    --card: rgba(255, 255, 255, 0.06);
    --card-strong: rgba(255, 255, 255, 0.09);
    --card-border: rgba(255, 255, 255, 0.11);
    --text: #f5f7ff;
    --muted: #aab6cf;
    --primary: #ff4d6d;
    --primary-2: #7c5cff;
    --accent: #32d1ff;
    --radius: 24px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 109, 0.18), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(124, 92, 255, 0.18), transparent 25%),
        linear-gradient(180deg, #050816 0%, #07101f 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section {
    padding: 105px 0;
    position: relative;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 360px;
    height: 360px;
    left: -120px;
    top: 80px;
    background: rgba(255, 77, 109, 0.28);
    animation: drift1 16s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    right: -80px;
    top: 240px;
    background: rgba(124, 92, 255, 0.26);
    animation: drift2 18s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(45px, 35px); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-55px, 20px); }
}

.cursor-glow {
    position: fixed;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,209,255,0.12) 0%, rgba(50,209,255,0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.eyebrow,
.section-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 14px;
}

h1, h2, h3 {
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--muted);
}

.glass {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(5, 8, 22, 0.58);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: clamp(125px, 16vw, 210px);
    height: auto;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.16));
}

.desktop-nav {
    display: flex;
    gap: 28px;
}

.desktop-nav a,
.mobile-nav a {
    color: #dfe8fb;
    transition: 0.25s ease;
    position: relative;
}

.desktop-nav a::after,
.mobile-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width 0.25s ease;
}

.desktop-nav a:hover::after,
.mobile-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 0 16px 18px;
}

.mobile-nav.active {
    display: flex;
}

.hero {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    padding: 70px 0 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-buttons,
.hero-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 22px;
}

.badge {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: #eef3ff;
}

.btn {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 36px rgba(124, 92, 255, 0.35);
}

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

.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-visual {
    position: relative;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-phone {
    width: min(100%, 390px);
    padding: 14px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--shadow);
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

.hero-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #10172a, #0a1121 56%, #07101d);
    position: relative;
}

.hero-screen-image {
    isolation: isolate;
}

.hero-phone-art {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 34px;
    background: transparent;
    transform: scale(1.018);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-slide.is-active .hero-phone-art {
    transform: scale(1);
}

.hero-screen-bg,
.hero-shot-wrap,
.hero-shot-frame,
.screen-top,
.screen-content {
    display: none;
}

.screen-bars span:nth-child(3) { width: 64%; }

.floating-chip {
    position: absolute;
    padding: 10px 14px;
    border-radius: 999px;
    color: #eef4ff;
    animation: bob 4.2s ease-in-out infinite;
}

.chip-1 { top: 16%; left: 0%; }
.chip-2 { bottom: 18%; right: -2%; animation-delay: 0.6s; }
.chip-3 { bottom: 4%; left: 12%; animation-delay: 1.2s; }

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

.section-grid,
.footer-content,
.cta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
}

.stat-item strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
}

.games-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.game-card,
.feature-card,
.cta-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.game-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(50,209,255,0.28);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.4);
}

.game-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #09111f;
}

.game-image picture,
.game-image img {
    width: 100%;
    height: 100%;
}

.game-image img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,8,22,0.05), rgba(5,8,22,0.18));
    pointer-events: none;
}

.game-content,
.feature-card {
    padding: 24px;
}

.game-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,77,109,0.25), rgba(124,92,255,0.25));
    margin-bottom: 18px;
    font-size: 1.5rem;
}

.game-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 800;
    color: var(--accent);
}

.cta-box {
    padding: 38px;
    position: relative;
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,209,255,0.24), transparent 65%);
}

.footer {
    padding: 30px 0 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0, 0, 0, 0.18);
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.zoom-in { transform: scale(0.92); }
.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .game-card-wide,
    .contact-layout,
    .form-row-two {
        grid-template-columns: 1fr;
    }

    .game-image-wide {
        min-height: auto;
        aspect-ratio: 16 / 9;
        padding: 0;
    }

    .game-content-wide {
        padding-top: 8px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 78px 0;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-phone {
        max-width: 320px;
    }

    .hero-shot-frame {
        max-width: 250px;
    }

    .screen-content {
        padding: 18px;
    }

    .screen-content h3 {
        font-size: 1.55rem;
    }

    .floating-chip {
        font-size: 0.85rem;
    }
}

.section-intro {
    max-width: 760px;
    margin: 0 auto;
}


.game-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.game-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.game-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.secondary-link {
    color: #dfe8fb;
}

.footer-contact a {
    color: #eef4ff;
}

@media (max-width: 640px) {
    .game-head {
        align-items: flex-start;
    }

    .game-icon {
        width: 58px;
        height: 58px;
    }
}

.desktop-nav a.is-active::after {
    width: 100%;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.subpage-hero {
    padding-top: 80px;
    padding-bottom: 34px;
}

.games-list {
    display: grid;
    gap: 26px;
}

.game-card-wide {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    align-items: stretch;
}

.game-image-wide {
    aspect-ratio: auto;
    min-height: 340px;
    padding: 0;
}

.game-image-wide picture,
.game-image-wide img {
    width: 100%;
    height: 100%;
}

.game-image-wide img {
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
}

.game-content-wide {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title-large {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.feature-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.feature-pills li {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #eef3ff;
    font-size: 0.95rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.contact-info-card,
.contact-page-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info-card {
    padding: 30px;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.contact-list a,
.contact-list span {
    color: #eef3ff;
    font-size: 1.04rem;
}

.contact-page-form {
    padding: 30px;
}

.form-row {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.form-row-two {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-page-form label {
    font-weight: 700;
    color: #eef3ff;
}

.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
}

.contact-page-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    outline: 2px solid rgba(50,209,255,0.35);
    border-color: rgba(50,209,255,0.45);
}

.form-status {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.form-status-success {
    background: rgba(46, 204, 113, 0.16);
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.form-status-error {
    background: rgba(255, 77, 109, 0.16);
    border: 1px solid rgba(255, 77, 109, 0.35);
}

@media (max-width: 980px) {
    .game-card-wide,
    .contact-layout,
    .form-row-two {
        grid-template-columns: 1fr;
    }

    .game-image-wide {
        min-height: auto;
        aspect-ratio: 16 / 9;
        padding: 0;
    }

    .game-content-wide {
        padding-top: 8px;
    }
}


@media (max-width: 700px) {
    .game-image {
        aspect-ratio: 4 / 3;
    }

    .game-image-wide {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }
}


/* ===== Responsive fixes ===== */
.desktop-nav {
    align-items: center;
}

.mobile-nav {
    background: rgba(5, 8, 22, 0.96);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav a {
    padding: 10px 2px;
}

.hero-text,
.hero-visual,
.game-content,
.game-content-wide,
.contact-info-card,
.contact-page-form,
.stat-item,
.cta-box,
.feature-card {
    min-width: 0;
}

.games-grid,
.features-grid,
.stats-box,
.section-grid,
.footer-content,
.cta-box,
.contact-layout,
.form-row-two,
.hero-content {
    min-width: 0;
}

.game-card,
.game-card-wide {
    min-width: 0;
}

.game-content p,
.game-content-wide p,
.hero-description,
.section-intro,
.contact-page-form,
.contact-info-card {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .games-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-content {
        gap: 32px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .chip-1 { left: 2%; }
    .chip-2 { right: 2%; }
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav.active {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 52px 0 26px;
    }

    .hero-content,
    .section-grid,
    .footer-content,
    .cta-box,
    .contact-layout,
    .form-row-two {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-description,
    .section-intro {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-badges {
        justify-content: center;
    }

    .hero-visual {
        min-height: unset;
        padding: 18px 0 56px;
    }

    .hero-phone {
        width: min(100%, 360px);
    }

    .floating-chip {
        font-size: 0.88rem;
        padding: 9px 12px;
    }

    .chip-1 {
        top: auto;
        left: 4%;
        bottom: 22%;
    }

    .chip-2 {
        right: 4%;
        bottom: 34%;
    }

    .chip-3 {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .games-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .game-card-wide {
        grid-template-columns: 1fr;
    }

    .game-image-wide {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .game-content,
    .game-content-wide,
    .feature-card,
    .contact-info-card,
    .contact-page-form,
    .cta-box {
        padding: 22px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .section {
        padding: 64px 0;
    }

    .nav {
        min-height: 74px;
    }

    .logo {
        max-width: 220px;
    }

    .logo-image {
        max-width: 220px;
    }

    .hero {
        padding-top: 38px;
    }

    .hero-text {
        text-align: left;
    }

    .hero-description,
    .section-intro {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons,
    .hero-badges {
        justify-content: stretch;
    }

    .hero-buttons .btn,
    .section-cta .btn,
    .game-actions .btn,
    .cta-box .btn,
    .contact-page-form .btn {
        width: 100%;
    }

    .hero-phone {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 12px;
        border-radius: 30px;
    }

    .hero-screen {
        border-radius: 22px;
    }

    .hero-phone-art {
        object-position: center top;
    }

    .floating-chip {
        display: none;
    }

    .stats-box {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 14px;
        border-radius: 22px;
    }

    .stat-item {
        padding: 16px;
    }

    .game-card,
    .feature-card,
    .contact-info-card,
    .contact-page-form,
    .cta-box {
        border-radius: 20px;
    }

    .game-image,
    .game-image-wide {
        aspect-ratio: 16 / 10;
    }

    .game-content,
    .game-content-wide,
    .feature-card,
    .contact-info-card,
    .contact-page-form,
    .cta-box {
        padding: 18px;
    }

    .game-head {
        gap: 12px;
        align-items: center;
        margin-bottom: 10px;
    }

    .game-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .game-content h3,
    .game-title-large {
        font-size: 1.5rem;
    }

    .game-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .feature-pills {
        gap: 10px;
    }

    .feature-pills li {
        width: 100%;
        text-align: center;
        font-size: 0.92rem;
    }

    .contact-page-form input,
    .contact-page-form textarea {
        border-radius: 14px;
        padding: 13px 14px;
    }

    .footer {
        padding-top: 16px;
    }

    .bg-grid,
    .cursor-glow {
        display: none;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: clamp(2.1rem, 11vw, 2.8rem);
    }

    h2 {
        font-size: clamp(1.6rem, 8vw, 2.1rem);
    }

    .section-label,
    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.13em;
        margin-bottom: 10px;
    }

    .hero-description,
    .game-content p,
    .game-content-wide p,
    .contact-page-form,
    .contact-info-card,
    p {
        font-size: 0.98rem;
    }

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

    .section {
        padding: 56px 0;
    }

    .hero-badges {
        gap: 10px;
    }

    .badge {
        width: 100%;
        text-align: center;
        padding: 9px 12px;
        font-size: 0.88rem;
    }

    .hero-phone {
        max-width: 286px;
        border-radius: 26px;
    }

    .hero-screen {
        border-radius: 18px;
    }

    .game-image,
    .game-image-wide {
        aspect-ratio: 4 / 3;
    }

    .game-content,
    .game-content-wide,
    .feature-card,
    .contact-info-card,
    .contact-page-form,
    .cta-box,
    .stats-box {
        padding: 16px;
    }

    .game-icon {
        width: 48px;
        height: 48px;
    }

    .btn {
        min-height: 50px;
        padding: 0 18px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .footer-bottom {
        margin-top: 18px;
        padding-top: 14px;
        font-size: 0.92rem;
    }
}


/* ===== Hero slider cleanup ===== */
.hero-visual {
    min-height: auto;
}

.slider-phone {
    width: min(100%, 390px);
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--shadow);
}

.hero-slider-track,
.hero-screen-image {
    width: 100%;
    position: relative;
    border-radius: 34px;
    overflow: hidden;
}

.hero-slider-track {
    display: grid;
    isolation: isolate;
}

.hero-slide {
    grid-area: 1 / 1;
    width: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 70%, rgba(124,92,255,0.16), transparent 38%), linear-gradient(180deg, #161d36 0%, #0d1430 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(0, 0, 0) scale(1.015);
    filter: blur(10px);
    transition:
        opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 780ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 780ms;
    will-change: opacity, transform, filter;
}

.hero-slide.is-active,
.hero-slide.is-leaving {
    visibility: visible;
    transition-delay: 0s;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.hero-slide.is-leaving {
    z-index: 2;
}

.hero-slide.is-next {
    transform: translate3d(11%, 0, 0) scale(0.975);
}

.hero-slide.is-prev {
    transform: translate3d(-11%, 0, 0) scale(0.975);
}

.hero-screen-image,
.hero-screen-bg,
.hero-shot-wrap,
.hero-shot-frame,
.screen-top,
.screen-content {
    display: block;
}

.hero-screen {
    width: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: #0b1224;
    position: relative;
}

.hero-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    pointer-events: none;
}

.hero-phone-art {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 34px;
    background: transparent;
    transform: scale(1.018);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-slide.is-active .hero-phone-art {
    transform: scale(1);
}

.floating-chip {
    display: none;
}

.hero-slider-controls {
    margin-top: 22px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-slider-caption {
    margin-top: 12px;
    text-align: center;
    color: #eef3ff;
    font-size: 1rem;
    font-weight: 700;
    min-height: 1.4em;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: static;
    flex: 0 0 auto;
}

.hero-arrow span {
    font-size: 1.6rem;
    line-height: 1;
    transform: translateY(-1px);
}

.hero-arrow:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.14);
    border-color: rgba(50,209,255,0.32);
}

.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: linear-gradient(90deg, var(--accent), var(--primary-2));
}

@media (max-width: 980px) {
    .hero-visual {
        padding: 12px 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 700px) {
    .hero-slider-controls {
        gap: 10px;
    }

    .hero-arrow {
        width: 44px;
        height: 44px;
    }

    .hero-arrow span {
        font-size: 1.45rem;
    }

    .slider-phone,
    .hero-phone {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        border-radius: 36px;
        padding: 10px;
    }

    .hero-slider-track,
    .hero-slide,
    .hero-phone-art,
    .hero-screen,
    .hero-screen::after {
        border-radius: 28px;
    }

    .hero-slider-caption {
        font-size: 0.96rem;
    }
}

/* ===== Korekta kart gier: szersze okno obrazka + indywidualne kadrowanie ===== */
.games-list .game-card-wide {
    display: grid;
    grid-template-columns: minmax(500px, 640px) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
}

.games-list .game-card-wide .game-image-wide {
    min-height: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.games-list .game-card-wide .game-image-wide picture,
.games-list .game-card-wide .game-image-wide img {
    width: 100%;
    height: 100%;
    display: block;
}

.games-list .game-card-wide .game-image-wide img {
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: 27% center;
}

/* Delikatnie różne kadry, żeby logo było bardziej równo */
.games-list .game-card-wide:nth-child(1) .game-image-wide img {
    object-position: 24% center; /* Jelly Hop - lekko w prawo */
}

.games-list .game-card-wide:nth-child(2) .game-image-wide img {
    object-position: 27% center; /* Rocket Drift */
}

.games-list .game-card-wide:nth-child(3) .game-image-wide img {
    object-position: 26% center; /* CarClif */
}

@media (max-width: 980px) {
    .games-list .game-card-wide {
        grid-template-columns: 1fr;
    }

    .games-list .game-card-wide .game-image-wide {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
