:root {
    --gray: rgb(39, 39, 39);
    --black: rgb(5, 5, 5);
    --white: rgb(235, 235, 235);
    --color: rgb(120, 25, 185);
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    padding: 10px;
}

#app {
    border: 3px solid var(--color);
    border-radius: 20px;
    padding: 10px;
    max-width: 460px;
    width: 100%;
    box-sizing: border-box;
}
.logo {
    font-family: 'Orbitron', sans-serif;
    text-align: right;
    margin-bottom: 5px;
}
.logo h1 {
    font-size: 1.5em;
    margin: 0;
}
.logo h2 {
    font-size: 0.9em;
    margin: 0;
    font-weight: normal;
}
.kit-button {
    width: 100%;
    background: var(--white);
    color: black;
    padding: 5px;
    margin-top: 5px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
}
.kit-button.ready {
    background: var(--color);
    color: white;
}
#grid {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-top: 5px;
    background: url('bg-grid.png') center center / contain no-repeat;
    position: relative;
    overflow: hidden;
    -webkit-box-shadow: inset 0 0 20px var(--color);
    -moz-box-shadow: inset 0 0 20px var(--color);
    box-shadow: inset 0 0 20px var(--color);
    border-radius: 10PX;
}
.drum {
    position: absolute;
    width: 12%;
    aspect-ratio: 1 / 1;
    background: var(--color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    cursor: grab;
    color: var(--white);
    user-select: none;
    box-shadow: 0px 0px 10px 5px var(--color);
}

/* icon inside .drum and inside mute buttons */
.drum .icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
  pointer-events: none; /* so clicks go to the parent .drum if needed */
  display: block;
}

/* mute button icon */
.mute-btn .icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
  pointer-events: none; /* let the button handle clicks */
  display: block;
  margin: auto; /* center inside the button */
}

/* keep the previous muted visual behavior for the drum container
.drum.muted {
  background-color: var(--gray) !important;
  box-shadow: none !important;
}    */

/* optional: also visually dim the icon when muted (keeps icon readable but subdued) */
.drum.muted .icon,
.mute-btn:not(.unmuted) .icon { /* buttons that are not unmuted show dimmed icon */
  filter: grayscale(100%) opacity(0.6);
}

/* icons on active buttons remain full color */
.mute-btn.unmuted .icon {
  filter: none;
}



.drum.muted {
    background-color: var(--gray) !important;
    box-shadow: none !important;
}

.mute-buttons {
    -webkit-tap-highlight-color: transparent;
    margin-top: 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.mute-btn {
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 10px;
    background: var(--gray);
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}
.mute-btn.unmuted {
    background: var(--color);
}
.transport-buttons {
    -webkit-tap-highlight-color: transparent;
    margin-top: 5px;
    display: flex;
    gap: 5px;
}
.transport-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--gray);
    color: var(--white);
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.transport-btn.active {
    background: var(--color);
}

.bpmdiv {
  display: flex;
  justify-content: space-between;
  margin-top: 5PX;
}

.bpm-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

#bpmSlider {
    flex: 1;
}

.bpm-slider {
  -webkit-appearance: none;
  width: 60%;
  height: 20px;
  background: var(--gray);
  outline: none;
  opacity: 1;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: var(--color);
  cursor: pointer;
}

.bpm-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: var(--color);
  cursor: pointer;
}
