.boss-container {
    width: auto;
    height: min(45vw, 90vh);
    aspect-ratio: 0.725;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 5%;
    right: 15%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}

.game-container[data-gamemode="boss"] {
    .game_infos-container,
    .game_mission-container {
        display: none;
    }
    .player_1_gui {
        left: 15%;
        translate: 0 0;
        .player_hp-container {
            display: flex;
            visibility: visible;
        }
        .player_mp-container {
            width: 56%;
            display: flex;
            visibility: visible;
            top: 0;
            left: 22.5%;
            bottom: unset;
            translate: 0 -50%;
        
            .player_mp-title,
            .player_mp_value {
                font-size: min(1.45vw, 2.9vh);
            }
        }
        .map_complete_set::after {
            top: 0;
            bottom: unset;
            translate: 0 -50%;
        }
    }
    .player_1_controls {
        bottom: 1%;
        left: 2%;
    }
    .boss-container {
        display: flex;
    }
}

.boss_character-container {
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.boss_character-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 0 #ffffcb);
}

.boss-container:not([data-effect=""]) .boss_character-wrapper {
    --shinecolor: #fafaae;
    animation: effectshine 2s linear;
}

.boss-container:not([data-event=""]) .boss_character-wrapper {
    --shinecolor: #5f91fd;
    animation: effectshine 2s linear;
}

