/* Fortune text box overlay (whisp blessing messages) */
.fortune-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.fortune-overlay.visible {
    display: flex;
}

.fortune-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.6);
    cursor: pointer;
}

.fortune-box {
    position: relative;
    text-align: center;
    animation: fortune-appear 0.4s ease-out;
    max-width: 90vw;
    z-index: 1;
}

@keyframes fortune-appear {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.fortune-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.fortune-close:hover,
.fortune-close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}
