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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.game-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.header h1 {
  font-size: 1.8rem;
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.highlight {
  color: #3b82f6;
  font-weight: 600;
}

#guess {
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: white;
  color: #374151;
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

#guess:focus {
  outline: none;
  border-color: #3b82f6;
}

#submit-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 1rem;
}

#submit-btn:hover {
  background: #2563eb;
}

.result-message {
  font-size: 1rem;
  font-weight: 500;
  margin: 1rem 0;
  padding: 0.8rem;
  border-radius: 6px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-message.success {
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.result-message.high {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.result-message.low {
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fed7aa;
}

.game-stats {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
}

#reset-btn {
  background: white;
  color: #64748b;
  border: 1px solid #d1d5db;
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#reset-btn:hover {
  background: #f8fafc;
  border-color: #9ca3af;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .game-container {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .game-stats {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }
}
