/* 2026-11-09 */
:root {
  color-scheme: dark;
  --bg: #101815;
  --panel: #1b2520;
  --text: #edece1;
  --dim: #a5b3a8;
  --lime: #c2f875;
  --line: #364339;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.65 system-ui,
    -apple-system,
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line);
  background: #253229;
  border-radius: 12px;
  min-height: 44px;
  padding: 9px 14px;
  touch-action: manipulation;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 25px 18px 70px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.badge {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 10px;
  color: var(--lime);
}
h1 {
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin: 32px 0 15px;
}
p {
  color: var(--dim);
}
.lead {
  max-width: 630px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 25px 0;
}
.tabs button {
  background: transparent;
  flex: 1;
}
.tabs button[aria-selected='true'] {
  background: var(--lime);
  color: #192215;
  border-color: var(--lime);
  font-weight: 800;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: var(--panel);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--lime);
  font-weight: 800;
}
h2 {
  font-size: 21px;
  margin: 8px 0 12px;
}
h3 {
  font-size: 16px;
  margin: 14px 0 7px;
}
.status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 15px;
  font-size: 12px;
}
.status strong {
  color: var(--lime);
}
.pedal {
  background: linear-gradient(130deg, #343c39, #252c29 70%);
  border: 2px solid #57615b;
  border-radius: 21px;
  padding: 24px 16px 20px;
  box-shadow:
    0 12px 0 #080e0a,
    0 20px 40px #0005;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.screw {
  position: absolute;
  font-size: 13px;
  color: #8c948d;
  top: 7px;
}
.screw.right {
  right: 10px;
}
.knobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
}
.knob-wrap {
  text-align: center;
  min-width: 0;
}
.knob {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: auto;
  background: conic-gradient(
    from 225deg,
    var(--lime) 0deg,
    var(--lime) var(--sweep),
    #536056 var(--sweep),
    #536056 270deg,
    transparent 270deg
  );
  padding: 5px;
  position: relative;
}
.dial {
  background: radial-gradient(circle at 35% 25%, #626a65, #151b18 75%);
  height: 54px;
  border-radius: 50%;
  border: 2px solid #172019;
  position: relative;
  transform: rotate(var(--angle));
  box-shadow: 0 3px 6px #0008;
}
.dial:before {
  content: '';
  position: absolute;
  background: #e8e9dd;
  width: 3px;
  height: 13px;
  left: 24px;
  top: 3px;
  border-radius: 2px;
}
.knob input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  margin: 0;
  touch-action: pan-y;
}
.knob:has(input:focus-visible) {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.knob-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: block;
  margin: 6px 0 0;
}
.value {
  font-size: 12px;
  color: #c8d3cb;
  font-variant-numeric: tabular-nums;
}
.pedal-brand {
  text-align: center;
  letter-spacing: 0.22em;
  font-size: 22px;
  font-weight: 300;
  margin: 22px 0 16px;
}
.pedal-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: #adb6ae;
}
.mini-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.mini-row button {
  padding: 8px 0;
  font-size: 9px;
  letter-spacing: 0.06em;
  min-height: 42px;
  border-radius: 22px;
  background: #181e1a;
  border-color: #77877b;
  position: relative;
}
.mini-row button.lit {
  border-color: var(--lime);
  box-shadow: 0 0 8px #c2f87535;
}
.blink {
  animation: blink 1.2s infinite;
}
@keyframes blink {
  50% {
    box-shadow: 0 0 9px var(--lime);
    border-color: var(--lime);
  }
}
.feet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 24px;
  text-align: center;
}
.leds {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 9px 0;
}
.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111a14;
  border: 1px solid #768279;
}
.led.on {
  background: var(--lime);
  box-shadow: 0 0 7px #c2f87899;
}
.foot {
  border-radius: 50%;
  width: 65px;
  height: 65px;
  padding: 0;
  background: radial-gradient(
    circle at 38% 30%,
    #e4e9e5,
    #9da9a1 60%,
    #414c45 65%,
    #abb5ad 70%,
    #424d45 80%
  );
  border: 4px solid #172019;
  color: #18261d;
  box-shadow: 0 4px 0 #0e1510;
  font-weight: 900;
  font-size: 18px;
  touch-action: none;
}
.foot:active {
  transform: translateY(3px);
}
.rotate {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  font-size: 11px;
}
.rotate button {
  padding: 0;
  min-height: 38px;
  width: 38px;
  font-size: 19px;
}
.foot-note {
  font-size: 10px;
  color: #c0cac1;
  margin-top: 6px;
}
.hint {
  font-size: 12px;
  margin: 18px 0 0;
}
.readout {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: #0d1510;
  border: 1px solid var(--line);
}
.readout p {
  margin: 5px 0 0;
  font-size: 13px;
}
#notice {
  min-height: 50px;
  color: var(--lime);
  font-size: 13px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  background: #111b14;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
}
.chip.off {
  opacity: 0.4;
}
.chip.active {
  border-color: var(--lime);
  color: var(--lime);
}
.task {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.primary {
  background: var(--lime);
  color: #172113;
  font-weight: 800;
  margin-top: 12px;
}
.progress {
  height: 4px;
  background: #38473b;
  border-radius: 4px;
  margin: 14px 0;
}
.progress span {
  display: block;
  background: var(--lime);
  height: 100%;
  transition: width 0.3s;
}
.small {
  font-size: 12px;
  color: var(--dim);
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.guide-grid p {
  margin: 7px 0;
}
.guide-grid strong {
  color: var(--text);
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 36px;
}
a {
  color: var(--lime);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--dim);
}
[hidden] {
  display: none !important;
}
.connection {
  border-left: 2px solid var(--lime);
  padding: 0 0 0 18px;
  margin: 18px 0;
}
.connection b {
  display: block;
}
.connection span {
  color: var(--dim);
  font-size: 13px;
}
.tuner {
  text-align: center;
  padding: 16px;
}
.note {
  font-size: 40px;
  color: var(--lime);
}
.holdbar {
  height: 3px;
  background: var(--lime);
  width: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 4px;
}
.mini-row button,
.foot {
  overflow: hidden;
  position: relative;
}
@media (max-width: 740px) {
  .layout,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 20px 14px 45px;
  }
  .card {
    padding: 17px;
  }
  .pedal {
    max-width: 480px;
    margin: auto;
  }
  .knobs {
    grid-template-columns: repeat(3, 1fr);
  }
  h1 {
    margin-top: 25px;
  }
  .tabs {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 8px 0;
    z-index: 5;
  }
  .badge {
    font-size: 10px;
  }
  .layout > aside {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* All hardware surfaces are CSS and inline SVG, without raster images. */
:root {
  --bg: #111213;
  --panel: #1b1d1f;
  --line: #35383b;
  --dim: #abb0b4;
  --text: #f1f1ef;
  --lime: #aee7d5;
}
main {
  max-width: 1200px;
}
.layout {
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
}
h1 {
  font-weight: 650;
}
.pedal {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  aspect-ratio: 1000/715;
  width: 100%;
  max-width: none;
  container-type: inline-size;
  overflow: visible;
  margin: 22px auto 15px;
}
.hardware-body {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 16px 12px #0009);
}
.pedal #knobs {
  position: absolute;
  inset: 0;
}
.pedal .knob-wrap {
  position: absolute;
  width: 15.8%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  height: auto;
}
.pedal .knob-wrap:hover,
.pedal .knob-wrap:focus-within {
  z-index: 7;
}
.pedal .knob-wrap:nth-child(1) {
  left: 12%;
  top: 16%;
}
.pedal .knob-wrap:nth-child(2) {
  left: 23%;
  top: 37%;
}
.pedal .knob-wrap:nth-child(3) {
  left: 41%;
  top: 37%;
}
.pedal .knob-wrap:nth-child(4) {
  left: 59%;
  top: 37%;
}
.pedal .knob-wrap:nth-child(5) {
  left: 77%;
  top: 37%;
}
.pedal .knob-wrap:nth-child(6) {
  left: 88%;
  top: 16%;
}
.pedal .knob {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 225deg,
    #aee7d5 var(--sweep),
    #747b7c var(--sweep) 270deg,
    transparent 270deg
  );
  padding: 7%;
  border-radius: 50%;
  filter: drop-shadow(0 5px 2px #0009);
}
.pedal .knob:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 225deg, transparent 0deg 6deg, #343b3d 6deg 8deg);
  mask: radial-gradient(transparent 62%, #000 63%);
  pointer-events: none;
}
.pedal .knob:after {
  content: '';
  position: absolute;
  width: 64%;
  height: 17%;
  background: #6c7274;
  bottom: -2%;
  left: 18%;
  border-radius: 35%;
  transform: rotate(0deg);
  clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
  z-index: -1;
}
.pedal .dial {
  display: block;
  position: absolute;
  inset: 13%;
  height: auto;
  width: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #454849, #212324 65%, #151718 85%);
  border: 1px solid #101214;
  box-shadow:
    inset 0 1px 1px #92969780,
    0 0 0 4px #121515,
    0 4px 5px #000b;
  transform: rotate(var(--angle));
  z-index: 1;
}
.pedal .dial:before {
  width: 3%;
  height: 28%;
  top: 7%;
  left: 48.5%;
  background: #e6e7e4;
  box-shadow: 0 0 2px #000;
  border-radius: 3px;
}
.pedal .dial:after {
  content: '';
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  background: repeating-conic-gradient(#080b0b 0deg 3deg, #3b3e3e 4deg 8deg, #171a1a 9deg 12deg);
  mask: radial-gradient(transparent 63%, #000 65%, #000 70%, transparent 72%);
  z-index: -1;
}
.pedal .knob input {
  z-index: 3;
  touch-action: none;
  border-radius: 50%;
}
.pedal .knob-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.pedal .value {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  color: #e3fff2;
  background: #18251ff5;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: clamp(11px, 2cqw, 15px);
  white-space: nowrap;
  opacity: 0;
  z-index: 8;
  pointer-events: none;
}
.pedal .knob-wrap:hover .value,
.pedal .knob-wrap:focus-within .value {
  opacity: 1;
}
.hardware-button {
  position: absolute !important;
  transform: translate(-50%, -50%);
  padding: 0;
  min-height: 0;
  border: 0;
  aspect-ratio: 1;
  touch-action: none;
  z-index: 2;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.hardware-button .metal {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: conic-gradient(from 15deg, #f9faf9, #a7adae, #f1f2f1, #6f777a, #e8ebea, #f9faf9);
  box-shadow:
    0 0 0 4.5px #111617,
    0 0 0 7.5px #9ea6a6,
    inset 0 1px 2px #fff,
    0 5px 5px #0009;
  pointer-events: none;
}
.hardware-button:focus-visible {
  outline: 2px solid #aee7d5;
  outline-offset: 0;
  border-radius: 50%;
}
.hardware-button:active .metal {
  transform: translateY(2px);
  filter: brightness(0.8);
}
.lock-ring {
  position: absolute;
  inset: -27%;
  border: 1.5px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.exit-hit.lit .lock-ring {
  border-color: #aee7d5;
  box-shadow: 0 0 6px #aee7d599;
}
.exit-hit {
  left: 32%;
  top: 16%;
  width: 7.8%;
}
.capture-hit {
  left: 50%;
  top: 16%;
  width: 7.8%;
}
.save-hit {
  left: 68%;
  top: 16%;
  width: 7.8%;
}
.bank-hit {
  left: 9.5%;
  top: 39%;
  width: 7%;
}
.fx-hit {
  left: 90.5%;
  top: 39%;
  width: 7%;
}
.pedal .hardware-button.foot {
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  height: auto;
  min-height: 0;
  background: linear-gradient(#adb5b6, #3f484b);
  box-shadow: inset 0 0 0 3px #292f30;
  filter: drop-shadow(0 6px 3px #0009);
}
.pedal .foot::before {
  content: '';
  position: absolute;
  inset: 5%;
  background: conic-gradient(#b5baba, #f3f5f4, #828889, #e8ebea, #666f71, #c8cdcc, #b5baba);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  pointer-events: none;
}
.pedal #foot1 {
  left: 9.5%;
  top: 82%;
}
.pedal #foot2 {
  left: 90.5%;
  top: 82%;
}
.pedal .foot .metal {
  inset: 19%;
  box-shadow:
    0 0 0 2px #c8cbca,
    0 0 0 6px #272d2e,
    0 0 0 8px #c1c7c7,
    inset 0 1px 2px #fff;
  outline: 1px dashed #e2e4e2;
  outline-offset: 2px;
}
.pedal .foot:active {
  transform: translate(-50%, -48%);
}
.pedal .foot:active .metal {
  transform: none;
}
.hardware-leds {
  position: absolute;
  width: 8.4%;
  height: 1%;
  margin: 0;
  justify-content: space-between;
  gap: 0;
  pointer-events: none;
}
.hardware-leds .led {
  width: 11%;
  height: 100%;
  border: 1px solid #202727;
  background: #989f9d;
  box-shadow: inset 0 1px 1px #0008;
}
.hardware-leds .led.on {
  background: #aee7d5;
  box-shadow:
    0 0 6px #96eacb,
    inset 0 0 1px #eafff4;
}
.pedal #bank-leds {
  left: 5.3%;
  top: 45%;
}
.pedal #fx-leds {
  left: 86.3%;
  top: 45%;
}
.pedal #capture-leds {
  left: 5.3%;
  top: 62.6%;
}
.pedal #ir-leds {
  left: 86.3%;
  top: 62.6%;
}
.preset-light {
  position: absolute;
  width: 8.4%;
  height: 1.4%;
  background: #8cddbd;
  border: 1px solid #25302a;
  border-radius: 10px;
  top: 67.1%;
  box-shadow: 0 0 5px #8cddbd;
}
.pedal #preset-light1 {
  left: 5.3%;
}
.pedal #preset-light2 {
  left: 86.3%;
}
.rotary-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  text-align: center;
}
.rotary-tools > div {
  background: #1b1d1f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.rotary-tools span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.rotary-tools .rotate {
  margin-top: 8px;
  justify-content: space-between;
}
.rotary-tools b {
  font-weight: 500;
}
.hint {
  line-height: 1.8;
}
.status {
  margin-bottom: 8px;
}
.card {
  background: linear-gradient(150deg, #202426, #191c1d);
}
.holdbar {
  box-shadow: 0 0 10px #b5ffe5;
  height: 5px;
  bottom: 0;
  left: 10%;
  z-index: 4;
}
.hardware-button.blink {
  animation: none;
}
.hardware-button.blink .metal {
  animation: save-pulse 1.2s infinite;
}
@keyframes save-pulse {
  50% {
    box-shadow:
      0 0 0 3px #111617,
      0 0 0 5px #aee7d5,
      0 0 12px #aee7d5;
  }
}
@media (max-width: 740px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .pedal {
    max-width: none;
  }
  .rotary-tools {
    gap: 10px;
  }
  .rotary-tools > div {
    padding: 10px;
  }
  .hardware-button:not(.foot) {
    min-width: 40px;
    min-height: 40px;
  }
  .hardware-button .metal {
    inset: 25%;
  }
  main {
    padding-top: 18px;
  }
  .status {
    font-size: 12px;
  }
  h1 {
    font-size: 34px;
    margin: 24px 0 12px;
  }
  .lead {
    font-size: 14px;
  }
  .tabs {
    margin: 18px 0;
  }
}

.welcome {
  max-width: 540px;
  width: calc(100% - 28px);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #52655e;
  border-radius: 24px;
  background: #1b2220;
  color: var(--text);
  padding: 28px;
  box-shadow: 0 25px 100px #0009;
}
.welcome::backdrop {
  background: #060b09b8;
  backdrop-filter: blur(7px);
}
.welcome h2 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 10px 0 16px;
}
.welcome p {
  font-size: 14px;
}
.welcome .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.welcome .actions button {
  flex: 1;
  white-space: nowrap;
  margin: 0;
}
.mini-lesson {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.mini-lesson > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mini-lesson b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #52675c;
  border-radius: 12px;
  color: var(--lime);
}
.mini-lesson span {
  font-size: 13px;
  color: #c0ccc5;
}
.mini-lesson strong {
  color: #f1f1ef;
}
.tour-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px 18px;
  background: #1b2521;
  border: 1px solid #3c5549;
  border-radius: 16px;
}
.tour-toolbar p {
  margin: 3px 0;
  font-size: 12px;
}
.tour-toolbar button {
  flex-shrink: 0;
  font-size: 13px;
}
.tour-toolbar strong {
  font-size: 14px;
}
.coach {
  position: sticky;
  top: 10px;
  z-index: 8;
  background: #17271f;
  border: 1px solid #759b85;
  border-radius: 18px;
  margin: 0 0 22px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px #0006;
}
.coach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.coach-top span {
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.08em;
}
.coach h2 {
  font-size: 18px;
  margin: 6px 0 2px;
}
.coach p {
  font-size: 13px;
  margin: 3px 0;
  color: #d9e5dd;
}
.coach-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}
.coach-actions button {
  min-height: 38px;
  font-size: 12px;
  padding: 6px 10px;
  margin: 0;
}
.coach-actions .primary {
  margin-left: auto;
}
.coach .progress {
  margin: 0 -1px 9px;
  height: 3px;
}
.coach .explain {
  color: #a8bcae;
  font-size: 12px;
}
#coach-feedback {
  color: #b9edca;
  font-size: 12px;
  min-height: 19px;
}
.coach-title:focus {
  outline: none;
}
.coach-target {
  outline: 3px solid #dcff97 !important;
  outline-offset: 5px !important;
  z-index: 6 !important;
  scroll-margin-top: 260px;
}
.knob-wrap.coach-target {
  border-radius: 50%;
}
.coach-target .value {
  opacity: 1;
}
.cheatsheet {
  display: grid;
  gap: 10px;
}
.cheatsheet div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cheatsheet b {
  display: block;
  font-size: 13px;
}
.cheatsheet p {
  font-size: 12px;
  margin: 3px 0;
}
.learning-recap {
  padding: 14px;
  border: 1px solid #516d5c;
  border-radius: 12px;
  margin: 12px 0;
}
.learning-recap p {
  font-size: 13px;
}
.coach.completed {
  position: relative;
}
.coach small {
  color: #afc3b5;
}
.tour-toolbar .primary {
  margin: 0;
}
.tour-terms {
  margin: 0 0 18px;
  padding: 0 4px;
}
.tour-terms summary {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
}
.tour-terms p {
  font-size: 13px;
  max-width: 700px;
}
.tour-terms b {
  color: var(--text);
}
.hint strong {
  color: var(--text);
}
@media (max-width: 740px) {
  .coach {
    top: 72px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 15px;
  }
  .coach h2 {
    font-size: 16px;
  }
  .coach p {
    font-size: 12px;
    line-height: 1.5;
  }
  .coach .explain {
    font-size: 11px;
  }
  .coach-actions {
    gap: 6px;
  }
  .coach-actions button {
    min-height: 40px;
    padding: 5px 8px;
  }
  .tour-toolbar {
    padding: 13px;
    gap: 8px;
  }
  .tour-toolbar button {
    font-size: 12px;
    padding: 7px 10px;
  }
  .welcome {
    padding: 22px;
  }
  .welcome h2 {
    font-size: 26px;
  }
  .welcome .actions {
    flex-direction: column;
  }
  .tabs {
    z-index: 10;
  }
  .coach-target {
    scroll-margin-top: 290px;
  }
}

