.ball-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.ball-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.ball {
    transition: all 0.3s ease;
}

.ball:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.generate-animation {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-center {
    animation: fadeInCenter 0.5s ease-in-out;
    transform: translateX(-50%);
}

@keyframes fadeInCenter {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 模态框样式 */
.seed-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.seed-modal.active {
    opacity: 1;
    visibility: visible;
}

.seed-canvas-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.seed-canvas {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    cursor: crosshair;
    background: #f9fafb;
    flex: 1;
    margin: 16px 0;
}

.seed-canvas:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.trail-point {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 2s ease-out forwards;
}

@keyframes trailFade {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

@media (max-width: 640px) {
    .seed-canvas-container {
        width: 95vw;
        height: 80vh;
        padding: 16px;
        overflow-y: auto;
    }
    
    /* 移动端号码显示优化 */
    .ball {
        min-width: 28px;
        min-height: 28px;
    }
    
    .copy-btn {
        padding: 6px;
    }
}

/* 复制按钮悬停效果 */
.copy-btn:hover {
    background-color: hsl(210 40% 96%);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* 成功提示样式 */
.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Lottery Selector Styles */
.lottery-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #475569; /* slate-600 */
}

.lottery-btn.active {
    background-color: white;
    color: #0f172a; /* slate-900 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lottery-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Add some responsive design for the selector */
@media (max-width: 640px) {
    #lottery-selector {
        gap: 6px;
        padding: 6px;
    }
    .lottery-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}