/* Main Container */
.lotto-live-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: radial-gradient(circle at center, #1a2a6c, #b21f1f, #fdbb2d); /* Deep rich TV background */
    background: radial-gradient(circle at center, #2b32b2, #1488cc); /* Cleaner "Mifal Hapais" Blue vibe */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Stages */
.lotto-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 1;
    padding: 20px;
}

.lotto-stage.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Typography */
.lotto-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    color: #fff;
}

.lotto-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Upload Area */
.lotto-dropzone {
    border: 3px dashed rgba(255,255,255,0.4);
    border-radius: 15px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lotto-dropzone:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

.lotto-dropzone i {
    font-size: 3rem;
}

.lotto-file-input {
    display: none;
}

.lotto-file-info {
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.lotto-field-map {
    margin: 10px 0;
    text-align: left;
}

.lotto-field-map label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.lotto-col-select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
}

/* Buttons */
.lotto-btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a2a6c;
    background: #FFC107; /* Default Gold */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.lotto-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.lotto-btn:active {
    transform: translateY(1px);
}

/* Running Stage */
.lotto-running-content {
    position: relative;
    z-index: 5;
}

.lotto-spinner-text {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.8);
    animation: pulseText 0.1s infinite alternate;
}

@keyframes pulseText {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

/* Floating Elements (3D Icons) */
.lotto-floater {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.4));
    animation: floatAround 6s infinite ease-in-out;
    z-index: 2;
    pointer-events: none;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -50px) rotate(90deg); }
    50% { transform: translate(50px, 100px) rotate(180deg); }
    75% { transform: translate(-100px, 50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Winner Stage */
.lotto-winner-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    text-align: center;
    border: 5px solid #FFC107;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
}

.lotto-trophy-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.lotto-winner-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 10px 0;
    color: #1a2a6c;
}

.lotto-winner-email {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 30px;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .lotto-title { font-size: 2rem; }
    .lotto-spinner-text { font-size: 3rem; }
    .lotto-winner-name { font-size: 2rem; }
}
