/* モーダル背景 */
.ui-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: ui-fade-in 0.3s ease-out;
}

/* モーダル本体 */
.ui-modal-content {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    width: 85%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: ui-slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #333;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .ui-modal-content {
        background: #2a2a2a;
        color: #eee;
    }
}

/* タイトル・テキスト */
.ui-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #A0C6D3;
}
@media (prefers-color-scheme: dark) {
    .ui-modal-title { color: #87b2c0; }
}

.ui-modal-message {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ui-modal-highlight {
    font-size: 1.8rem;
    font-weight: bold;
    color: #E29B45;
    margin-bottom: 20px;
}

/* ボタン */
.ui-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: #A0C6D3;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    width: 80%;
    max-width: 250px;
    margin: 10px 0;
}
.ui-btn:active {
    transform: scale(0.95);
}
.ui-btn-primary { background: #E74C3C; }
.ui-btn-secondary { background: #A0C6D3; }
.ui-btn-outline { background: transparent; border: 2px solid #ccc; color: #666; }

/* ポイント獲得エフェクト */
.ui-point-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    z-index: 10001;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: ui-point-float 1.5s ease-out forwards;
}
.ui-point-normal { color: #4db8ff; }
.ui-point-gold { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 2px 4px rgba(0,0,0,0.3); }
.ui-point-rainbow {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes ui-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ui-slide-up {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ui-point-float {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -60%) scale(1.2); }
    80% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -120%) scale(1); }
}
