* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a0000 0%, #8B0000 50%, #DC143C 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.lottery-border {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border: 3px solid #FFD700;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 2s ease-in-out infinite;
}

.lottery-border:nth-child(2) {
    width: 220px;
    height: 220px;
    animation-delay: 0.5s;
}

.lottery-border:nth-child(3) {
    width: 240px;
    height: 240px;
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 0.5;
    }
}

.app-icon {
    width: 120px;
    height: 120px;
    margin: 30px auto 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    border: 3px solid #FFD700;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    padding: 10px;
}

.header h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.app-desc {
    font-size: 16px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.download-section {
    margin-bottom: 40px;
}

.download-section h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.download-card {
    background: linear-gradient(145deg, #fff 0%, #f8f8f8 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF0000, #FFD700, #FF0000);
    background-size: 200% 100%;
    animation: gradient-move 3s linear infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: #FFD700;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #8B0000;
}

.version {
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #FF0000, #DC143C);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.download-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.android-btn {
    background: linear-gradient(135deg, #FF0000 0%, #DC143C 50%, #8B0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.5);
}

.ios-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #8B0000;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5);
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.android-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.5,1.91C15.79,2.43 13.96,3.16 12,4.06C10.04,3.16 8.21,2.43 6.5,1.91C4.74,2.46 3.27,3.82 2.94,5.63L3.93,6.19C4.13,5.35 4.79,4.66 5.66,4.39C7.34,3.83 9.17,3.5 11,3.5C12.83,3.5 14.66,3.83 16.34,4.39C17.21,4.66 17.87,5.35 18.07,6.19L19.06,5.63C18.73,3.82 17.26,2.46 15.5,1.91M12,18.5C13.83,18.5 15.66,18.17 17.34,17.61C18.21,17.34 18.87,16.65 19.07,15.81L18.08,15.25C17.88,16.09 17.22,16.78 16.35,17.05C14.67,17.61 12.84,17.94 11,17.94C9.16,17.94 7.33,17.61 5.65,17.05C4.78,16.78 4.12,16.09 3.92,15.25L2.93,15.81C3.13,16.65 3.79,17.34 4.66,17.61C6.34,18.17 8.17,18.5 10,18.5H12Z" /></svg>');
}

.ios-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238B0000"><path d="M18.71,19.5C17.88,20.74 16.33,21.5 14.5,21.5C12.67,21.5 11.12,20.74 10.29,19.5L1.29,4.5C0.46,3.26 0.46,1.74 1.29,0.5C2.12,-0.74 3.67,-1.5 5.5,-1.5C7.33,-1.5 8.88,-0.74 9.71,0.5L12,4L14.29,0.5C15.12,-0.74 16.67,-1.5 18.5,-1.5C20.33,-1.5 21.88,-0.74 22.71,0.5C23.54,1.74 23.54,3.26 22.71,4.5L18.71,19.5M17,15.5C17,16.38 16.64,17.19 16,17.74V19.5C16,20.05 15.55,20.5 15,20.5H9C8.45,20.5 8,20.05 8,19.5V17.74C7.36,17.19 7,16.38 7,15.5V14H17V15.5Z" /></svg>');
}

.download-tip {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    text-align: center;
}

.tips-section {
    margin-bottom: 40px;
}

.tips-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #FFD700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tips-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #FFD700;
}

.tips-list li {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.tips-list li:before {
    content: "🎯";
    position: absolute;
    left: 0;
    top: 0;
}

.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.footer p {
    font-size: 12px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .header h1 {
        font-size: 26px;
    }
    
    .download-card {
        padding: 20px;
    }
    
    .download-btn {
        padding: 16px;
        font-size: 16px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
}

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

.download-btn:active {
    animation: pulse 0.3s ease;
}

.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading:after {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 3px solid transparent;
    border-top: 3px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lottery-ball {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FF0000 0%, #DC143C 100%);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    line-height: 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.5);
    animation: bounce 2s ease-in-out infinite;
    padding: 0 4px;
}

.lottery-ball:nth-child(1) { animation-delay: 0s; }
.lottery-ball:nth-child(2) { animation-delay: 0.3s; }
.lottery-ball:nth-child(3) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}