

#game_name {
    display: block;
    color: white;
    font-size: 3em;
    font-weight: 800;
    line-height: 1.2;
}

#game_category {
    display: block;
    color: white;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.2;
}

.concept {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    border-radius: 13px;
    overflow: hidden;
    background-color: var(--gray-500);
    height: 400px;
    font-size: 0.95rem;
}

.concept_image {
    width: 100%;
    height: 100%;
    border-radius: 13px;
    overflow: hidden;
}

.concept_image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.concept_text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 5em;
}

.concept_text > span:first-child {
    font-size: 1.9em;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

.concept_text > span:nth-child(2) {
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 930px) {
    .concept {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: auto;
    }

    .concept_image {
        grid-row: 1 / 2;
    }

    .concept_text {
        padding: 2em;
    }

    .concept_text > span:nth-child(2) {
        line-height: 1.7;
    }
}

.section {
    margin-bottom: 5.3rem;
}

.section__title {
    display: block;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* maps */
.maps__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.map {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    overflow: hidden;
}

/* Locked map */
.map.locked {
    background-color: var(--gray-500);
}

.map__locked_graphic {
    /* make width and height the same */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.map__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

.map__image__buffer {
    position: absolute;
    z-index: 1;
    opacity: 0;
    top: 0;
    left: 0;
}

.map__image__buffer.anim-start {
    /* 1.5s is the same as in base.js */
    animation: fadeBufferedImageIn 1.5s ease-in-out forwards;
}

@keyframes fadeBufferedImageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*little zoom-in effect*/
.map:hover .map__image,
.map.hover_emulated .map__image {
    transform: scale(1.05);
}

.map__meta {
    --_pad: 30px;

    position: absolute;
    z-index: 10;
    left: 0;
    width: 100%;
    padding: 0 var(--_pad);
    bottom: var(--_pad);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    gap: 1rem;
}

.map:hover .map__meta_carousel,
.map.hover_emulated .map__meta_carousel {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.map__meta_carousel {
    display: flex;
    opacity: 0;
    transform: translateY(2px);
    flex-direction: row;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease-in-out;
}

.map__meta_carousel_button {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid white;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
    cursor: unset;
}

.map__meta_carousel_button[data-active="true"] {
    background-color: white;
}

.map__meta_info {
    position: relative;
}

.map__meta_info > * {
    display: block;
    line-height: 0.9;
}

.map__meta_info > .map__meta_info__name {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 1.3em;
    font-weight: 600;
    transition: bottom 0.2s ease-in-out, margin-bottom 0.2s ease-in-out;
    width: max-content;
}

.map:hover .map__meta_info > .map__meta_info__name,
.map.hover_emulated .map__meta_info > .map__meta_info__name {
    bottom: 100%;
    margin-bottom: 4px;
}

.map__meta_info > .map__meta_info__builders {
    color: var(--gray-0);
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.map:hover .map__meta_info > .map__meta_info__builders,
.map.hover_emulated .map__meta_info > .map__meta_info__builders {
    opacity: 1;
}

.map__modal {
    display: none;
}

.map__modal.active {
    --_z-index: calc(var(--navbar-z-index) + 1);
    display: block;
    position: fixed;
    top: 50%;
    height: 100%;
    translate: 0 -50%;
    width: 100%;
    z-index: var(--_z-index);
    padding: 3rem 1rem;
}

.map__modal_close {
    position: absolute;
    z-index: calc(var(--_z-index) + 1);
    top: 3rem;
    right: 1rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5)) opacity(0.5);
    user-select: none;
    cursor: pointer;
}

.map__modal.active .map {
    isolation: isolate;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.map__modal.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

@media (max-width: 430px) {
    .map__modal.active {
        padding: 10rem 1rem;
    }

    .map__modal_close {
        top: 10rem;
    }
}

@media (orientation: landscape) and (max-height: 670px) {
    .map__modal.active {
        padding: 1rem;
    }

    .map__modal_close {
        top: 1rem;
    }
}

@media (max-width: 1100px) {
    .maps__inner {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

/*self stats*/
.statistics {
    font-size: 0.9rem;
}

.statistics__self{
    width: 100%;
    background-color: var(--gray-700);
    border-radius: 13px;
    overflow: hidden;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.statistics__self_background {
    width: 100%;
    height: 100%;
    grid-row: 1;
    grid-column: 1;
}

.statistics__self_background > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.statistics__self_meta {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12em;
    padding: 2em 6.6em;
    box-sizing: border-box;
}

.self_meta__skin {
    height: calc(360px * 0.8);
    width: auto;
    image-rendering: pixelated;
}

.self_meta__data {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 7em;
}

.meta__data_item {
    display: grid;
    place-items: center;
}

.meta__data_item > span {
    display: block;
    text-align: center;
}

.meta__data_item > span:first-child {
    font-size: 1em;
    font-weight: 300;
    line-height: 1.3;
}

.meta__data_item > span:last-child {
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 1350px) {
    .statistics__self_meta {
        flex-direction: column;
        gap: 4em;
        padding: 3em;
    }

    .self_meta__data {
        gap: 4em;
    }
}

@media (max-width: 570px) {
    .self_meta__data {
        gap: 2.5em;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

/* Ranking */
.ranking {
    --_ranking-row-height: 4.375em;
    display: grid;
}

.ranking--header {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    margin-bottom: 0.6rem;
}

.ranking--header > span {
    color: #C2C2C2;
    text-align: center;
    user-select: none;
}

.ranking--header span.left-align {
    text-align: left;
}

.ranking--header .clickable-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: #C2C2C2;
    user-select: none;
}

.ranking--header .clickable-filter.selected {
    color: white;
}

.ranking--header .clickable-filter:not(.selected) span {
    cursor: pointer;
}

.ranking--header .clickable-filter:not(.selected) span:hover {
    text-decoration: underline;
}


.ranking--places {
    display: grid;
    grid-column: 1 / -1;
    grid-template-rows: auto;
    grid-template-columns: subgrid;
    gap: 5px;
}

.ranking__place {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    grid-template-rows: var(--_ranking-row-height);
    align-items: center;
    border-radius: 13px;
    overflow: hidden;
    background-color: var(--gray-500);
}

.ranking__place:nth-child(2n) {
    background-color: #1C1C1C;
}

.place__number {
    font-size: 1.3em;
    font-weight: 600;
    height: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background-color: var(--gray-200);
    border-radius: 13px;
}

.place__number.gold {
    background-color: var(--yellow-200);
}

.place__number.silver {
    background-color: var(--gray-50);
}

.place__number.bronze {
    background-color: var(--brown-200);
}

.place__image {
    border-radius: 13px;
    justify-self: center;
}

.place__name {
    font-size: 1.2em;
    text-align: left;
}