@keyframes effectshine {
    0%, 100% { filter: drop-shadow(0 0 0 #ffffff00);  }
    40%, 60% { filter: drop-shadow(0 0 min(2.5vw, 5vh) var(--shinecolor));  }
}

.boss_character {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.boss-container[data-character="evilpresence"] .boss_character {
    height: 88%;
    width: 100%;
    overflow: visible;
    object-fit: cover;
}

.boss-container[data-character="tikitaka"] .boss_character {
    height: 66%;
    margin-bottom: 14.5%;
}

.boss-container[data-character="willanno"] .boss_character-wrapper {
    align-items: end;
}

.boss-container[data-character="willanno"] .boss_character {
    height: 60%;
    margin-bottom: 14.5%;
}

.boss-container[data-character="popoi"] .boss_character-wrapper {
    align-items: end;
}

.boss-container[data-character="popoi"] .boss_character {
    height: 60%;
    margin-bottom: 14.5%;
}

.boss-container[data-character="carbuncle"] .boss_character-wrapper {
    align-items: end;
}

.boss-container[data-character="carbuncle"] .boss_character {
    height: 60%;
    margin-bottom: 14.5%;
}

.boss-container.defeated .boss_character {
    filter: grayscale(0.75);
    transition: filter 1s;
}

.boss_dialog-wrapper {
    --shadow: #61616157;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    scale: 0.9;
    filter: drop-shadow(min(0.25vw, 0.5vh) min(0.5vw, 1vh) min(0.15vw, 0.3vh) var(--shadow));
}

.boss-container[data-character="cleopatra"] .boss_dialog-wrapper {
    top: 4%;
    right: 5%;
}

.boss-container[data-character="edwardmarshall"] .boss_dialog-wrapper {
    top: 10%;
    right: 14%;
}

.boss-container[data-character="lancelot"] .boss_dialog-wrapper {
    top: 7%;
    right: 11%;
}

.boss-container[data-character="evilpresence"] {
    .boss_dialog-wrapper {
        top: 37%;
        left: -35%;
        rotate: y 180deg;
        .boss_dialog_text {
            rotate: y 180deg;
        }
    }
}

.boss-container[data-character="tikitaka"]  {
    .boss_dialog-wrapper {
        top: 54%;
        left: unset;
        right: 15%;
        rotate: x 180deg;
        .boss_dialog_text {
            rotate: x 180deg;
        }
    }
}

.boss-container[data-character="willanno"]  {
    .boss_dialog-wrapper {
        top: 62%;
        left: 5%;
        right: unset;
        rotate: z 180deg;
        .boss_dialog_text {
            rotate: z 180deg;
        }
    }
}

.boss-container[data-character="popoi"]  {
    .boss_dialog-wrapper {
        top: 60%;
        left: 4%;
        right: unset;
        rotate: z 180deg;
        .boss_dialog_text {
            rotate: z 180deg;
        }
    }
}

.boss-container[data-character="carbuncle"] {
    .boss_dialog-wrapper {
        top: 69%;
        left: unset;
        right: 11%;
        rotate: x 180deg;
        .boss_dialog_text {
            rotate: x 180deg;
        }
    }
}

.boss_dialog-container {
    --outline_color: #8055b9;
    --outline_width: 0.5;
    --plus_ow: calc(var(--outline_width) * min(0.5vw, 1vh));
    --minus_ow: calc(var(--outline_width) * min(-0.5vw, -1vh));
    width: min(45vw, 90vh);
    height: auto;
    aspect-ratio: 3;
    display: none;
    background-color: var(--outline_color);
    background-color: #a78ccb;
    background-color: #c8c8b987;
    position: absolute;
    top: 0;
    right: 0;
    translate: -13% 55%;
    transform: rotateX(180deg) rotateY(180deg);
    clip-path: polygon(10% 3%, 83% 0, 100% 25%, 95% 64%, 35% 77%, 31% 74%, 22% 100%, 27% 70%, 3% 50%, 0 32%);
    /* animation: dialogboxborder 2s linear infinite alternate; */
    opacity: 0.9;
}

/* .boss_dialog-container {
    display: flex;
} */

.boss-container:not([data-event=""]),
.boss-container:not([data-effect=""]) {
    .boss_dialog-container {
        display: flex;
        animation: dialogpop 2s;
    }
}

@keyframes dialogpop {
    0% {
        scale: 0
    }

    5% {
        scale: 1.2
    }

    10%, 100% {
        scale: 1
    }
}

@keyframes dialogboxborder {
    from {
        background-color: #a78ccb;
    }

    to {
        background-color: #d9c6f2;
    }
}

.boss_dialog_bubble {
    width: 100%;
    height: 100%;
    display: block;
    background-image: linear-gradient(180deg, beige, white, #e7e7e7);
    position: absolute;
    top: 0;
    left: 0;
    clip-path: polygon(10.5% 3%, 82.75% 3%, 98.75% 26.5%, 94.25% 61.25%, 35% 74.25%, 30.75% 70.5%, 24.75% 89%, 28.5% 68.25%, 3.75% 47.5%, 1.25% 32%);
    clip-path: polygon(10.375% 5.25%, 82.875% 2.5%, 99% 26.125%, 94.5% 61.75%, 35% 74.5%, 30.75% 71%, 24.75% 89%, 28.5% 68.75%, 3.625% 47.875%, 1.025% 32.5%);
}

.boss_dialog_text {
    width: 90%;
    height: 32%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-family: "Mikado";
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-size: min(2vw, 4vh);
    font-weight: 700;
    color: #9887b9;
    white-space: pre;
    text-shadow: min(0.25vw, 0.5vh) min(0.25vw, 0.5vh) min(0.25vw, 0.5vh) #a7a7a745;
    position: absolute;
    top: 18%;
    right: 3%;
    transform: rotateX(-180deg) rotateY(-180deg);
}

.boss_dialog_text div {
    display: block;
    width: 100%;
    height: 0;
}

.boss_dialog_text span {
    opacity: 0;
    transition: opacity 0.3s;
}

.boss_dialog_text span.revealed {
    opacity: 1;
}

.boss_dialog_text span.green {
    color: #00d359;
}

.boss_dialog_text span.red {
    color: #ff0000;
}

.boss_dialog_text span.blue {
    color: #5353f1;
}

.boss_dialog_text span.yellow {
    color: #fff280;
}

.boss_dialog_text span.white {
    color: #ffffff;
}

.boss_dialog_text span.teal {
    color: teal;
}

.boss_infos {
    width: 90%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.boss_avatar-container {
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: min(0.25vw, 0.5vh) solid #6b6bdb;
    z-index: 1;
}

.boss_avatar {
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    background-color: white;
}

.boss_name-container {
    --bdcolor: #727272;
    --bdcolor: #ffff;
    width: 100%;
    height: 55%;
    padding-bottom: min(0.25vw, 0.5vh);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: min(1.5vw, 3vh);
    font-weight: 600;
    background-color: #8055b9;
    border-left: none;
    border-top: min(0.2vw, 0.4vh) solid var(--bdcolor);
    border-right: min(0.2vw, 0.4vh) solid var(--bdcolor);
    border-bottom: min(0.2vw, 0.4vh) solid var(--bdcolor);
    border-radius: 0 min(0.5vw, 1vh) min(0.5vw, 1vh) 0;
    /* box-shadow: inset min(-0.2vw, -0.4vh) 0 0 min(0.2vw, 0.4vh) #ffff; */
    box-shadow: 0 0 0 min(0.2vw, 0.4vh) #5a4a727a, min(0.1vw, 0.2vh) min(0.15vw, 0.3vh) 0 min(0.25vw, 0.5vh) #4438588c;
    z-index: 1;
}

.boss-container .boss_name-container {
    border-left: min(0.2vw, 0.4vh) solid var(--bdcolor);
    border-top: min(0.2vw, 0.4vh) solid var(--bdcolor);
    border-right: none;
    border-bottom: min(0.2vw, 0.4vh) solid var(--bdcolor);
    border-radius: min(0.5vw, 1vh) 0 0 min(0.5vw, 1vh);
    box-shadow: 0 0 0 min(0.2vw, 0.4vh) #5a4a727a, min(0.1vw, 0.2vh) min(0.15vw, 0.3vh) 0 min(0.25vw, 0.5vh) #4438588c;
}

.boss_hp-container {
    --outline_color: #8055b9;
    --outline_width: 0.25;
    --plus_ow: calc(var(--outline_width) * min(0.5vw, 1vh));
    --minus_ow: calc(var(--outline_width) * min(-0.5vw, -1vh));
    width: 70%;
    height: auto;
    aspect-ratio: 7.5;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #8a8ae9ad, #8a8ae9);
    border: min(0.2vw, 0.4vh) solid white;
    box-shadow: inset 0 0 min(0.05vw, 0.1vh) min(0.15vw, 0.3vh) #8055b9, min(0.25vw, 0.5vh) min(0.25vw, 0.5vh) min(0.25vw, 0.5vh) 0 #443858c2;
    transform: skewX(-3deg);
    position: absolute;
    bottom: 0;
    left: 22%;
    z-index: 0;
    translate: 0 66%;
    visibility: visible;
}

.boss-container .boss_hp-container {
    right: 22%;
    left: unset;
    transform: skewX(3deg);

    .boss_hp-title,
    .boss_hp_gauge,
    .boss_hp_value {
        transform: skewX(-3deg);
    }
}

.boss_hp-title,
.boss_hp_value {
    width: 19%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Mikado";
    font-size: min(1.75vw, 3.5vh);
    color: white;
    text-shadow: var(--plus_ow) var(--plus_ow) 0 var(--outline_color),
        var(--minus_ow) var(--minus_ow) 0 var(--outline_color),
        var(--plus_ow) var(--minus_ow) 0 var(--outline_color),
        var(--minus_ow) var(--plus_ow) 0 var(--outline_color);
    position: relative;
}

.boss_hp_value::before {
    content: "???";
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Mikado";
    font-size: min(1.75vw, 3.5vh);
    color: white;
    text-shadow: var(--plus_ow) var(--plus_ow) 0 var(--outline_color),
        var(--minus_ow) var(--minus_ow) 0 var(--outline_color),
        var(--plus_ow) var(--minus_ow) 0 var(--outline_color),
        var(--minus_ow) var(--plus_ow) 0 var(--outline_color);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    visibility: hidden;
}

.boss_hp_gauge-container {
    width: 62%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boss_hp_gauge {
    --ratio: 0;
    width: 95%;
    height: 70%;
    background: linear-gradient(0deg, #3d3c3c, #020202);
    border: min(0.15vw, 0.3vh) solid #5a5a5a94;
    position: relative;
    transform: skewX(3deg);
}

.boss_hp_gauge::before {
    content: "?";
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Mikado";
    font-size: min(1.5vw, 3vh);
    color: white;
    text-shadow: var(--plus_ow) var(--plus_ow) 0 var(--outline_color),
        var(--minus_ow) var(--minus_ow) 0 var(--outline_color),
        var(--plus_ow) var(--minus_ow) 0 var(--outline_color),
        var(--minus_ow) var(--plus_ow) 0 var(--outline_color);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    visibility: hidden;
}

.boss_hp_gauge::after {
    content: "";
    width: calc(var(--ratio) * 100%);
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--h), var(--s), var(--cb)), hsl(var(--h), var(--s), var(--ct)));
    background: linear-gradient(180deg, #15a715, #ddd7d7, #30b730, #43cf43, #37f537);
    box-shadow: inset 0 min(-0.05vw, -0.1vh) min(0.05vw, 0.1vh) min(0.1vw, 0.2vh) #5b5a5a5e;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0s;
}

.boss_hp_gauge::after {
    background: linear-gradient(180deg, #15a715, #ddd7d7, #30b730, #43cf43, #37f537);
}

.boss_hp_gauge.alert::after,
.boss_hp_gauge.urgent::after {
    animation-name: alert;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.boss_hp_gauge.alert::after {
    animation-duration: 0.75s;
}

.boss_hp_gauge.urgent::after {
    animation-duration: 0.375s;
}

@keyframes alert {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0.2
    }
}