body {
  font-family: Arial;
  text-align: center;
  background: #111;
  color: white;
  font-size: 20px;
  padding-top: 20px;
  margin: 0;
}

#lessonCanvas {
  position: relative;
}

#diagram {
  display: block;
  width: 100%;
  height: auto;
}

#transportStatus {
  color: white;
  text-align: center;
  font-size: 18px;
  margin: 10px 0;
  min-height: 24px;
}

.noteDot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: black;
  z-index: 5;
  box-sizing: border-box;
}

.noteDot.barre {
  width: 26px;
  height: 150px;
  border-radius: 8px;
  background: #ff6b7a;
  transform: translate(5%);
  z-index: 5;
}

.rootBarre::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  right: 2px;
  height: 24px;
  border: 6px solid gold;
  border-radius: 10px;
  box-sizing: border-box;
  pointer-events: none;
}

#diagramArea {
  position: relative;
  width: 95vw;
  max-width: 1500px;
  margin: 10px auto;
  overflow: hidden;
  touch-action: none;
}

#diagramWrapper {
  position: relative;
  display: inline-block;
  width: min(95vw, 1500px);
}

#fretboardStack {
  position: relative;
  width: min(95vw, 1500px);
  margin: 0 auto;
}

#topFretboardContainer {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  pointer-events: none;
}

#topDiagram {
  display: block;
  width: 100%;
}

#hand {
  position: absolute;
  top: 40px;
  left: 400px; /* default horizontal position */

  width: 360px;
  border-radius: 8px;

  display: none;
  cursor: grab;
}

#handToggle {
  margin-right: 30px;
  background: #333;
  border: 2px solid #ff9900;
  border-radius: 8px;
}

.topControls {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 10px;
  z-index: 10;
}
#topControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.controlsWrap {
  width: 95vw;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}

.controls {
  margin-top: -45px;

  padding: 12px 22px;

  background: rgba(20, 20, 20, 0.85);
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  backdrop-filter: blur(4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.iconBtn {
  width: 60px;
  height: 60px;
  margin: 6px;
  font-size: 28px;
  cursor: pointer;

  border-radius: 50%;
  border: 2px solid #d9a44f;

  background: transparent;
  color: #eee;

  transition: all 0.15s ease;
}

.iconBtn:hover {
  background: #d9a44f;
  color: #111;
}

.topControls button:hover {
  transform: scale(1.05);
}

.textBtn {
  padding: 10px 16px;
  font-size: 18px;

  border-radius: 10px;
  border: 2px solid #d9a44f;

  background: transparent;
  color: #eee;

  cursor: pointer;
}

button:hover {
  transform: scale(1.2);
}

#handToggle {
  height: 60px;
  margin-right: 20px;
}

select {
  padding: 8px 12px;
  font-size: 16px;

  background: #111;
  color: #ffd27a;

  border: 2px solid #d9a44f;
  border-radius: 6px;

  outline: none;
  cursor: pointer;

  appearance: none;
}

select:hover {
  border-color: #ffcc66;
}

select::-ms-expand {
  display: none;
}

button.active {
  background: #ff9900;
  color: black;
  font-weight: bold;
  box-shadow: 0 0 10px #ff9900;
}

#stepText {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: #ddd;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 6px;
}

#keyHelp {
  position: absolute;
  top: 70px;
  right: 30px;
  background: rgba(0, 0, 0, 0.85);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #d9a44f;
  font-size: 16px;
  text-align: left;
  display: none;
  z-index: 20;
  line-height: 1.6;
}

#keyHelp p {
  margin: 4px 0;
}

#strumPanel {
  position: absolute;
  right: 10px;
  bottom: 90px;

  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

#strumPanel button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #ff8844;
  background: rgba(20, 20, 20, 0.85);
  color: #ff8844;
  font-size: 24px;
  cursor: pointer;
}

#strumPanel button.active {
  background: #ff8844;
  color: black;
}

button {
  background: #1e1e1e;
  color: #f5f5f5;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

button:hover {
  background: #2a2a2a;
}

button {
  transition: all 0.4s ease;
}
