.thge-popup .flavr-overlay {
    overflow: hidden;
}

.thge-popup .flavr-toolbar {
    padding: 0 !important;
}

.thge-popup.flavr-container .flavr-fixer {
    margin: 250px auto 60px;
}

.thge-popup .flavr-fixer .flavr-outer .flavr-content .flavr-message {
    padding: 0 !important;
    overflow: visible;
}

/* Bouton close */
.thge-popup .flavr-button.close {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_close.png) !important;
    width: 115px !important;
    height: 116px !important;
    background-color: transparent !important;
    border: none !important;
    font-size: 15px !important;
    top: 45px !important;
    right: 53px !important;
    border-radius: 0 !important;
    transition: background ease-in-out 300ms;
    animation: none !important;
}

.thge-popup.bg2 .flavr-button.close {
    top: 17px !important;
    right: 29px !important;
}

.thge-popup .flavr-button.close:hover {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_close_hover.png) !important;
}

.thge-popup .flavr-button.close:active {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_close_hover.png) !important;
}

.thge-popup .flavr-button.close:before {
    content: none !important;
}

/* Titres */
.thge-popup .flavr-fixer .flavr-outer h3 {
    color: var(--thge-main-color);
    text-align: left;
    font: normal normal 900 20px/28px Alegreya Sans;
    text-transform: uppercase;
}

/* Texte */
.thge-popup .flavr-fixer .flavr-outer p.popup-text {
    color: var(--thge-main-color);
    text-align: left;
    font: normal normal bold 16px/20px Alegreya Sans;
    margin: 10px 0 !important;
}

.thge-popup .flavr-fixer .flavr-outer p.popup-text.center {
    text-align: center;
}

/* Background type 1  */
.thge-popup.bg0 .flavr-fixer .flavr-outer {
    background-color: transparent;
    border: none;
    background-image: url(/static/event/2022/christmas/img/Popup/bg_0.png);
    width: 798px;
    height: 570px;
    padding: 108px 99px 103px 215px;
}

/* Background type 2  */
.thge-popup.bg2 .flavr-fixer .flavr-outer {
    background-color: transparent;
    border: none;
    background-image: url(/static/event/2022/christmas/img/Popup/bg_2.png);
    width: 700px;
    height: 452px;
    padding: 60px 82px 84px 114px;
}

/* Container des boutons */
.thge-popup .flavr-fixer .flavr-outer .button-container {
    display: flex;
    justify-content: space-evenly;
}

.thge-popup .flavr-fixer .flavr-outer .button-container.vertical {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    height: 85px;
}

/* Glows */
.thge-popup .flavr-message > *:not(.glow) {
    position: relative;
    z-index: 1;
}

/* Jauge serveur du PU familier serveur débloqué */
.thge-popup .server-reward-percentage {
    text-align: center;
    color: var(--thge-main-color);
    text-transform: uppercase;
    position: absolute;
    top: 28px;
    right: 34px;
    font: normal normal bold 15px Alegreya Sans;
}

.thge-popup .server-reward-gauge-decoration-container .server-reward-gauge-decoration {
    position: absolute;
    left: -5px;
    z-index: 0;
}

.thge-popup .server-reward-gauge-container {
    background: url(/static/event/2022/christmas/img/Popup/Gauge/ServerReward/bg_gauge.png);
    width: 286px;
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 100;
}

.thge-popup .server-reward-gauge-container::before {
    content: '';
    background: url(/static/event/2022/christmas/img/Popup/Gauge/ServerReward/deco_gauge_origin.png);
    width: 82px;
    height: 48px;
    position: absolute;
    top: 16px;
    left: 23px;
    z-index: 2;
}

.thge-popup .server-reward-gauge {
    position: absolute;
    transition: width ease-in-out 300ms;
    background: transparent var(--thge-gradient) 0 0 no-repeat padding-box;;
    box-shadow: 0 0 6px #FFFFFF;
    top: 29px;
    left: 49px;
    height: 18px;
    z-index: 0;
    max-width: 228px;
    border-radius: 80px;
}

.thge-popup.intro-popup .flavr-fixer .flavr-outer {
    padding: 149px 168px 0 263px;
}

.thge-popup.intro-popup #intro-npc {
    position: absolute;
    left: -80px;
    top: -55px;
    pointer-events: none;
}

.thge-popup.intro-popup h3 {
    margin-bottom: 32px;
}

.thge-popup.intro-popup .missions-button {
    margin-top: 14px;
    line-height: 55px;
}

:root {
    --thge-main-color: #5d4bc0;
    --thge-main-color-lighter: #afa1ff;
    --thge-second-color: #fff;
    --thge-gradient: linear-gradient(90deg, #ac9ad7 0%, #fddacd 100%);
}

#menu-bar #menu li.main-menu-event a {
    color: #f5fdfd;
}

#menu-bar #menu li.main-menu-event.selected a {
    font-weight: 800 !important;
}