.pedal .foot .metal {
  transform: rotate(var(--foot-angle, 0deg));
  transition: transform 0.12s ease;
}
.pedal .foot:active .metal {
  transform: translateY(2px) rotate(var(--foot-angle, 0deg));
}
.pedal .foot.dragging {
  cursor: grabbing;
}
.pedal .foot.dragging .metal {
  transition: none;
  filter: brightness(1.15);
}
.foot {
  cursor: grab;
}
.gesture-guide {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #526252;
  background: #1d2922;
  border-radius: 12px;
  padding: 11px 13px;
  margin: 12px 0;
  color: #d9e8dc;
  font-size: 12px;
}
.preset-picker {
  margin: 20px 0;
}
.preset-picker > p {
  margin: 4px 0 10px;
  font-size: 12px;
}
.preset-picker h3 {
  margin: 0;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.preset-card {
  text-align: left;
  border-radius: 12px;
  background: #202622;
  padding: 12px 10px;
  min-height: 100px;
}
.preset-card[aria-pressed='true'] {
  border: 1px solid #aee7d5;
  background: #253a30;
  box-shadow: inset 0 2px #aee7d5;
}
.preset-card small {
  display: block;
  color: var(--dim);
  font-size: 10px;
}
.preset-card b {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin: 3px 0;
}
.sound-breakdown {
  margin-top: 16px;
  border-top: 1px solid #36473c;
  padding-top: 14px;
}
.sound-breakdown h3 {
  font-size: 15px;
}
.sound-flow {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 10px 0;
}
.sound-block {
  flex: 1;
  padding: 12px;
  border: 1px solid #455a4b;
  border-radius: 12px;
  background: #17231c;
}
.sound-block > span {
  font-size: 11px;
  color: var(--lime);
  display: block;
}
.sound-block b {
  display: block;
  font-size: 14px;
}
.sound-block small {
  color: var(--dim);
  font-size: 11px;
  display: block;
}
.flow-arrow {
  align-self: center;
  color: var(--lime);
}
.combination-note {
  padding: 12px;
  background: #273a2e;
  border-radius: 10px !important;
  font-size: 13px !important;
  color: #ddf3e4 !important;
}
.combination-note.caution {
  background: #463b22;
  color: #f1dfb1 !important;
}
.basics {
  margin: 18px 0;
}
.basics summary {
  color: #dfede2;
  font-size: 14px;
}
.basics table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 12px 0;
}
.basics th,
.basics td {
  border-bottom: 1px solid #3d4c41;
  text-align: left;
  padding: 10px 5px;
  vertical-align: top;
}
.basics th {
  color: #dcedde;
}
.basics p {
  font-size: 13px;
}
.preset-note {
  font-size: 11px !important;
}
.rotary-tools > div {
  padding: 9px 12px;
}
.rotary-tools > div > span {
  font-size: 10px;
}
.hardware-button {
  -webkit-user-select: none;
  user-select: none;
}
@media (max-width: 740px) {
  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .preset-card {
    min-height: 82px;
  }
  .gesture-guide {
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
  }
  .sound-flow {
    gap: 6px;
  }
  .sound-block {
    padding: 9px;
  }
  .sound-block b {
    font-size: 12px;
  }
  .preset-note {
    line-height: 1.6;
  }
}

