/* The FX rack (js/fx.js): its own small palette, a deep-space one, kept here as tokens. */
#fxrack {
  /* the Tape Room's hardware: graphite body, one hot orange, the green phosphor screen */
  --fx-void: #0b0b0c; --fx-panel: #1c1c1d; --fx-panel2: #2e2e30; --fx-edge: #3a3a3c; --fx-text: #d9d9dc; --fx-dim: #8e8e93;
  --fx-hot: #ff4d1f; --fx-cyan: #6dff6a; --fx-gold: #ffc86b; --fx-led-off: #5a5a5e;
  --fx-grad: linear-gradient(180deg, #ff6a42, #ff4d1f);
  position: fixed; inset: 0; z-index: 60; font-family: var(--ui);
}
#fxrack[hidden] { display: none; }
.fxscrim { position: absolute; inset: 0; background: rgba(2, 1, 8, .55); opacity: 0; transition: opacity .25s; }
#fxrack.on .fxscrim { opacity: 1; }
.fxsheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 60% at 50% 0%, #1d1530 0%, var(--fx-void) 70%); border-top: 1px solid var(--fx-edge);
  border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(138, 107, 255, .25); padding: 0 12px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .28s cubic-bezier(.2, .9, .25, 1); color: var(--fx-text); }
#fxrack.on .fxsheet { transform: none; }
@media (min-width: 821px) { .fxsheet { left: auto; right: 16px; bottom: 16px; width: 440px; border-radius: 22px; border: 1px solid var(--fx-edge); } }
.fxhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 18px 4px 12px; background: inherit; }
.fxgrip { position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--fx-edge); }
.fxhead b { font: 800 13px/1 var(--ui); letter-spacing: .32em; background: var(--fx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fxtrack { color: var(--fx-dim); font-size: 12px; letter-spacing: .04em; flex: 1; }
.fxx { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--fx-edge); background: var(--fx-panel); color: var(--fx-text); font-size: 15px; }
.fxunits { display: grid; gap: 18px; padding-top: 6px; }
/* ---- the logos' faces (css/fonts/fx/, OFL): Matamp-style flared block, 70s psychedelia, metal ---- */
@font-face { font-family: "FX Block"; src: url("fonts/fx/BowlbyOneSC-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "FX Metal"; src: url("fonts/fx/MetalMania-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "FX Neon"; src: url("fonts/fx/Monoton-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "FX Groove"; src: url("fonts/fx/Shrikhand-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "FX Slime"; src: url("fonts/fx/Creepster-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "FX Rock"; src: url("fonts/fx/NewRocker-Regular.woff2") format("woff2"); font-display: swap; }

/* ---- a Matamp-style head: black tolex, brass corners and handles, a white faceplate ---- */
.fxunit { --ink: #141210; --face: #f4f1ea; --brass: linear-gradient(135deg, #fff2b8, #d9a93c 35%, #8a5f12 70%, #e8c060); position: relative; }
.amp { position: relative; padding: 16px 14px 18px; border-radius: 10px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 0 1px, transparent 1.5px) 0 0 / 5px 5px,
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.5) 0 1px, transparent 1.5px) 0 0 / 4px 4px,
    linear-gradient(180deg, #2a2827, #121111);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 3px rgba(0,0,0,.6), 0 12px 24px rgba(0,0,0,.6); }
.amp .handle { position: absolute; top: -9px; left: 50%; width: 34%; height: 14px; margin-left: -17%; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(#2c2a29, #0d0c0c); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 3px rgba(0,0,0,.6); }
.amp .corner { position: absolute; width: 26px; height: 26px; background: var(--brass); box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(80,50,0,.5); }
.corner.tl { top: -2px; left: -2px; border-radius: 9px 2px 2px 2px; clip-path: polygon(0 0, 100% 0, 100% 30%, 30% 30%, 30% 100%, 0 100%); }
.corner.tr { top: -2px; right: -2px; border-radius: 2px 9px 2px 2px; clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%, 70% 30%, 0 30%); }
.corner.bl { bottom: -2px; left: -2px; border-radius: 2px 2px 2px 9px; clip-path: polygon(0 0, 30% 0, 30% 70%, 100% 70%, 100% 100%, 0 100%); }
.corner.br { bottom: -2px; right: -2px; border-radius: 2px 2px 9px 2px; clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%, 0 70%, 70% 70%); }
.amp .feet { position: absolute; bottom: -7px; left: 16%; right: 16%; height: 7px;
  background: radial-gradient(ellipse at 6% 0, #1a1919 0 60%, transparent 62%) left / 16% 100% no-repeat, radial-gradient(ellipse at 94% 0, #1a1919 0 60%, transparent 62%) right / 16% 100% no-repeat; }
.plate { position: relative; border-radius: 3px; padding: 12px 10px 12px; color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, #fbf9f4, var(--face)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 2px 4px rgba(0,0,0,.15), 0 0 0 2px #0b0a0a; }
.fxunit.soon .plate { cursor: default; }
/* the logo, in its ruled box between two brass handles */
.logobox { position: relative; margin: 0 22px 12px; padding: 6px 8px 7px; border: 2px solid var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.logobox .brass { position: absolute; top: -6px; bottom: -6px; width: 9px; border-radius: 6px; background: var(--brass);
  box-shadow: 0 2px 3px rgba(0,0,0,.45), inset 1px 0 0 rgba(255,255,255,.6); }
.logobox .brass.l { left: -21px; } .logobox .brass.r { right: -21px; }
.script { font: italic 600 11.5px/1 "Snell Roundhand", "Brush Script MT", "Apple Chancery", Georgia, serif; letter-spacing: .02em; }
.amplogo { display: block; max-width: 100%; font: 400 clamp(22px, 7.4vw, 34px)/.95 "FX Block", "Arial Black", var(--ui); letter-spacing: -.01em; white-space: nowrap;
  transform: scaleY(1.18); margin: 4px 0 3px; color: var(--ink); }
.model { font: 800 9.5px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; }
/* the other heads: 70s psychedelia and metal */
/* OUUUTER SPACE))): the Matamp badge, stacked: tall, heavy, condensed letters whose feet flare out (each line is
   tipped back in perspective, so it widens toward the bottom), with a small ® */
.amp-space .amplogo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; transform: none; margin: 6px 0 4px;
  font: 400 clamp(30px, 10.5vw, 46px)/.86 "FX Block", "Arial Black", var(--ui); letter-spacing: -.035em; }
.amp-space .amplogo > span { display: block; transform: perspective(90px) rotateX(16deg) scaleX(.78) scaleY(1.34); transform-origin: 50% 100%; }
.amp-space .amplogo sup { position: absolute; right: -4px; bottom: 2px; font: 700 10px/1 var(--ui); border: 1.5px solid currentColor; border-radius: 50%; width: 14px; height: 14px; display: grid; place-items: center; }
.amp-gravity .amplogo { font-family: "FX Metal", serif; font-size: clamp(30px, 9.5vw, 42px); transform: none; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff 0%, #9aa0a8 45%, #2b2e33 52%, #c8ccd2 80%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px #141210; }
.amp-nebula .amplogo { font-family: "FX Neon", var(--ui); font-size: clamp(26px, 8.6vw, 40px); transform: none; letter-spacing: .04em;
  background: linear-gradient(90deg, #ff8a1f, #ff3d8b 40%, #8a4bff 75%, #2ad1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amp-pulsar .amplogo { font-family: "FX Rock", serif; font-size: clamp(32px, 10vw, 46px); transform: none; color: #9c0f12; text-shadow: 1px 1px 0 #141210; }
.amp-comet .amplogo { font-family: "FX Groove", serif; font-size: clamp(26px, 8.4vw, 38px); transform: none; color: #ffb51f;
  text-shadow: 2px 2px 0 #e8571f, 4px 4px 0 #8a2a12, 5px 5px 0 #141210; }
/* each head its own tolex and faceplate */
.amp-gravity .amp { background:  /* oxblood levant: a pebbled grain */
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.08) 0 1px, transparent 2px) 0 0 / 6px 6px,
    radial-gradient(circle at 70% 70%, rgba(0,0,0,.45) 0 1.5px, transparent 2.5px) 0 0 / 7px 7px,
    linear-gradient(180deg, #6e1518, #3a0809); }
.amp-gravity .plate { --ink: #e9ecef; background:  /* black anodised, brushed */
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), linear-gradient(180deg, #2b2d31, #121315); }
.amp-gravity .logobox { border-color: #c9ccd1; }
.amp-gravity .amplogo { -webkit-text-stroke: 0; }
.amp-gravity .jacks em, .amp-gravity .ampknob em, .amp-gravity .fxpow em, .amp-gravity .script, .amp-gravity .model { color: #e9ecef; }
.amp-gravity .kn .ticks { stroke: #e9ecef; }
.amp-gravity .kn i { background: radial-gradient(circle at 40% 35%, #f3f4f6, #8d9097 70%); }
.amp-gravity .kn i::before { background: linear-gradient(90deg, #c9ccd1, #6b6e74 60%); }
.amp-gravity .kn i::after { background: #141210; }
.amp-nebula .amp { background:  /* purple crushed velvet: a soft sheen */
    radial-gradient(120% 60% at 20% 10%, rgba(255,255,255,.12), transparent 60%),
    repeating-radial-gradient(circle at 70% 120%, rgba(0,0,0,.18) 0 3px, transparent 3px 7px),
    linear-gradient(160deg, #5a2a8a, #2d0f4f); }
.amp-nebula .plate { background: linear-gradient(180deg, #fbf3e3, #f1e3c4); }  /* cream enamel */
.amp-pulsar .amp { background:  /* Matamp green, basketweave */
    repeating-linear-gradient(45deg, rgba(0,0,0,.22) 0 2px, transparent 2px 5px), repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #2f6b3c, #183d21); }
.amp-pulsar .plate { background:  /* brushed aluminium */
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, rgba(0,0,0,.04) 1px 2px, transparent 2px 4px), linear-gradient(180deg, #e6e8ea, #b9bec3); }
.amp-comet .amp { background:  /* tangerine tolex */
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.12) 0 1px, transparent 2px) 0 0 / 5px 5px,
    radial-gradient(circle at 70% 60%, rgba(120,40,0,.35) 0 1px, transparent 2px) 0 0 / 4px 4px,
    linear-gradient(180deg, #ee7a22, #b8500d); }
.amp-comet .plate { --ink: #2a1708; background:  /* walnut-toned tan */
    repeating-linear-gradient(100deg, rgba(90,50,20,.08) 0 2px, transparent 2px 9px), linear-gradient(180deg, #f1dcb6, #d9b682); }
.amp-comet .logobox { border-color: #2a1708; }
/* jacks, knobs on their tick marks, the jewel and the toggle */
.ampctl { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.jacks { display: flex; flex-direction: column; gap: 6px; }
.jacks > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.jacks em, .ampknob em, .fxpow em { font: 800 8.5px/1 var(--ui); font-style: normal; letter-spacing: .14em; }
.jacks b { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #050505 0 32%, #d9d6cf 36%, #8f8b83 60%, #3a3835 72%); box-shadow: 0 1px 1px rgba(0,0,0,.4); }
.ampknob { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kn { position: relative; width: 54px; height: 54px; display: grid; place-items: center; }
.kn .ticks { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.kn i { --v: .3; position: relative; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3b3937, #0b0a0a 70%);
  box-shadow: 0 2px 3px rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.15); transform: rotate(calc(-135deg + var(--v) * 270deg)); transition: transform .08s linear; }
.kn i::before { content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 30px; margin-left: -4.5px; border-radius: 5px 5px 3px 3px;
  background: linear-gradient(90deg, #1d1b1a, #050505 60%); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.kn i::after { content: ""; position: absolute; left: 50%; top: -4px; width: 2px; height: 12px; margin-left: -1px; background: #f4f1ea; border-radius: 1px; }
.fxpow { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; }
.fxpow .pw { display: flex; align-items: center; gap: 8px; }
.jewel { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ff9a8a 0 12%, #7a1010 48%, #2a0505 85%);
  box-shadow: 0 0 0 3px #c9c4b8, 0 0 0 4px rgba(0,0,0,.4); transition: box-shadow .15s, background .15s; }
.fxunit.on .jewel { background: radial-gradient(circle at 38% 32%, #fff 0 12%, #ff3b1f 45%, #b00d0d 85%); box-shadow: 0 0 0 3px #c9c4b8, 0 0 0 4px rgba(0,0,0,.4), 0 0 12px #ff3b1f, 0 0 26px rgba(255,59,31,.6); }
.toggle { position: relative; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #dcd8cf, #8c877d 70%); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.toggle::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 5px; height: 16px; margin-left: -2.5px; border-radius: 3px;
  background: linear-gradient(90deg, #8f8a80, #fff 45%, #9a958b); transform-origin: 50% 100%; transform: rotate(160deg); transition: transform .12s; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.fxunit.on .toggle::after { transform: rotate(20deg); }
.fxunit.soon { opacity: .9; }
.fxbody { margin-top: -6px; padding: 16px 10px 14px; border-radius: 0 0 14px 14px; background: #0c0a10; border: 1px solid #2a2433; border-top: 0; }
/* the galaxy sits in a speaker grille: basketweave cloth */
/* the galaxy fills the unit's open section edge to edge, framed by a thin brass bezel */
.grille { padding: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px #1a140d, 0 0 0 4px #8f7a52, 0 8px 24px rgba(0,0,0,.6); }
.galaxy { display: block; width: 100%; aspect-ratio: 1; margin: 0; border-radius: 0; background: var(--fx-void); touch-action: none; cursor: crosshair; }
.fxunit.on .grille { box-shadow: 0 0 0 2px #1a140d, 0 0 0 4px #c9a565, 0 0 40px rgba(255, 95, 210, .35); }
.fxread { display: flex; justify-content: space-between; gap: 8px; margin: 14px 2px 6px; font: 600 10.5px/1 var(--ui); letter-spacing: .2em; color: var(--fx-dim); }
.fxread b { display: block; margin-top: 6px; font: 500 18px/1 var(--mono); letter-spacing: 0; color: #ffb15c; text-shadow: 0 0 10px rgba(255, 138, 31, .6); }
.fxhint { margin: 8px 2px 0; font-size: 12px; line-height: 1.45; color: var(--fx-dim); }
/* the track's FX key on the timeline head */
.heads .fxkey { margin-left: 4px; font: 800 9.5px/1 var(--ui); letter-spacing: .12em; padding: 4px 5px; border-radius: var(--r-xs); border: 1px solid var(--edge); background: transparent; color: var(--dim); }
.heads .fxkey.on { color: #ff5fd2; border-color: #ff5fd2; box-shadow: 0 0 8px rgba(255, 95, 210, .55); }

/* SLUDGE MUNCHER: swamp-olive snakeskin tolex, a rusted plate, a dripping slime logo */
.amp-sludge .amp { background:
    radial-gradient(ellipse 6px 4px at 50% 50%, rgba(0,0,0,.45) 0 60%, transparent 70%) 0 0 / 9px 7px,
    radial-gradient(ellipse 6px 4px at 50% 50%, rgba(160,190,80,.12) 0 60%, transparent 70%) 4px 3px / 9px 7px,
    linear-gradient(180deg, #3d4a1a, #1c240a); }
.amp-sludge .plate { --ink: #1b1608; background:
    radial-gradient(circle at 20% 30%, rgba(140,60,10,.35), transparent 40%), radial-gradient(circle at 80% 70%, rgba(110,50,10,.3), transparent 45%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 4px), linear-gradient(180deg, #c9b98f, #9e8d62); }
.amp-sludge .amplogo { font-family: "FX Slime", serif; font-size: clamp(30px, 9.6vw, 44px); transform: none; letter-spacing: .02em; color: #9bd11e;
  text-shadow: 0 2px 0 #3e5a06, 0 3px 0 #1b1608, 0 0 10px rgba(155, 209, 30, .45); }
.amp-sludge.on .amplogo { text-shadow: 0 2px 0 #3e5a06, 0 3px 0 #1b1608, 0 0 16px rgba(170, 255, 40, .8); }

/* ---- compact (js/fx.js): the chosen unit's pad stays put at the top, every unit a slim strip in a list that scrolls ---- */
.fxsheet.compact { display: flex; flex-direction: column; overflow: hidden; height: 88dvh; padding-bottom: 0; }
.fxsheet.compact .fxhead { flex: none; }
.fxview { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--fx-edge); background: transparent; color: var(--fx-dim); font: 700 10px/1 var(--ui); letter-spacing: .16em; }
.fxstage { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0; padding-bottom: 6px; }
.fxstagehead { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; }
.fxstagehead b { font: 700 15px/1 var(--ui); letter-spacing: .04em; color: var(--fx-text); }
.fxstagehead span { flex: 1; font: 600 10px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--fx-dim); }
.fxstagehead .fxpow { flex: none; }
.fxstagehead .jewel { box-shadow: 0 0 0 2px #4a4560; }
.fxstage .grille { width: min(100%, 34dvh); }
.fxstage .fxread { align-self: stretch; margin: 12px 2px 4px; }
.fxstrips { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 8px;
  padding: 8px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fx-edge); }
.fxstrip .amp { padding: 4px; border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 10px rgba(0,0,0,.5); }
.fxstrip .plate { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 10px; }
.fxstrip.sel .amp { box-shadow: 0 0 0 2px #ff5fd2, 0 0 16px rgba(255, 95, 210, .45); }
.sname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.fxstrip .amplogo, .fxstrip.amp-space .amplogo { display: flex; flex-direction: row; gap: .22em; margin: 0; transform: none; font-size: 19px !important; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.fxstrip.amp-space .amplogo > span { transform: scaleY(1.15); }
.fxstrip.amp-comet .amplogo { text-shadow: 1px 1px 0 #e8571f, 2px 2px 0 #8a2a12; }
.fxstrip .model { font-size: 7.5px; letter-spacing: .18em; }
.sknobs { flex: none; display: flex; gap: 0; }
.fxstrip .ampknob { zoom: .6; } .fxstrip .ampknob em { display: none; }
.fxstrip .fxpow { flex: none; zoom: .85; }
@media (min-width: 821px) { .fxsheet.compact { height: min(88dvh, 860px); } .fxstage .grille { width: min(100%, 44dvh); } }
.fxstrip { min-width: 0; }  /* a grid item: without this a long logo pushes the strip past the sheet */
.fxstrips { padding-inline: 3px; scrollbar-width: none; }
.fxstrips::-webkit-scrollbar { display: none; }

/* ---- a made unit (js/fxblocks.js): the shared faceplate, dressed by its look ---- */
.amp-custom .amp { background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.07) 0 1px, transparent 2px) 0 0 / 5px 5px,
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.4) 0 1px, transparent 2px) 0 0 / 4px 4px, var(--tolex); }
.amp-custom .plate { --ink: inherit; color: var(--ink); background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px), var(--plate); }
.amp-custom .logobox { border-color: var(--ink); }
.amp-custom .amplogo { font-family: var(--logofont), var(--ui); transform: none; color: var(--logo); font-size: clamp(26px, 8.6vw, 38px); letter-spacing: .01em; }
.amp-custom .jacks em, .amp-custom .ampknob em, .amp-custom .fxpow em, .amp-custom .script, .amp-custom .model { color: var(--ink); }
.amp-custom .kn .ticks { stroke: var(--ink); }
.fxstage.amp-custom .fxstagehead b { font-family: var(--logofont), var(--ui); font-weight: 400; font-size: 17px; color: hsl(var(--hue) 90% 72%); }
.fxdel { flex: none; height: 24px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--fx-edge); background: transparent; color: var(--fx-dim); font: 700 9px/1 var(--ui); letter-spacing: .14em; }
.fxnew { color: var(--fx-text); border-color: #ff5fd2; }
/* + NEW: the form */
.fxnewform { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
.fxnewform h3 { margin: 0; font: 700 20px/1.2 var(--ui); color: var(--fx-text); }
.fxnewform p { margin: 0; color: var(--fx-dim); font-size: 13.5px; line-height: 1.45; }
.fxnewform label { display: flex; flex-direction: column; gap: 6px; font: 700 10px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--fx-dim); }
.fxnewform input, .fxnewform textarea, .fxnewform select { font: 16px/1.4 var(--ui); letter-spacing: 0; text-transform: none; color: var(--fx-text); background: var(--fx-panel); border: 1px solid var(--fx-edge); border-radius: 10px; padding: 10px 12px; }
.fxnewform textarea { resize: vertical; min-height: 76px; }
.fxnewform input:focus, .fxnewform textarea:focus, .fxnewform select:focus { outline: none; border-color: #8a6bff; box-shadow: 0 0 0 3px rgba(138, 107, 255, .25); }
.fxsel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fxsel select { padding: 9px 8px; font-size: 14px; }
@media (max-width: 420px) { .fxsel { grid-template-columns: 1fr 1fr; } .fxsel label:first-child { grid-column: 1 / -1; } }
.fxdict { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 22px; border: 1px solid var(--fx-edge); background: var(--fx-panel2); color: var(--fx-text); font: 700 11px/1 var(--ui); letter-spacing: .16em; }
.fxdict i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b1f; box-shadow: 0 0 6px #ff3b1f; }
.fxdict.on { border-color: #ff3b1f; box-shadow: 0 0 16px rgba(255, 59, 31, .45); } .fxdict.on i { animation: smblink 1s steps(2) infinite; }
@keyframes smblink { 50% { opacity: .25; } }
.fxnrow { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.fxmake { min-height: 44px; padding: 0 22px; border: 0; border-radius: 22px; background: var(--fx-grad); color: #12091f; font: 800 12px/1 var(--ui); letter-spacing: .18em; }
.fxmake:disabled { opacity: .5; }
.fxsmall { font-size: 12px !important; }
.fxnewform ::placeholder { color: #5a5470; font-style: italic; opacity: 1; }  /* an example, not something already typed */
.fxnewform label em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .75; }
/* MAKE IT's progress: a moving bar, then each step ticked off as it finishes */
.fxprog { display: flex; flex-direction: column; gap: 10px; }
.fxprog[hidden] { display: none; }
.fxprog > i { height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ff5fd2, #45f0ff, transparent) 0 0 / 40% 100% no-repeat, var(--fx-edge); animation: fxprog 1.1s linear infinite; }
@keyframes fxprog { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
.fxprog ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.35; color: var(--fx-dim); }
.fxprog li { display: flex; gap: 8px; } .fxprog li::before { content: "○"; color: #8a6bff; }
.fxprog li.now { color: var(--fx-text); } .fxprog li.now::before { content: "◌"; animation: smblink .8s steps(2) infinite; }
.fxprog li.done::before { content: "✓"; color: #6dff6a; } .fxprog li.bad::before { content: "✕"; color: #ff3b1f; }
/* + NEW, restyled to sit with the rest of the rack: one big hardware key to create it, a small pill to back out */
.fxnewform .fxmake { width: 100%; min-height: 68px; margin-top: 4px; border-radius: 14px; font: 800 16px/1 var(--ui); letter-spacing: .42em; color: #12091f;
  background: var(--fx-grad); box-shadow: 0 0 0 2px #0b0910, 0 5px 0 #3a1f5c, 0 0 34px rgba(255, 95, 210, .35); transition: transform .08s, box-shadow .08s; }
.fxnewform .fxmake:active { transform: translateY(4px); box-shadow: 0 0 0 2px #0b0910, 0 1px 0 #3a1f5c, 0 0 20px rgba(255, 95, 210, .3); }
.fxnewform .fxmake span { padding-left: .42em; }
.fxnewform .fxcancel { align-self: center; height: 32px; padding: 0 16px; }
.fxnewform .fxdict { border-radius: 14px; }
.fxnewform input, .fxnewform textarea, .fxnewform select { border-radius: 12px; background: #0c0a14; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
/* the trip: the whole sheet goes to space while the effect is made (js/fxforge.js) */
.fxforge { position: absolute; inset: 0; z-index: 5; background: var(--fx-void); border-radius: inherit; animation: trfade .35s ease-out; }
.fxforge canvas { display: block; width: 100%; height: 100%; }
@keyframes trfade { from { opacity: 0; } }

/* ---- the rack in the Tape Room's hardware (Steve, 21 Nov: the purple space look was off brand) ---- */
.fxsheet { background: linear-gradient(180deg, #2a2a2b, #232324); box-shadow: 0 -12px 40px rgba(0,0,0,.6); }
.fxhead b { background: none; color: #9a9a9e; -webkit-text-fill-color: currentColor; font: 400 13px/1 var(--mono); letter-spacing: .14em; }
.fxtrack { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.fxview, .fxdel { border-radius: 5px; font-family: var(--ui); }
.fxnew { color: var(--fx-hot); border-color: rgba(255, 77, 31, .6); }
.fxstrip.sel .amp { box-shadow: 0 0 0 2px var(--fx-hot), 0 0 12px rgba(255, 77, 31, .35); }
.fxunit.on .grille { box-shadow: 0 0 0 2px #1a140d, 0 0 0 4px #c9a565, 0 0 24px rgba(255, 77, 31, .3); }
.fxread b { color: var(--fx-hot); text-shadow: 0 0 8px rgba(255, 77, 31, .45); }
.heads .fxkey.on { color: var(--hot); border-color: var(--hot); box-shadow: 0 0 8px color-mix(in srgb, var(--hot) 55%, transparent); }
.fxstagehead b { font-family: var(--mono) !important; font-weight: 600 !important; font-size: 13px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-hot) !important; }
/* + NEW: the sampler's own controls */
.fxnewform h3 { font: 400 15px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9a9a9e; }
.fxnewform label { font: 500 10px/1 var(--ui); letter-spacing: .08em; color: var(--fx-dim); }
.fxnewform input, .fxnewform textarea, .fxnewform select { background: #111112; border: 1px solid #333; border-radius: 6px; box-shadow: inset 0 1px 3px rgba(0,0,0,.7); color: var(--fx-text); }
.fxnewform input:focus, .fxnewform textarea:focus, .fxnewform select:focus { border-color: var(--fx-hot); box-shadow: 0 0 0 2px rgba(255, 77, 31, .25); }
.fxnewform ::placeholder { color: #5a5a5e; }
.fxnewform .fxdict { min-height: 40px; border-radius: 5px; border: 1px solid var(--fx-edge); background: transparent; color: var(--fx-dim); font: 500 11px/1 var(--ui); letter-spacing: .06em; }
.fxnewform .fxdict i { width: 7px; height: 7px; background: #5a5a5e; box-shadow: none; }
.fxnewform .fxdict.on { color: var(--fx-text); border-color: #3fae3d; box-shadow: none; } .fxnewform .fxdict.on i { background: #6dff6a; box-shadow: 0 0 6px #6dff6a; }
.fxnewform .fxmake { min-height: 64px; border-radius: 6px; letter-spacing: .1em; font: 500 14px/1 var(--ui); color: #fff;
  background: linear-gradient(180deg, #ff6a42, #ff4d1f); box-shadow: 0 0 0 2px #19191a, 0 4px 0 #8a2208; }
.fxnewform .fxmake:active { transform: translateY(3px); box-shadow: 0 0 0 2px #19191a, 0 1px 0 #8a2208; }
.fxnewform .fxmake span { padding-left: .1em; }
.fxnewform .fxcancel { border-radius: 5px; }
/* while it's made: a little phosphor screen, like the sampler's browser (js/fxforge.js) */
.fxforge { position: relative; inset: auto; z-index: auto; height: 190px; flex: none; border-radius: 10px; padding: 6px; animation: none;
  background: linear-gradient(180deg, #3a3a3c, #2a2a2b); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 4px rgba(0,0,0,.5); }
.fxforge canvas { border-radius: 7px; background: #0b1f0c; box-shadow: inset 0 0 22px rgba(0,0,0,.85); }
/* + NEW: SAY (the default) and TYPE */
.fxtabs { display: flex; gap: 0; border: 1px solid var(--fx-edge); border-radius: 6px; overflow: hidden; align-self: flex-start; }
.fxtabs button { min-width: 72px; height: 30px; border: 0; background: transparent; color: var(--fx-dim); font: 600 11px/1 var(--mono); letter-spacing: .14em; }
.fxtabs button.on { background: #3a3a3c; color: var(--fx-text); }
.fxsay { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fxscreen { align-self: stretch; height: 150px; overflow-y: auto; padding: 12px 14px; border-radius: 10px; background: #0b1f0c; border: 6px solid #2f2f31;
  box-shadow: inset 0 0 22px rgba(0,0,0,.85); color: #6dff6a; text-shadow: 0 0 6px rgba(109,255,106,.55);
  font: 600 13px/1.4 "Monofonto", "SF Mono", ui-monospace, Menlo, monospace; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.fxscreen p { margin: 0; } .fxscreen .dim { color: #3fae3d; } .fxscreen b { display: block; margin-bottom: 6px; font-size: 15px; }
.fxtalk { width: 104px; height: 104px; border-radius: 50%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle at 40% 30%, #ff7a52, #ff4d1f 70%); color: #fff; font: 600 13px/1 var(--ui); letter-spacing: .12em;
  box-shadow: 0 0 0 3px #19191a, 0 5px 0 #8a2208, 0 8px 18px rgba(0,0,0,.5); }
.fxtalk i { width: 9px; height: 9px; border-radius: 50%; background: #5a1a0a; }
.fxtalk.on { animation: smrec 1s ease-in-out infinite; } .fxtalk.on i { background: #fff; box-shadow: 0 0 8px #fff; }
.fxtalk:active { transform: translateY(3px); }
@keyframes smrec { 50% { box-shadow: 0 0 0 3px #19191a, 0 5px 0 #8a2208, 0 0 28px rgba(255,77,31,.8); } }
.fxnewform .fxmake:disabled { background: linear-gradient(180deg, #3c3c3e, #2b2b2d); color: #6a6a6e; box-shadow: 0 0 0 2px #19191a, 0 4px 0 #19191a; }
.fxscreen p { color: #6dff6a; }
/* + NEW as a message box: type, or tap the mic inside it; the arrow sends */
.fxcompose { display: flex; flex-direction: column; border: 1px solid #3a3a3c; border-radius: 14px; background: #111112; box-shadow: inset 0 1px 3px rgba(0,0,0,.7); }
.fxcompose:focus-within { border-color: var(--fx-hot); box-shadow: 0 0 0 2px rgba(255, 77, 31, .25); }
.fxnewform .fxcompose textarea { border: 0; background: transparent; box-shadow: none; min-height: 92px; padding: 14px 14px 6px; resize: none; }
.fxnewform .fxcompose textarea:focus { box-shadow: none; }
.fxctools { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 6px; }
.fxmic { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 9px; border-radius: 19px; border: 0; background: transparent; color: var(--fx-dim); font: 500 13px/1 var(--ui); }
.fxmic.on { color: #fff; background: rgba(255, 77, 31, .18); } .fxmic.on svg { color: var(--fx-hot); animation: smblink 1s steps(2) infinite; }
.fxsend { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--fx-hot); box-shadow: 0 2px 0 #8a2208; }
.fxsend:disabled { background: #3a3a3c; color: #6a6a6e; box-shadow: none; }
.fxmore summary { cursor: pointer; color: var(--fx-dim); font: 500 12px/1 var(--ui); padding: 4px 2px; list-style: none; }
.fxmore summary::before { content: "+ "; } .fxmore[open] summary::before { content: "– "; }
.fxmore .fxsel { margin-top: 10px; }
.fxnewform .fxforge { margin-top: 2px; }
/* above the iPhone keyboard (fx.js sets --kb and --vvh from visualViewport) */
#fxrack .fxsheet { bottom: var(--kb, 0px); max-height: min(88dvh, calc(var(--vvh, 100dvh) - 12px)); }
#fxrack .fxsheet.compact { height: min(88dvh, calc(var(--vvh, 100dvh) - 12px)); }
@media (min-width: 821px) { #fxrack .fxsheet { bottom: calc(16px + var(--kb, 0px)); } }
/* a toast must show over the rack and the Tape Room (it was under them: errors in the rack went unseen) */
#toast { z-index: 90; }
/* the pad, full bleed (Steve, 21 Nov): edge to edge across the sheet, no bezel, with the unit's name and power over
   its top and the three readings over its bottom, each on a soft shade so they read over the picture */
.fxstage { position: relative; margin: 0 -12px; padding: 0; }
.fxstage .grille { width: 100%; border-radius: 0; box-shadow: none !important; }
.fxstage .galaxy { border-radius: 0; }
.fxstage .fxstagehead { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: 12px 14px 28px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,0)); }
.fxstage .fxstagehead button { pointer-events: auto; }
.fxstage .fxstagehead span { color: rgba(255,255,255,.6); }
.fxstage .fxread { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 12px; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0)); color: rgba(255,255,255,.6); }
.fxstrips { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
@media (min-width: 821px) { .fxstage .grille { width: 100%; } }