span.highlighted {
    font-weight: bolder;
}

#inner-grid #home-event::before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
    border-radius: 30px;
}
#inner-grid #home-event h3, #inner-grid #home-event p#event-label {
    position: relative;
}


.thge-button {
    transition: background ease-in-out 300ms;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: inline-block;
    background-repeat: no-repeat;
}

.thge-button.disabled {
    pointer-events: none;
    filter: grayscale(1);
}

.thge-button.disabled > * {
    mix-blend-mode: normal;
}

.thge-button.btn1 {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_1.png);
    width: 170px;
    height: 60px;
    text-align: center;
    font: normal normal bold 16px/20px Alegreya Sans SC;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    text-shadow: 0 0 5px #00000099;
    text-transform: uppercase;
    border-radius: 25px;
    padding-top: 0;
    padding-bottom: 7px;
}

a.thge-button.btn1 {
    padding-bottom: 0;
    padding-top: 16px;
}

.thge-button.btn1:not(.disabled):hover, .thge-button.btn1:not(.disabled):active, .thge-button.btn1:not(.disabled).active  {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_1_hover.png);
}

.thge-button.btn2 {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_2.png);
    width: 170px;
    height: 60px;
    text-align: center;
    font: normal normal bold 16px/38px Alegreya Sans SC;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    text-shadow: 0 0 5px #00000099;
    text-transform: uppercase;
    padding-top: 0;
    padding-bottom: 7px;
}

a.thge-button.btn2 {
    padding-bottom: 0;
    padding-top: 7px;
}

.thge-button.btn2:not(.disabled):hover {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_2_hover.png);
}

.thge-button.btn2:not(.disabled):active {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_2_hover.png);
}

.thge-button.btn2.mall-button {
    width: 200px;
    height: 46px;
    background-image: url(/static/event/2022/christmas/img/Menu/Main/btn_mall.png);
}

a.thge-button.btn2.mall-button {
    padding-bottom: 0;
    padding-top: 0;
}

.thge-button.btn2.mall-button:not(.disabled):hover, .thge-button.btn2.mall-button:not(.disabled):active {
    background-image: url(/static/event/2022/christmas/img/Menu/Main/btn_mall_hover.png);
}

.thge-button.btn3 {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_3.png);
    width: 200px;
    height: 46px;
    text-align: center;
    font: normal normal bold 16px Alegreya Sans SC;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    text-shadow: 0 0 5px #00000099;
    text-transform: uppercase;
    border-radius: 25px;
    line-height: 41px;
    padding-bottom: 5px;
    padding-top: 0;
}

.thge-button.btn3:not(.disabled):hover {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_3_hover.png);
}

.thge-button.btn3:not(.disabled):active {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_3_hover.png);
}

.thge-button.event-coin-button {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_buy_1.png);
    width: 205px;
    height: 56px;
    text-align: center;
    font: normal normal bold 16px/38px Alegreya Sans SC;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    text-shadow: 0 0 5px #00000099;
    text-transform: uppercase;
    border-radius: 25px;
    position: relative;
}

.thge-button.event-coin-button:not(.disabled):not(.inactive):hover {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_buy_1_hover.png);
}

.thge-button.event-coin-button:not(.disabled):not(.inactive):active {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_buy_1_hover.png);
}

.thge-button.event-coin-button span:first-of-type {
    position: absolute;
    left: 7px;
    width: 120px;
    line-height: 13px;
    top: 17px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thge-button.event-coin-button span:last-of-type {
    position: absolute;
    right: 25px;
    top: 9px;
    width: 50px;
    text-align: center;
}

.thge-button.event-coin-button:not(.inactive):not(.disabled)::after {
    content: '';
    background-image: url(/static/event/2022/christmas/img/token.png);
    position: absolute;
    right: -12px;
    top: 5px;
    width: 51px;
    height: 51px;
    background-size: cover;
}

.thge-button.event-coin-button:not(.inactive):not(.disabled).gold-purchase::after {
    background-image: url(/static/img/new-layout/home/connected/gold.png);
    width: 43px;
    height: 53px;
    right: -8px;
    top: -2px;
}

.thge-button.btn-training {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_training.png);
    width: 179px;
    height: 56px;
    text-align: center;
    font: normal normal bold 16px/38px Alegreya Sans SC;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    text-shadow: 0 0 5px #00000099;
    text-transform: uppercase;
    border-radius: 25px;
    position: relative;
}

.thge-button.btn-training:not(.disabled):not(.inactive):hover {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_training_hover.png);
}

.thge-button.btn-training:not(.disabled):not(.inactive):active {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_training_hover.png);
}

.thge-button.btn-training.disabled,
.thge-button.btn-training.inactive {
    background-image: url(/static/event/2022/christmas/img/Common/Buttons/btn_training_disable.png);
    cursor: not-allowed;
}
