@font-face {
    font-family: "Comfortaa";
    src: url("/static/fonts/Comfortaa-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Romul";
    src: url("/static/fonts/Romul.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
body {
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    background-color: black;
}
body a {
    text-decoration: underline;
    color: deepskyblue;
}
.header {
    position: relative;
    margin: 10px auto;
    display: grid;
    gap: 20px;
    align-items: center;
    text-align: center;
    width: 96%;
    max-width: 900px;
    user-select: none;
}
.hamburger {
    position: absolute;
    top: 14px;
    left: 20px;
    width: 50px;
    height: 34px;
    display: grid;
    justify-content: unset;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.h_line_1, .h_line_2, .h_line_3 {
    width: 100%;
    height: 2px;
    border-radius: 50px;
    background-color: white;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.hamburger.open .h_line_2 {
  opacity: 0;
  transform: scaleX(0.4);
}

.hamburger.open .h_line_1 {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.open .h_line_3 {
  transform: translateY(-11px) rotate(-45deg);
}
.social {
    display: flex;
    gap: 10px;
}
.tg_link:hover svg {
    fill: #00c8ff;
}
.vk_link:hover svg {
    fill: #297efd;
}
.vk_svg {
    fill: #e9e9e9;
    height: 23px;
    width: 23px;
    transition: fill 0.2s ease-in-out;
}
.tg_svg {
    fill: #e9e9e9;
    height: 23px;
    width: 23px;
    transition: fill 0.2s ease-in-out;
}
.logo {
    font-family: "Comfortaa", sans-serif;
    font-size: 2rem;
    color: white;
    margin: 5px auto;
    text-decoration: none;
}
@media (max-width: 480px) {
    .logo {
        position: relative;
        top: 5px;
        font-size: 1.6rem;
    }
}
.search {
    display: grid;
    gap: 0;
    position: relative;
}
.search_inp {
    position: relative;
    display: flex;
    max-width: 900px;
}
.search_input {
    width: 100%;
    border-radius: 50px;
    outline: none;
    border: none;
    height: 35px;
    padding: 0 15px;
    font-size: 1rem;
}
.clear_search {
    display: none;
    position: absolute;
    right: 15px;
    top: 0;
    padding: 7px;

}
.icon-clear {

}
.search_result {
    position: absolute;
    left: 5%;
    top: 35px;
    display: grid;
    width: 90%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    transition: opacity 0.3s ease;
    z-index: 248;
}
.search_link {
    text-decoration: none;
    display: flex;
    margin: 10px;
}
.search_result_item {
    border: 1px solid #5c5b5b;
    border-radius: 12px;
    padding: 7px;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 50px;
    color: #e9e9e9;
    gap: 20px;
    text-align: center;
    align-items: center;
    background: #292828;
}
.search_result_item img {
    height: 50px;
}
.search_error {
    margin: 30px;
    color: #e9e9e9;
    font-size: 1rem;
}
.nav_bar {
    display: grid;
    position: absolute;
    left: -216px;
    top: 130px;
    gap: 15px;
    z-index: 99;
}
.nav_bar.open {
    left: 0;
}
.nav_background {
    position: absolute;
    opacity: 0;
    left: -216px;
    top: 124px;
    width: 0;
    height: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    transition: opacity 0.3s ease;
    z-index: 88;
}
.nav_background.open {
    height: 297px;
    width: 211px;
    opacity: 1;
    transform: translateX(211px);
}
.nav-link {
    position: relative;
    display: inline-flex;
    gap: 10px;
    opacity: 0;
    left: -200px;
    text-align: left;
    height: 35px;
    width: 202px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all .3s ease;
}
.nav-link-url {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: left;
    padding-left: 40px;
    border-radius: 999px;
    width: 100%;
    height: 100%;
    border: 1px solid #bbbbbb;
    background: linear-gradient(180deg, #2c2c2c, #1f1f1f);
    color: #bbbbbb;
    text-decoration: none;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: .8rem;
    white-space: nowrap;
    box-shadow:
        inset 0 1px rgba(255,255,255,.08),
        0 6px 16px rgba(0,0,0,.35);
}
.nav-link.open {
    opacity: 1;
    transform: translateX(200px);
}
.nav-link-url:hover,
.nav-link-url.active {
    border-color: #6ae4ff;
    color: white;
    fill: white;
    box-shadow:
        inset 0 1px rgba(255,255,255,.12),
        0 10px 24px rgba(0, 200, 255, .25);
}
.nav-link-url:hover .nav_icon,
.nav-link-url.active .nav_icon {
    fill: white;
}
.nav_png {
    width: 20px;
    height: 20px;
    filter: brightness(0.6);
    transition: filter 0.2s ease;
}
.nav-link-url:hover .nav_png,
.nav-link-url.active .nav_png {
    filter: brightness(1);
}
.nav-link-url:hover .sub_icon,
.nav-link-url.active .sub_icon {
    stroke: white;
}
.nav-link-url:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #000,
    0 0 0 4px #00c8ff;
}
.nav-social-link {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: left;
    padding-left: 40px;
    border-radius: 999px;
    width: 100%;
    height: 100%;
    border: 1px solid #bbbbbb;
    background: linear-gradient(180deg, #2c2c2c, #1f1f1f);
    color: #bbbbbb;
    text-decoration: none;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: .8rem;
    white-space: nowrap;
    box-shadow:
        inset 0 1px rgba(255,255,255,.08),
        0 6px 16px rgba(0,0,0,.35);
}
.nav-social.open {
    opacity: 1;
    transform: translateX(200px);
}
.content {
    margin: 1rem auto;
    display: grid;
}
.discount_games {
    display: grid;
    max-width: 700px;
    width: 96%;
    margin: 30px auto;
    column-gap: 20px;
    row-gap: 35px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
@media (max-width: 740px) {
  .discount_games { grid-template-columns: 1fr 1fr; }
}
.game_card {
    position: relative;
    transform: rotateY(90deg);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.2s ease;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
.game_card.loaded {
    transform: rotateY(0deg);
    opacity: 1;
}
.game_card:hover {
    filter: brightness(80%);
}
.game_card_img {
    position: relative;
    z-index: 9;
    width: 100%;
    border-radius: 7px;
}
.discount_block {
    border-bottom: 1px solid darkred;
    width: 90%;
    margin: 0 auto 6px auto;
    position: absolute;
    top: -11px;
    left: 4%;
}
.discount_top {
    position: absolute;
    right: 2%;
    top: -25px;
    display: flex;
    gap: 5px;
}
.discount_percent{
    width: 30px;
    height: 25px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: #e9e9e9;
    background: darkred;
    z-index: 12;
    user-select: none;
}
.discount_percent_2 {
    border: 1px solid black;
    background: darkred;
    height: 23px;
    top: 0.1rem;
    width: 1.5rem;
    margin: auto;
    position: relative;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    text-align: center;
    line-height: 22px;
    font-family: "system-ui";
}
.game_top{
    width: 45px;
    height: 25px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: #e9e9e9;
    background: darkred;
    z-index: 12;
    user-select: none;
}
.game_top_2 {
    border: 1px solid black;
    background: #cd5a1e;
    height: 23px;
    top: 0.1rem;
    width: 2.5rem;
    margin: auto;
    position: relative;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    text-align: center;
    line-height: 22px;
    font-family: "system-ui";
}
.game_card_price {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    margin-left: 10px;
    color: #e9e9e9;
    justify-content: left;
}
.game_card_price {
    font-size: 1rem;
}
.game_card_original_price{
    font-size: 0.9rem;
    text-decoration: line-through;
}

.bottom {
    border-top: 1px solid #3a3a3a;
    padding: 20px 0;
    margin: 30px auto;
    width: 96%;
    max-width: 900px;
    display: grid;
    user-select: none;
}
.bottom_top {
    display: flex;
    color: #e9e9e9;
    justify-content: space-between;
    margin-left: 30px;
    font-size: 0.75rem;
    text-align: center;
    align-items: center;
}
.five {
    top: 10px;
    right: 0;
    color: #e9e9e9;
    font-size: 0.7rem;
    padding: 4px 8px;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
}
.b_link {
    text-decoration: none;
    color: #797979;
    font-size: 0.7rem;
    margin-left: 30px;
    margin-top: 10px;
    width: 170px;
}
.bottom p {
    color: #797979;
    font-size: 0.7rem;
    margin-left: 30px;
    margin-top: 10px;
}
.content {
    margin: auto;
    width: 96%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr;
}
.render_block {
    position: relative;
    border-top: 1px solid #3a3a3a;
    padding-top: 20px;
    display: flex;
}
.games_render_block {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 20px;
    row-gap: 40px;
}
.alphabet-sidebar {
    width: 25px;
    flex-shrink: 0;
}
.alphabet {
    display: grid;
    gap: 4px;
    margin-top: 10%;
    color: #5d5c5c;
    text-align: center;
    user-select: none;
    font-size: 0.7rem;
    position: sticky;
    top: 10%;
    align-self: flex-start;
}
.letter-section.active {
    color: white;
}
@media (max-width: 500px) {
    .games_render_block {
        grid-template-columns: 1fr 1fr;
    }
}
.loader {
    display: inline-flex;
    gap: 10px;
    height: 20px;
    margin: 20px auto;
    justify-self: center;
    grid-column: 1 / -1;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9f9d9d;
    display: inline-block;
    animation: bounce 900ms ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform, opacity;
}
.dot:nth-child(1) { animation-delay: calc(100ms * 0); }
.dot:nth-child(2) { animation-delay: calc(100ms * 1); }
.dot:nth-child(3) { animation-delay: calc(100ms * 2); }

@keyframes bounce {
    0%, 100% {transform: translateY(0) scaleY(1); opacity: 0.7;}
    40% {transform: translateY(calc(-1 * 9px)) scaleY(1.05); opacity: 1;}
    60% { transform: translateY(0) scaleY(0.95); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
    .dot {animation: fade 1.4s infinite;}
    @keyframes fade {
        0%,100% { opacity: .35; }
        50% { opacity: 1;   }
    }
}
.block_title {
    color: #e9e9e9;
    margin: 30px auto;
    font-family: Comfortaa, sans-serif;
    font-size: 1rem;
    letter-spacing: 1rem;
    user-select: none;
}
@media (max-width: 500px) {
    .block_title {
        font-size: 0.8rem;
        letter-spacing: 0.6rem;
    }
}
.leaderboard {
    display: grid;
    width: 90%;
    margin: 20px auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}
.leaderboard_item img{
    width: 100%;
    border-radius: 7px;
}
.leaderboard_item {
    transition: filter 0.2s ease;
}
.leaderboard_item:hover {
    filter: brightness(80%);
}
.leaderboard_item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.leaderboard_item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.leaderboard_item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
.leaderboard_item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}
.leaderboard_item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}
.leaderboard_item:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}
.render_error {
    margin: 20px auto;
    color: #e9e9e9;
    justify-self: center;
}
.hidden {
    display: none!important;
}
.hide {
    opacity: 0!important;
    pointer-events: none!important;
    height: 0!important;
    overflow: hidden!important;
}