.magic-fortune-container {
    text-align: center;
    font-family: 'Georgia', serif;
    margin: 40px 0;
}

.magic-ball-visual {
    width: 360px;           /* было 300px */
    height: 360px;          /* было 300px */
    margin: 0 auto 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    
    background-image: url('../images/magic-ball.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    
    animation: pulse 2.5s infinite ease-in-out;
}

.magic-ball-visual:hover {
    transform: scale(1.03);
    animation: none;
}

.magic-ball-visual:active {
    transform: scale(0.98);
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(100, 255, 150, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(100, 255, 150, 0.7));
    }
}

.magic-ball-inner {
    position: absolute;
    top: 40%;
    left: 52%;
    transform: translateX(-50%);
    width: 60%;
    height: 22%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;       /* было 7px 10px */
    box-sizing: border-box;
    z-index: 2;
}

.magic-ball-overlay {
    display: none;
}

.magic-ball-result {
    color: #ffffff;
    font-size: 12px;         /* было 10px */
    line-height: 1.3;
    text-shadow: 
        0 0 5px rgba(0, 0, 0, 1),
        0 0 10px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 255, 100, 0.6),
        2px 2px 4px rgba(0, 0, 0, 1);
    margin: 0;
    opacity: 0.95;
    transition: opacity 0.3s ease;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.4px;   /* было 0.3px */
}

.magic-ball-result.has-fortune {
    opacity: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.magic-hint {
    color: #666;
    font-size: 11px;         /* было 9px */
    font-style: italic;
    margin: 0;
    transition: opacity 0.3s ease;
}

.magic-hint.faded {
    opacity: 0.5;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .magic-ball-visual {
        width: 260px;        /* было 220px */
        height: 260px;       /* было 220px */
    }
    
    .magic-ball-result {
        font-size: 10px;     /* было 9px */
    }
    
    .magic-ball-inner {
        padding: 6px 8px;    /* было 5px 7px */
    }
}