.section {
    --color-bg-dark: #181818;
    --color-bg-light: #f5f5f5;
    --color-text-dark: #000000;
    --color-text-light: #000000;
    --color-primary: #0077cc;
    --color-status-first: #cc3d00;
    --color-status-second: #e69700;
    --color-status-third: #3acc00;
    --color-status-fourth: #00cc9c;
    --color-bg-accent: #c202df;
    --color-accent: #333333;
    --color-bg-transparent: rgba(0, 0, 0, 0);
    --grid-columns: 12;
    --content-max-width: 1440px;

    --colour1: rgba(255, 255, 255, 0.3);
    --colour2: #2c3e50;
    --speed: 2s;
    --patternRepeatWidth: 20;
    --stripeWidth: calc(var(--patternRepeatWidth) * 1px);
    --fundamentalBase: calc(1px * sqrt(2 * pow(var(--patternRepeatWidth), 2)));
}

.section.container {
    max-width: var(--content-max-width);
    min-width: var(--content-max-width);
    margin: 48px auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.block-title {
    text-align: center;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
}

body {
    z-index: 0;
    background: linear-gradient(
            0deg,
            #181818 50%,
            #c202df 70%
    );
    position: relative;
}

h2 {
    color: var(--text-main);
}

.grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 60%;
    margin: 0 auto;
}

.card.placeholder {
    width: 100%;
    height: 240px;
    background: #ccc;
    border-radius: 8px;
}

.news.card.placeholder {
    min-width: calc((100% - 3rem) / 4);
    height: 240px;
    background: #ccc;
    border-radius: 8px;
}

.featured-game.card.placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-bg-transparent);
    border-radius: 8px;
}

.featured-game-title {
    margin-top: 80px;
    margin-bottom: 40px;
}

.featured-game {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #444;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-style: preserve-3d;
    will-change: transform;
    perspective: 1000px;
    cursor: pointer;
}

.featured-game img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.featured-game:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.in-dev.card.placeholder {
    background: var(--color-bg-transparent);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 12px;
    width: 100%;
    height: 440px;
}

.in-dev-preview {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
}

.dev-status {
    background: var(--color-accent);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 0 0 12px 12px;
}

.dev-status p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    padding: 8px 0;
}

.dev-status ul {
    text-align: left;
    padding-left: 64px;
    padding-top: 10px;
}

.dev-status ul li {
    padding-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
}

.dev-completed {
    color: #08d319;
}

.dev-process {
    color: #0089ff;
}

.dev-todo {
    color: white;
}

.progress-bar {
    width: 80%;
    background: #222;
    height: 12px;
    border-radius: 8px;
    margin: 0.25rem 10% 10px;
}

.progress {
    height: 12px;
    border-radius: 8px;
}

.progress.active-work {
    height: 12px;
    border-radius: 8px;
    width: calc(var(--fundamentalBase) * 4);
    @media only screen and (
        max-width: 450px) {
        width: calc(var(--fundamentalBase) * 3);
    }
    @media only screen and (max-width: 350px) {
        width: calc(var(--fundamentalBase) * 2);
    }

    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent calc(var(--stripeWidth) / 2),
            var(--colour1) calc(var(--stripeWidth) / 2),
            var(--colour1) var(--stripeWidth)
    );

    animation: slide var(--speed) linear infinite;
    will-change: background-position;
}

@keyframes slide {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: var(--fundamentalBase);
    }
}


.status-dev-started {
    box-shadow: -6px 10px 13px -6px rgb(204, 61, 0);
    background-color: var(--color-status-first);
}

.status-in-dev {
    box-shadow: -6px 10px 13px -6px rgb(230, 151, 0);
    background-color: var(--color-status-second);
}

.status-active-dev {
    box-shadow: -6px 10px 13px -6px rgb(58, 204, 0);
    background-color: var(--color-status-third);
}

.btn-see-all {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    background-color: var(--color-primary);
    color: white;
    padding: 1.0rem 2.3rem;
    border-radius: 24px;
    text-decoration: none;

    font-size: 20px;
    transition: 0.3s;
    text-align: center;
    white-space: nowrap;
    z-index: 11;
}

.carousel-window {
    overflow: hidden;
    flex: 1;
    scroll-snap-type: x mandatory;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    transition: transform 0.3s ease;
}