main {
  max-width: 800px;
  padding-top: 18px;
}
.layout {
  display: block;
}
header {
  margin-bottom: 18px;
}
.brand {
  font-size: 13px;
  letter-spacing: 0.16em;
}
header button {
  min-height: 36px;
  padding: 5px 12px;
  font-size: 12px;
  background: transparent;
}
.coach {
  position: static;
  top: auto;
  box-shadow: none;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.coach-top {
  justify-content: flex-end;
}
.coach h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.coach-actions {
  margin-top: 8px;
}
.coach #coach-feedback:empty {
  display: none;
}
.coach-target {
  scroll-margin-top: 40px;
}
.status {
  margin-bottom: 0;
  font-size: 11px;
}
.pedal {
  margin: 14px auto;
}
.preset-picker {
  margin: 12px 0;
}
.preset-picker h3 {
  font-size: 13px;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 8px;
}
.preset-card {
  min-height: 84px;
  padding: 10px;
}
.preset-card small {
  font-size: 11px;
}
.rotary-tools {
  margin-top: 14px;
}
.rotary-tools .rotate {
  margin-top: 4px;
}
.readout {
  margin-top: 14px;
  padding: 14px;
}
.sound-breakdown {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.sound-breakdown h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
}
#selection {
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 8px;
}
.basics {
  margin: 10px 0;
  padding: 10px 0;
}
.basics summary {
  font-size: 12px;
  min-height: 24px;
}
#chain {
  margin: 8px 0;
}
#effect {
  font-size: 11px;
}
#notice {
  min-height: 0;
  margin-top: 8px;
  font-size: 12px;
}
#notice:empty {
  display: none;
}
.combination-note {
  padding: 9px !important;
  font-size: 12px !important;
}
.sound-block small {
  font-size: 11px;
}
.welcome {
  max-width: 400px;
  padding: 22px;
}
.welcome h2 {
  font-size: 23px;
}
.welcome p {
  line-height: 2;
}
.welcome .actions {
  margin-top: 14px;
}
footer {
  margin-top: 24px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}
