/* ガチャ結果表示専用CSS - このファイルは変更しないでください */

/* 結果モーダル基本スタイル */
#resultModal {
    position: fixed;
    inset: 0;
    background: white;
    overflow-y: auto;
    z-index: 50;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

#resultModal.hidden {
    display: none;
}

/* 結果カード */
.result-card {
    background: white;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    margin: 0;
    color: #1c1c1c;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: transform 0.5s ease;
    min-height: fit-content;
}

.result-modal-show .result-card {
    transform: scale(1);
}

/* GOT'EM タイトル（当選時） */
.result-title-won {
    text-align: center !important;
    margin-bottom: 0 !important;
}

/* GOT'EMロゴ画像 */
.gotem-logo {
    max-width: 300px !important;
    width: 100% !important;
    height: 140px !important;
    object-fit: contain !important;
    display: inline-block !important;
    margin-bottom: 0 !important;
}

/* ハズレ タイトル */
.result-title-lost {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: #6b7280 !important;
    text-align: center !important;
}

/* 景品画像（当選時） */
.result-image-won {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 250px !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    margin-bottom: 0 !important;
}

/* ハズレ画像 */
.result-image-lost {
    width: 8rem !important;
    height: 8rem !important;
    object-fit: cover !important;
    border-radius: 0.75rem !important;
    margin: 0 auto !important;
    opacity: 0.7 !important;
}

/* 景品名（当選時） */
.result-name-won {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;
    color: #1f2937 !important;
    text-align: center !important;
    line-height: 1.6 !important;
}

/* ハズレメッセージ */
.result-name-lost {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
    color: #6b7280 !important;
    text-align: center !important;
}

/* アクションボタンコンテナ */
.result-actions {
    display: flex !important;
    gap: 0.75rem !important;
    flex-direction: row !important;
    margin-top: 1rem !important;
}

@media (max-width: 640px) {
    .result-actions {
        flex-direction: column !important;
    }
}

/* アクションボタン（共通） */
.result-btn {
    flex: 1 !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 30px !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* 継続ガチャボタン */
.result-btn-continue {
    background-color: #000 !important;
    color: white !important;
}

.result-btn-continue:hover {
    background-color: #333 !important;
    transform: translateY(-1px) !important;
}

/* マイページボタン */
.result-btn-mypage {
    background-color: white !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

.result-btn-mypage:hover {
    background-color: #f5f5f5 !important;
    transform: translateY(-1px) !important;
}

/* 閉じるボタン */
.result-btn-close {
    background-color: #6b7280 !important;
    color: white !important;
}

.result-btn-close:hover {
    background-color: #4b5563 !important;
    transform: translateY(-1px) !important;
}

/* 閉じる×ボタン */
.result-close-x {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1c1c1c !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
}

.result-close-x:hover {
    opacity: 0.7 !important;
}

/* 10連結果リスト */
.bulk-results-list {
    margin-top: 1.5rem !important;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 1.5rem !important;
}

.bulk-results-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    color: #374151 !important;
    text-align: center !important;
}

.bulk-results-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bulk-result-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0.75rem !important;
    background: #f9fafb !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e5e7eb !important;
    text-align: center !important;
}

.bulk-result-item img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem !important;
}

.bulk-result-item-info {
    width: 100% !important;
}

.bulk-result-item-name {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
}

.bulk-result-item-rarity {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-top: 0.125rem !important;
}

.rarity-SSR { color: #dc2626 !important; }
.rarity-SR { color: #d97706 !important; }
.rarity-R { color: #2563eb !important; }
.rarity-N { color: #6b7280 !important; }

/* レスポンシブ調整 */
@media (max-width: 640px) {
    .result-card {
        padding: 1.5rem !important;
        margin: 0 0.5rem !important;
    }
    
    .gotem-logo {
        max-width: 300px !important;
        height: 100px !important;
    }
    
    .result-image-won {
        max-width: 250px !important;
        height: 160px !important;
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    /* 10連結果は常に2カラムを維持 */
    .bulk-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}