header{
    background-color: black;
}

footer{
    background-color: black;
}

.wellcome{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 1009px;
    width: 100%;
    background-image: url(./images/bg-wellcome.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.wellcome-container{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 129px 0 293px 115px;
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 156px;
    flex-direction: column;
    z-index: 1;
    max-width: 1920px;
}

.wellcome-container::before{
    content: "";
    position: absolute;
    background-image: url(./images/man.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.wellcome::after{
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    bottom: -158px !important;
    right: 0;
    width: 100%;
    height: 316px;
    z-index: 2;
    opacity: 0;
}

.info_btn{
    width: 307px;
    height: 60px;
    background-color: #FFFB00;
    color: black;
    font-family: 'Fortnite', sans-serif;
    font-size: 32px;
    border: none;
    cursor: pointer;
}

.title{
    display: flex;
    flex-direction: column;
    gap: 35px;
    z-index: 1;
}

.title p{
    font-family: 'Fortnite', sans-serif;
    font-size: 86px;
    line-height: 97.6%;
    color: white;
    margin: 0;
}

.title .description{
    font-family: 'Fortnite', sans-serif;
    font-size: 36px;
    line-height: 97.6%;
    color: #CECECE;
    margin-top: 16px;
    text-transform: uppercase;
}


.info{
    height: 795px;
    background-color: #101014;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 59px;
    border-bottom: 1px #ffffff42 solid;
    border-top: 1px #ffffff42 solid;
    background: radial-gradient(154.93% 154.74% at 50% 50.06%, #101014 24.52%, #411010 100%)
}

.wellcome_text{
    font-family: "Bangle", sans-serif;
    font-size: 150px;
    line-height: 1.05;
    /* Градиент сверху-вниз для текста */
    background: linear-gradient(to bottom, #9F1F1F 0%, #390B0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Обводка (fallback/outline) */
    -webkit-text-stroke: 1px rgba(199,50,55,0.18);
    text-align: center;
}

.wellcome_text p{
    margin: 0;
    
    font-family: "Bangle", sans-serif;
    font-size: 45px;
    line-height: 1.2;
    color: rgba(199,50,55,0.95);
}

.partners{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 114px;
}

.gift{
    height: 880px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(./images/bg-item.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #101014;
    color: white;
    padding: 0 6vw 0 6vw;
    gap: 6vw;
}


.right-side{
    width: 636px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 27px;
}

.left-side{
    height: 100%;
    width: auto;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 53px;
    position: relative;
}

.side-info{
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.gift-title{
    font-family: 'Fortnite', sans-serif;
    font-size: 96px;
    line-height: 95%;
    color: white;
}

.gift-description{
    font-family: 'HeadingNow', sans-serif;
    font-weight: 400;
    font-size: 19px;
    color: #bbbbbb60;
    text-transform: uppercase;
}

.gift-abs{
    position: absolute;
    bottom: 76px;
    font-family: 'HeadingNow', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: auto;
    color: #bbbbbb60;
}

.row{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 36px;
}

.low-desc{
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 95%;
    color: #bbbbbb50;
}

.card {
    position: relative;
    width: 186px;
    height: 366px;
    padding: 12px 8px;
    display: flex;
    align-items: start;
    justify-content: end;
    flex-direction: column;
    outline-style: solid;
    outline-width: 0px;       
    outline-offset: 6px;
    outline-color: rgba(255, 255, 255, 0); 
    background: radial-gradient(236.21% 94.79% at 55.65% 32.38%, #A35EDE 0%, #000 100%);;
    transition:
        outline-width 0.3s cubic-bezier(.25,.8,.25,1),
        outline-offset 0.3s cubic-bezier(.25,.8,.25,1),
        outline-color 0.3s cubic-bezier(.25,.8,.25,1);
}

.card::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./images/kit.png);
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(123.51% 16.3% at 0% 100%, #000000d9 0%, rgba(0, 0, 0, 0.01) 100%);
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.card:hover {
    outline-width: 3px;
    outline-offset: 3px;
    outline-color: white;
}

.card:first-child {
    background: radial-gradient(236.21% 94.79% at 55.65% 32.38%, #D92323 0%, #000 100%);
}

.card:first-child::after {
    background-image: url(./images/vecna.png);
}

.card:last-child::after {
    background-image: url(./images/demon.png);
}

.card:last-child {
    background: radial-gradient(236.21% 94.79% at 55.65% 32.38%, #4C92D5 0%, #0A141E 100%);
}

.name{
    font-family: 'HeadingNow', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 95%;
    color: white;
    margin-bottom: 6px;
    z-index: 3;
}

.owned{
    font-family: 'HeadingNow', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 95%;
    color: #6ED095;
    z-index: 3;
}

.type{
    font-family: 'HeadingNow', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 95%;
    color: #A39AAB;
    margin-bottom: 7px;
    z-index: 3;
}

/* Состояние выбранной карточки (persisted after click) */
.card.selected{
    outline-width: 3px;
    outline-offset: 3px;
    outline-color: white; /* жёлтая обводка при выборе */
}

/* GOT THE SKIN button: по умолчанию неактивна (серый), при выборе карточки — жёлтая */
#got-btn{
    background-color: #808080;
    color: #ffffff;
}

#got-btn.active{
    background-color: #FFFB00;
    color: #000000;
}

/* Размытный (blur) outline — реализован через элемент .glow внутри карточки */
.card .glow{
    position: absolute;
    inset: -6px; /* Отступ — толщина “outline” */
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;

    filter: blur(6px);

    
}

.gloww{
    position: absolute;
    inset: -2px;
    border: 3px white solid;
    -webkit-mask:
        linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    mask:
        linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
}

.card:hover::before {
    opacity: 1;
}




.card.selected .glow{
    opacity: 1;
}

/* Показываем размытие при наведении и при фокусе (клавиатура) */
.card:hover .glow,
.card:focus .glow,
.card:focus-visible .glow {
    opacity: 1;
}

/* Фокусная обводка для клавиатуры (доступность) — только для невыбранных карточек */
.card:not(.selected):focus{
    outline: 2px solid rgb(255, 255, 255);
    outline-offset: 4px;
}

/* Убираем стандартную синюю обводку при клике (мышь),
   но сохраняем доступный фокус для клавиатуры через :focus-visible */
button:focus,
.info_btn:focus,
.wellcome-btn:focus,
#got-btn:focus,
a:focus {
    outline: none;
    box-shadow: none;
}

/* Яркая видимая обводка только для клавиатурного фокуса */
button:focus-visible,
.info_btn:focus-visible,
.wellcome-btn:focus-visible,
#got-btn:focus-visible,
a:focus-visible {
    outline: 3px solid #FFFB00;
    outline-offset: 4px;
}

/* Mobile/touch: убрать синюю подсветку при тапе и удалить outline/box-shadow при active/focus */
button,
a,
.info_btn,
.wellcome-btn,
#got-btn,
.card {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

button:active,
.info_btn:active,
.wellcome-btn:active,
#got-btn:active,
a:active{
    outline: none !important;
    box-shadow: none !important;
}

button:focus,
a:focus,
.info_btn:focus,
.wellcome-btn:focus,
#got-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.sides{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 115px;
    height: 100%;
    max-width: 1600px;
    width: 100%;
}

@media (max-width: 1920px) {
    .sides{
        gap: 6vw;
    }
    .wellcome-container{
        padding-left: 6vw;
    }
    .wellcome-container::before{
        right: 9.5vw;
    }
    .gift-title{
        font-size: 5vw;
    }

    .gift-description{
        font-size: 1vw;
    }

    .wellcome::after{
        opacity: 1;
    }
}

@media (max-width: 1800px) {
    .wellcome-container::before{
        right: 3vw;
    }
}

@media (max-width: 1650px) {
    .wellcome-container::before{
        right: 3vw;
    }
}


@media (max-width: 1600px) {
    .row{
        gap: 16px;
    }

    .sides{
        gap: 3vw;
    }

    .gift{
        padding: 0 4vw 0 4vw;
    }

    .card{
        height: 22vw;
        width: 11vw;
    }

    .right-side{
        width: auto;
    }

    .gift-title{
            font-size: 6vw;
    }

    .gift-description{
        font-size: 1.5vw;
    }

    .gift-abs{
            width: 80vw;
    }

    .info{
            height: 49vw;
    min-height: 550px;
    }

    .partners img{
        height: 5vw;
        min-height: 60px;
    }

    .partners{
        gap: 6vw;
    }

    .wellcome::after{
        background-size: 100%;
    }
}

@media (max-width: 1250px) {
    
    .wellcome-container{
        padding: 60px 0 120px 3vw;
        gap: 120px;
        justify-content: center;
    }

    .wellcome{
        height: 900px;
    }

    .title{
        gap: 16px;
    }

    .wellcome-container::before{
        content: none;
    }

    .wellcome_text{
        font-size: 12vw;
    }

    .wellcome_text p{
        font-size: 4vw;
    }

    .partners img{
        height: 6vw;
        min-height: 50px;
    }

    .sides{
        flex-direction: column;
        justify-content: start;
        align-items: start;
        width: auto;
        gap: 6vw;
    }

    .gift{
        position: relative;
        height: auto;
        padding: 60px 60px 160px 60px;
    }

    .left-side{
        position: unset;
    }

    .gift-abs{
        width: auto;
        bottom: 32px;
        left: 0;
        right: 0;
        text-align: center;
        padding: 0 120px;
    }

    .card{
        width: 200px;
        height: 387px;
    }

    .gift-title{
        font-size: 75px;
    }

    .gift-description{
        font-size: 18px;
    }

}

@media (max-width: 1000px) {
    .title p{
        font-size: 9vw;
    }
    .title .description{
        font-size: 4vw;
    }


}


@media (max-width: 720px) {

    .title{
        gap: 2vw;
    }

    .wellcome{
        height: 100vw;
    }
    
    .info_btn{
        width: 33vw;
        aspect-ratio: 5/1.5;
        height: auto;
        font-size: 5vw;
    }
    .info{
        min-height: unset;
        height: 100vw;
    }
    .wellcome_text{
        font-size: 17vw;
    }

    .wellcome_text p{
        font-size: 7vw;
    }

    .partners{
        width: 100%;
        max-width: 490px;
        gap: 16px;
        padding: 0 40px;
    }

    .partners img{
        width: 30%;
        height: auto;
        min-height: unset;
    }

    .card{
        width: 100%;
        height: auto;
        aspect-ratio: 1/2;
    }

    .gift{
        padding: 60px 20px 160px 20px;
    }

    .sides{
        width: 100%;
        gap: 10vw;
    }

    .left-side{
        width: 100%;
        gap: 24px;
    }

    .right-side{
        width: 100%;
    }
    .row{
        width: 100%;
    }

    .gift-title{
        font-size: 11vw;
    }

    .gift-description{
        font-size: 2.8vw;
    }

    .gift-abs{
        font-size: 2vw;
    }

    .got-btn{
        width: 40vw;
        aspect-ratio: 307/60;
    }

    .name{
        font-weight: 600;
    }
    .owned{
        font-weight: 600;
    }
    .type{
        font-weight: 600;
    }
}

@media (max-width: 500px) {
    .wellcome-container{
        gap: 12vw;
    }
    .description{
        font-weight: 500;
    }
    .info{
        height: 80vw;
        gap: 9vw;
    }

    .row{
        align-items: flex-start;
 align-content: flex-start;
  flex-wrap: wrap; 
  width: auto;
    }

    .card{
        width: 30vw;
    }
    
    .name{
        font-weight: 600;
        font-size: 3.3vw;
        line-height: 120%;
    }
    .owned{
        font-weight: 600;
        font-size: 3.4vw;
    }

    .gift-abs{
        padding: 0 16px;
    }

    .low-desc{
            font-size: 3.3vw;
    }

    .gift{
        padding: 60px 20px 80px 20px;
    }
}

@media (max-width: 390px) {
    .side-info{
        gap: 12px;
    }
    .left-side{
        gap: 12px;
    }

    .row{
        gap: 12px;
    }
}

.wellcome-btn:hover{
    background-color: #fffb00;
}