footer button {
  min-height: 32px;
  font-size: 11px;
  background: transparent;
  padding: 4px 9px;
  white-space: nowrap;
}
@media (max-width: 740px) {
  main {
    padding: 15px 14px 25px;
  }
  .coach {
    position: static;
    top: auto;
  }
  .preset-card {
    min-height: 78px;
  }
  .status {
    flex-wrap: wrap;
    gap: 3px 10px;
  }
  .coach-target {
    scroll-margin-top: 40px;
  }
}

header {
  justify-content: flex-start;
  gap: 8px;
}
header .brand {
  margin-right: auto;
}
.current-preset {
  text-align: right;
}
.current-preset strong {
  display: block;
  font-size: 20px;
  font-weight: 650;
  color: #eff9f3;
  line-height: 1.5;
}
.current-preset small {
  font-size: 11px;
  display: block;
  color: var(--dim);
}
.preset-transition {
  font-size: 13px;
  color: var(--lime);
  margin: 8px 0;
  min-height: 0;
}
.preset-transition:empty {
  display: none;
}
.preset-card b {
  font-size: 14px;
}
.preset-card small {
  font-size: 10px;
  line-height: 1.7;
}
.edit-panel {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.edit-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.edit-heading b {
  font-size: 14px;
}
.edit-heading button {
  font-size: 12px;
  min-height: 36px;
  padding: 5px 10px;
}
#edit-state {
  font-size: 12px;
  color: var(--lime);
  margin: 8px 0;
}
.state-flash {
  animation: state-flash 1.2s ease;
}
@keyframes state-flash {
  0%,
  30% {
    color: #d6ff9c;
    text-shadow: 0 0 14px #aee7d588;
  }
  100% {
    color: #eff9f3;
    text-shadow: none;
  }
}
.coach h2 {
  font-size: 15px;
  font-weight: 650;
}
.coach #task p {
  font-size: 13px;
  margin: 6px 0;
  line-height: 1.7;
}
#tuner {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 16px;
}
#notice {
  color: var(--lime);
}
@media (max-width: 740px) {
  .current-preset strong {
    font-size: 17px;
  }
  .current-preset small {
    font-size: 10px;
  }
  .preset-card b {
    font-size: 13px;
  }
  .coach #task p {
    font-size: 12px;
  }
}

