.tutorial-toggle-wrap{
  padding: .5rem 1rem;
  position: relative;
  z-index: 10;
  font-family: inherit;
  color: inherit;
}

/* Switch layout */
.tutorial-switch{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
}

/* Visually hide checkbox but keep it focusable/clickable via label */
.tutorial-switch input{
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Track */
.tutorial-switch .slider{
  position: relative;
  width: 44px; height: 24px;
  background: #6b7280;            /* gray-500 */
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  transition: background .2s ease;
}

/* Knob */
.tutorial-switch .slider::before{
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
  transition: transform .2s ease;
}

/* Checked state */
.tutorial-switch input:checked + .slider{
  background: #0b84ff;
}
.tutorial-switch input:checked + .slider::before{
  transform: translateX(20px);
}

/* Label text */
.tutorial-switch .switch-text{
  font-size: .95rem;
}


/* Anchor */
.tutorial-on [data-help] { position: relative; }

/* Wide, subtle tooltip BELOW the element (no arrow, slightly more transparent) */
.tutorial-on [data-help]::after {
  content: attr(data-help);
  position: absolute;
  top: calc(100% + 20px);           /* below trigger */
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: block;
  box-sizing: border-box;

  /* sizing – wider but responsive */
  width: max-content;
  min-width: 260px;
  max-width: min(250px, 90vw);
  white-space: normal;
  word-break: break-word;

  /* style – subtle card */
  padding: 10px 14px;
  font-size: .9rem;
  line-height: 1.35;
  color: #f5f7fa;
  font-family: 'Lora', serif;
  background: rgba(17, 20, 24, 0.30);   /* slightly more transparent */
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(6px);

  /* interaction */
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity .15s ease, transform .15s ease;
}

/* Reveal on hover or keyboard focus */
.tutorial-on [data-help]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }


/* Put the bubble above for music controls only */
.tutorial-on .bottom-center-container [data-help]::after {
  top: auto;
  bottom: calc(100% + 20px);      /* above the button */
  transform: translateX(-50%) translateY(-4px);
}

.tutorial-bar {
  position: relative;               /* enable absolute centering */
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 12px;
  width: 100%;
  z-index: 3;
}

/* centered, auto-sized, subtle chip */
.tutorial-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* center horizontally & vertically */
  pointer-events: none;             /* don't block clicks on the toggle */


  margin-top: 2.5rem;
  visibility: hidden;               /* reserve no extra space */
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.06);

  font-family: "lora", sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.05px;

  white-space: nowrap;
  max-width: 60ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tutorial-on .tutorial-line { visibility: visible; }
