.character-img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    object-fit: contain;
}

#character-individual {
    bottom: 5cqh;
    height: 70cqh;
}

#character-group {
    bottom: -13;
    height: 125cqh;
}

#instruction-box {
    position: absolute;
    top: 4cqh;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    border: 0.4cqw solid var(--accent-color);
    border-radius: 2cqh;
    padding: 1.5cqh 4cqh;
    color: #ffffff;
    font-size: 3cqh;
    font-weight: bold;
    text-align: center;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#instruction-box.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#thinking-bubble-container {
    position: absolute;
    top: 13cqh;
    left: 38cqw;
    width: 35cqw;
    height: 35cqh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    opacity: 0;
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
    cursor: pointer;
    will-change: transform, opacity;
    backface-visibility: hidden;
    pointer-events: none;
}

#thinking-bubble-container.pulsing {
    pointer-events: auto;
}

#thinking-bubble-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../asset/image/ui/thinking_bubble.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 1.5cqw rgba(255, 215, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: -1;
}

#thinking-bubble-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

#thinking-bubble-container.visible {
    transform: scale(1);
    opacity: 1;
}

#thinking-bubble-container.pulsing:not(.zoomed) #thinking-bubble-wrapper {
    animation: bubblePulse 3s infinite ease-in-out;
}

#thinking-bubble-container.pulsing:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-out;
}

#thinking-bubble-container.pulsing:hover::before {
    opacity: 1;
}

#thinking-bubble-container.zoomed {
    transform: scale(10);
    opacity: 0;
}

#thinking-bubble-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 1.5s ease-in-out;
}

#thinking-bubble-container.zoomed #thinking-bubble-image {
    opacity: 0;
}

#preview-frame-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    transition: transform 1.2s ease-in-out;
    transform: translate3d(0, 0, 0) scale(0.9);
    mask-image: url('../asset/image/ui/thinking_bubble_mask.webp');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../asset/image/ui/thinking_bubble_mask.webp');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

#preview-frame-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.choices-column {
    position: absolute;
    bottom: 15cqh;
    display: flex;
    flex-direction: column;
    gap: 4cqh;
    z-index: 10;
}

#choices-left {
    left: 25cqw;
}

#choices-right {
    right: 25cqw;
}

.choice-button {
    width: 12cqw;
    height: 12cqw;
    background-color: rgba(255, 255, 255, 0.9);
    border: 0.5cqw solid var(--accent-color);
    border-radius: 20%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1cqw;
    transition: transform 0.2s;
}

.choice-button:hover {
    transform: scale(1.1);
}

.choice-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#dialogue-box {
    position: absolute;
    top: 5cqh;
    left: 25cqw;
    width: 50cqw;
    height: 12cqh;
    background-color: rgba(0, 0, 0, 0.8);
    border: 0.5cqw solid var(--accent-color);
    border-radius: 3cqh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2cqh;
    box-sizing: border-box;
    z-index: 10;
}

#dialogue-text {
    color: #ffffff;
    font-size: 3cqh;
    text-align: center;
    margin: 0;
}

#result-text-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60cqw;
    height: auto;
    object-fit: contain;
    z-index: 10;
}

#company-logo {
    position: absolute;
    top: 3cqh;
    left: 3cqw;
    width: 12cqw;
    height: auto;
    z-index: 150;
    pointer-events: none;
}