/* ============ EXTRA STYLES — for v2 zine + 4-donut playzone ============ */
/* Body should scroll naturally now (full page, no canvas) */
html, body { height: auto; min-height: 100%; }
body { overflow-x: hidden; padding-bottom: 280px; }
body.pz-active .zine-root { opacity: 0 !important; pointer-events: none !important; height: 0 !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; }
body.pz-active .parallax-layer { opacity: 0 !important; pointer-events: none !important; }

/* New zine bits */
.zine-comps-intro {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: #555;
  margin: -10px 0 20px;
}

.zine-comp { padding: 0; overflow: hidden; }
.zine-comp.soon .zine-comp-cover { background: var(--tint); }
.zine-comp-head {
  position: relative;
  padding: 22px 22px 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas:
    "cover meta"
    "cover blurb"
    "cover foot";
  gap: 6px 20px;
  align-items: start;
}
.zine-comp-cover { grid-area: cover; aspect-ratio: 1; margin: 0; }
.zine-comp-meta { grid-area: meta; }
.zine-comp-blurb { grid-area: blurb; margin: 8px 0 0; }
.zine-comp-foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed #999; font-family: 'DM Mono', monospace; font-size: 11px; }
.zine-comp-tracks-count { background: var(--ink); color: var(--tint); padding: 3px 9px; border-radius: 999px; }
.zine-comp-arrow { background: var(--tint); color: var(--ink); padding: 3px 11px; border-radius: 999px; border: 1.5px solid var(--ink); }
.zine-comp-rel { font-family: 'DM Mono', monospace; font-size: 10px; color: #777; margin-top: 4px; }
.zine-comp-name { font-size: 32px; }
.zine-comp-tag { font-size: 19px; }

.zine-comp-body {
  padding: 18px 22px 22px;
  background: rgba(0, 0, 0, 0.04);
  border-top: 2px dashed var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: zine-open 0.3s ease-out;
}
@keyframes zine-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.zine-comp-trackbox {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.zine-comp-trackbox-head { font-family: 'Permanent Marker', cursive; font-size: 18px; margin-bottom: 6px; }
.zine-comp-tracklist {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}
.zine-comp-tracklist li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed #ccc;
  align-items: center;
}
.zine-comp-tracklist li:last-child { border-bottom: none; }
.zine-track-num { color: var(--tint); font-weight: 600; -webkit-text-stroke: 0.5px var(--ink); }
.zine-track-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zine-track-dur { color: #888; }
.zine-comp-bclink {
  display: inline-block;
  background: var(--tint);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
}
.zine-comp-bclink:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

.zine-soon-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  background: repeating-linear-gradient(45deg, var(--tint), var(--tint) 12px, color-mix(in srgb, var(--tint) 70%, white) 12px, color-mix(in srgb, var(--tint) 70%, white) 24px);
  border: 3px dashed var(--ink);
  border-radius: 8px;
}
.zine-soon-stamp {
  font-family: 'Permanent Marker', cursive;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 12px;
}

.zine-embed { border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); background: #fff; }

/* SoundCloud */
.zine-sc { padding: 60px 0; border-bottom: 3px dashed var(--ink); }
.zine-sc-frame { border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }

/* YT intro */
.zine-yt-intro { font-family: 'Caveat', cursive; font-size: 22px; margin: -8px 0 16px; }
.zine-yt-link {
  display: inline-block;
  margin-top: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  background: var(--ink);
  color: var(--green);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.zine-yt-link:hover { background: var(--green); color: var(--ink); }

/* Playzone CTA section */
.zine-playcta {
  margin: 60px 0 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 40px 30px;
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  position: relative;
}
.zine-playcta-inner { display: grid; grid-template-columns: 100px 1fr; gap: 22px; align-items: center; }
.zine-playcta-icon {
  font-size: 80px;
  text-align: center;
  background: var(--green);
  color: var(--ink);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  line-height: 100px;
  font-family: 'Permanent Marker', cursive;
}
.zine-playcta h3 { font-family: 'Permanent Marker', cursive; font-size: 42px; margin: 0 0 10px; color: var(--ink); }
.zine-playcta p { font-size: 17px; line-height: 1.5; margin: 0 0 30px; opacity: 0.8; }

.zine-foot-links {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 14px 0;
}
.zine-foot-links a {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}
.zine-foot-links a:hover { background: var(--yellow); }

/* (zine-sticker-5 styles live in styles.css alongside its siblings) */


/* ============ PLAYZONE v2 ============ */

.pz-root {
  width: min(1180px, 96vw);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.pz-handle {
  position: relative;
  padding: 8px 22px;
}
.pz-handle-pulse {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.05s;
}

.pz-panel {
  padding: 8px 12px 10px;
  gap: 6px;
  touch-action: none;
}
.pz-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pz-block {
  background: #161616;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #222;
}
.pz-section-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Transport & FX */
.pz-transport { flex: 1; min-width: 0; }
.pz-fx-controls { flex: 1.2; min-width: 0; }
.pz-trans-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pz-trans-row:last-child { margin-bottom: 0; }
.pz-bpm-big {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 100px;
}
.pz-bpm-big input {
  width: 44px;
  background: transparent;
  border: none;
  color: var(--green);
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  text-align: center;
  -moz-appearance: textfield;
}
.pz-bpm-big input::-webkit-outer-spin-button,
.pz-bpm-big input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pz-bpm-big span { font-size: 10px; opacity: 0.5; letter-spacing: 0.15em; }
.pz-tap {
  background: #0a0a0a;
  border: 1px solid #333;
  color: var(--yellow);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  cursor: pointer;
}
.pz-tap:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.pz-tap:active { transform: scale(0.95); }

.pz-beat-dots { display: flex; gap: 5px; margin-left: 6px; }
.pz-beat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #333;
  transition: background 0.05s, transform 0.05s;
}
.pz-beat-dot.on { background: var(--green); transform: scale(1.3); }
.pz-beat-dot.down.on { background: var(--pink); }

/* Donuts */
.pz-donuts { flex: 1; min-width: 0; }
.pz-donuts-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.pz-donuts-head .pz-section-label { margin: 0; }
.pz-donuts-help {
  flex: 1; font-family: 'DM Mono', monospace; font-size: 10px; color: #777; line-height: 1.3;
}
.pz-stopall {
  background: #0a0a0a; color: #888; border: 1px solid #2a2a2a;
  border-radius: 4px; padding: 4px 10px; cursor: pointer;
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.15s;
}
.pz-stopall:hover { color: #ff7a8a; border-color: #ff7a8a; background: #1a0a0d; }

.pz-donut-row { display: flex; gap: 14px; justify-content: space-around; }
.pz-donut {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.pz-donut-stack { position: relative; }
.pz-donut-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.55));
  transition: transform 0.08s;
  display: block;
  position: relative;
}
.pz-donut-btn:active { transform: scale(0.95); }
.pz-donut-num {
  position: absolute; top: 6px; right: 8px;
  font-family: 'DM Mono', monospace; font-size: 10px; color: #555;
  pointer-events: none;
}
.pz-donut.armed .pz-donut-btn { animation: pz-arm-pulse 0.5s ease-in-out infinite alternate; }
@keyframes pz-arm-pulse { from { filter: drop-shadow(0 0 4px var(--pink)); } to { filter: drop-shadow(0 0 14px var(--pink)); } }
.pz-donut.recording .pz-donut-btn { animation: pz-rec-pulse 1s ease-in-out infinite; }
@keyframes pz-rec-pulse { 0%, 100% { filter: drop-shadow(0 0 4px #ff7a8a); } 50% { filter: drop-shadow(0 0 14px #ff7a8a); } }
.pz-armed-pulse { animation: pz-armed-dot 0.5s ease-in-out infinite alternate; transform-origin: center; }
@keyframes pz-armed-dot { from { opacity: 0.5; } to { opacity: 1; } }

.pz-donut-meta { text-align: center; width: 100%; }
.pz-donut-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  min-height: 14px;
}
.pz-donut.recording .pz-donut-label { color: #ff7a8a; }
.pz-donut.overdub .pz-donut-label { color: var(--yellow); }
.pz-donut.playing .pz-donut-label { color: var(--green); }
.pz-donut.armed .pz-donut-label { color: var(--pink); }
.pz-donut.muted .pz-donut-label { color: #555; }

.pz-donut-meta .pz-donut-row {
  display: inline-flex; gap: 4px; justify-content: center;
}
.pz-donut-row select, .pz-donut-row button.pz-donut-mini {
  background: #0a0a0a;
  color: #aaa;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 3px 7px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
}
.pz-donut-row select:disabled { opacity: 0.5; cursor: default; }
.pz-donut-row button.pz-donut-mini:disabled { opacity: 0.3; cursor: default; }
.pz-donut-row button.pz-donut-mini:hover:not(:disabled) { color: var(--green); border-color: var(--green); }
.pz-donut-row button.pz-donut-clear:hover { color: #ff7a8a; border-color: #ff7a8a; }
.pz-clearall:hover { color: #ff7a8a; border-color: #ff7a8a; background: #1a0a0d; }

/* Voice */
.pz-voice { flex: 0 0 180px; }
.pz-voice-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pz-oct {
  display: flex; align-items: center; gap: 6px; font-size: 10px; opacity: 0.85;
  margin-top: 6px; padding-top: 6px; border-top: 1px solid #222;
}
.pz-oct button {
  background: #0a0a0a; border: 1px solid #333; color: #aaa;
  border-radius: 4px; padding: 2px 8px; font-family: inherit; cursor: pointer;
}
.pz-oct button:hover { color: var(--green); border-color: var(--green); }
.pz-mute {
  margin-top: 6px;
  display: block;
  width: 100%;
  background: #0a0a0a;
  color: #999;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  cursor: pointer;
}
.pz-mute:hover { color: var(--green); border-color: var(--green); }

/* FX row */
.pz-fx-row { width: 100%; align-items: stretch; }
.pz-fx { flex: 1 1 auto; min-width: 0; padding: 8px 10px; }
.pz-knobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 6px 10px;
  align-items: start;
  justify-content: stretch;
}
.pz-dub { align-self: center; padding: 8px 14px; }

.pz-tip {
  font-size: 10px;
  opacity: 0.5;
  line-height: 1.4;
  font-family: 'DM Mono', monospace;
  text-align: center;
  margin-top: 4px;
}

/* Make sure the bottom playzone doesn't cover content */
.zine-foot { padding-bottom: 30px; }

/* Mode pills above each donut */
.pz-mode-row {
  display: flex;
  gap: 2px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 2px;
}
.pz-mode-pill {
  background: transparent;
  color: #777;
  border: none;
  border-radius: 3px;
  padding: 1px 4px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: lowercase;
  line-height: 1.1;
}
.pz-mode-pill:hover:not(:disabled) { color: #ddd; }
.pz-mode-pill.on { background: #1f1f1f; color: var(--green); box-shadow: inset 0 0 0 1px #2a2a2a; }
.pz-mode-pill:disabled { opacity: 0.4; cursor: default; }

/* Knob with XY assign buttons */
.pz-knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}
.pz-knob-xy {
  display: flex;
  gap: 2px;
  margin-bottom: 1px;
}
.pz-xy-btn {
  width: 16px;
  height: 12px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #555;
  border-radius: 2px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.pz-xy-btn:hover { color: #aaa; border-color: #444; }
.pz-xy-btn.on.x { background: #ff7a8a; color: #000; border-color: #ff7a8a; }
.pz-xy-btn.on.y { background: #7ad0ff; color: #000; border-color: #7ad0ff; }

/* XY pad */
.pz-xy-block {
  background: #161616;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 240px;
  min-width: 0;
}
.pz-xy-axes {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.pz-xy-axis-x { color: #ff7a8a; }
.pz-xy-axis-y { color: #7ad0ff; }
.pz-xy-pad {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
}
.pz-xy-pad.active { box-shadow: inset 0 0 0 1px #444, 0 0 18px rgba(255, 122, 138, 0.15); }
.pz-xy-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 25% 25%;
}
.pz-xy-cross {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, #ff7a8a 50%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}
.pz-xy-cross.horiz {
  top: auto; left: 0; right: 0; bottom: auto; height: 1px; width: auto;
  background: linear-gradient(to right, transparent 0%, #7ad0ff 50%, transparent 100%);
}
.pz-xy-dot {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffd84d 60%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 14px rgba(255, 216, 77, 0.6);
}
.pz-xy-help {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: #555;
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Keyboard controls (above keys) */
.pz-kb-wrap { display: flex; flex-direction: column; gap: 6px; }
.pz-kb-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  background: #161616;
  border: 1px solid #222;
  border-radius: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.pz-voice-row { display: flex; gap: 4px; margin-left: auto; }

.pz-kbc-group { display: flex; align-items: center; gap: 4px; }
.pz-kbc-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
}
.pz-kbc-sel {
  background: #0a0a0a;
  color: var(--green);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 3px 6px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  cursor: pointer;
}
.pz-oct-inline { gap: 6px; padding-left: 12px; border-left: 1px solid #222; }
.pz-oct-mini {
  background: #0a0a0a;
  color: #aaa;
  border: 1px solid #333;
  width: 22px; height: 22px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.pz-oct-mini:hover { color: var(--green); border-color: var(--green); }
.pz-oct-val {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--green);
  min-width: 26px;
  text-align: center;
}

/* Layout overrides */
.pz-transport .pz-voice-row { margin-top: 0; }

.pz-loops-row { width: 100%; }
.pz-loops-row .pz-donuts { width: 100%; }

@media (max-width: 1100px) {
  .pz-donuts { min-width: 0; flex: 1 1 100%; }
  .pz-transport, .pz-voice { flex: 1; }
  .pz-knobs { justify-content: center; }
  .pz-xy-block { flex: 1 1 100%; }
}
@media (max-width: 1000px) {
  .zine-comp-head { grid-template-columns: 100px 1fr; grid-template-areas: "cover meta" "blurb blurb" "foot foot"; }
  .zine-comp-cover { width: 100px; }
  .pz-donut-row { flex-wrap: wrap; }
}

/* ── Help button + shortcuts overlay ──────────────────────────── */
.pz-panel { position: relative; }
.pz-help-btn, .pz-download-btn {
  position: absolute;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffd84d;
  border: 1px solid #2a2a2a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.pz-help-btn { right: 14px; }
.pz-download-btn { right: 50px; color: var(--green); }
.pz-help-btn:hover, .pz-download-btn:hover { background: #2a2a2a; transform: scale(1.08); }
.pz-download-btn.busy { 
  background: var(--green); 
  color: var(--ink); 
  animation: pz-btn-pulse 1s infinite alternate; 
  pointer-events: none;
}
@keyframes pz-btn-pulse {
  from { opacity: 0.6; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.1); }
}

.pz-help-overlay {

  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: pz-help-fade 0.16s ease-out;
}
@keyframes pz-help-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pz-help-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 18px 22px 22px;
  width: min(880px, 100%);
  max-height: 90%;
  overflow: auto;
  color: #eee;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}
.pz-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #232323;
}
.pz-help-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd84d;
}
.pz-help-x {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
}
.pz-help-x:hover { color: #fff; border-color: #444; }
.pz-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pz-help-col { display: flex; flex-direction: column; gap: 6px; }
.pz-help-sec {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ad0ff;
  margin-top: 8px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #1f2a33;
}
.pz-help-sec:first-child { margin-top: 0; }
.pz-help-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ccc;
  line-height: 1.4;
  padding: 2px 0;
}
.pz-help-row span { flex: 1; }
.pz-help-spacer { display: inline-block; width: 28px; }
.pz-help-fxlist { color: #888; font-size: 11px; }
.pz-help-card kbd {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 800px) {
  .pz-help-grid { grid-template-columns: 1fr; }
}

/* ── MIDI bar ─────────────────────────────────────────────────── */
.pz-midi-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-top: 8px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  font-size: 11px;
  color: #aaa;
  flex-wrap: wrap;
}
.pz-midi-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pz-midi-right { display: flex; align-items: center; gap: 10px; }
.pz-midi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a2a;
  box-shadow: inset 0 0 0 1px #1a1a1a;
}
.pz-midi-dot.on {
  background: #a8e85e;
  box-shadow: 0 0 0 2px rgba(168, 232, 94, 0.18), inset 0 0 0 1px #6db541;
}
.pz-midi-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd84d;
  font-weight: 700;
}
.pz-midi-status { color: #888; }
.pz-midi-devs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pz-midi-dev {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-size: 10px;
}
.pz-midi-dev.wavy {
  background: linear-gradient(90deg, #1a2733, #1a1a1a);
  border-color: #7ad0ff;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(122, 208, 255, 0.18);
}
.pz-midi-wave {
  display: inline-block;
  color: #7ad0ff;
  animation: pz-wavy-anim 2.4s ease-in-out infinite;
  transform-origin: center;
  font-weight: 700;
}
@keyframes pz-wavy-anim {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.pz-midi-friend {
  font-size: 10px;
  color: #ff7a8a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.pz-midi-btn {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffd84d;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}
.pz-midi-btn:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: #ffd84d;
}
.pz-midi-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Help: friend-of-findus highlight */
.pz-help-friend {
  color: #7ad0ff !important;
  background: linear-gradient(90deg, rgba(122, 208, 255, 0.08), transparent);
  padding: 4px 6px;
  border-radius: 4px;
  border-left: 2px solid #7ad0ff;
}
.pz-help-friend strong { color: #fff; }

/* ── BPM nudge buttons ────────────────────────────────────────── */
.pz-bpm-big { display: flex; align-items: center; gap: 6px; }
.pz-bpm-nudge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffd84d;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.12s, transform 0.05s;
}
.pz-bpm-nudge:hover { background: #2a2a2a; }
.pz-bpm-nudge:active { transform: scale(0.92); }

/* Help: link in friend row */
.pz-help-friend a {
  color: #7ad0ff;
  text-decoration: underline;
  text-decoration-color: rgba(122, 208, 255, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.pz-help-friend a:hover {
  text-decoration-color: #7ad0ff;
}
.pz-help-friend a strong { color: #fff; }

/* ── YouTube block: poster + thumb strip + CTA fallback ────────── */
.zine-yt-block { display: flex; flex-direction: column; gap: 14px; }

.zine-yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #000;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.zine-yt-poster:hover { transform: scale(1.005); }
.zine-yt-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.55));
}
.zine-yt-play {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: #c00;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.18s, background 0.18s;
}
.zine-yt-poster:hover .zine-yt-play { background: #fff; transform: scale(1.06); }
.zine-yt-poster-title {
  position: absolute;
  left: 18px;
  bottom: 14px;
  right: 18px;
  font-family: var(--ff-display, sans-serif);
  font-size: 22px;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  letter-spacing: 0.02em;
}

.zine-yt-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.zine-yt-thumb {
  background: transparent;
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.zine-yt-thumb:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.zine-yt-thumb.on { background: var(--yellow); }
.zine-yt-thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #111;
  border-bottom: 2px solid var(--ink);
}
.zine-yt-thumb-label {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fallback CTA when no featured videos are configured */
.zine-yt-cta {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  background: var(--paper, #faf3e3);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.zine-yt-cta-mark {
  width: 86px;
  flex: 0 0 86px;
  background: #c00;
  color: #fff;
  border: 3px solid var(--ink);
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding-left: 6px;
}
.zine-yt-cta-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zine-yt-cta-body strong {
  font-family: var(--ff-display, sans-serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.zine-yt-cta-body span { color: #333; line-height: 1.5; }
.zine-yt-cta-row { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.zine-yt-cta-btn {
  display: inline-block;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--paper, #faf3e3);
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  transition: transform 0.1s;
}
.zine-yt-cta-btn:hover { transform: translate(-1px, -1px); }
.zine-yt-cta-btn.alt { background: var(--paper, #faf3e3); color: var(--ink); }

@media (max-width: 600px) {
  .zine-yt-cta { flex-direction: column; }
  .zine-yt-cta-mark { width: 100%; height: 60px; flex-basis: auto; }
  .zine-yt-play { width: 64px; height: 64px; font-size: 28px; }
}


/* ============ PARALLAX BACKGROUND ============ */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}
.parallax-item {
  position: absolute;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.parallax-shape {
  opacity: 0.13;
  transform-origin: center;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) {
  .parallax-bg { display: none; }
}
body.parallax-paused .parallax-shape {
  opacity: 0.05;
}
/* All zine sections sit above the parallax layer */
.zine-paper > header,
.zine-paper > section,
.zine-paper > footer { position: relative; z-index: 1; }
/* Stickers stay absolute (parallax-decorated) — not promoted */

/* =================================================================
   PLAYZONE — fits any viewport without scrolling.
   The two largest tiers stay as-is. Tier 1 and below redesign the
   layout so total height ≤ 100vh on any screen.
   ================================================================= */

.pz-root.open { width: min(1180px, 100vw); }
.pz-panel { overflow: visible; }

/* Volume Sliders */
.pz-donut-vol {
  width: 100%;
  margin: 6px 0 0;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  outline: none;
}
.pz-donut-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a8e85e;
  cursor: pointer;
}
.fmm-hub-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
}
.fmm-hub-vol-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}
.fmm-hub-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Cap panel to viewport height as a hard limit; we size content to fit */
.pz-root.open { max-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.pz-root.open .pz-panel { max-height: calc(100vh - 38px); width: 100%; box-sizing: border-box; }

/* Keyboard: taller but not oversized on large screens */
.pz-kb { width: 100%; min-width: 0; box-sizing: border-box; }
.pz-key-w { min-width: 0; min-height: 105px; }
.pz-fx { padding: 8px 12px; }
.pz-donut-btn { width: auto; }
.pz-donut-btn svg { max-width: 100%; height: auto; }

/* ──────────────────────────────────────────────────────────────────
   TIER 1 ── < 1100px   layout: top row in 2x2 grid, loops + keys side-by-side
   This is the main redesign: instead of stacking sections vertically,
   we put them in a 2-col grid so vertical space is saved.
   ────────────────────────────────────────────────────────────────── */
/* ──────────────────────────────────────────────────────────────────
   THE SYSTEM ── Grid-based Layout
   ────────────────────────────────────────────────────────────────── */
.pz-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas:
    "trans trans"
    "fx    xy"
    "loops xy"
    "kb    kb";
  column-gap: 15px;
  row-gap: 12px;
  align-items: stretch;
}
.pz-transport   { grid-area: trans; display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 6px 15px; min-height: 48px; }
.pz-fx-controls { grid-area: fx; }
.pz-donuts     { grid-area: loops; }
.pz-xy-block    { 
  grid-area: xy; 
  display: flex; 
  flex-direction: column; 
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 340px;
}
.pz-kb-wrap     { grid-area: kb; }

/* Transport: lower height compact bar */
.pz-transport .pz-section-label { display: none; }
.pz-transport .pz-trans-row { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pz-transport .pz-midi-mini { margin: 0; padding: 2px 8px; }
.pz-transport .pz-mute { margin-left: auto; padding: 2px 8px; }


/* FX Rack: streamlined */
.pz-fx-controls .pz-knobs {
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 8px;
}
.pz-fx-controls .pz-knob { width: 34px !important; height: 34px !important; }

/* Square XY Pad fills its block */
.pz-xy-pad { flex: 1; width: 100%; }




.pz-key-w { min-height: 100px; }

@media (max-width: 1100px) {
  .pz-help-btn { top: 6px; right: 8px; width: 24px; height: 24px; font-size: 12px; }
  .pz-panel {
    padding: 10px 12px 12px;
    gap: 10px;
    grid-template-columns: 1fr 280px;
    grid-template-areas:
      "trans trans"
      "fx    xy"
      "loops xy"
      "kb    kb";
  }
  .pz-xy-block { aspect-ratio: 1 / 1; max-width: 280px; }
  .pz-transport { flex-wrap: wrap; padding: 6px 12px; }
  .pz-transport .pz-trans-row { gap: 10px; }


  /* Back to multi-row knobs for tablet */
  .pz-fx-controls .pz-knobs {
    grid-template-columns: repeat(5, 1fr);
  }

  .pz-block { padding: 8px 10px; }
  .pz-section-label { font-size: 8px; margin-bottom: 4px; }

  .pz-xy-block { height: auto; min-height: 140px; }
  .pz-xy-pad { aspect-ratio: 1 / 1; min-height: 140px; max-width: 200px; }




  /* Allow keyboard and loops to breathe by stacking them in Tier 2 */
  .pz-xy-block { height: auto; min-height: 180px; }
  .pz-xy-pad { aspect-ratio: 2 / 1; min-height: 100px; }
  .pz-key-w { min-height: 80px; }
  .pz-donuts { width: 100%; }
  .pz-donut-row { gap: 20px; justify-content: center; }
  .pz-donut-stack svg { max-width: 72px; max-height: 72px; }


  /* Transport: super compact */
  .pz-transport .pz-trans-row { margin-bottom: 4px; gap: 6px; }
  .pz-bpm-big { padding: 2px 6px; }
  .pz-bpm-big input { width: 38px; font-size: 22px; line-height: 1; }
  .pz-bpm-big span { font-size: 8px; }
  .pz-tap { padding: 4px 8px; font-size: 9px; }
  .pz-pill { padding: 3px 8px; font-size: 10px; }
  .pz-voice-row { flex-wrap: wrap; gap: 3px; }
  .pz-mute { padding: 3px 6px; font-size: 9px; margin-top: 4px; }
  .pz-beat-dot { width: 6px; height: 6px; }

  /* FX: 5 cols × 2 rows (9 knobs fit) */
  .pz-knobs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    row-gap: 3px;
  }
  .pz-knob-wrap { gap: 1px; }
  .pz-knob-label { font-size: 8.5px; }
  .pz-knob { width: 30px !important; height: 30px !important; }
  .pz-knob svg { width: 30px !important; height: 30px !important; }
  .pz-xy-btn { width: 14px !important; height: 14px !important; font-size: 7px !important; }

  /* XY pad: tiny */
  .pz-xy-block { padding: 6px 8px; height: 100%; display: flex; flex-direction: column; }
  .pz-xy-axes { font-size: 8px; margin-bottom: 3px; }
  .pz-xy-pad { flex: 1; aspect-ratio: unset; min-height: 120px; }
  .pz-xy-help { font-size: 8px; margin-top: 3px; }

  /* KEYBOARD: smaller */
  .pz-kb-controls { padding: 4px 8px; gap: 6px; flex-wrap: wrap; justify-content: space-between; }
  .pz-voice-row { order: 2; width: 100%; justify-content: center; margin-top: 4px; }
  .pz-kbc-lbl { font-size: 8px; }
  .pz-kbc-sel { padding: 2px 4px; font-size: 9px; }
  .pz-oct-inline { padding-left: 6px; gap: 4px; }
  .pz-oct-mini { width: 18px; height: 18px; font-size: 11px; }
  .pz-oct-val { font-size: 10px; min-width: 22px; }
  .pz-key-w { min-height: 80px; }

  .pz-keylabel { font-size: 8px; }
  .pz-notelabel { font-size: 7px; top: 4px; left: 4px; }

  /* DONUTS: 4 in a row, much smaller */
  .pz-donuts-head { flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
  .pz-donuts-help { display: none; }
  .pz-donut-row { gap: 6px; }
  .pz-donut { gap: 3px; }
  .pz-donut-stack svg { max-width: 64px; max-height: 64px; }
  .pz-mode-row { padding: 1px; }
  .pz-mode-pill { font-size: 8px; padding: 1px 3px; }
  .pz-donut-label { font-size: 9px; }
  .pz-donut-row select, .pz-donut-row button.pz-donut-mini { padding: 1px 4px; font-size: 9px; }
  .pz-stopall { font-size: 9px; padding: 3px 7px; }

  /* MIDI bar */
  .pz-midi-bar { padding: 4px 10px; font-size: 10px; }
}

@media (max-width: 880px) {
  .pz-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    grid-template-areas:
      "trans trans"
      "fx    xy"
      "loops xy"
      "kb    kb";
    column-gap: 10px;
    row-gap: 10px;
  }
  .pz-xy-block { aspect-ratio: 1 / 1; max-width: 220px; }




  
  .pz-transport { padding: 8px 12px; }
  .pz-fx-controls { padding: 8px 12px; }
  .pz-donuts { padding: 8px 10px; }
  .pz-kb-wrap { width: 100%; }

  .pz-xy-pad { flex: 1; aspect-ratio: 1 / 1; min-height: 120px; max-width: 180px; }


  .pz-key-w { min-height: 65px; }
  /* Donuts smaller */
  .pz-donut-stack svg { max-width: 46px; max-height: 46px; }

  @media (max-height: 720px) {
    .pz-panel { gap: 4px; row-gap: 4px; }
    .pz-key-w { min-height: 50px; }
    .pz-donut-stack svg { max-width: 40px; max-height: 40px; }
    .pz-xy-pad { min-height: 120px; }
    .pz-block { padding: 6px 10px; }
  }
}

/* ── Tier 3: < 720px — clean vertical stack ── */
@media (max-width: 720px) {
  .pz-panel {
    display: grid;
    grid-template-columns: 1fr 180px;
    grid-template-areas:
      "trans trans"
      "fx    xy"
      "loops loops"
      "kb    kb";
    gap: 8px;
    padding: 8px 10px;
  }

  .pz-help-btn { top: 4px; right: 6px; width: 22px; height: 22px; font-size: 11px; }
  .pz-block { padding: 6px 8px; }

  .pz-transport, .pz-donuts, .pz-kb-wrap { width: 100%; }
  
  /* FX: more compact knobs */
  .pz-knob { width: 26px !important; height: 26px !important; }
  .pz-knob svg { width: 26px !important; height: 26px !important; }
  .pz-knobs { gap: 4px; row-gap: 6px; grid-template-columns: repeat(5, 1fr); }
  .pz-knob-label { font-size: 8px; }

  .pz-xy-block { aspect-ratio: 1 / 1; max-width: 180px; }

  /* Transport: drop labels, hide voice (keep ui sfx) */
  .pz-bpm-big input { width: 32px; font-size: 18px; }
  .pz-pill { font-size: 9px; padding: 2px 6px; }

  /* Donut SVG further shrink */
  .pz-donut-stack svg { max-width: 48px; max-height: 48px; }
  .pz-mode-row { display: none; }
  .pz-donut-label { font-size: 8px; min-height: 10px; }
  .pz-donut-row select, .pz-donut-row button.pz-donut-mini { padding: 0 3px; font-size: 8px; }

  /* Keyboard: shorter */
  .pz-key-w { min-height: 60px; }

  /* Help overlay: full screen on phones */
  .pz-help-card { padding: 12px 14px; max-height: 92%; }
  .pz-help-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
}

/* ── Tier 4: < 520px — phone portrait, ultra compact ───────────── */
@media (max-width: 520px) {
  .pz-handle { padding: 5px 12px; gap: 6px; }
  .pz-handle-text { font-size: 14px; }
  .pz-handle-sub { display: none; }
  .pz-panel {
    padding: 6px 6px 8px;
    gap: 4px;
    grid-template-columns: 1fr 140px;
    grid-template-areas:
      "trans trans"
      "fx    xy"
      "loops loops"
      "kb    kb";
  }
  .pz-xy-block { aspect-ratio: 1 / 1; max-width: 140px; }

  .pz-block { padding: 4px 6px; }


  .pz-xy-pad { aspect-ratio: 1 / 1; max-width: 140px; }


  .pz-knobs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; row-gap: 3px; }
  .pz-knob { width: 24px !important; height: 24px !important; }
  .pz-knob svg { width: 24px !important; height: 24px !important; }
  .pz-knob-label { font-size: 7px; }
  .pz-xy-btn { width: 12px !important; height: 12px !important; font-size: 6px !important; }

  .pz-midi-mini { padding: 2px 5px; font-size: 8px; margin-top: 4px; }
  .pz-midi-dot { width: 4px; height: 4px; }

  /* Transport: row layout */
  .pz-transport .pz-trans-row { flex-wrap: wrap; }
  .pz-bpm-big { padding: 2px 5px; }
  .pz-bpm-big input { width: 28px; font-size: 16px; }
  .pz-bpm-big span { font-size: 7px; }
  .pz-tap { padding: 3px 6px; font-size: 8px; }
  .pz-pill { font-size: 8px; padding: 2px 5px; }
  .pz-mute { font-size: 8px; padding: 2px 5px; }

  /* Donuts: row of 4, very small */
  .pz-donut-stack svg { max-width: 42px; max-height: 42px; }
  .pz-stopall { font-size: 8px; padding: 2px 5px; }
  .pz-donut-row { gap: 4px; }

  /* Keyboard: minimum */
  .pz-kb-controls { padding: 3px 6px; gap: 4px; row-gap: 4px; justify-content: center; }
  .pz-voice-row { order: 10; width: 100%; margin: 0; }
  .pz-voice-row .pz-pill { flex: 1; text-align: center; font-size: 8px; }
  .pz-kbc-lbl { font-size: 7px; }
  .pz-kbc-sel { padding: 1px 3px; font-size: 8px; }
  .pz-oct-inline { padding-left: 4px; gap: 3px; }
  .pz-oct-mini { width: 16px; height: 16px; font-size: 10px; }
  .pz-key-w { min-height: 40px; }
  .pz-keylabel { font-size: 7px; }
  .pz-notelabel { display: none; }
  .pz-key-b { width: 8% !important; }

  @media (max-height: 720px) {
    .pz-panel { gap: 3px; row-gap: 3px; }
    .pz-block { padding: 3px 5px; }
    .pz-knob { width: 18px !important; height: 18px !important; }
    .pz-donut-stack svg { max-width: 28px; max-height: 28px; }
    .pz-key-w { min-height: 28px; }
    .pz-xy-pad { min-height: 40px; }
    .pz-mode-pill { font-size: 7px; padding: 0 2px; }
    .pz-voice-row { gap: 2px; }
    .pz-voice-row .pz-pill { padding: 1px 3px; font-size: 7px; }
  }
}

/* ── Tier 5: < 380px — last resort ──────────────────────────────── */
@media (max-width: 380px) {
  .pz-knobs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pz-knob { width: 22px !important; height: 22px !important; }
  .pz-knob svg { width: 22px !important; height: 22px !important; }
  .pz-donut-stack svg { max-width: 32px; max-height: 32px; }
  .pz-key-w { min-height: 36px; }
}

/* Integrated MIDI controls */
.pz-midi-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px 10px;
  margin-top: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
}
.pz-midi-dot { width: 6px; height: 6px; border-radius: 50%; background: #333; transition: all 0.3s; }
.pz-midi-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.pz-midi-lbl { color: #888; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-midi-conn { 
  background: transparent; border: 1px solid #444; color: #aaa; 
  border-radius: 3px; padding: 1px 6px; cursor: pointer;
  font-family: inherit; font-size: 9px; text-transform: uppercase;
}
.pz-midi-conn:hover { color: var(--green); border-color: var(--green); background: #0a1a0d; }
.fmm-audio-hub {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  font-family: 'DM Mono', monospace;
}
.fmm-hub-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  border: 2px solid #444;
  color: var(--green);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}
.fmm-hub-toggle:hover {
  transform: scale(1.1);
  border-color: var(--green);
  background: rgba(20, 20, 20, 0.95);
}
.fmm-hub-toggle.muted {
  color: #ff7a8a;
  border-color: #ff7a8a;
}
.fmm-hub-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid #333;
  border-radius: 10px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  animation: fmm-drop-in 0.15s ease-out;
}
@keyframes fmm-drop-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fmm-hub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: #ccc;
  padding: 10px 14px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}
.fmm-hub-item:hover {
  background: rgba(168, 232, 94, 0.12);
  color: #fff;
}
.fmm-hub-item.danger:hover {
  background: rgba(255, 122, 138, 0.15);
  color: #ff7a8a;
}
.fmm-hub-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.fmm-hub-sep {
  height: 1px;
  background: #2a2a2a;
  margin: 4px 8px;
}
@media (max-width: 600px) {
  .fmm-hub-toggle { width: 38px; height: 38px; font-size: 17px; }
  .fmm-hub-dropdown { min-width: 150px; }
}

/* ============ INSTAGRAM GALLERY WIDGET (DIY STYLE) ============ */
.zine-ig-section {
  padding: 40px 0 60px;
  border: 3px dashed var(--ink);
  background: var(--paper, #faf3e3);
  border-radius: 14px;
  margin: 40px 0;
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
}
.zine-ig-section::after {
  content: 'IG';
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: 'Permanent Marker', cursive;
  font-size: 120px;
  opacity: 0.03;
  color: var(--ink);
  pointer-events: none;
}
.zine-ig-section .zine-section-tag {
  color: var(--ink);
  border-color: var(--ink);
  margin-left: 20px;
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.zine-ig-container {
  padding: 40px 30px;
  min-height: 200px;
}
.zine-ig-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 40px;
}
.zine-ig-post {
  display: block;
  background: #fff;
  padding: 8px 8px 24px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
  text-decoration: none;
  transform: rotate(var(--tilt, 0deg));
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  width: 180px; /* Smaller cards */
}
.zine-ig-post:nth-child(odd) { transform: rotate(calc(var(--tilt, 0deg) + 2deg)) translateY(5px); }
.zine-ig-post:nth-child(even) { transform: rotate(calc(var(--tilt, 0deg) - 2deg)) translateY(-5px); }

/* Washi Tape Effect */
.zine-ig-post::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px;
  height: 22px;
  background: rgba(168, 232, 94, 0.6); /* Translucent green tape */
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  z-index: 5;
  opacity: 0.8;
}
.zine-ig-post:nth-child(3n)::before { background: rgba(255, 122, 138, 0.6); width: 70px; rotate: 3deg; }
.zine-ig-post:nth-child(3n+1)::before { background: rgba(255, 216, 77, 0.6); width: 50px; rotate: -5deg; }

.zine-ig-post:hover {
  transform: rotate(0deg) scale(1.15) translateY(-10px);
  box-shadow: 15px 15px 0 rgba(0,0,0,0.4);
  z-index: 20;
}
.zine-ig-frame {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #222;
  border: 1px solid #ddd;
  position: relative;
}
.zine-ig-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zine-ig-video-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ink);
  color: var(--green);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 1px solid var(--green);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.zine-ig-caption {
  margin-top: 12px;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: #222;
  line-height: 1.1;
  max-height: 2.2em;
  overflow: hidden;
  text-align: center;
  padding: 0 4px;
}
.zine-ig-loading, .zine-ig-error {
  text-align: center;
  color: var(--ink);
  font-family: 'Caveat', cursive;
  padding: 60px;
  font-size: 24px;
  opacity: 0.6;
}
.zine-ig-footer {
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}
.zine-ig-link {
  display: inline-block;
  font-family: 'Permanent Marker', cursive;
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--green);
  transition: all 0.15s;
}
.zine-ig-link:hover {
  background: var(--green);
  color: var(--ink);
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--ink);
}

@media (max-width: 800px) {
  .zine-ig-grid { gap: 25px 20px; }
  .zine-ig-post { width: 150px; padding: 6px 6px 20px; }
  .zine-ig-caption { font-size: 14px; }
}
@media (max-width: 480px) {
  .zine-ig-grid { gap: 20px 10px; }
  .zine-ig-post { width: 42%; } /* 2 per row on small phones */
}

/* Panic Button */
.pz-panic {
  background: #ff7a8a !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  font-weight: 800 !important;
  margin-left: auto;
}
.pz-panic:hover {
  background: #ff5c6f !important;
  transform: scale(1.05);
}
.pz-panic:active {
  transform: scale(0.95);
}

.pz-global-settings .pz-kbc-sel {
  height: 28px;
  padding: 0 8px;
  border-color: #333;
}

.pz-global-settings { display: flex; align-items: center; gap: 8px; }

.pz-mini-btn {
  background: #1a1a1a;
  color: var(--green);
  border: 1px solid #2a2a2a;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}
.pz-mini-btn:hover { background: #2a2a2a; transform: scale(1.05); }
.pz-mini-btn.busy { background: var(--green); color: var(--ink); animation: pz-btn-pulse 1s infinite alternate; }

@media (max-width: 880px) {
  .pz-trans-row { flex-wrap: wrap; }
  .pz-bpm-big { flex: 0 0 auto; }
  .pz-tap { flex: 0 0 auto; margin-left: 12px !important; }
  .pz-beat-dots { width: 100%; justify-content: center; margin: 8px 0 0; }
  .pz-donuts-head { flex-wrap: wrap; gap: 12px; }
  .pz-global-settings { width: 100%; justify-content: space-between; margin: 0 !important; }
}

/* Improved Playzone Guide */
.zine-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.zine-guide-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--ink);
}

.zine-guide-card:hover {
  transform: translate(-1px, -1px) rotate(0.5deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.zine-guide-card.accent-green { background: color-mix(in srgb, var(--green) 15%, white); border-color: var(--green); }
.zine-guide-card.accent-pink { background: color-mix(in srgb, var(--pink) 15%, white); border-color: var(--pink); }
.zine-guide-card.accent-yellow { background: color-mix(in srgb, var(--yellow) 15%, white); border-color: var(--yellow); }
.zine-guide-card.accent-teal { background: color-mix(in srgb, var(--teal) 15%, white); border-color: var(--teal); }

.zine-guide-card h4 {
  font-family: 'Permanent Marker', cursive;
  font-size: 26px;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.zine-guide-icon {
  font-size: 24px;
  background: var(--ink);
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

.zine-guide-card.accent-green .zine-guide-icon { background: var(--green); color: var(--ink); }
.zine-guide-card.accent-pink .zine-guide-icon { background: var(--pink); color: #fff; }
.zine-guide-card.accent-yellow .zine-guide-icon { background: var(--yellow); color: var(--ink); }
.zine-guide-card.accent-teal .zine-guide-icon { background: var(--teal); color: #fff; }

.zine-guide-card p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
  color: #444;
}

.zine-guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

.zine-guide-list li {
  padding: 7px 0;
  border-bottom: 1.5px dashed rgba(0,0,0,0.1);
  display: block;
  line-height: 1.5;
}

.zine-guide-list li:last-child { border-bottom: none; }

.zine-guide-list b {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
}

.zine-guide-list kbd {
  display: inline-block;
  background: #eee;
  color: #333;
  padding: 1px 5px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 9.5px;
  margin-right: 4px;
  font-weight: 700;
}

.zine-guide-link {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  padding: 0 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-left: 4px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}
.zine-guide-link:hover { background: var(--yellow); color: var(--ink); }

@media (max-width: 600px) {
  .zine-guide-grid { grid-template-columns: 1fr; }
  .zine-playcta h3 { font-size: 32px; }
  .zine-guide-card { padding: 18px; }
}


