/* 占い結果モーダルスタイル */
.oracle-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.oracle-modal {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oracle-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oracle-modal-close:hover {
    color: #333;
}

.oracle-fortune-type {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* 運勢タイプ別の色 */
.oracle-modal.fortune-超大吉 .oracle-fortune-type {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oracle-modal.fortune-大吉 .oracle-fortune-type {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oracle-modal.fortune-中吉 .oracle-fortune-type {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oracle-modal.fortune-守護 .oracle-fortune-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oracle-message {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    border-left: 4px solid #667eea;
}

.oracle-advice {
    background: #fff9e6;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #ffd700;
}

.oracle-advice-title {
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 8px;
    font-size: 14px;
}

.oracle-advice-text {
    color: #5d4037;
    line-height: 1.6;
    font-size: 15px;
}

.oracle-philosophy {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #64b5f6;
}

.oracle-philosophy-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 8px;
    font-size: 14px;
}

.oracle-philosophy-text {
    color: #1a237e;
    line-height: 1.6;
    font-size: 15px;
    font-style: italic;
}

.oracle-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.oracle-detail-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.oracle-detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: bold;
}

.oracle-detail-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.oracle-lucky-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 5px auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.oracle-modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

.oracle-close-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.oracle-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.oracle-share-btn {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-right: 10px;
}

.oracle-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.4);
}

.oracle-share-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}


/* スクロールバーのスタイル */
.oracle-modal::-webkit-scrollbar {
    width: 8px;
}

.oracle-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.oracle-modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.oracle-modal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .oracle-modal {
        padding: 25px;
    }

    .oracle-fortune-type {
        font-size: 36px;
    }

    .oracle-details {
        grid-template-columns: 1fr;
    }
}