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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    text-align: center;
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.input-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease;
}

#telegramInput {
    padding: 15px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#telegramInput:focus {
    outline: none;
    transform: scale(1.05);
}

.spin-button {
    padding: 15px 60px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto 50px;
    animation: fadeInUp 1s ease;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ff6b6b;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}

.winners-section {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fadeIn 1.2s ease;
}

.winners-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
}

.winners-list {
    max-height: 400px;
    overflow-y: auto;
}

.winner-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    animation: slideIn 0.5s ease;
}

.winner-item.zonk {
    border-left-color: #ff6b6b;
}

.winner-item .time {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.winner-item .info {
    font-weight: bold;
    color: #333;
}

.winner-item .prize {
    color: #667eea;
    font-size: 1.1rem;
}

.winner-item.zonk .prize {
    color: #ff6b6b;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: zoomIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confettiFall 3s linear forwards;
}

#modalTitle {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #667eea;
}

#modalMessage {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #333;
}

.telegram-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.telegram-btn:hover {
    background: #006699;
    transform: translateY(-2px);
}

.small-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.close-btn {
    padding: 10px 30px;
    background: #ddd;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ccc;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: bottom 0.4s ease;
}

.toast.show {
    bottom: 30px;
}

.toast.error {
    background: #ff6b6b;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .wheel-container {
        width: 350px;
        height: 350px;
    }
    
    .spin-button {
        font-size: 1.1rem;
        padding: 12px 40px;
    }
}