.hero-slider {
    position: relative;
    min-height: 100svh;
    background: #000;
}

.slider-track {
    position: relative;
    min-height: 100svh;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.slide-visual {
    position: absolute;
    inset: 0;
    background-color: #000;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.slide.is-active .slide-visual {
    animation: slowDrift 8s ease-out forwards;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto 0 max(24px, calc((100vw - var(--max)) / 2));
    padding-top: var(--header-height);
}

.slide-content h1,
.slide-content h2 {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(3rem, 8vw, 6.6rem);
    color: #fff;
    overflow-wrap: anywhere;
}

.slide-content p:not(.eyebrow) {
    max-width: 620px;
    font-size: clamp(1.02rem, 2vw, 1.25rem);
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.74);
}

.hero-slider .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    max-width: min(100%, 680px);
}

.hero-actions .btn {
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.hero-actions .btn-primary {
    background: #fff;
    color: #111827;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.16);
}

.hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.slider-controls {
    position: absolute;
    right: max(20px, calc((100vw - var(--max)) / 2));
    bottom: 32px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transition: transform 180ms ease, background 180ms ease;
}

.slider-arrow:hover {
    transform: translateY(-2px);
    background: #fff;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 30px;
    height: 4px;
    border: 0;
    border-radius: 99px;
    background: rgba(17, 24, 39, 0.16);
    cursor: pointer;
}

.slider-dot.is-active {
    background: var(--accent);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading h2,
.split-section h2,
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

.feature-grid,
.values-grid,
.contact-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.values-grid article,
.contact-grid article,
.blog-card,
.contact-panel,
.game-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.feature-card {
    padding: 28px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

.feature-card span {
    color: var(--gold);
    font-weight: 900;
}

.feature-card h3 {
    margin: 28px 0 12px;
    font-size: 1.3rem;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 44px;
    align-items: center;
    border-top: 1px solid var(--line);
}

.split-section p:last-child {
    font-size: 1.1rem;
}

.page-hero {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
    padding: calc(var(--header-height) + 92px) 0 70px;
}

.page-hero p:not(.eyebrow) {
    max-width: 700px;
    font-size: 1.12rem;
}

.values-grid article,
.contact-grid article {
    padding: 28px;
}

.blog-card {
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface);
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface);
}

.news-card-content {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.news-card h3 {
    font-size: 1.18rem;
}

.news-card p:not(.eyebrow) {
    font-size: 0.95rem;
}

.news-card-empty {
    grid-column: 1 / -1;
}

.blog-card-content {
    padding: 24px;
}

.blog-detail {
    display: grid;
    gap: 28px;
}

.blog-detail > img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.blog-detail-content {
    max-width: 880px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    color: var(--text);
    line-height: 1.2;
}

.blog-detail-content img,
.blog-detail-content iframe {
    max-width: 100%;
    border-radius: 16px;
}

.blog-detail-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.blog-detail-actions {
    margin-top: 34px;
}

.about-hero-image {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: calc(var(--header-height) + 38px) 0 28px;
}

.about-hero-image img {
    display: block;
    width: 100%;
    height: clamp(260px, 38vh, 420px);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    object-fit: cover;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.about-main-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.about-main-card {
    padding: 42px;
}

.about-main-card h2 {
    margin: 12px 0 20px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.about-copy {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.values-grid h2,
.contact-grid h2,
.blog-card h2 {
    font-size: 1.35rem;
}

.featured-game {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 24px;
}

.game-card-content {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.game-card-content h2,
.game-card-content p {
    margin: 0;
}

.game-art {
    min-height: 320px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 90, 61, 0.45), rgba(49, 214, 196, 0.22)), url('../images/games/project-ascension-card.svg') center / cover;
}

.game-art-contain {
    background-color: #f3f4f6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.game-list {
    padding-top: calc(var(--header-height) + 42px);
}

.game-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 44px;
    align-items: center;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: calc(var(--header-height) + 64px) 0 72px;
}

.game-detail-art {
    min-height: 480px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f3f4f6 center / cover no-repeat;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.game-detail-copy {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.game-detail-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.game-detail-copy p:not(.eyebrow) {
    max-width: 660px;
    font-size: 1.15rem;
    line-height: 1.75;
}

.game-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.game-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 0;
}

.game-detail-grid article,
.game-detail-body {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.game-detail-grid article {
    display: grid;
    gap: 8px;
    padding: 24px;
}

.game-detail-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-detail-grid strong {
    font-size: 1.12rem;
}

.game-detail-body {
    padding: 36px;
}

.game-detail-body h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.game-detail-body p {
    max-width: 840px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.game-trailer {
    padding-top: 0;
}

.trailer-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #05070d;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    aspect-ratio: 16 / 9;
}

.trailer-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 0;
}

.requirements-grid article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    padding: 30px;
}

.requirements-grid h2 {
    font-size: 1.45rem;
}

.requirements-grid p:not(.eyebrow) {
    line-height: 1.8;
    white-space: pre-line;
}

.requirements-table {
    width: 100%;
    border-collapse: collapse;
}

.requirements-table tr + tr {
    border-top: 1px solid var(--line);
}

.requirements-table th,
.requirements-table td {
    padding: 12px 0;
    text-align: left;
    vertical-align: top;
}

.requirements-table th {
    width: 42%;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.requirements-table td {
    color: var(--text);
    font-weight: 800;
}

.game-gallery {
    padding-top: 0;
}

.game-gallery h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gallery-grid button {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    aspect-ratio: 16 / 10;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-grid button:hover img {
    transform: scale(1.04);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.84);
    padding: 28px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(1120px, 86vw);
    max-height: 84vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.gallery-close,
.gallery-arrow {
    position: absolute;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 900;
}

.gallery-close {
    top: 24px;
    right: 24px;
}

.gallery-prev {
    left: 24px;
}

.gallery-next {
    right: 24px;
}

body.gallery-open {
    overflow: hidden;
}

.game-detail-empty {
    padding-top: calc(var(--header-height) + 86px);
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 34px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 110px;
}

.contact-copy h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.contact-form {
    position: relative;
    display: grid;
    gap: 18px;
    border: 1px solid rgba(16, 18, 23, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98)),
        #fff;
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 32px;
}

.contact-form::before {
    position: absolute;
    inset: 14px 14px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.28), transparent);
    content: "";
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form label span {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
    color: var(--text);
    padding: 13px 14px;
    outline: 0;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(37, 99, 235, 0.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.file-field {
    cursor: pointer;
}

.file-field > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-drop {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
    padding: 14px;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.file-field:hover .file-drop,
.file-field:focus-within .file-drop {
    border-color: rgba(37, 99, 235, 0.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.file-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.file-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.file-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-copy small {
    color: var(--muted);
}

.form-alert {
    display: grid;
    gap: 4px;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 700;
}

.form-alert span {
    font-weight: 600;
}

.form-alert-success {
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: #ecfdf3;
    color: #166534;
}

.form-alert-error {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: #fef2f2;
    color: #991b1b;
}

@keyframes slowDrift {
    from {
        transform: scale(1.05) translateX(0);
    }

    to {
        transform: scale(1.01) translateX(-12px);
    }
}

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

@media (max-width: 880px) {
    .feature-grid,
    .values-grid,
    .contact-grid,
    .blog-grid,
    .news-grid,
    .split-section,
    .featured-game {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-layout,
    .form-grid,
    .about-content,
    .game-detail-hero,
    .game-detail-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

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

    .game-detail-hero {
        padding-top: calc(var(--header-height) + 42px);
    }

    .game-detail-art {
        min-height: 340px;
    }

    .contact-copy {
        position: static;
    }
}

@media (max-width: 720px) {
    .slide-content,
    .page-hero {
        width: min(100% - 28px, var(--max));
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: clamp(2.6rem, 14vw, 4.5rem);
    }

    .slide-visual {
        background-position: center;
        background-size: cover;
        transform: scale(1.01);
    }

    .slider-controls {
        right: 14px;
        left: 14px;
        justify-content: space-between;
    }

    .slider-dot {
        width: 22px;
    }

    .page-hero {
        padding-top: calc(var(--header-height) + 62px);
    }

    .about-hero-image {
        width: min(100% - 40px, var(--max));
        padding-top: calc(var(--header-height) + 58px);
    }

    .about-hero-image img {
        height: auto;
        max-height: 360px;
        background: #050505;
        object-fit: contain;
    }

    .featured-game {
        padding: 16px;
    }

    .game-art {
        min-height: 240px;
    }

    .game-detail-body {
        padding: 24px;
    }
}
