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

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

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

.lcd-panel {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#display {
  display: block;
  background: #0a0a0a;
  border-radius: 8px;
  image-rendering: pixelated;
}

.controls {
  width: 100%;
}

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

.speed-control label,
.color-control label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.speed-control select,
.color-control select {
  background: #222;
  border: none;
  color: #fff;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  outline: none;
}

.speed-control select:hover,
.color-control select:hover {
  background: #333;
}

.floor-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.floor-buttons.dragging {
  cursor: grabbing;
}

.floor-buttons::-webkit-scrollbar {
  display: none;
}

.floor-btn {
  background: #222;
  border: none;
  color: #fff;
  padding: 15px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans', sans-serif;
}

.floor-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

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

.floor-btn.active {
  background: #4a90e2;
}

@media (max-width: 480px) {
  .floor-buttons {
    max-height: 400px;
  }
}