/*#region Общие стили*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --challenge-tick-time: 0.1s;
    --drum-tick-time: 0.1s;
    --accent-color: #5CA8FF;
    --glass: #FFFFFF14;
    --gray-text: #FFFFFF99;
    --fraers-percent: 0%;
}

* {
    font-family: Inter, sans-serif;
    color: white;
    text-decoration: none;
}

html {
    font-size: 16px;
}

body {
    background: rgb(4, 4, 10);
    background: linear-gradient(150deg, rgba(4, 4, 10, 1) 0%, rgba(41, 50, 80, 1) 100%);
    overflow: hidden;
}

h3 {
    font-weight: 700;
}

/* не ебу как с медио кУаРисами работать, в первый раз в жизни их написал */
/* и вообще я не этим обычно занимаюсь, чёт как-то размер шрифта под 2к вроде подстроил и готово */
/* остальное - нафиг нафиг, даже разбираться не хочу, сори мобильные, я криворучко */
@media (min-width: 710px) {
    html {
        font-size: 10px;
    }
}

@media (min-width: 1100px) {
    html {
        font-size: 12px;
    }
}

@media (min-width: 1800px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 2300px) {
    html {
        font-size: 22px;
    }
}

@media (min-width: 3500px) {
    html {
        font-size: 28px;
    }
}

@media (pointer:none),
(pointer:coarse) {
    .section-img {
        display: none;
    }
}

/*#endregion Общие стили*/

/*#region Навигация*/

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    height: 10%;
}

nav>div {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

nav a {
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

#logo {
    width: 6vw;
    min-width: 100px;
    max-width: 300px;
}


/*#endregion*/

/*#region Страницы*/

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 106%;
    height: 90%;
    overflow-y: hidden;
}

section {
    width: 100%;
    height: 100%;
    display: none;
    padding-left: 20px;
}

section:target {
    display: flex;
}

.section-left-panel {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 32px;
    flex: 15;
    padding-bottom: 32px;
}

.section-left-panel>* {
    flex: 1 1 auto;
}

.section-img {
    flex: 1;
    transform: translateX(-10px);
    pointer-events: none;
}

/*#endregion Страницы*/

/*#region Отметки*/

.bg-completed {
    background: url("assets/yes.webp");
    background-size: 1.125rem;
}

.bg-failed {
    background: url("assets/no.webp");
    background-size: 1.125rem;
}

.bg-locked {
    background: url("assets/lock.webp");
    background-size: 1.125rem;
}

.bg-marked {
    background-position: left center;
    background-repeat: no-repeat;
}

.bg-marked-padded {
    padding-left: 2rem;
}

/*#endregion Отметки*/

/*#region Доска почёта*/
#info div {
    font-weight: 100;
    text-align: center;
}

#info div div {
    overflow-y: scroll;
}

/*#endregion Доска почёта*/

/*#region Карточка*/

#card-top {
    display: flex;
    justify-content: space-between;
    height: 50%;
    gap: 32px;
}

#card-middle {
    height: 30%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

#card-bottom {
    display: flex;
    height: 10%;
    max-height: 60px;
}

#card-special {
    height: 30%;
    display: none;
}

#card-special>div {
    display: none;
    padding: 2rem;
    height: 100%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 32px;
}

#card-special h3 {
    font-size: 3rem;
}

#card-special p {
    font-size: 1.4rem;
}

#card-special * {
    color: black;
}

.card-panel {
    background-color: var(--glass);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    flex-basis: 0;
    overflow-y: hidden;
}

.card-panel:has(h3) {
    padding-top: 0;
}

.card-panel h3 {
    text-transform: uppercase;
    background: #FFFFFF29;
    width: 100%;
    border-radius: 8px 8px 0 0;
    padding: 5px;
    padding-left: 10px;
    font-size: 1rem;
}

.card-panel ul,
#year-bonuses {
    padding: 10px;
    overflow-y: scroll;
}

.card-panel li {
    padding-block: 4px;
}

.card-panel li span {
    pointer-events: none;
}

/*#endregion Карточка */

/*#region Таблица*/
#year-table {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-gap: 8px;
    height: 100%;
    flex: 3;
}

.year-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    background-color: var(--glass);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    position: relative;
}

.year-cell span {
    pointer-events: none;
}

.year-cell:hover {
    border: 2px solid var(--accent-color);
}

.year-cell.completed {
    background: #2DE05D14;
}

