:root {
  --bg: #06060c; --panel: rgba(16, 17, 30, .72); --panel2: rgba(255, 255, 255, .035); --line: rgba(255, 255, 255, .1);
  --txt: #eaedff; --dim: #8187a8; --dim2: #565b7a;
  --ca: #00e5ff; --cb: #ff2d95; --cc: #b6ff3b; --cd: #ffb020; --acc: #00e5ff; --c: #00e5ff;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--txt); font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif; font-weight: 600;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; -webkit-touch-callout: none; }
canvas { display: block; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 50% 50%; z-index: 1;
  display: grid; grid-template-rows: 56px 188px 1fr 200px; gap: 8px; padding: 12px 14px; }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }

/* ---------- Top ---------- */
#top { display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.logo { font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: .18em; font-size: 22px; background: linear-gradient(90deg, var(--ca), var(--cb), var(--cd)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 8px; white-space: nowrap; }
.logo small { display: block; font-family: 'Rajdhani'; font-size: 10px; letter-spacing: .4em; color: var(--dim); -webkit-text-fill-color: var(--dim); margin-top: -2px; }
.tbtn { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-size: 15px; letter-spacing: .1em; color: var(--txt); cursor: pointer; white-space: nowrap; }
.tbtn:active, .tbtn.down { transform: scale(.95); }
.tbtn.on { background: var(--acc); color: #000; border-color: transparent; box-shadow: 0 0 18px var(--acc); }
.tbtn.rec.on { background: #ff2346; color: #fff; box-shadow: 0 0 22px #ff2346; animation: blink 1s infinite; }
.tbtn.spot { color: #1ed760; border-color: rgba(30, 215, 96, .4); }
.tbtn.spot.on { background: #1ed760; color: #000; }
.tbtn.big { font-weight: 700; background: linear-gradient(135deg, rgba(255, 45, 149, .25), rgba(0, 229, 255, .2)); border-color: rgba(255, 255, 255, .25); }
@keyframes blink { 50% { opacity: .65; } }
.bpmbox { display: flex; align-items: center; gap: 6px; padding: 0 8px; height: 44px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.bpmnum { font-family: 'Orbitron'; font-weight: 800; font-size: 28px; min-width: 112px; text-align: center; letter-spacing: .03em; }
.bpmnum small { font-size: 12px; color: var(--dim); margin-left: 4px; }
.step { width: 38px; height: 34px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.step:active { transform: scale(.9); background: rgba(255, 255, 255, .16); }
.clockbox { font-family: 'Orbitron'; font-size: 22px; font-weight: 700; padding: 0 12px; height: 44px; display: flex; align-items: center; gap: 10px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); min-width: 190px; }
.beats { display: flex; gap: 5px; }
.beats i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background .05s, box-shadow .05s; }
.beats i.on { background: #fff; box-shadow: 0 0 14px #fff, 0 0 30px var(--acc); }
.beats i.on.d { background: var(--cb); box-shadow: 0 0 14px var(--cb), 0 0 30px var(--cb); }
.spacer { flex: 1; }
.mvu { display: flex; flex-direction: column; gap: 3px; width: 150px; }
.mvu div { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; position: relative; }
.mvu div::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: linear-gradient(90deg, #3dff8f 0, #eaff3d 70%, #ff3d5a 100%); background-size: 150px 100%; }

/* ---------- Waves ---------- */
#waves { position: relative; overflow: hidden; padding: 0; }
#wavecv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.lanelab { position: absolute; left: 8px; width: 150px; height: 44px; display: flex; align-items: center; gap: 8px; pointer-events: none; z-index: 2; }
.lanelab b { font-family: 'Orbitron'; width: 28px; height: 28px; border-radius: 8px; background: var(--c); color: #000; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.lanelab span { font-size: 13px; line-height: 1.05; color: #fff; text-shadow: 0 1px 6px #000; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zoom { position: absolute; right: 8px; top: 6px; display: flex; gap: 6px; z-index: 3; }
.zoom .step { width: 34px; height: 28px; font-size: 18px; background: rgba(0, 0, 0, .5); }

/* ---------- Decks ---------- */
#decks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; min-height: 0; }
.deck { --c: #00e5ff; position: relative; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 0; border-top: 2px solid var(--c); overflow: hidden; }
.deck[data-d="1"] { --c: #ff2d95; } .deck[data-d="2"] { --c: #b6ff3b; } .deck[data-d="3"] { --c: #ffb020; }
.deck.leader { box-shadow: 0 0 0 1px var(--c), 0 0 30px color-mix(in srgb, var(--c) 35%, transparent), 0 10px 40px rgba(0, 0, 0, .35); }
.dh { display: flex; align-items: center; gap: 8px; height: 52px; flex: none; }
.badge { width: 46px; height: 46px; border-radius: 13px; background: var(--c); color: #000; font-family: 'Orbitron'; font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 20px color-mix(in srgb, var(--c) 55%, transparent); cursor: pointer; }
.dt { flex: 1; min-width: 0; cursor: pointer; }
.dt .t { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.05; }
.dt .a { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { min-width: 54px; height: 38px; padding: 0 8px; border-radius: 10px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Orbitron'; font-weight: 700; font-size: 15px; line-height: 1; flex: none; }
.chip small { font-family: 'Rajdhani'; font-size: 9px; letter-spacing: .15em; color: var(--dim); margin-top: 2px; }
.chip.key { cursor: pointer; }
.chip.key.ok { box-shadow: 0 0 14px #3dff8f; border-color: #3dff8f; }
.chip.key.near { box-shadow: 0 0 10px #ffd23d; border-color: #ffd23d; }
.chip.key.bad { border-color: #ff3d5a; }
.ov { height: 30px; flex: none; position: relative; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .35); }
.ov canvas { width: 100%; height: 100%; }
.main { display: flex; gap: 8px; height: 244px; flex: none; }
.jogwrap { width: 218px; height: 218px; position: relative; flex: none; margin-top: 7px; }
.jogwrap canvas { width: 100%; height: 100%; touch-action: none; }
.tfader { width: 46px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tfader .lbl, .fcol .lbl { font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.tfader .val { font-family: 'Orbitron'; font-size: 11px; color: #fff; height: 14px; }
.kcol { width: 62px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.kn { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.kn .lbl { font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.knob { width: 42px; height: 42px; border-radius: 50%; position: relative; touch-action: none; cursor: ns-resize;
  background: radial-gradient(circle at 35% 30%, #3b3f5e, #14152a 70%); box-shadow: 0 4px 10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
.knob::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from -135deg, var(--c) 0 var(--p, 0deg), rgba(255, 255, 255, .1) var(--p, 0deg) 270deg, transparent 270deg); -webkit-mask: radial-gradient(circle, transparent 0 19px, #000 20px 23px, transparent 24px); mask: radial-gradient(circle, transparent 0 19px, #000 20px 23px, transparent 24px); }
.knob i { position: absolute; left: 50%; top: 4px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: #fff; transform-origin: 50% 17px; transform: rotate(var(--rot, 0deg)); box-shadow: 0 0 6px var(--c); }
.knob.killed { opacity: .35; }
.kbtn { width: 46px; height: 16px; border-radius: 6px; font-size: 10px; letter-spacing: .1em; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); cursor: pointer; margin-top: 1px; }
.tfader .kbtn { height: 24px; font-size: 10px; margin: 0; }
.kbtn.on { background: #ff3d5a; color: #fff; border-color: transparent; }
.fcol { width: 66px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fwrap { display: flex; gap: 6px; flex: 1; align-items: stretch; }
.vu { width: 10px; border-radius: 5px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.vu::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: linear-gradient(0deg, #3dff8f 0, #3dff8f 55%, #eaff3d 75%, #ff3d5a 100%); background-size: 100% 190px; background-position: bottom; }
.fader { position: relative; width: 48px; border-radius: 10px; touch-action: none; cursor: ns-resize; flex: none; }
.fader::before { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 6px; margin-left: -3px; border-radius: 3px; background: linear-gradient(180deg, #000, #1c1e34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.fader .ticks { position: absolute; left: 0; right: 0; top: 10px; bottom: 10px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 20px); -webkit-mask: linear-gradient(90deg, #000 0 10px, transparent 10px calc(100% - 10px), #000 calc(100% - 10px)); mask: linear-gradient(90deg, #000 0 10px, transparent 10px calc(100% - 10px), #000 calc(100% - 10px)); }
.fader .th { position: absolute; left: 3px; right: 3px; height: 34px; margin-top: -17px; border-radius: 9px; background: linear-gradient(180deg, #4a4f78, #1d1f3a 55%, #2a2d50); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
.fader .th::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--c); border-radius: 2px; box-shadow: 0 0 10px var(--c); }
.fader.hz { height: 54px; }
.fader.hz::before { left: 6px; right: 6px; top: 50%; bottom: auto; width: auto; height: 6px; margin: -3px 0 0; }
.fader.hz .th { top: 6px; bottom: 6px; width: 40px; height: auto; margin: 0 0 0 -20px; left: 0; right: auto; }
.fader.hz .th::after { top: 6px; bottom: 6px; left: 50%; right: auto; width: 3px; height: auto; margin: 0 0 0 -1.5px; }
.row { display: flex; gap: 6px; flex: none; }
.btn { flex: 1; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0; position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid var(--line); color: var(--txt); font-weight: 700; font-size: 17px; letter-spacing: .1em; cursor: pointer; touch-action: none; transition: transform .05s, box-shadow .15s, background .15s; }
.btn small { font-size: 9px; letter-spacing: .15em; color: var(--dim); font-weight: 600; margin-top: -1px; }
.btn.down { transform: scale(.94); background: rgba(255, 255, 255, .22); }
.btn.on { background: var(--c); color: #04040a; border-color: transparent; box-shadow: 0 0 20px color-mix(in srgb, var(--c) 60%, transparent); }
.btn.on small { color: rgba(0, 0, 0, .6); }
.btn.big { height: 60px; font-size: 20px; }
.btn.play { flex: 1.35; font-size: 26px; }
.btn.cue { color: #ffb020; border-color: rgba(255, 176, 32, .5); }
.btn.cue.down { background: #ffb020; color: #000; }
.btn.sync.on { background: #fff; color: #000; box-shadow: 0 0 22px #fff; }
.btn.warn.on { background: #ff3d5a; color: #fff; box-shadow: 0 0 20px #ff3d5a; }
.btn.stem { height: 48px; font-size: 14px; letter-spacing: .12em; overflow: hidden; }
.btn.stem::before { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--sc); opacity: .9; }
.btn.stem.on { background: color-mix(in srgb, var(--sc) 82%, #000); color: #000; }
.btn.stem.off { opacity: .45; text-decoration: line-through; }
.btn.stem.dis { opacity: .3; }
.btn.pad { height: 42px; font-size: 15px; border-radius: 10px; }
.btn.pad.set { background: color-mix(in srgb, var(--pc) 30%, #10111e); border-color: var(--pc); color: #fff; }
.btn.pad.set.down { background: var(--pc); color: #000; box-shadow: 0 0 22px var(--pc); }
.btn.lp { height: 40px; font-size: 14px; border-radius: 10px; }
.btn.mini { height: 40px; flex: .9; font-size: 13px; }
.deck .load { position: absolute; inset: 0; background: rgba(6, 6, 12, .82); backdrop-filter: blur(6px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 5; font-size: 18px; letter-spacing: .1em; }
.deck.loading .load { display: flex; }
.bar { width: 70%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--c); box-shadow: 0 0 14px var(--c); transition: width .2s; }
.deck .empty { position: absolute; left: 10px; right: 10px; top: 96px; height: 218px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--dim); font-size: 15px; letter-spacing: .1em; border: 1.5px dashed rgba(255, 255, 255, .15); border-radius: 18px; background: rgba(0, 0, 0, .45); z-index: 3; pointer-events: none; width: 220px; }
.deck.has .empty { display: none; }

/* ---------- Bottom ---------- */
#bottom { display: grid; grid-template-columns: 960px 440px 1fr; gap: 10px; min-height: 0; }
#fx { padding: 10px; display: flex; gap: 12px; position: relative; }
#xy { width: 312px; height: 178px; border-radius: 14px; position: relative; flex: none; touch-action: none; overflow: hidden; border: 1px solid var(--line); background: #05050a; }
#xy canvas { width: 100%; height: 100%; }
.xylab { position: absolute; font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .5); pointer-events: none; }
#fxchips { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px; flex: 1; }
.fxc { border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; letter-spacing: .1em; font-weight: 700; cursor: pointer; touch-action: none; position: relative; overflow: hidden; }
.fxc .ic { font-size: 18px; opacity: .85; }
.fxc.sel { background: hsl(var(--h) 90% 55% / .22); border-color: hsl(var(--h) 95% 60%); box-shadow: 0 0 18px hsl(var(--h) 95% 55% / .45); color: #fff; }
.fxc.act { background: hsl(var(--h) 95% 55%); color: #000; }
.fxside { width: 92px; display: flex; flex-direction: column; gap: 6px; flex: none; }
.asg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.asg .btn { height: 34px; font-size: 15px; border-radius: 9px; }
.fxside .btn { height: 36px; font-size: 13px; flex: none; }
.fxside .lbl { font-size: 10px; letter-spacing: .2em; color: var(--dim); text-align: center; }
#master { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; gap: 8px; align-items: center; }
#xfwrap { display: flex; flex-direction: column; gap: 4px; }
.xfl { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.asgrow { display: flex; gap: 6px; }
.asgrow .btn { height: 34px; font-size: 14px; }
.curve { display: flex; gap: 5px; }
.curve .btn { height: 32px; font-size: 12px; }
#sampler { padding: 10px; display: grid; grid-template-columns: 1fr 170px; gap: 10px; }
#pads { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; }
.sp { border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 28%, #10111e), #0d0e1a); display: flex; align-items: center; justify-content: center; flex-direction: column; font-size: 16px; letter-spacing: .08em; font-weight: 700; cursor: pointer; touch-action: none; position: relative; overflow: hidden; }
.sp small { font-size: 18px; margin-bottom: 2px; }
.sp.down { background: var(--pc); color: #000; box-shadow: 0 0 30px var(--pc); transform: scale(.95); }
#dropcol { display: flex; flex-direction: column; gap: 8px; }
#dropbtn { flex: 1; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .25); background: radial-gradient(circle at 50% 30%, rgba(255, 45, 149, .55), rgba(255, 176, 32, .25) 70%, rgba(0, 0, 0, .3)); font-family: 'Orbitron'; font-weight: 900; font-size: 20px; letter-spacing: .12em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; position: relative; overflow: hidden; touch-action: none; }
#dropbtn small { font-family: 'Rajdhani'; font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .8); font-weight: 600; }
#dropbtn.armed { animation: pulse .5s infinite alternate; }
#dropbtn .prog { position: absolute; left: 0; bottom: 0; height: 100%; width: var(--p, 0%); background: rgba(255, 255, 255, .18); }
@keyframes pulse { to { box-shadow: 0 0 40px #ff2d95, inset 0 0 40px rgba(255, 45, 149, .6); } }
.bars { display: flex; gap: 5px; }
.bars .btn { height: 30px; font-size: 13px; }

/* ---------- Overlays ---------- */
#start { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; background: radial-gradient(circle at 50% 40%, rgba(40, 20, 80, .85), rgba(4, 4, 10, .98) 70%); cursor: pointer; text-align: center; }
#start h1 { font-family: 'Orbitron'; font-weight: 900; font-size: 92px; letter-spacing: .25em; margin: 0; background: linear-gradient(90deg, var(--ca), var(--cb), var(--cd), var(--cc)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 6s linear infinite; padding-left: .25em; }
@keyframes slide { to { background-position: 300% 0; } }
#start p { margin: 0; color: var(--dim); font-size: 22px; letter-spacing: .2em; }
#start .go { padding: 18px 54px; border-radius: 40px; border: 2px solid #fff; font-family: 'Orbitron'; font-weight: 700; letter-spacing: .3em; font-size: 22px; animation: glow 1.4s infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 40px var(--cb), inset 0 0 20px rgba(255, 45, 149, .4); } }
#start .feat { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; max-width: 1200px; font-size: 16px; color: #b9bee0; letter-spacing: .08em; }
#start .feat span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .04); }
#lib { position: fixed; left: 50%; top: 50%; width: 1500px; height: 900px; transform-origin: 50% 50%; z-index: 50; display: none; flex-direction: column; padding: 0; overflow: hidden; }
#lib.open { display: flex; animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; filter: blur(8px); } }
#libscrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 49; display: none; }
#libscrim.open { display: block; }
.lh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; flex: 1; }
.tab { height: 44px; padding: 0 22px; border-radius: 12px; display: flex; align-items: center; font-size: 17px; letter-spacing: .12em; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; }
.tab.on { background: var(--acc); color: #000; border-color: transparent; }
.tgt { display: flex; gap: 6px; align-items: center; font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.tgt .btn { flex: none; width: 52px; height: 40px; font-size: 18px; }
.lbody { flex: 1; overflow: auto; padding: 16px; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.lbody::-webkit-scrollbar { width: 8px; } .lbody::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); align-items: center; }
.card .art { width: 96px; height: 96px; border-radius: 12px; flex: none; background-size: cover; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.card .meta { flex: 1; min-width: 0; }
.card .ti { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .ar { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tags { display: flex; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; }
.tag { font-size: 11px; letter-spacing: .1em; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-family: 'Orbitron'; }
.card .ld { display: flex; gap: 6px; }
.card .ld .btn { height: 36px; flex: 1; font-size: 15px; border-radius: 9px; }
.card .ld .btn:nth-child(1) { --k: var(--ca); } .card .ld .btn:nth-child(2) { --k: var(--cb); } .card .ld .btn:nth-child(3) { --k: var(--cc); } .card .ld .btn:nth-child(4) { --k: var(--cd); }
.card .ld .btn { border-color: var(--k); color: var(--k); }
.card .ld .btn.down { background: var(--k); color: #000; }
.drop { border: 2px dashed rgba(255, 255, 255, .25); border-radius: 22px; padding: 40px; text-align: center; font-size: 22px; letter-spacing: .1em; color: var(--dim); margin-bottom: 16px; cursor: pointer; background: rgba(255, 255, 255, .02); }
.drop.over { border-color: var(--acc); color: #fff; background: rgba(0, 229, 255, .08); }
.drop b { display: block; color: #fff; font-size: 28px; margin-bottom: 6px; }
.note { font-size: 15px; line-height: 1.45; color: #b6bbdc; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-weight: 500; }
.note b { color: #fff; }
.input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: #fff; font: 600 18px 'Rajdhani'; padding: 0 14px; outline: none; user-select: text; -webkit-user-select: text; touch-action: auto; }
.input:focus { border-color: var(--acc); }
.srow { display: flex; gap: 10px; margin-bottom: 14px; }
.srow .btn { flex: none; width: 140px; height: 48px; }
#toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 200; padding: 12px 24px; border-radius: 30px; background: rgba(20, 20, 40, .95); border: 1px solid var(--line); font-size: 18px; letter-spacing: .06em; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; box-shadow: 0 10px 40px #000; max-width: 80vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-10px); }
#flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: #fff; opacity: 0; mix-blend-mode: overlay; }
.spotbar { display: none; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; height: 40px; border-radius: 12px; border: 1px solid rgba(30, 215, 96, .4); background: rgba(30, 215, 96, .08); min-width: 0; max-width: 360px; }
.spotbar.on { display: flex; }
.spotbar img { width: 32px; height: 32px; border-radius: 6px; }
.spotbar .mt { min-width: 0; font-size: 13px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.spotbar .btn { flex: none; width: 36px; height: 32px; font-size: 14px; border-radius: 9px; }
@media (max-width: 900px) and (orientation: portrait) { #rot { display: flex; } }
#rot { display: none; position: fixed; inset: 0; z-index: 300; background: var(--bg); align-items: center; justify-content: center; font-size: 26px; text-align: center; padding: 30px; }

/* Layout-Korrekturen unten */
#bottom > * { min-height: 0; overflow: hidden; }
#fxchips { grid-template-rows: repeat(4, 1fr); align-self: stretch; min-height: 0; gap: 5px; }
.fxc { font-size: 13px; min-height: 0; }
#master { gap: 5px; padding: 8px 10px; }
#master .xfl { height: 14px; }
#master #xf { height: 46px; flex: none; }
#master .curve .btn, #master .asgrow .btn { height: 30px; font-size: 12px; }
#master .mrow .btn { height: 30px !important; }
.mrowm { display: flex; align-items: center; gap: 10px; }
.mrowm .xfl { width: 96px; flex: none; display: block; }
.mrowm .fader { flex: 1; height: 34px; }
.mrowm .xfl{display:flex;justify-content:space-between}
.fxside{gap:4px}.fxside .btn{height:30px}.asg .btn{height:30px}
.spotbar .kbtn{display:flex;align-items:center;justify-content:center}
.lnk{color:#1ed760;font-weight:700;text-decoration:underline;touch-action:manipulation;padding:4px 0;cursor:pointer}
.kbtn.pfl.on{background:#ffb020;color:#000;border-color:transparent}
.fcol .kbtn{height:22px;font-size:10px}
.tab{padding:0 16px!important;font-size:15px!important}
.dsel{height:46px;border-radius:12px;border:1px solid var(--line);background:rgba(0,0,0,.4);color:#fff;font:600 17px Rajdhani;padding:0 10px;min-width:260px;touch-action:auto}
.iogrid{display:grid;grid-template-columns:220px 1fr auto;gap:10px 14px;align-items:center;margin-bottom:14px}
.iogrid .lb{font-size:16px;letter-spacing:.08em;color:#c9cdea}
.iogrid .btn{flex:none;width:130px;height:46px}
.midimap{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.midimap span{font:600 12px Orbitron;padding:4px 8px;border-radius:8px;background:rgba(255,255,255,.07)}
.learning{outline:3px dashed #ffe135!important;outline-offset:2px}
.learnsel{outline:3px solid #ff2d95!important;outline-offset:2px;box-shadow:0 0 24px #ff2d95!important}
.svc{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.svc .card{flex-direction:column;align-items:stretch}
.svc .card .btn{height:42px;flex:none;--k:#fff}

/* Performance: kein Live-Blur über animiertem Hintergrund */
.glass{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(14,15,27,.86)}
#lib.glass{backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;background:rgba(14,15,27,.94)}
.deck .load{backdrop-filter:none;background:rgba(6,6,12,.94)}
.deck,.glass{will-change:auto}

/* Hintergrund scheint durch die Panels */
.glass{background:linear-gradient(180deg,rgba(18,19,34,.50),rgba(10,10,20,.62))}
.deck.glass{background:linear-gradient(180deg,rgba(18,19,34,.46),rgba(10,10,20,.58))}
#waves.glass{background:rgba(6,6,14,.45)}

.visits{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:rgba(0,0,0,.35);white-space:nowrap}
.visits b{font-family:'Orbitron';font-size:20px;font-weight:800}
.visits small{font-size:9px;letter-spacing:.18em;color:var(--dim);line-height:1.15}
.visits span{color:#9fe8ff}
.powered{display:flex;flex-direction:column;justify-content:center;gap:2px;height:40px;padding:0 4px;text-decoration:none;opacity:.9}
.powered:active{opacity:1;transform:scale(.97)}
.powered small{font-size:9px;letter-spacing:.3em;color:var(--dim);line-height:1}
.powered img{height:19px;width:auto;display:block}
#stage{grid-template-columns:minmax(0,1fr)}
#top{overflow:hidden;gap:8px;min-width:0}
#top .tbtn{padding:0 11px;font-size:14px;letter-spacing:.06em}
.clockbox{min-width:150px;padding:0 10px}
.mvu{width:100px}
.bpmnum{min-width:98px}
.logo{padding-right:2px}

#start .sp{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:6px}
#start .sp small{font-size:15px;letter-spacing:.5em;color:var(--dim)}
#start .sp img{width:min(760px,62vw);height:auto;filter:drop-shadow(0 0 30px rgba(255,255,255,.12))}
.powered img{height:15px}

/* ruhiges Design: keine Animationen/Glows */
.tbtn.rec.on{animation:none}
#dropbtn.armed{animation:none;box-shadow:0 0 0 2px #ff2d95}
.beats i.on,.beats i.on.d{box-shadow:none}
#start h1{animation:none;background:linear-gradient(90deg,#00e5ff,#ff2d95)!important;-webkit-background-clip:text;background-clip:text}
#start .go{animation:none}
.glass{background:rgba(14,15,27,.9)}
.deck.glass{background:rgba(14,15,27,.92)}
#waves.glass{background:rgba(6,6,14,.88)}
.deck.leader{box-shadow:0 0 0 1px var(--c)}
.btn.on{box-shadow:none}
