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

body {
    font-family: 'Comfortaa', cursive;
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 25%, #ff00ff 50%, #00ffff 75%, #ff00ff 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 192, 255, 0.95) 100%);
    border-radius: 30px;
    box-shadow: 
        0 0 40px rgba(255, 0, 255, 0.5),
        0 0 80px rgba(0, 255, 255, 0.3),
        inset 0 0 60px rgba(255, 255, 255, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    z-index: 1;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff) 1;
}

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

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: 10%;
    font-size: 2em;
    animation: sparkle 2s ease-in-out infinite;
}

header::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: 10%;
    font-size: 2em;
    animation: sparkle 2s ease-in-out infinite 1s;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    font-weight: 900;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.8));
}

header p {
    color: #333;
    font-size: 1.3em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.input-section {
    margin-bottom: 30px;
}

.numbers-group {
    margin-bottom: 30px;
}

.numbers-group h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    color: #ff00ff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 
        0 0 10px rgba(255, 0, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

.number-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.number-inputs input {
    width: 90px;
    height: 90px;
    font-size: 2em;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    border: 4px solid;
    border-image: linear-gradient(45deg, #ff00ff, #00ffff) 1;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 192, 255, 0.9));
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    color: #ff00ff;
}

.number-inputs input:focus {
    outline: none;
    border-image: linear-gradient(45deg, #ffff00, #ff00ff, #00ffff) 1;
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.8),
        0 0 50px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.8);
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 192, 1));
}

.number-inputs input::-webkit-inner-spin-button,
.number-inputs input::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

.check-button {
    width: 100%;
    padding: 20px;
    font-size: 1.5em;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 50%, #ff00ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border: 4px solid white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.6),
        0 0 60px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.check-button::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);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.check-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(255, 0, 255, 0.8),
        0 0 80px rgba(0, 255, 255, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
    border-color: #ffff00;
}

.check-button:active {
    transform: translateY(-2px) scale(0.98);
}

.check-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 192, 255, 0.7));
    border-radius: 25px;
    animation: slideIn 0.3s ease-out;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff00ff, #00ffff) 1;
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.results-section h2 {
    font-family: 'Orbitron', sans-serif;
    color: #ff00ff;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 900;
    text-shadow: 
        0 0 10px rgba(255, 0, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
}

.result-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 255, 0.95));
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff00ff, #00ffff) 1;
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.result-item.found {
    border-image: linear-gradient(45deg, #00ff00, #00ffff) 1;
    box-shadow: 
        0 0 25px rgba(0, 255, 0, 0.5),
        0 0 50px rgba(0, 255, 255, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.result-item.not-found {
    border-image: linear-gradient(45deg, #ff0080, #ff00ff) 1;
    box-shadow: 
        0 0 25px rgba(255, 0, 128, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.result-item.closest-matches {
    border-image: linear-gradient(45deg, #ffff00, #ff00ff) 1;
    background: linear-gradient(135deg, rgba(255, 255, 192, 0.9), rgba(255, 192, 255, 0.9));
    box-shadow: 
        0 0 25px rgba(255, 255, 0, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.result-item.closest-match {
    border-image: linear-gradient(45deg, #ffff00, #ff8800) 1;
    background: linear-gradient(135deg, rgba(255, 255, 224, 0.9), rgba(255, 240, 192, 0.9));
    box-shadow: 
        0 0 20px rgba(255, 255, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.result-item.closest-match h4 {
    font-family: 'Orbitron', sans-serif;
    color: #ff8800;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.8);
}

.result-item h3 {
    font-family: 'Orbitron', sans-serif;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.result-item p {
    color: #333;
    line-height: 1.6;
    font-weight: 600;
}

.result-item .date {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.result-item .numbers-display {
    margin: 15px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.result-item .number-badge {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: white;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2em;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(255, 0, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.result-item .number-badge.matched {
    background: linear-gradient(135deg, #00ff00, #00ffff);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.8),
        0 0 40px rgba(0, 255, 255, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.15);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.15); }
    50% { transform: scale(1.25); }
}

.result-item .star-badge {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ffff00, #ff8800);
    color: #333;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2em;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(255, 255, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.result-item .star-badge.matched {
    background: linear-gradient(135deg, #00ff00, #00ffff);
    color: white;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.8),
        0 0 40px rgba(0, 255, 255, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.15);
    animation: pulse 1s ease-in-out infinite;
}

.loading {
    text-align: center;
    padding: 40px;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5em;
    font-weight: 700;
    animation: gradientShift 2s ease infinite;
}

.error {
    background: linear-gradient(135deg, rgba(255, 192, 192, 0.9), rgba(255, 128, 128, 0.9));
    color: #c62828;
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff0080, #ff00ff) 1;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4);
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .number-inputs input {
        width: 70px;
        height: 70px;
        font-size: 1.5em;
    }
}
