#st-mission-rules {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 9999;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
#st-mission-rules.show {
    opacity: 1;
    visibility: visible;
}
#st-dialogue-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#st-dialogue-box {
    position: relative;
    pointer-events: auto;
}

#st-dialogue-bg {
    width: 100%;
    max-height: 200px;
    display: block;
}

#st-text-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-height: 75%;
    text-align: justify;
    pointer-events: auto;
}

#st-character-status {
    color: var(--red);
    font-weight: bold;
    text-align: center;
}

#st-dialogue-text {
    color: #000;
    word-wrap: break-word;
}

.st-character {
    transition: opacity 0.3s ease;
    width: 45%;
    margin: -40px 0px;
}

#st-normal-center {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 280px;
    height: auto;
    z-index: 10;
}

#st-personal-center {
    position: absolute;
    width: 230px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background-image: url(/images/arena/personal_card_background.webp);
    background-position: center;
    background-repeat: no-repeat;
}

#st-card-frame {
    z-index: 1;
    width: 250px;
    aspect-ratio: 3 / 4;
    border-radius: 25px;
}

.st-card-frame-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.st-character-box.st-normal-center-box,
.st-character-box.st-personal-center-box {
    position: relative;
    width: 100%;
    text-align: center;
}

.st-character-box.st-left-box {
    position: absolute;
    width: 100%;
    bottom: 0;
}

#st-character-container {
    position: relative;
}

.st-close-btn {
    position: absolute;
    z-index: 1;
    top: -20px;
}

.st-close-btn img {
    width: 50%;
}

/* Các class không trùng với cặp 1 → giữ nguyên 100% */
.vikos-guide-bar {
    position: absolute;
    bottom: 0;
    left: 10px;
    display: flex;
    align-items: center;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
    opacity: 1;
}
.vikos-guide-bar:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
.vikos-guide-img {
    width: 50px;
}
.vikos-rewards {
    position: absolute;
    transition: all 0.4s ease;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.vikos-rewards img {
    width: 30px;
    border-radius: 50%;
}
.vikos-guide-bar.hiding {
    opacity: 0;
    transform: translateY(20px);
}
.vikos-rewards-box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}
.vikos-rewards-success {
    width: 100%;
    max-width: 100px;
    object-fit: contain;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid #ff4500;
    animation: glow 1s ease-in-out infinite;
}
.vikos-rewards-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    padding: 0 5px;
}
.vikos-rewards-text span {
    color: #fff;
    background: #fd7e1461;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3), inset 0 0 10px rgba(253, 126, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 126, 20, 0.6);
    outline: 1px solid rgba(253, 126, 20, 0.8);
}

@media (min-width: 768px) {
    .st-character {
        width: 30%;
        margin: -40px 20px;
    }
}