.carousel-track .card {
    scroll-snap-align: start;
    min-width: 200px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}


.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
}

.media-arrows.carousel-prev, .media-arrows.carousel-next {
    top: 40%;
    transform: translateY(-60%);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 20px;
}

.tab.active {
    background: var(--color-primary);
}

.hidden {
    display: none;
}

.media-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 40px;
}

.carousel.tab-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-snap-type: x mandatory;
}

.carousel.tab-content.hidden {
    display: none;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.media-card {
    display: flex;
    flex-direction: column;
    background: #ccc;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.media-card.video {
    height: 260px;
    min-width: calc((100% - 3rem) / 4);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 2px 4px;
    background: var(--color-bg-dark);
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: normal;
}

.media-card.music {
    height: 320px;
    min-width: calc((100% - 5rem) / 6);
    max-width: 224px;
}

.media-card .media-thumb {
    background: #444;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    width: 100%;
}

.media-thumb-link {
    position: relative;
}

.media-card.video .media-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
}

.media-card.music .media-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
}

.media-title {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    line-height: 1.2;
}

.news-block {
    min-height: 240px;
    background: #252525;
    color: white;
    border-radius: 20px;
    align-content: center;
}

.news-block .news-content {
    padding: 32px;
    height: 240px;
    min-width: 1368px;
}

.news-block .news-content h2 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #d5d5d5;
    margin-bottom: 20px;
}

.news-block .news-content p {
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    color: #a8a8a8;
    margin-bottom: 56px;
}

.btn-news {
    display: flex;
    width: fit-content;
    margin: 1rem auto 0;
    background-color: var(--color-primary);
    color: white;
    padding: 1.0rem 2.3rem;
    border-radius: 24px;
    text-decoration: none;
    font-size: 20px;
    text-align: right;
}

.news-full-title {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
}

.news-telegram-ico {
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    background: rgba(0, 0, 0, 0);
    margin-left: 10px;
}

@media (max-width: 1440px) {
    .section.container {
        max-width: 100%;
        min-width: 100%;
    }

    .news-block .news-content {
        padding: 32px;
        height: 240px;
        min-width: 96%;
    }
}

@media (max-width: 1439px) {
    .grid.grid-3 {
        gap: 1.5rem;
        width: 72%;
        margin: 0 auto;
    }
}

@media (max-width: 960px) and (orientation: portrait) {
    .grid.grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 60%;
        margin: 0 auto;
    }

    .in-dev.card.placeholder {
        background: var(--color-bg-transparent);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        border-radius: 12px;
        width: 100%;
        height: 440px;

        flex: 0 0 80%;
    }

    .in-dev-preview {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        width: 100%;
        height: 240px;
        border-radius: 12px;
    }

    .carousel-track {
        display: flex;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        transition: transform 0.3s ease;
    }

    .carousel-track .card {
        scroll-snap-align: start;
        min-width: 200px;
    }


    .news-block {
        min-height: 560px;
        background: #252525;
        color: white;
        border-radius: 20px;
        align-content: center;
    }

    .news-block .news-content {
        padding: 32px;
        height: 100%;
        min-width: 100%;
    }

    .news-block .news-content h2 {
        font-family: "Roboto", sans-serif;
        font-weight: bold;
        font-size: 28px;
        color: #d5d5d5;
        margin-bottom: 20px;
        text-align: left;
    }

    .news-block .news-content p {
        font-family: "Roboto", sans-serif;
        font-size: 24px;
        color: #a8a8a8;
        margin-bottom: 56px;
        text-align: left;
    }

    .news-telegram-ico {
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
        background: rgba(0, 0, 0, 0);
        margin-left: 10px;
    }
}

@media (max-width: 960px) and (orientation: landscape) {
    .carousel-container {
        overflow: visible;
        scroll-snap-type: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }

    .carousel-item {
        transform: none !important;
        opacity: 1 !important;
        width: 100%;
    }

    .news-block .news-content {
        padding: 32px;
        height: 300px;
        min-width: 96%;
    }

    .news-block .news-content p {
        font-family: "Roboto", sans-serif;
        color: #a8a8a8;
        margin-bottom: 30px;
        text-align: left;
    }
}