.year-cell.completed span {
    color: #2DE05D;
}

.year-cell.current {
    background: white;
}

.year-cell.current span {
    color: black;
}

.year-cell.closed {
    opacity: 0.3;
}

.year-cell.holding {
    background: #2DE05D14;
}

.year-cell.holding span {
    color: #FFFFFF29;
}

.year-locked {
    position: relative;
}

.year-locked::after {
    content: "";
    background-image: url("assets/lock.webp") !important;
    width: 100%;
    height: 100%;
    position: absolute;
    background-repeat: no-repeat;
    background-position: 50% 88%;
}

.year-cell.dlc span::after {
    content: "DLC";
    font-size: 0.75rem;
    /* font-weight: 300; */
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 150%);
    color: rgb(182, 79, 79);
    -webkit-text-fill-color: rgb(182, 79, 79); /* ← вот это */
    background-clip: initial;                   /* на всякий случай */
    -webkit-background-clip: initial;

}

/*#endregion Таблица*/

/*#region Специальные года*/

#card-special-gold,
#year-gold:not(.current) span,
#year-gold.current {
    background: linear-gradient(96.7deg, #f3c81a 0%, #f1d254 23.24%, #ffe789 45.62%, #e9c94c 74.19%, #f3c81a 100%);
}

#card-special-silver,
#year-silver:not(.current) span,
#year-silver.current {
    background: linear-gradient(96.7deg, #ABBAD6 0%, #E5F1FE 25.24%, #E5F1FE 51.62%, #D3DDF5 76%, #ABBAD6 100%);

}

#card-special-bronze,
#year-bronze:not(.current) span,
#year-bronze.current {
    background: linear-gradient(96.7deg, #EB885E 0%, #FFC6AD 26.24%, #FEC5AD 55.62%, #FFA27A 78%, #EB885E 100%);
}

#card-special-platinum,
#year-platinum:not(.current) span,
#year-platinum.current {
    background: linear-gradient(96.7deg, #D8D1C3 0%, #F5EFE1 25.24%, #FCF8ED 51.62%, #EEE7D5 76%, #D8D1C3 100%);
}

#year-gold span,
#year-silver span,
#year-bronze span,
#year-platinum span {
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
}

#year-gold:hover {
    border: 2px solid #FFDE5C;
}

#year-silver:hover {
    border: 2px solid #9BABCC;
}

#year-bronze:hover {
    border: 2px solid #FF8457;
}

#year-platinum:hover {
    border: 2px solid #C7B694;
}

#year-gold.current,
#year-silver.current,
#year-bronze.current,
#year-platinum.current,
#year-gold.current span,
#year-silver.current span,
#year-bronze.current span,
#year-platinum.current span {
    color: black;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

#year-gold,
#year-silver,
#year-bronze,
#year-platinum,
#card-special div {
    background-size: 200% 200%;
    animation: Special 15s ease infinite;
    -webkit-animation: Special 15s ease infinite;
    -moz-animation: Special 15s ease infinite;
    animation: Special 15s ease infinite;
}

/*#endregion Специальные года*/

/*#region Карточка информация*/
#year-info {
    display: flex;
    flex-direction: column;
    flex: 5;
    gap: 32px;
    justify-content: space-between;
    height: 100%;
}

.year-desc-row {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: max-content;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.year-desc-row span {
    width: 50%;
    padding-block: 5px;
    font-size: 1rem;
}

.year-desc-row:first-child,
.year-desc-row:first-child span {
    border-top: none;
    font-size: 1.5rem;
}

#year-bonuses {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px;
}

#card-effect-desc {
    padding: 8px;
    font-size: 1.125rem;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#card-effect-desc h3 {
    background: none !important;
    font-size: 1.5rem;
}


/*#endregion Карточка информация*/

/*#region Прогресс бар*/

#progress-bar {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, #FF9D47 var(--fraers-percent), black var(--fraers-percent));
    padding-inline: 20px;
}

#podpivkovich {
    flex: 1;
    transform: translateX(-25px);
}

/*#endregion Прогресс бар*/

/*#region Правила*/

#ruleset {
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: scroll;
}

#rules h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#rules p {
    line-height: 1.5rem;
    color: var(--gray-text);
}

.rule:not(:last-child) {
    margin-bottom: 30px;
}

/*#endregion Правила*/

/*#region Подробно*/

.wall-item {
    display: flex;
    flex-direction: column;
    gap: 32px
}

