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

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

.container {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.items-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  flex-wrap: wrap;
  max-width: 400px;
  border: 2px solid #ddd;
}

.draggable-item {
  width: 50px;
  height: 50px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  transition: transform 0.1s;
}

.draggable-item:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.draggable-item.dragging {
  opacity: 0.5;
}

.draggable-item.used {
  opacity: 0.3;
  cursor: not-allowed;
}

.washer {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 20px;
  border: 2px solid #ddd;
}

.washer.drag-over {
  box-shadow: 0 10px 40px rgba(74, 144, 226, 0.5);
}

.drum {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #1a1a1a);
  overflow: hidden;
}

.clothes {
  position: absolute;
  width: 60px;
  height: 60px;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.window {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 8px solid #555;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.speed-control {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.speed-control label {
  font-size: 16px;
}

.speed-control input[type="range"] {
  width: 150px;
  cursor: pointer;
}

.speed-control input[type="range"]:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#speedValue {
  font-size: 16px;
  min-width: 45px;
}

.controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.btn {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: transform 0.1s;
  font-family: 'Noto Sans', sans-serif;
}

.btn:active:not(:disabled) {
  transform: scale(0.95);
}

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

.score {
  font-size: 20px;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.drum.spinning {
  animation: spin var(--speed) linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}