/* SUBCH-60 - sits on top of the hub's vaporwave stylesheet (../style.css).
   The shape is a Juno-60: a black panel between two wood cheeks, sliders in sections
   with coloured name strips, a row of lit buttons for the patch memory, a keyboard
   underneath. The colours are the site's, not Roland's. Drawn with CSS only. */
.synth-page main { max-width: 1280px; }
.intro { margin-top: 10px; }
.title { font: 400 44px/1.05 var(--f-display); margin: 6px 0 8px; text-shadow: 0 0 18px #ff71ce44; background: linear-gradient(90deg, #fff 0%, var(--pink) 45%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title span { font-family: var(--f-neon); font-size: 40px; letter-spacing: .02em; }
.lede { color: var(--muted); font-size: 16px; max-width: 820px; margin: 0; }
.lede b { color: var(--text); }
.block { margin-top: 34px; }
.small { color: var(--faint); font-size: 12px; }
code { font: 12px var(--f-mono); color: var(--yellow); }
.note { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.actions { margin-top: 14px; }
button { font-family: inherit; }
.btn { border: 0; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); filter: none; }
.panelbox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
input[type=text] { background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font: 13px var(--f-mono); }

/* ---------- the instrument ---------- */
.juno {
  display: grid; grid-template-columns: 44px 1fr 44px; margin-top: 16px;
  filter: drop-shadow(0 30px 50px #000000aa);
}
/* the wood: layered grain at slightly different angles over a warm gradient, a pink
   rim light from the site's sky so it belongs on this page */
.cheek {
  border-radius: 10px 4px 4px 10px; position: relative;
  background:
    repeating-linear-gradient(91deg, #00000033 0 1px, transparent 1px 3px, #00000018 3px 4px, transparent 4px 9px),
    repeating-linear-gradient(88.5deg, transparent 0 13px, #00000026 13px 15px, transparent 15px 29px, #ffffff0c 29px 31px, transparent 31px 47px),
    repeating-linear-gradient(90.6deg, transparent 0 5px, #00000010 5px 6px),
    linear-gradient(90deg, #2a140a 0%, #6b3a1a 14%, #925226 38%, #7a4420 58%, #55301a 82%, #2a140a 100%);
  box-shadow: inset 0 0 18px #00000099, inset 3px 0 0 #b9744355, inset -2px 0 0 #00000066, 0 0 24px #ff71ce22;
}
.cheek.r { border-radius: 4px 10px 10px 4px; transform: scaleX(-1); }
.cheek::after { content: ""; position: absolute; inset: 8px 6px; border-radius: 4px; border: 1px solid #ffffff0e; box-shadow: inset 0 0 0 1px #00000033; }
.chassis {
  background: linear-gradient(180deg, #16131f 0%, #0d0b13 12%, #0a0910 100%);
  border: 1px solid #2b2540; border-left: 0; border-right: 0;
  box-shadow: inset 0 1px 0 #ffffff14, inset 0 -1px 0 #00000088;
}

/* the top rail: logo, power, the display */
.rail { display: flex; align-items: center; gap: 18px; padding: 12px 18px 6px; flex-wrap: wrap; }
.logo { font: 400 30px/1 var(--f-display); letter-spacing: .06em; color: var(--pink); text-shadow: 0 0 8px #ff71ce99, 0 0 24px #ff71ce44; }
.logo span { color: var(--cyan); text-shadow: 0 0 8px #01cdfe99, 0 0 24px #01cdfe44; }
.logo small { display: block; font-size: 9px; letter-spacing: .34em; color: var(--muted); text-shadow: none; margin-top: 4px; }
.power { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; color: var(--muted); font: 400 10px var(--f-display); letter-spacing: .2em; text-transform: uppercase; padding: 6px 4px; }
.power i { width: 34px; height: 16px; border-radius: 3px; background: #1c1828; border: 1px solid #3a3355; position: relative; box-shadow: inset 0 2px 4px #000; }
.power i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, #8b82a8, #4b4466); transition: left .12s; }
.power.on i::after { left: 16px; background: linear-gradient(180deg, var(--mint), #05c07a); box-shadow: 0 0 10px var(--mint); }
.power.on { color: var(--mint); }
.rail-stats { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.rail-stats div { display: flex; flex-direction: column; }
.rail-stats dt { font: 400 9px var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.rail-stats dd { margin: 1px 0 0; font: 500 12px var(--f-mono); color: var(--cyan); }
.status-line { padding: 0 18px 8px; color: var(--muted); font-size: 12px; min-height: 1.4em; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn.small { height: 26px; padding: 0 10px; font-size: 10px; }
.btn.lp.on { background: linear-gradient(90deg, var(--pink), var(--purple)); color: var(--ink); border-color: transparent; box-shadow: 0 0 14px #ff71ce66; }

/* the panel: sections in a row, each a strip name over its controls */
.panel { display: flex; gap: 8px; padding: 8px 14px 12px; align-items: stretch; flex-wrap: wrap; }
.sec { --sc: var(--pink); display: flex; flex-direction: column; background: #0e0c16; border: 1px solid #221d33; border-radius: 6px; box-shadow: inset 0 1px 0 #ffffff0a; }
.sec-name { margin: 0; font: 400 10px var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); background: linear-gradient(90deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #fff)); padding: 4px 10px 3px; border-radius: 5px 5px 0 0; text-align: center; text-shadow: none; }
.controls { display: flex; gap: 2px; padding: 8px 6px 6px; align-items: flex-end; justify-content: center; flex: 1; }
.ctl { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; user-select: none; touch-action: none; outline: none; }
.c-label { background: none; border: 0; padding: 2px 2px; cursor: help; color: var(--muted); font: 400 8.5px/1.15 var(--f-display); letter-spacing: .08em; text-transform: uppercase; max-width: 44px; text-align: center; border-radius: 3px; min-height: 22px; display: flex; align-items: flex-end; justify-content: center; }
.c-label:hover { color: #fff; background: #ffffff10; }
.added .c-label::after { content: "+"; color: var(--mint); margin-left: 2px; }

/* sliders: a groove with tick marks, a cap that shows a line of the section colour */
.slider { width: 36px; }
.slider .c-label { order: 2; }
.s-track { position: relative; width: 28px; height: 118px; cursor: ns-resize; }
.s-track::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 5px; margin-left: -2.5px; background: #050409; border-radius: 3px; box-shadow: inset 0 0 3px #000, 0 0 0 1px #221d33; }
.s-scale { position: absolute; left: 2px; top: 7px; bottom: 7px; width: 6px; background: repeating-linear-gradient(180deg, #5c5478 0 1px, transparent 1px calc((118px - 14px) / 10)); opacity: .8; }
.s-scale::after { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 6px; background: inherit; }
.s-cap {
  position: absolute; left: 50%; width: 24px; height: 14px; margin-left: -12px; border-radius: 3px;
  bottom: calc(var(--pos, 0) * (118px - 14px));
  background: linear-gradient(180deg, #e9e3f5, #b9b0cf 48%, #8f86aa 52%, #6f6790); box-shadow: 0 2px 4px #000c, inset 0 1px 0 #fff8;
}
.s-cap::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: var(--sc); box-shadow: 0 0 5px var(--sc); }
.slider:focus .s-cap { outline: 1px solid var(--cyan); }
.sec-env .slider { width: 30px; }

/* slide switches: a slot with a knob at one of n positions, the labels beside it */
.switch .sw { display: flex; gap: 5px; align-items: stretch; height: calc(var(--n) * 20px); margin-bottom: 4px; }
.sw-slot { position: relative; width: 12px; background: #050409; border-radius: 3px; box-shadow: inset 0 0 3px #000, 0 0 0 1px #221d33; cursor: pointer; }
.sw-knob { position: absolute; left: 1px; width: 10px; height: 16px; border-radius: 2px; top: calc(var(--row, 0) * 20px + 2px); background: linear-gradient(180deg, #e9e3f5, #8f86aa); box-shadow: 0 1px 3px #000c; transition: top .08s; }
.sw-opts { display: flex; flex-direction: column; justify-content: space-between; }
.sw-opts button { background: none; border: 0; padding: 0 2px; height: 20px; cursor: pointer; color: var(--faint); font: 500 9px var(--f-mono); text-align: left; }
.sw-opts button.on { color: var(--sc); text-shadow: 0 0 6px var(--sc); }

/* lit buttons */
.led-btn { width: 30px; height: 30px; border-radius: 4px; border: 1px solid #2b2540; background: linear-gradient(180deg, #2a2440, #171327); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 4px #000a, inset 0 1px 0 #ffffff14; }
.led-btn:active { transform: translateY(1px); }
.led { width: 8px; height: 8px; border-radius: 50%; background: #3a3355; box-shadow: inset 0 0 2px #000; transition: background .08s, box-shadow .08s; }
.led-btn.on .led { background: var(--sc); box-shadow: 0 0 8px var(--sc), 0 0 16px var(--sc); }
.added .led-btn.on .led { background: var(--mint); box-shadow: 0 0 8px var(--mint), 0 0 16px var(--mint); }
.momentary .led-btn { height: 44px; width: 34px; }

/* the tune knob */
.knob svg { width: 46px; height: 46px; display: block; cursor: ns-resize; }
.k-body { fill: url(#knobGrad); stroke: #05040a; stroke-width: 1.5; filter: drop-shadow(0 3px 4px #000c); }
.k-ring { fill: none; stroke: #221d33; stroke-width: 1; }
.k-ptr { stroke: var(--sc); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--sc)); }

/* the bender: a lever that springs back */
.bender { width: 96px; }
.b-plate { position: relative; width: 92px; height: 44px; background: linear-gradient(180deg, #1a1628, #0d0b15); border: 1px solid #2b2540; border-radius: 6px; cursor: ew-resize; box-shadow: inset 0 1px 0 #ffffff0c; }
.b-slot { position: absolute; left: 10px; right: 10px; top: 50%; height: 6px; margin-top: -3px; background: #050409; border-radius: 3px; box-shadow: inset 0 0 3px #000; }
.b-lever { position: absolute; top: 4px; bottom: 4px; width: 18px; left: calc(50% - 9px + var(--bend, 0) * 30px); border-radius: 4px; background: linear-gradient(90deg, #6f6790, #e9e3f5 45%, #b9b0cf); box-shadow: 0 2px 4px #000c; transition: left .06s; }
.b-lever::after { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; bottom: 6px; background: var(--sc); border-radius: 2px; box-shadow: 0 0 6px var(--sc); }

/* the memory row: display + numbered buttons */
.memory { display: flex; align-items: center; gap: 10px; padding: 4px 14px 12px; flex-wrap: wrap; }
.display {
  display: flex; align-items: center; gap: 12px; min-width: 250px; height: 54px; padding: 0 12px; border-radius: 6px;
  background: linear-gradient(180deg, #060810, #0a1020); border: 1px solid #16304a; box-shadow: inset 0 0 18px #01cdfe1a, 0 0 12px #01cdfe22;
  font: 500 15px var(--f-mono); color: var(--cyan); text-shadow: 0 0 8px #01cdfe99; letter-spacing: .06em;
}
.display .num { font-size: 22px; }
.display .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.display canvas { width: 96px; height: 38px; }
.display .pencil { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 14px; padding: 2px 4px; }
.display .pencil:hover { color: var(--cyan); }
#nameInput { width: 130px; }
.mem-group { display: flex; align-items: center; gap: 3px; }
#banks, #patches { display: flex; gap: 3px; }
.mem-group .g-label { font: 400 9px var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.mem-btn { --sc: var(--yellow); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 32px; height: 36px; padding: 5px 0 0; border-radius: 4px; border: 1px solid #2b2540; background: linear-gradient(180deg, #2a2440, #171327); cursor: pointer; color: var(--muted); font: 500 11px var(--f-mono); box-shadow: 0 2px 4px #000a; }
.mem-btn.on { color: #fff; }
.mem-btn.on .led { background: var(--sc); box-shadow: 0 0 8px var(--sc), 0 0 16px var(--sc); }
#patches .mem-btn { --sc: var(--pink); }
#manual { --sc: var(--cyan); width: auto; padding: 5px 8px 0; }
#write { --sc: #ff5c5c; width: auto; padding: 5px 8px 0; }
#write.arm .led { background: #ff5c5c; box-shadow: 0 0 8px #ff5c5c; animation: blink .5s steps(2) infinite; }
@keyframes blink { to { opacity: .3; } }
.lfo-led { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--cyan) calc(var(--v, 0) * 100%), #2a2440); box-shadow: 0 0 calc(var(--v, 0) * 10px) var(--cyan); }

/* the keyboard */
.keybed-wrap { padding: 4px 14px 14px; }
.kb-bar { display: flex; align-items: center; gap: 10px; padding: 0 0 6px; color: var(--faint); font: 11px var(--f-mono); flex-wrap: wrap; }
.kb-bar b { color: var(--yellow); }
.kb-bar .oct { display: inline-flex; gap: 4px; }
.kb-bar .oct button { background: #171327; border: 1px solid #2b2540; color: var(--muted); border-radius: 4px; width: 28px; height: 24px; cursor: pointer; }
.keybed { position: relative; height: 130px; display: flex; gap: 1px; background: #05040a; padding: 0 0 4px; border-radius: 0 0 6px 6px; box-shadow: inset 0 6px 10px #000c; touch-action: none; }
.wk { flex: 1; position: relative; background: linear-gradient(180deg, #f6f0e3 0%, #ece3d2 85%, #cfc4b0 100%); border-radius: 0 0 4px 4px; box-shadow: inset -1px 0 0 #b9ae9a; }
.wk span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 9px var(--f-mono); color: #8a7f6c; pointer-events: none; }
.bk { position: absolute; top: 0; height: 60%; background: linear-gradient(180deg, #2a2340 0%, #0d0b15 70%, #1a1530 100%); border-radius: 0 0 3px 3px; z-index: 2; box-shadow: 0 3px 4px #000c; }
.wk.on { background: linear-gradient(180deg, #ffd1ee, var(--pink)); box-shadow: 0 0 14px var(--pink); }
.bk.on { background: linear-gradient(180deg, #7fe7ff, var(--cyan)); box-shadow: 0 0 14px var(--cyan); }
.wk.ring { background: linear-gradient(180deg, #f6f0e3, #f3c9e4); }
.bk.ring { background: linear-gradient(180deg, #2a2340, #1e4d5e); }
.wk.arp { box-shadow: inset 0 -6px 0 var(--yellow); }
.bk.arp { box-shadow: inset 0 -4px 0 var(--yellow); }

/* under the instrument */
.under { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.under p { margin: 0; color: var(--muted); font-size: 13px; }
.under p + p { margin-top: 8px; }
.under b { color: var(--text); }
#aboutName { color: var(--pink); }
#aboutVal { font: 500 12px var(--f-mono); color: var(--yellow); margin-left: 8px; }

/* the guide */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.g-sec h3 { --sc: var(--cyan); color: var(--sc); margin-top: 14px; }
.g-sec p { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.g-sec b { color: var(--text); font-family: var(--f-display); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.how .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.how p { color: var(--muted); font-size: 14px; }
.how h3 { margin-top: 18px; }
.how h3:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .juno { grid-template-columns: 18px 1fr 18px; }
  .cheek::after { display: none; }
  .panel { gap: 6px; padding: 6px 8px 10px; }
  .rail { padding: 10px 10px 4px; gap: 10px; }
  .logo { font-size: 22px; }
  .rail-stats { gap: 10px; }
  .memory, .keybed-wrap, .status-line { padding-left: 8px; padding-right: 8px; }
  .display { min-width: 0; flex: 1 1 100%; }
  .display canvas { display: none; }
  .under, .guide, .how .cols { grid-template-columns: 1fr; }
  .title { font-size: 34px; } .title span { font-size: 30px; }
  .keybed { height: 150px; }
  /* on a phone the panel stacks to 900 px tall: the keyboard goes above it and sticks to
     the top while the sliders scroll, so a key is always under a thumb (the SUBCHange
     lesson: anything below the rack is invisible on his phone) */
  .chassis { display: flex; flex-direction: column; }
  .keybed-wrap { order: -1; position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, #16131f, #0d0b13); padding-top: 8px; box-shadow: 0 8px 20px #000c; }
  .rail { order: -2; }
  .status-line { order: 0; }
}