.coach {
  position: relative;
  top: auto;
  z-index: auto;
  margin: 20px 0 0;
  padding: 20px;
  border-radius: 16px;
  box-shadow: none;
  background: #1a2420;
  border: 1px solid #455c50;
}
.coach #task h2 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  padding-right: 48px;
  margin: 0;
}
.coach #task p,
.coach #coach-feedback {
  font-size: 14px;
  line-height: 1.65;
}
.coach #task p {
  margin: 10px 0 0;
  color: #d6dfd9;
}
.coach #coach-feedback {
  margin: 12px 0 0;
  color: #b9edca;
}
.coach #coach-feedback:empty {
  display: none;
}
.coach .coach-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.coach .coach-actions button {
  font-size: 14px;
  line-height: 20px;
  min-height: 44px;
  padding: 11px 16px;
  margin: 0;
  border-radius: 10px;
}
.coach .coach-actions .primary {
  margin-left: auto;
}
.coach .coach-actions button:disabled {
  opacity: 0.5;
}
@media (max-width: 740px) {
  .coach {
    position: relative;
    top: auto;
    padding: 16px;
    margin-top: 16px;
  }
  .coach #task h2 {
    font-size: 16px;
  }
  .coach #task p,
  .coach #coach-feedback {
    font-size: 14px;
    line-height: 1.65;
  }
  .coach .coach-actions {
    margin-top: 16px;
  }
  .coach .coach-actions button {
    font-size: 14px;
    padding: 11px 16px;
    min-height: 44px;
  }
}

.coach #task ul {
  font-size: 14px;
  line-height: 1.65;
  color: #d6dfd9;
  margin: 12px 0;
  padding-left: 21px;
}
.coach #task li + li {
  margin-top: 5px;
}
.coach #task b {
  font-weight: 650;
  color: #edf5ef;
}
.ab-legend {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 14px;
}
.ab-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ab-legend i {
  display: inline-block;
  width: 32px;
  height: 8px;
  border-radius: 8px;
}
.a-light {
  background: #ffd236;
}
.b-light {
  background: #6954ff;
}
.coach #coach-feedback {
  overflow-wrap: anywhere;
}

