* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: white;
    overflow: hidden;
    height: 100vh;
}

#app {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#planet-container {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #0a0a2a, #1a1a4a);
}

#ui-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    background: rgba(10, 10, 30, 0.9);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 150, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    max-width: 90%;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    color: white;
}

#ui-container p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.check-button {
    padding: 12px 24px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.check-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.check-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Стиль для комикс-облачка */
#speech-bubble {
    position: relative;
    background: rgba(20, 30, 60, 0.95);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #4CAF50;
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.3);
}

#speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #4CAF50;
}

#result {
    margin-top: 20px;
    animation: bubbleAppear 0.8s ease-out;
}

#result h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#result p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.share-button {
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-button:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background: rgba(10, 10, 30, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 150, 255, 0.3);
}

/* Анимация появления облачка */
@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Анимация пульсации для кнопки */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.check-button:not(:disabled) {
    animation: pulse 2s infinite;
}

/* Анимация ореола вокруг планеты */
@keyframes haloPulse {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
    100% { opacity: 0.3; transform: scale(1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    #ui-container {
        top: 10px;
        padding: 15px;
        min-width: 280px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    #ui-container p {
        font-size: 0.9rem;
    }
    
    #result h2 {
        font-size: 1.4rem;
    }
}