#wall-content {
    display: flex;
    flex-direction: column;
    gap: 128px;
    overflow-y: scroll;
}

#wall h3 {
    font-size: 3.75rem;
    font-weight: 700;
    /* margin-bottom: 20px; */
}

.wall-year-status {
    font-size: 1.5rem;
    font-weight: 400;
    padding-left: 20px;
}

#wall h4 {
    font-size: 1.5rem;
    font-weight: 700;
    /* margin-bottom: 16px; */
}

.wall-year-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* margin-bottom: 20px; */
}

#wall ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wall-year-row {
    display: flex;
    justify-content: center;
}

.wall-year-game,
.wall-year-film {
    width: 50%;
    flex: 1 1 auto;
}

.wall-year-row:first-child span {
    font-size: 1.5rem;
    font-weight: 700;
}

/*#endregion Подробно*/

/*#region Система фраеров*/

#fraers p {
    color: var(--gray-text);
    font-size: 1.125rem;
    flex: 1;
}

#fraers-progress {
    flex: 10;
    display: flex;
    gap: 32px;
}

#fraers-progress-bar {
    background: linear-gradient(to top, #FF9D47 var(--fraers-percent), var(--glass) var(--fraers-percent));
    height: 100%;
    min-width: 240px;
    flex: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-block: 50px;
    font-weight: 700;
    position: relative;
}

#fraers-progress-now {
    font-size: 3.75rem;
}

#fraers-progress-info {
    flex: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#fraers-progress-img {
    position: absolute;
    bottom: var(--fraers-percent);
    transform: translateY(33%);
    width: 60%;
    left: 5%;
}

.fraers-li {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
    white-space: nowrap;
    padding-block: 0px;
    padding-left: 1.5rem;
}

.fraers-li span:first-child {
    width: 5%;
    text-align: right;
    font-weight: 700;
}

/*#endregion Система фраеров*/

/*region Челленджи и барабан*/

.buttons {
    flex-grow: 0;
}

.buttons button {
    border: 1px solid transparent;
    outline: none;
    cursor: pointer;
    background: var(--glass);
    padding: 16px;
    border-radius: 8px;
    margin-right: 8px;
    font-weight: 700;
}

.buttons button:not(.button-active):hover {
    border: 1px solid var(--accent-color);
}

.buttons button.button-active {
    background: white;
    color: black;
}

#challenge-section,
#drum-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: scroll;
}

#challenge-list,
#drum-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
    overflow-y: scroll;
}

.challenge h3,
.drum h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.challenge p,
.drum p {
    color: var(--gray-text);
    font-size: 1.125rem;
    line-height: 1.625rem;
}

.button-spin {
    color: black;
    background: linear-gradient(186.7deg, #EBCE5E 0%, #FFEFAD 27.24%, #FEEEAD 35.62%, #EBCE5E 59.16%, #FFE47A 97.19%);
    border-radius: 8px;
    min-height: 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    padding: 10px;
}

/*#endregion Челленджи и барабан*/

/*#region Отзывы*/

#reviews h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#reviews p {
    font-size: 1.125rem;
    color: var(--gray-text)
}

#reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: scroll;
}

.review-row {
    display: flex;
    gap: 48px;
}

.review-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding-bottom: 1.5rem;
}

.review-games,
.review-films {
    flex: 1 1 auto;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem;
}

/*#endregion Отзывы*/


/*#region Всякое*/

.search {
    min-height: 2.5rem;
    max-height: 2.5rem;
    color: #FFFFFF7A;
    background: none;
    border-radius: 8px;
    border: 2px solid #FFFFFF29;
    padding: 5px;
    padding-left: 12px;
    outline: none;
    font-size: 0.875rem;
}

.search:active,
.search:focus {
    color: white;
    border-color: white;
}

audio {
    display: none;
}

*[hidden] {
    display: none !important;
}

@keyframes Special {
    0% {
        background-position: 71% 0%
    }

    50% {
        background-position: 30% 100%
    }

    100% {
        background-position: 71% 0%
    }
}

/*#endregion Мелочи*/

.snowflake {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(white, white);
    border-radius: 50%;
    filter: drop-shadow(0 0 10px white);
}

#snow {
    pointer-events: none;
}

/*#region Скроллбар*/

::-webkit-scrollbar {
    width: 8px;
    padding: 0 !important;
}

::-webkit-scrollbar-track {
    background: transparent;
    padding: 0 !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 !important;
}

/*#endregion Скроллбар*/