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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 2rem;
  min-width: 400px;
  max-width: 500px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
}

h1 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.screen {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hidden {
  display: none !important;
}

.difficulty-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.difficulty-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1.5rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.difficulty-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.difficulty-btn .level {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.difficulty-btn .range {
  font-size: 0.9rem;
  opacity: 0.9;
}

.game-info {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.difficulty-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333;
  font-weight: 600;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #333;
  font-weight: 600;
}

.game-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#hint-text {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  min-height: 1.5rem;
}

#guess-input {
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  outline: none;
}

#guess-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

button:active {
  transform: translateY(0);
}

#new-game {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

.result-info {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

.result-info p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #333;
}

.result-info span {
  font-weight: bold;
  color: #667eea;
}

#change-difficulty {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

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

@media (max-width: 480px) {
  .container {
    min-width: 320px;
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .game-info {
    flex-direction: column;
    text-align: center;
  }
  
  .difficulty-display,
  .score-display {
    align-items: center;
  }
}