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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.subtitle {
    color: #a0a0a0;
    margin-bottom: 30px;
    font-size: 1rem;
}

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

#question {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#question::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#question:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

#shake-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

#shake-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

#shake-btn:active {
    transform: scale(0.98);
}

.ball-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    perspective: 1000px;
}

.ball {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 30% 30%, #4a4a4a 0%, #1a1a1a 50%, #000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 -20px 40px rgba(0, 0, 0, 0.4),
        inset 0 20px 40px rgba(255, 255, 255, 0.1);
    transition: transform 0.1s ease;
}

.ball.shaking {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    10% { transform: rotate(-10deg) translateX(-10px); }
    20% { transform: rotate(10deg) translateX(10px); }
    30% { transform: rotate(-10deg) translateX(-10px); }
    40% { transform: rotate(10deg) translateX(10px); }
    50% { transform: rotate(-5deg) translateX(-5px); }
    60% { transform: rotate(5deg) translateX(5px); }
    70% { transform: rotate(-3deg) translateX(-3px); }
    80% { transform: rotate(3deg) translateX(3px); }
    90% { transform: rotate(-1deg) translateX(-1px); }
}

.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #1a237e 0%, #000051 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        inset 0 5px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(26, 35, 126, 0.5);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 78px solid #1565c0;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(21, 101, 192, 0.5));
    transition: opacity 0.3s ease;
}

.triangle span {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    width: 70px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.triangle.hidden {
    opacity: 0;
}

.triangle.revealed {
    animation: fadeIn 0.5s ease forwards;
}

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

.shine {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.disclaimer {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 20px;
}

/* Mobile responsiveness */
@media (max-width: 400px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .ball {
        width: 220px;
        height: 220px;
    }
    
    .window {
        width: 100px;
        height: 100px;
    }
    
    .triangle {
        border-left: 35px solid transparent;
        border-right: 35px solid transparent;
        border-bottom: 60px solid #1565c0;
    }
    
    .triangle span {
        top: 18px;
        font-size: 0.65rem;
        width: 55px;
    }
}
