body {
  margin: 0;
  overflow: hidden; /* Hide scrollbars */
  font-family: sans-serif;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none; /* Remove border */
}

#controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  align-items: center;
}

.top-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.color-picker {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
}
.slider {
  width: 150px;
}

.slider-label {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.btn {
  padding: 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.theme-selector-container {
  width: 100%;
}

#skinSelector {
    width: 100%;
    height: auto;
}

.dpad {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dpad button {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}

.up { top: 5px; left: 50%; transform: translateX(-50%); }
.down { bottom: 5px; left: 50%; transform: translateX(-50%); }
.left { left: 5px; top: 50%; transform: translateY(-50%); }
.right { right: 5px; top: 50%; transform: translateY(-50%); }

.center {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.btn.active {
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}