.lesson-start {
  margin: 20px 0 0;
  text-align: center;
}
.lesson-start .primary {
  margin: 0;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 20px;
  min-width: 144px;
  border-radius: 10px;
}
.lesson-list h2 {
  font-size: 16px;
  line-height: 1.5;
  margin: 14px 0 8px;
}
.lesson-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
}
.lesson-list button:hover,
.lesson-list button[aria-current='step'] {
  background: #283c30;
}
.lesson-list button[aria-current='step'] {
  border-color: #647f6b;
}
.lesson-status {
  flex-shrink: 0;
  font-size: 14px;
  color: #a4b1a8;
  white-space: nowrap;
}
.lesson-status.completed {
  color: #b9edca;
}
.coach #coach-feedback {
  padding: 10px 12px;
  border-radius: 10px;
  background: #263e2f;
}
.coach #coach-feedback:empty {
  display: none;
}
@media (max-width: 740px) {
  .lesson-start {
    margin-top: 16px;
  }
  .lesson-list {
    padding: 6px 10px 12px;
  }
  .lesson-list button {
    padding: 10px 8px;
    gap: 10px;
  }
}
.lesson-list .progress-reset {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.lesson-list .progress-reset button {
  justify-content: center;
  color: #aebbb2;
  text-align: center;
  text-decoration: underline;
  border: 0;
}
.coach {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0 0;
  margin: 24px 0 0;
}
.coach #task h2 {
  padding-right: 0;
}
.coach #coach-feedback {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 12px;
}
.coach .coach-actions {
  margin-top: 20px;
}
@media (max-width: 740px) {
  .coach {
    padding: 20px 0 0;
    margin-top: 20px;
  }
  .coach .coach-actions {
    margin-top: 16px;
  }
}

main {
  padding-bottom: calc(var(--cta-height, 112px) + 24px);
}
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: 12px max(14px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom));
  background: #111815f5;
  border: 0;
  backdrop-filter: blur(16px);
}
.dock-inner {
  max-width: 764px;
  margin: 0 auto;
}
.bottom-cta .lesson-start {
  margin: 0;
  padding: 0;
}
.bottom-cta .lesson-start .primary {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 15px 16px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 12px;
  margin: 0;
}
.bottom-cta .coach-actions {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin: 0;
  border: 1px solid #526354;
  border-radius: 12px;
  overflow: hidden;
  min-height: 52px;
}
.bottom-cta .coach-actions button {
  font-size: 14px;
  line-height: 20px;
  min-height: 52px;
  padding: 15px 16px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.bottom-cta #tour-back {
  flex: 0 0 84px;
  background: transparent;
  color: #edf6f0;
  font-weight: 600;
}
.bottom-cta #next {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  background: var(--lime);
  color: #10271a;
}
.bottom-cta #next:disabled {
  background: #202522;
  color: #606962;
  opacity: 1;
}
.bottom-cta #next:not(:disabled):hover,
.bottom-cta .lesson-start button:hover {
  filter: brightness(1.06);
}
.bottom-cta #tour-back:hover {
  color: var(--lime);
  background: #ffffff0a;
}
.bottom-cta #coach-feedback {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.65;
  padding: 0;
  margin: 0 0 10px;
  color: #c9d7cd;
  background: none;
  border: 0;
  border-radius: 0;
  min-height: 0;
  overflow-wrap: anywhere;
}
.bottom-cta #coach-feedback:empty {
  display: none;
}
.bottom-cta #coach-feedback[data-kind='success'] {
  color: #c6f2d7;
}
.bottom-cta #coach-feedback[data-kind='success']:before {
  content: '✓';
  color: #aee7d5;
  font-size: 16px;
  flex-shrink: 0;
}
.coach {
  scroll-margin-bottom: calc(var(--cta-height, 112px) + 20px);
}
@media (max-width: 740px) {
  main {
    padding-bottom: calc(var(--cta-height, 112px) + 24px);
  }
  .bottom-cta {
    padding-left: 14px;
    padding-right: 14px;
  }
  .bottom-cta #tour-back {
    flex-basis: 76px;
  }
  .bottom-cta .coach-actions button {
    padding: 15px 16px;
  }
  .bottom-cta #coach-feedback {
    font-size: 14px;
  }
}

