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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cup-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 300px;
}

.cup {
  position: relative;
  width: 200px;
  height: 250px;
  border: 4px solid #333;
  border-top: none;
  border-radius: 0 0 20px 20px;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
}

.liquid {
  width: 100%;
  transition: height 0.4s ease;
}

.coffee {
  background: #3d2817;
  height: 50%;
}

.milk {
  background: #fff9e6;
  height: 50%;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  background: #e0e0e0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  border: none;
}

.slider-container span {
  min-width: 50px;
  text-align: right;
  font-weight: 500;
  font-size: 14px;
}

.taste-btn {
  background: #333;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
}

.taste-btn:active {
  transform: scale(0.98);
}

.result {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: slideIn 0.3s ease;
}

.result.hidden {
  display: none;
}

.result .score {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.result .message {
  font-size: 18px;
  color: #555;
  margin-bottom: 8px;
}

.result .details {
  font-size: 14px;
  color: #888;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .cup {
    width: 160px;
    height: 200px;
  }
}