body{
    background-blend-mode: lighten;
}
.magic-8-ball {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 35% 35%, #4a4a4a 0%, #000000 60%);
    border-radius: 50%;
    position: relative;
    cursor: grab;
    perspective: 1000px;
}

.magic-8-ball.shaking {
    cursor: grabbing;
}

.eight-circle {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-out;
    user-select: none;
    pointer-events: none;
}

.eight-circle.hidden {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.eight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: bold;
    color: #000;
    font-family: Arial, sans-serif;
    line-height: 1;
    user-select: none;
}

.answer-window {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at center, #2b4b9a 0%, #1a2f60 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(180deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    opacity: 0;
    transition: transform 0.6s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
}

.answer-window.show {
    opacity: 1;
    transform: translate(-50%, -50%) rotateY(0deg);
}

.answer-triangle {
    width: 0;
    height: 0;
    border-left: 72px solid transparent;
    border-right: 72px solid transparent;
    border-bottom: 102px solid #2b4b9a;
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
}

.answer-text {
    position: absolute;
    width: 100px;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    /*top: 75%;*/
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.answer-text.show {
    opacity: 1;
}

.highlight {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
    top: 20%;
    left: 20%;
    border-radius: 50%;
}