.bottom-cta .coach-actions {
  gap: 8px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
}
.bottom-cta .coach-actions button {
  border-radius: 12px;
  border: 0;
}
.bottom-cta #tour-back {
  border-radius: 12px;
}
.bottom-cta #next {
  border-radius: 12px;
}
.snackbar {
  position: fixed;
  z-index: 25;
  bottom: calc(var(--cta-height, 88px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(736px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #2b3730;
  color: #eef6f0;
  border: 1px solid #526659;
  box-shadow: 0 6px 24px #0006;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  pointer-events: none;
  animation: snackbar-in 0.18s ease-out;
}
.snackbar[data-kind='success'] {
  background: #273e30;
  border-color: #567962;
  color: #d8f5e2;
}
.snackbar[data-kind='success']:before {
  content: '✓';
  margin-right: 8px;
  color: #b9edca;
}
@keyframes snackbar-in {
  from {
    opacity: 0;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 740px) {
  .bottom-cta .coach-actions {
    gap: 8px;
  }
  .snackbar {
    font-size: 14px;
  }
}

html,
body {
  height: 100%;
  overflow: hidden;
}
main {
  height: calc(100dvh - var(--cta-height, 88px));
  width: 100%;
  padding: 14px 18px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
header {
  flex: 0 0 auto;
  min-height: 44px;
  margin-bottom: 6px;
}
#practice {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#practice > .layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#practice > .layout > div {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pedal {
  flex: 0 0 auto;
  width: min(100%, max(180px, calc((100dvh - var(--cta-height, 88px) - 252px) * 1.3986)));
  margin: 8px auto 12px;
}
.guide-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4a5b4e transparent;
  padding: 0 3px 20px 0;
  scroll-padding-top: 12px;
  -webkit-overflow-scrolling: touch;
}
.guide-scroll:focus-visible {
  outline: 1px solid #5d7665;
  outline-offset: -1px;
}
.guide-scroll .coach {
  margin: 0;
  padding: 12px 0 8px;
}
.guide-scroll #edit-panel {
  margin-top: 16px;
}
.hardware-leds {
  height: auto;
  align-items: center;
}
.hardware-leds .led {
  height: auto;
  width: 11%;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
}
.preset-light {
  height: auto;
  aspect-ratio: 8/1;
}
.control-highlight {
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  top: 82%;
  transform: translate(-50%, -50%);
  border: 2px solid #dcff97;
  outline: 4px solid #dcff9720;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8;
  box-shadow: 0 0 16px #dcff9740;
  animation: control-glow 1.5s ease-in-out infinite;
}
#foot-highlight1 {
  left: 9.5%;
}
#foot-highlight2 {
  left: 90.5%;
}
@keyframes control-glow {
  50% {
    box-shadow:
      0 0 0 6px #dcff9718,
      0 0 22px #dcff9750;
  }
}
@media (max-width: 740px) {
  main {
    height: calc(100dvh - var(--cta-height, 88px));
    padding: 10px 14px 0;
  }
  .pedal {
    margin: 6px auto 10px;
  }
  .guide-scroll .coach {
    margin: 0;
    padding: 12px 0 8px;
  }
  .control-highlight {
    border-width: 2px;
  }
}
.lesson-list {
  max-height: min(70dvh, calc(100dvh - var(--cta-height, 88px) - 80px));
}
.lesson-group {
  padding: 0;
  border-top: 0;
  margin: 5px 0;
}
.lesson-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 10px 8px;
  min-height: 44px;
  list-style: none;
  border-radius: 9px;
  background: #26342c;
}
.lesson-group > summary::-webkit-details-marker {
  display: none;
}
.lesson-group > summary > span:first-child:before {
  content: '›';
  display: inline-block;
  width: 16px;
  color: #aee7d5;
}
.lesson-group[open] > summary > span:first-child:before {
  content: '⌄';
}
.lesson-group > button {
  padding-left: 24px !important;
}
.rear-panel {
  flex: 0 0 auto;
  position: relative;
  padding: 30px 18px 22px;
  background: linear-gradient(#7a8386, #434b4e);
  border: 3px solid #b8bfbd;
  border-radius: 16px;
  margin: 12px 0 16px;
  box-shadow: 0 7px 0 #242b2c;
}
.rear-label {
  position: absolute;
  top: 5px;
  left: 16px;
  color: #edf2ed;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.rear-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-around;
}
.rear-port {
  text-align: center;
  font-size: 9px;
  color: #f3f5ef;
}
.rear-port span {
  display: block;
}
.rear-port i {
  display: block;
  width: 26px;
  aspect-ratio: 1;
  margin: 8px auto 0;
  border: 5px solid #b4bdbc;
  border-radius: 50%;
  background: #121718;
  box-shadow: 0 0 0 2px #343d3f;
}
.rear-hp {
  font-size: 11px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f3f5ef;
  min-width: 90px;
}
.rear-hp input {
  width: 100%;
  accent-color: #c7dfd0;
  min-height: 32px;
}
.rear-hp output {
  font-size: 11px;
}
.rear-controls button {
  font-size: 10px;
  padding: 7px;
  min-height: 44px;
  background: #27302d;
}
.rear-controls button span {
  display: block;
  color: var(--lime);
}
.device-status {
  padding: 8px 0;
  font-size: 14px;
  color: #cce7d5;
  border-top: 1px solid #34483b;
  margin-top: 8px;
}
.rear-hp.coach-target {
  outline-offset: 5px !important;
  border-radius: 8px;
}
@media (max-width: 480px) {
  .rear-controls {
    gap: 8px;
    flex-wrap: wrap;
  }
  .rear-port {
    font-size: 8px;
  }
  .rear-port i {
    width: 22px;
  }
  .rear-panel {
    padding: 28px 10px 16px;
  }
  .rear-hp {
    min-width: 100px;
  }
}

.rear-panel {
  position: relative;
  container-type: inline-size;
  flex: 0 0 auto;
  aspect-ratio: 1000/430;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 6px auto 14px;
  background: none;
  box-shadow: none;
  max-width: 764px;
  filter: drop-shadow(0 9px 7px #0007);
}
#rear-face-view,
#side-face-view {
  width: 100%;
  height: 100%;
  position: relative;
}
.rear-hardware,
.side-hardware {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.rear-panel[data-view='side'] {
  aspect-ratio: 780/470;
  width: min(100%, max(180px, calc((100dvh - var(--cta-height, 88px) - 252px) * 1.66)));
  max-width: 680px;
}
.rear-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rear-panel .rear-hp {
  position: absolute;
  left: 79.5%;
  top: 47%;
  width: 8%;
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
  transform: translate(-50%, -50%);
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(#151c1c 0deg 4deg, #58625d 5deg 8deg, #111717 9deg 12deg);
  box-shadow: 0 1px 4px #000b;
  cursor: grab;
}
.hp-knob-face {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  display: block;
  background: conic-gradient(from 10deg, #eef2e9, #8d9896, #f0f2e8, #6c7879, #d9e0d5, #eef2e9);
  box-shadow:
    inset 0 1px 1px #fff8,
    0 1px 2px #0009;
  transform: rotate(var(--hp-angle));
  pointer-events: none;
}
.hp-knob-face:before {
  content: '';
  position: absolute;
  top: 8%;
  left: 48%;
  width: 4%;
  height: 30%;
  border-radius: 2px;
  background: #36463d;
  box-shadow: 0 0 1px #fff8;
}
.rear-panel .rear-hp input {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  min-height: 0;
  opacity: 0;
  margin: 0;
  z-index: 3;
  touch-action: none;
  cursor: grab;
}
.rear-hp:has(input:focus-visible) {
  outline: 2px solid #dcff97;
  outline-offset: 5px;
}
.rear-panel #hp-value {
  position: absolute;
  top: 135%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  color: #e2f5e7;
  background: #18251ff2;
  border-radius: 5px;
  padding: 2px 6px;
  opacity: 0;
  pointer-events: none;
}
.rear-hp:hover #hp-value,
.rear-hp:focus-within #hp-value {
  opacity: 1;
}
.rear-panel .rear-push {
  position: absolute;
  width: 6%;
  height: auto;
  aspect-ratio: 1;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    #252f2c 45%,
    #0b1212 60%,
    #a6b1a7 65%,
    #28332f 72%,
    #121a19 80%
  );
  box-shadow: 0 1px 3px #0008;
  touch-action: manipulation;
}
.rear-push .push-cap {
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  display: block;
  background: conic-gradient(#eef2e8, #7d8c87, #ebf0e5, #84938c, #f1f4eb);
  box-shadow:
    inset 0 1px 1px #fff8,
    0 1px 2px #0009;
  transition:
    transform 0.12s,
    filter 0.12s;
}
.rear-push[aria-pressed='true'] .push-cap {
  transform: translateY(2px);
  filter: brightness(0.8);
  box-shadow: inset 0 1px 3px #15231bcc;
}
.rear-push:focus-visible {
  outline: 2px solid #dcff97;
  outline-offset: 4px;
}
#gnd-switch {
  left: 50.7%;
  top: 76.74%;
}
#boost-switch {
  left: 25.64%;
  top: 77.87%;
  width: 8%;
}
.rear-panel .coach-target {
  z-index: 6 !important;
}
@media (max-width: 480px) {
  .rear-panel {
    padding: 0;
    margin: 6px auto 12px;
  }
  .rear-panel .rear-hp {
    min-width: 0;
  }
  .rear-panel .rear-push {
    min-height: 0;
    min-width: 0;
  }
}

