/* audioprism.pro: the playable mixer inside the 2.2 home screen, plus the poses the page asks for while it scrolls.
   Sizes are vw / % like style.css, so the window scales as one piece with its frame. */

html, body { background: #05060A; }
body { -webkit-user-select: none; user-select: none; }
input#link { -webkit-user-select: text; user-select: text; background: none; border: 0; outline: 0; color: var(--ink); flex: 1; min-width: 0; font-size: .86vw; }
input#link::placeholder { color: var(--mute); }

/* ---- mixer panel ------------------------------------------------------------------------------ */
.rg.bottom { z-index: 5; gap: .38vw; padding: .75vw 1.2vw .5vw 1.2vw; transition: top .5s cubic-bezier(.22,1,.36,1), height .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease; border-radius: 1.2vw; }
.mxgrab { position: absolute; left: 50%; top: .12vw; width: 4.4vw; height: .9vw; transform: translateX(-50%); cursor: ns-resize; z-index: 3; }
.mxgrab::before { content: ""; position: absolute; left: 0; right: 0; top: .28vw; height: .26vw; border-radius: .2vw; background: #3FC8FF; box-shadow: 0 0 .6vw rgba(63,200,255,.8); opacity: .85; transition: opacity .2s, transform .2s; }
.mxgrab:hover::before { opacity: 1; transform: scaleX(1.15); }
.mxhead { flex: none; gap: .42vw; white-space: nowrap; }
.mxhead .mb { cursor: pointer; flex: none; }
.mxhead .mb.strong { cursor: default; padding: 0 .3vw 0 .1vw; color: var(--dim); }
.mxhead .mb.sq { width: 2.05vw; padding: 0; justify-content: center; }
.mxdot { width: .5vw; height: .5vw; border-radius: 50%; background: #38FF9A; box-shadow: 0 0 .5vw #38FF9A; flex: none; margin: 0 .2vw 0 .2vw; }
#mxsong span { max-width: 8.5vw; overflow: hidden; text-overflow: ellipsis; }
.mxplay { border-color: rgba(63,200,255,.9) !important; color: #BFEAFF; box-shadow: 0 0 .7vw rgba(63,200,255,.45), inset 0 0 .6vw rgba(63,200,255,.18); border-radius: 50% !important; }
.mxplay b { font-size: .78vw; opacity: 1; }
.mxplay.on { background: linear-gradient(180deg, rgba(63,200,255,.5), rgba(63,200,255,.18)); color: #fff; }
.mxplay.idle { animation: mxidle 1.8s ease-in-out infinite; }
@keyframes mxidle { 0%, 100% { box-shadow: 0 0 .5vw rgba(63,200,255,.4), inset 0 0 .6vw rgba(63,200,255,.18); } 50% { box-shadow: 0 0 1.5vw rgba(63,200,255,.95), inset 0 0 .8vw rgba(63,200,255,.4); } }
#mxloop.on { color: #FFC452; border-color: rgba(255,196,82,.75); }
.mtime { font-family: "Sora", sans-serif; font-variant-numeric: tabular-nums; min-width: 6.2vw; text-align: center; color: var(--ink); }
.mxhead .mlab { margin-left: .3vw; }

/* faders: the master in the header, one per lane */
.mxfader { position: relative; height: 1.3vw; flex: none; cursor: ew-resize; touch-action: none; }
.mxfader::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .26vw; margin-top: -.13vw; border-radius: .13vw; background: rgba(255,255,255,.2); }
.mxfader i { position: absolute; left: 0; top: 50%; height: .26vw; margin-top: -.13vw; border-radius: .13vw; background: var(--c, #F2F4FF); box-shadow: 0 0 .45vw var(--c, rgba(255,255,255,.6)); pointer-events: none; }
.mxfader b { position: absolute; top: 50%; width: .95vw; height: .95vw; margin: -.475vw 0 0 -.475vw; border-radius: 50%; background: #fff; box-shadow: 0 0 .5vw var(--c, rgba(255,255,255,.7)), 0 .1vw .3vw rgba(0,0,0,.6); pointer-events: none; }
.mxfader.master { width: 6.4vw; }

/* ruler */
.mxrulerrow { flex: none; height: 1.25vw; padding: 0 6.2% 0 19.4%; border-bottom: 1px solid rgba(255,255,255,.14); }
#mxruler { display: block; width: 100%; height: 100%; cursor: pointer; }

/* lanes */
#lanes { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .3vw; }
.mxlane { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 19% 1fr 5.8%; gap: .4vw; align-items: stretch; transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1), filter .3s ease; }
.mxlane.pending { opacity: 0; transform: translateY(.7vw) scale(.985); pointer-events: none; }
.mxlane.off .mxwave, .mxlane.off .mxnm { opacity: .32; filter: saturate(.4); }
.mxctl { position: relative; display: flex; align-items: center; gap: .42vw; padding: 0 .5vw 0 .75vw; border-radius: .55vw; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 17%, transparent), rgba(8,7,22,.8)); overflow: hidden; }
.mxctl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .26vw; background: var(--c); box-shadow: 0 0 .5vw var(--c); }
.mxnm { flex: 1; min-width: 0; line-height: 1.15; transition: opacity .3s; }
.mxnm b { display: block; font-family: "Cinzel", serif; font-size: .64vw; font-weight: 600; letter-spacing: .14em; color: var(--c); white-space: nowrap; }
.mxnm span { display: block; font-size: .62vw; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxms { width: 1.3vw; height: 1.3vw; flex: none; border-radius: .32vw; border: 1px solid var(--edge); background: var(--glass); display: inline-flex; align-items: center; justify-content: center; font-size: .62vw; font-weight: 700; color: var(--dim); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.mxms:hover { border-color: #fff; color: #fff; }
.mxms.m.on { background: #FF4D5E; border-color: #FF4D5E; color: #fff; box-shadow: 0 0 .6vw rgba(255,77,94,.7); }
.mxms.s.on { background: #FFC452; border-color: #FFC452; color: #14100a; box-shadow: 0 0 .6vw rgba(255,196,82,.8); }
.mxlane .mxfader { width: 3.3vw; }
.mxdb { display: none; width: 3.4vw; font-size: .58vw; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }
.mxmeter { position: relative; flex: none; width: .3vw; align-self: stretch; margin: .32vw 0; border-radius: .15vw; background: rgba(255,255,255,.1); overflow: hidden; }
.mxmeter i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(0deg, var(--c), #fff); border-radius: .15vw; }
.mxwave { position: relative; border-radius: .5vw; overflow: hidden; cursor: pointer; border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
          background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, rgba(14,12,34,.75)), rgba(8,7,22,.82)), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 1.5vw); transition: opacity .3s; }
.mxwave canvas { position: absolute; left: 0; top: 0; height: 100%; display: block; }
.mxwave .lit { position: absolute; left: 0; top: 0; bottom: 0; width: 0; overflow: hidden; }
.mxtail { display: flex; align-items: center; justify-content: space-between; gap: .3vw; }
.mxfx { display: flex; flex-direction: column; gap: .16vw; flex: 1; }
.mxfx i { font-style: normal; display: none; height: 1.05vw; border-radius: .52vw; border: 1px solid var(--edge); background: var(--glass); font-size: .5vw; font-weight: 700; letter-spacing: .16em; color: var(--dim); align-items: center; justify-content: center; }
.mxfx i:first-child { display: flex; }
.mxx { width: 1.2vw; text-align: center; color: var(--dim); font-size: .8vw; flex: none; }
#mxph { position: absolute; top: -.2vw; bottom: -.1vw; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 .5vw #FFC452, 0 0 1vw rgba(255,196,82,.6); pointer-events: none; z-index: 2; }
#mxph::before { content: ""; position: absolute; left: -.34vw; top: -.25vw; width: .8vw; height: .6vw; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mxempty { position: absolute; left: 0; right: 0; top: 46%; display: none; pointer-events: none; }
body.nolanes .mxempty { display: flex; }
body.nolanes #mxph { opacity: 0; }
#mxhint { position: absolute; left: 50%; bottom: 1.2vw; transform: translateX(-50%); z-index: 4; padding: .5vw 1vw; border-radius: 999px; background: rgba(6,8,22,.92); border: 1px solid rgba(63,200,255,.6); box-shadow: 0 0 1.2vw rgba(63,200,255,.35); font-size: .76vw; font-weight: 600; color: #EAF2FF; white-space: nowrap; pointer-events: none; transition: opacity .5s ease; }
#mxhint.gone { opacity: 0; }

/* the mixer pulled up over the page (the ▲ button, Mix It, or the MIX IT step) */
body.exp .rg.bottom { top: 16.6%; height: 71.6%; box-shadow: 0 -1.2vw 3vw rgba(0,0,0,.55); }
body.exp .rg.bottom::before { background: linear-gradient(180deg, rgba(9,10,26,.97), rgba(5,6,16,.98)) !important; }
body.exp #lanes { gap: .55vw; }
body.exp .mxdb { display: block; }
body.exp .mxfx i { display: flex; }
body.exp .mxnm b { font-size: .78vw; } body.exp .mxnm span { font-size: .74vw; margin-top: .2vw; }
body.exp .mxlane .mxfader { width: 4.2vw; }
body.exp .mxlane { grid-template-columns: 22% 1fr 5.8%; }
body.exp .mxrulerrow { padding-left: 22.4%; }

/* ---- the transport bar in the frame ------------------------------------------------------------ */
.seek { cursor: pointer; }
body.playing .t-play .pause { display: block; }
.t-loop.on { background: radial-gradient(closest-side, rgba(255,196,82,.45), rgba(255,196,82,0) 100%); }

/* ---- "I want" menu: the chosen line is lit ----------------------------------------------------- */
#ddmenu div.on { background: rgba(255,196,82,.16); color: #FFE2A6; }
#ddmenu div.on::after { content: "✓"; float: right; color: #FFC452; }
#ddwrap { position: relative; flex: 1; display: flex; }

/* ---- poses: the page around this window lights the part its current step is about -------------- */
.rg.bar, .rg.right, .rg.left { transition: box-shadow .5s ease; border-radius: 1.2vw; }
body.pose-paste .rg.bar { box-shadow: 0 0 0 2px rgba(255,196,82,.85), 0 0 2.6vw rgba(255,196,82,.38); }
body.pose-paste .rg.bar .input { border-color: rgba(255,196,82,.8); box-shadow: inset 0 2px 10px rgba(0,0,0,.45), 0 0 1vw rgba(255,196,82,.3); }
body.pose-paste:not(.go) #fetch { animation: ap22press 1.4s ease-in-out infinite; }
body.pose-paste.go .rg.left { box-shadow: 0 0 0 2px rgba(79,168,255,.8), 0 0 2.4vw rgba(79,168,255,.32); }
body.pose-split .rg.right { box-shadow: 0 0 0 2px rgba(255,196,82,.85), 0 0 2.6vw rgba(255,196,82,.38); }
body.pose-split.go .rg.bottom, body.pose-mix .rg.bottom { box-shadow: 0 0 0 2px rgba(79,168,255,.8), 0 0 2.6vw rgba(79,168,255,.34); }
body.pose-mix.go .rg.bottom { box-shadow: 0 0 0 2px rgba(79,168,255,.8), 0 -1.2vw 3vw rgba(0,0,0,.55), 0 0 2.6vw rgba(79,168,255,.3); }
@keyframes ap22press { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,196,82,.0); } 50% { box-shadow: 0 0 1.6vw rgba(255,196,82,.75); } }
/* FLIP IT: the KeyPrism card in the sidebar is the way across */
body.pose-flip .rg.slot.key { animation: ap22key 1.3s ease-in-out infinite !important; border-color: rgba(255,196,82,.95) !important; background: linear-gradient(180deg, rgba(255,196,82,.2), rgba(79,168,255,.14)) !important; transform: scale(1.04); }
@keyframes ap22key { 0%, 100% { box-shadow: 0 0 1vw rgba(255,196,82,.55), 0 0 2vw rgba(79,168,255,.4); } 50% { box-shadow: 0 0 2.2vw rgba(255,196,82,.95), 0 0 3.4vw rgba(79,168,255,.75); } }
.keytip { left: 14.6%; top: 39.3%; height: 3.8%; padding: 0 1vw; display: none; align-items: center; z-index: 9; border-radius: 999px; background: rgba(6,8,22,.95); border: 1px solid rgba(255,196,82,.8); box-shadow: 0 0 1.4vw rgba(255,196,82,.4); font-size: .72vw; font-weight: 700; letter-spacing: .18em; color: #FFE2A6; white-space: nowrap; cursor: pointer; animation: ap22nudge 1.3s ease-in-out infinite; }
body.pose-flip .keytip { display: inline-flex; }
@keyframes ap22nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-.35vw); } }
@media (prefers-reduced-motion: reduce) { .mxplay.idle, body.pose-flip .rg.slot.key, .keytip, body.pose-paste:not(.go) #fetch { animation: none !important; } }

/* gold theme: the SPLIT button fills blue -> gold while a run is on */
html[data-theme="gold"] #splitfill { background: linear-gradient(90deg, rgba(79,168,255,.42), rgba(255,196,82,.5)); }
html[data-theme="gold"] .songlist .row.sel { border-color: rgba(255,196,82,.65); background: rgba(255,196,82,.1); }
html[data-theme="gold"] .seek .prog { background: linear-gradient(90deg, #4FA8FF, #FFC452); box-shadow: 0 0 .5vw rgba(255,196,82,.6); }
html[data-theme="gold"] .leds i { background: linear-gradient(180deg, #FFC452, #4FA8FF); box-shadow: 0 0 4px rgba(255,196,82,.6); }

/* CHART IT: the split also writes the piano part, in three levels */
body.pose-chart .rg.right { box-shadow: 0 0 0 2px rgba(255,196,82,.85), 0 0 2.6vw rgba(255,196,82,.38); }
body.pose-chart .tog.midiopt .dd, body.pose-chart [data-opt="midi"] { box-shadow: 0 0 1vw rgba(255,196,82,.7); }
body.pose-chart.go .rg.left { box-shadow: 0 0 0 2px rgba(79,168,255,.8), 0 0 2.4vw rgba(79,168,255,.32); }
body.pose-chart.go .rg.slot.s3 { border-color: rgba(255,196,82,.9); box-shadow: 0 0 1.4vw rgba(255,196,82,.5); }
.ddmenu div.on { background: rgba(255,196,82,.16); color: #FFE2A6; }
.ddmenu div.on::after { content: "✓"; float: right; color: #FFC452; }
.songlist .lv { display: inline-flex; gap: .3vw; margin-left: .5vw; }
.songlist .lv i { font-style: normal; font-size: .56vw; font-weight: 700; letter-spacing: .14em; padding: .16vw .5vw; border-radius: 999px; border: 1px solid rgba(255,196,82,.7); color: #FFE2A6; background: rgba(255,196,82,.1); animation: ap22lv .5s both; }
.songlist .lv i:nth-child(1) { border-color: rgba(95,227,200,.75); color: #A9F3E3; background: rgba(95,227,200,.1); }
.songlist .lv i:nth-child(2) { animation-delay: .12s; }
.songlist .lv i:nth-child(3) { border-color: rgba(217,163,255,.75); color: #E9CCFF; background: rgba(217,163,255,.1); animation-delay: .24s; }
@keyframes ap22lv { from { opacity: 0; transform: translateY(.3vw); } to { opacity: 1; transform: none; } }

/* ---- audioprism.pro 2026-11-13: REV / EQ / FLT are switches; the desktop-only popover ---- */
.mxfx i { cursor: pointer; transition: color .15s, border-color .15s, background .15s, box-shadow .15s; }
.mxfx i:hover { color: #EAF2FF; border-color: rgba(234,242,255,.45); }
.mxfx i.on { color: #05070D; background: var(--c); border-color: var(--c); box-shadow: 0 0 .7vw color-mix(in srgb, var(--c) 55%, transparent); }
.mxnm b { white-space: normal; overflow-wrap: normal; line-height: 1.25; }      /* ACOUSTIC GUITAR: two words, two lines */
#deskpop { position: absolute; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(3,5,10,.62); backdrop-filter: blur(5px); }
#deskpop.open { display: flex; }
#deskpop > div { width: 34vw; padding: 2vw 2.2vw 1.8vw; border-radius: 1.1vw; background: #0A0F1C; border: 1px solid rgba(255,196,82,.5); box-shadow: 0 1.6vw 5vw rgba(0,0,0,.7), 0 0 3vw rgba(255,196,82,.18); text-align: left; }
#deskpop b { display: block; font: 700 .86vw/1.2 'JetBrains Mono', monospace; letter-spacing: .18em; color: #FFC452; }
#deskpop p { margin: 1vw 0 0; font: 400 1.05vw/1.6 'Sora', sans-serif; color: #DCE4F5; }
#deskpop span { display: flex; gap: .8vw; margin-top: 1.5vw; }
#deskpop button { cursor: pointer; border-radius: 999px; padding: .75vw 1.4vw; font: 700 .74vw/1 'JetBrains Mono', monospace; letter-spacing: .16em; }
#deskbuy { border: 0; background: linear-gradient(100deg, #4FA8FF, #2D6BFF 45%, #FFC452); color: #05070D; }
#deskok { border: 1px solid rgba(234,242,255,.3); background: transparent; color: #EAF2FF; }
