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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
}

.game-container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: bounce 2s ease-in-out infinite alternate;
}

.instructions {
    font-size: 1.3rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.attempts-info {
    font-size: 1.1rem;
    opacity: 0.8;
}

#total-attempts {
    color: #ffd700;
    font-weight: bold;
}

.game-board {
    margin-bottom: 30px;
}

.guess-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-section {
    text-align: center;
}

.input-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #ffd700;
}

#guess-input {
    width: 100%;
    max-width: 300px;
    padding: 18px;
    font-size: 1.5rem;
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#guess-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

#guess-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.guess-btn {
    width: 100%;
    max-width: 300px;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guess-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.guess-btn:active {
    transform: translateY(0);
}

.guess-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.feedback {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.feedback.success {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    animation: success-pulse 0.5s ease;
}

.feedback.error {
    background: linear-gradient(135deg, #f44336, #ff7961);
    animation: error-shake 0.5s ease;
}

.feedback.warning {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.feedback.info {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
}

.progress-indicator {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    width: 100%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.guesses-list {
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 30px;
    word-wrap: break-word;
}

.attempts-count {
    font-size: 2rem;
    font-weight: bold;
    color: orange;
}

.attempts-count.warning {
    color: #ff9800;
}

.attempts-count.danger {
    color: #f44336;
    animation: pulse-danger 1s ease-in-out infinite;
}

.status {
    font-size: 1.3rem;
    font-weight: bold;
    color: greenyellow;
}

.status.lost {
    color: #f44336;
}

.status.won {
    color: #ffd700;
    animation: winner-glow 1s ease-in-out infinite alternate;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#new-game-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.hint-btn {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    color: white;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guess-number {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: bold;
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse-danger {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes winner-glow {
    from {
        text-shadow: 0 0 5px #ffd700;
    }
    to {
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        padding: 25px;
        margin: 10px;
    }
    
    .game-header h1 {
        font-size: 2.5rem;
    }
    
    .guess-form {
        padding: 20px;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
    }
    
    .control-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