.rear-panel .rear-hp {
  width: 6.4%;
}
.rear-panel .rear-hp input {
  inset: auto;
  left: 50%;
  top: 50%;
  width: max(140%, 44px);
  height: max(140%, 44px);
  transform: translate(-50%, -50%);
}
.rear-panel .rear-push:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.tuner-led-arc {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 225deg, #45f862 0deg 270deg, transparent 270deg);
  opacity: var(--tuner-level, 0);
  transition: opacity 0.16s ease-out;
}
.pedal.tuning .knob {
  background: conic-gradient(from 225deg, #29362b 0deg 270deg, transparent 270deg);
  filter: none;
}
.pedal.tuning .tuner-led-arc {
  display: block;
}
.pedal.tuning .knob:before {
  z-index: 2;
}
.pedal.tuning .value {
  display: none;
}
.pedal.tuning .tuner-led-arc.tuner-center {
  animation: tuner-centered 0.36s ease-in-out infinite;
}
@keyframes tuner-centered {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #45f862);
  }
  50% {
    opacity: 0.15;
    filter: none;
  }
}
#tuner {
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  text-align: left;
}
#tuner .small {
  font-size: 12px;
}
#cents {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #bfcfc3;
}
.pitch-label {
  display: block;
  font-size: 14px;
}
#pitch {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: #aee7d5;
}
.pitch-scale {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  color: #aebeb2;
  margin-top: -4px;
}
.pitch-center {
  height: 9px;
  border-left: 1px solid #aee7d5;
}
.pitch-instruction {
  font-size: 14px;
  margin: 12px 0 0;
}

/* Keep device overlays below page navigation without clipping controls or shadows. */
.pedal,
.rear-panel {
  isolation: isolate;
}

.device-dim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.device-dim.is-visible {
  opacity: 1;
}
.preset-light.tempo-pulse {
  animation: tempo-beat var(--beat-duration, 0.5s) linear infinite;
}
@keyframes tempo-beat {
  0%,
  12% {
    opacity: 1;
    filter: brightness(1.3);
  }
  35%,
  100% {
    opacity: 0.15;
    filter: brightness(0.7);
  }
}
@media (prefers-reduced-motion: reduce) {
  .device-dim {
    transition: none;
  }
}
.tuner-explanation {
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}
.tuner-explanation p {
  margin: 0 0 12px;
}
.pitch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#cents {
  font-size: 14px;
  color: #aee7d5;
  font-variant-numeric: tabular-nums;
}

/* Full-screen contents keeps navigation separate from the practice surface. */
.contents-trigger,
#contents-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.contents-trigger:hover,
#contents-close:hover {
  background: #ffffff0a;
}
#contents-title:focus {
  outline: none;
}
#contents-close:focus-visible {
  outline: none;
  background: #aee7d52b;
  color: #c5f0e0;
}
.contents-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: contain;
}
.contents-screen::backdrop {
  background: var(--bg);
}
.contents-inner {
  max-width: 800px;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 14px 16px 0;
}
.contents-heading {
  flex: 0 0 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0;
  background: var(--bg);
}
.contents-heading h1 {
  margin: 0;
  font-size: 14px;
}
.contents-screen .lesson-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
  max-height: none;
}
@media (max-width: 740px) {
  .contents-inner {
    padding: 10px 16px 0;
  }
}
.contents-screen .lesson-list h2 {
  margin: 16px 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.contents-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contents-group {
  margin: 24px 0 0;
}
.contents-screen .lesson-list h2 + .contents-group {
  margin-top: 0;
}
.contents-group h3 {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  color: #98a59e;
}
.contents-steps li {
  margin: 0;
}
.contents-screen .lesson-list button {
  min-height: 40px;
  font-size: 12px;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-weight: 400;
}
.contents-screen .lesson-list button:hover {
  background: #ffffff06;
}
.contents-screen .lesson-list button[aria-current='step'] {
  background: #aee7d512;
  color: #c5f0e0;
  font-weight: 600;
}
.contents-marker {
  flex: 0 0 18px;
  text-align: left;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #85918b;
}
.contents-check {
  margin-left: auto;
  flex-shrink: 0;
  color: #aee7d5;
}
