/* display type: "Not Jam Chunky Sans" by Not Jam (CC0, assets/fonts): a chunky, rounded 8px pixel face */
@font-face { font-family: "NotJamChunky"; src: url("../assets/fonts/NotJamChunky8.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "NotJamChunky11"; src: url("../assets/fonts/NotJamChunky11.ttf") format("truetype"); font-display: block; }
/* display type: "You're Gone" by Ray Larabie (CC0, assets/fonts) */
@font-face { font-family: "YoureGone"; src: url("../assets/fonts/YoureGone.otf") format("opentype"); font-style: normal; font-display: block; }
@font-face { font-family: "YoureGone"; src: url("../assets/fonts/YoureGone-Italic.otf") format("opentype"); font-style: italic; font-display: block; }
:root {
  --pink: #ff4fd8; --cyan: #3be8ff; --lime: #7dff4f; --gold: #ffd23b; --red: #ff4b5c;
  --ink: #12062a; --panel: rgba(16, 8, 36, 0.78); --line: rgba(255, 255, 255, 0.14);
  --head: "NotJamChunky", "YoureGone", Impact, "Arial Black", sans-serif;
  --body: "Rubik", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #fff; font-family: var(--body); user-select: none; }
#gl, #hud { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#hud { pointer-events: none; z-index: 2; }
#ui { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#ui > * { pointer-events: auto; }
button, input, select { font-family: var(--body); }

/* ---------- buttons */
button, .filebtn {
  font-family: var(--head); font-size: 15px; letter-spacing: 0.5px; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border: 2px solid var(--line);
  padding: 10px 16px; border-radius: 12px; transition: transform .08s, box-shadow .15s, border-color .15s, background .15s; outline: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button:hover:not([disabled]), button:focus-visible, .filebtn:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(59,232,255,.45), inset 0 0 12px rgba(59,232,255,.15); transform: translateY(-1px) scale(1.02); }
button:active:not([disabled]) { transform: scale(.97); }
button[disabled] { opacity: .35; cursor: default; }
button.primary, .filebtn.primary { background: linear-gradient(180deg, #ff6be0, #b52fd0); border-color: #ffb3f0; box-shadow: 0 6px 0 #6a1080, 0 0 24px rgba(255,79,216,.35); }
button.primary:hover:not([disabled]), button.primary:focus-visible { box-shadow: 0 6px 0 #6a1080, 0 0 34px rgba(255,79,216,.7); border-color: #fff; }
button.big { font-size: 26px; padding: 16px 20px; }
button.huge { font-size: 34px; padding: 18px; width: 100%; margin-top: 12px; }
button.ghost { background: transparent; border-color: transparent; padding: 6px 10px; }
button.danger { border-color: rgba(255,75,92,.6); color: #ffb3bb; }
button.on, .chip.on, .tab.on { border-color: var(--lime); background: rgba(125,255,79,.16); box-shadow: 0 0 14px rgba(125,255,79,.35); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.muted { color: rgba(255,255,255,.6); }
.small { font-size: 13px; }
.err { color: #ffb3bb; background: rgba(255,75,92,.15); border: 1px solid rgba(255,75,92,.4); padding: 10px; border-radius: 10px; margin-top: 10px; }
.good { color: #c9ffb0; background: rgba(125,255,79,.12); border: 1px solid rgba(125,255,79,.35); padding: 10px; border-radius: 10px; margin-top: 10px; }

/* ---------- panels */
.panel {
  background: var(--panel); border: 2px solid var(--line); border-radius: 22px; padding: 22px; backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.head h2 { font-family: var(--head); margin: 0; font-size: 30px; letter-spacing: 1px; text-shadow: 3px 3px 0 var(--ink), 0 0 20px rgba(255,79,216,.5); flex: 1; }
.sec { font-family: var(--head); font-size: 14px; color: var(--cyan); margin: 16px 0 8px; letter-spacing: 1px; }
.sec small { font-family: var(--body); color: rgba(255,255,255,.5); letter-spacing: 0; font-size: 12px; margin-left: 8px; }
.wallet { font-family: var(--head); background: rgba(0,0,0,.35); border: 2px solid rgba(255,210,59,.5); border-radius: 12px; padding: 6px 14px; display: inline-flex; align-items: baseline; gap: 8px; }
.wallet b { color: var(--gold); font-size: 22px; font-weight: normal; text-shadow: 0 0 12px rgba(255,210,59,.6); }
.wallet small { font-size: 11px; color: rgba(255,255,255,.6); }

/* ---------- logo */
.logo { font-family: var(--head); line-height: .9; transform: rotate(-4deg); text-align: center; }
.logo span { display: block; }
.logo span:first-child { font-size: 92px; color: var(--cyan); text-shadow: 6px 6px 0 var(--ink), 0 0 40px rgba(59,232,255,.8); }
.logo span:last-child { font-size: 110px; color: var(--pink); text-shadow: 6px 6px 0 var(--ink), 0 0 50px rgba(255,79,216,.9); animation: wobble 1.2s ease-in-out infinite; }
.logo.small span:first-child { font-size: 40px; text-shadow: 4px 4px 0 var(--ink), 0 0 20px rgba(59,232,255,.8); }
.logo.small span:last-child { font-size: 46px; text-shadow: 4px 4px 0 var(--ink), 0 0 26px rgba(255,79,216,.9); }
@keyframes wobble { 0%,100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.04); } }

/* ---------- boot */
.screen-boot .boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; background: radial-gradient(ellipse at center, rgba(0,0,0,.1), rgba(0,0,0,.65)); cursor: pointer; }
.boot .press { font-family: var(--head); font-size: 24px; animation: blink 1s steps(2) infinite; text-shadow: 3px 3px 0 var(--ink); text-align: center; padding: 0 16px; }
.boot .hint { color: rgba(255,255,255,.75); font-size: 15px; text-shadow: 0 2px 6px #000; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- menu */
.menu-panel { position: absolute; left: 4vw; top: 50%; transform: translateY(-50%); width: 340px; display: flex; flex-direction: column; gap: 12px; }
.menu-panel .logo { margin: 4px 0 10px; }
.menu-panel .wallet { align-self: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; text-align: center; }
.stats b { display: block; font-family: var(--head); font-size: 20px; color: var(--lime); font-weight: normal; }
.stats small { font-size: 11px; color: rgba(255,255,255,.6); }
.nowplaying { position: absolute; right: 24px; bottom: 20px; background: rgba(0,0,0,.5); padding: 8px 14px; border-radius: 10px; font-size: 14px; color: rgba(255,255,255,.8); }
.nowplaying b { color: var(--cyan); }

/* ---------- song select */
.select { position: absolute; left: 3vw; top: 4vh; bottom: 4vh; display: flex; gap: 18px; width: min(1000px, 70vw); }
.songlist { flex: 1.15; display: flex; flex-direction: column; min-width: 0; }
.songlist .list { overflow-y: auto; flex: 1; padding-right: 6px; display: flex; flex-direction: column; gap: 6px; }
.song { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; text-align: left; justify-content: stretch; padding: 10px 14px; border-radius: 12px; font-family: var(--body); }
.song .t { font-family: var(--head); font-size: 16px; }
.song .a { grid-row: 2; font-size: 12px; color: rgba(255,255,255,.6); }
.song .r { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 14px; color: var(--gold); }
.song.sel { border-color: var(--pink); background: rgba(255,79,216,.18); box-shadow: 0 0 20px rgba(255,79,216,.35); }
.song.locked .t { color: rgba(255,255,255,.55); }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars i { color: rgba(255,255,255,.18); font-style: normal; }
.songinfo { flex: 1; overflow-y: auto; }
.songinfo .title { font-family: var(--head); font-size: 30px; line-height: 1.05; text-shadow: 3px 3px 0 var(--ink); }
.songinfo .artist { color: var(--cyan); margin: 6px 0 10px; }
.songinfo .blurb { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 14px; }
.diffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.diff { flex-direction: column; padding: 8px 4px; font-size: 13px; }
.diff small { font-family: var(--body); font-size: 12px; color: var(--gold); }
.best { margin: 12px 0; font-size: 14px; color: rgba(255,255,255,.8); }
.fc { color: var(--lime); font-family: var(--head); font-size: 11px; }
.pickers { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.picker { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.25); border-radius: 12px; padding: 6px 6px 6px 14px; }
.picker small { font-family: var(--head); font-size: 11px; color: rgba(255,255,255,.55); }
.picker > div { display: flex; align-items: center; gap: 8px; }
.picker b { min-width: 130px; text-align: center; font-family: var(--head); font-weight: normal; font-size: 14px; }
.arrow { padding: 4px 12px; font-size: 18px; }
.check { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.lockbox { background: rgba(0,0,0,.3); border: 2px dashed rgba(255,210,59,.4); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- results */
.results { position: absolute; right: 4vw; top: 50%; transform: translateY(-50%); width: min(520px, 92vw); max-height: 94vh; overflow-y: auto; }
.rhead { display: flex; gap: 18px; align-items: center; }
.grade { font-family: var(--head); font-size: 96px; line-height: 1; text-shadow: 5px 5px 0 var(--ink); animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.g-Sp, .g-S { color: var(--gold); text-shadow: 5px 5px 0 var(--ink), 0 0 40px rgba(255,210,59,.9); }
.g-A { color: var(--lime); } .g-B { color: var(--cyan); } .g-C { color: #b9a3ff; } .g-D { color: #ff9f6b; } .g-F { color: var(--red); }
.results .title { font-family: var(--head); font-size: 22px; }
.results .artist { color: rgba(255,255,255,.65); font-size: 13px; }
.bigstars span { font-size: 34px; color: rgba(255,255,255,.15); display: inline-block; }
.bigstars span.on { color: var(--gold); animation: starpop .5s cubic-bezier(.2,1.8,.4,1) both; text-shadow: 0 0 18px rgba(255,210,59,.9); }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
.failed { color: var(--red); font-family: var(--head); margin-top: 10px; }
.fcbanner { font-family: var(--head); font-size: 26px; color: var(--lime); text-shadow: 3px 3px 0 var(--ink), 0 0 20px rgba(125,255,79,.8); animation: wobble 1s infinite; margin-top: 8px; }
.score { font-family: var(--head); font-size: 44px; margin: 10px 0; text-shadow: 3px 3px 0 var(--ink); }
.nb { font-size: 14px; color: var(--pink); vertical-align: middle; animation: blink .6s steps(2) infinite; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid div { background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px; text-align: center; }
.grid small { display: block; font-size: 10px; color: rgba(255,255,255,.55); font-family: var(--head); }
.grid b { font-family: var(--head); font-weight: normal; font-size: 18px; }
.c-p { color: #fff36b; } .c-g { color: #6bffcf; } .c-o { color: #7fb8ff; } .c-m { color: var(--red); }
.pay { margin-top: 14px; }
.payrow { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px dashed var(--line); opacity: 0; animation: slidein .35s ease-out both; }
.payrow b { color: var(--gold); font-family: var(--head); font-weight: normal; }
.payrow.total { border: none; font-family: var(--head); font-size: 20px; }
.payrow.total b { font-size: 26px; text-shadow: 0 0 16px rgba(255,210,59,.8); }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- pause */
.pause { position: absolute; inset: 0; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; cursor: ew-resize; }
.pause .panel { cursor: default; }
.hwctl { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.hwctl[hidden] { display: none; }
.hwctl .sec { margin: 4px 0 0; }
.hwrow { display: grid; grid-template-columns: 70px 40px 1fr 40px; gap: 6px; align-items: center; font-size: 13px; }
.hwrow span { text-align: left; color: rgba(255,255,255,.7); }
.hwrow b { font-family: var(--head); font-weight: normal; font-size: 13px; }
.hwrow button { padding: 6px 0; }
.pause .panel { display: flex; flex-direction: column; gap: 12px; width: 320px; text-align: center; }
.pause h2 { font-family: var(--head); font-size: 40px; margin: 0 0 8px; }

/* ---------- shop / closet / settings */
.shop, .closet, .settings, .calibrate { position: absolute; left: 3vw; top: 4vh; bottom: 4vh; width: min(640px, 92vw); overflow-y: auto; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { font-size: 13px; padding: 8px 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.card { background: rgba(0,0,0,.28); border: 2px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.card.owned { border-color: rgba(125,255,79,.35); }
.cardbtn { flex-direction: column; align-items: flex-start; text-align: left; background: transparent; border: none; padding: 6px; font-family: var(--head); }
.cardbtn small { font-family: var(--body); font-size: 12px; color: rgba(255,255,255,.6); }
.buy { color: var(--gold); border-color: rgba(255,210,59,.45); }
.buy[data-poor] { opacity: .55; }
.tag { font-family: var(--head); font-size: 12px; color: var(--lime); text-align: center; padding: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-family: var(--body); font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.slider { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; margin: 10px 0; }
.slider b { font-family: var(--head); font-weight: normal; font-size: 13px; text-align: right; }
input[type=range] { accent-color: var(--pink); width: 100%; }
.keys { margin-top: 16px; line-height: 1.7; }
.keys b { color: var(--cyan); }
.pad { margin: 20px auto; width: 180px; height: 180px; border-radius: 50%; border: 4px solid var(--cyan); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; font-family: var(--head); font-size: 24px; }
.pad.hit { background: rgba(59,232,255,.3); }
.pad .dot { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, var(--pink), transparent 70%); transition: transform .05s; }

/* ---------- studio */
.studio { position: absolute; left: 2vw; right: 2vw; top: 3vh; bottom: 3vh; overflow-y: auto; background: rgba(12, 6, 28, 0.92); }
.studio .head .tabs { margin: 0; }
/* dance previews (Studio, Market): the panel shrinks to a bar at the bottom so the critter can be seen dancing */
.peekbar { display: none; }
.panel.peek { top: auto; overflow: hidden; }
.panel.peek > *:not(.peekbar) { display: none; }
.panel.peek .peekbar { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
/* MY DANCES → FROM A VIDEO: the video (with the tracked body drawn over it) beside its settings */
.vidbox { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.vidbox[hidden] { display: none; }
/* Market: why you're reporting something; the reports list (developer accounts) */
.mreport { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mrep .why { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 3px; }
.mrep .why b { color: var(--pink); }
.mrep .note { font-size: 12px; color: rgba(255,255,255,.55); font-style: italic; }
.vidwrap { position: relative; flex: 0 0 auto; max-width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.vidwrap video { display: block; width: 100%; }
.vidwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vidwrap.mir video, .vidwrap.mir canvas { transform: scaleX(-1); }
.vidside { flex: 1 1 340px; min-width: 0; }
.vidside .row:first-child { margin-top: 0; }
.vidside input[type=number] { width: 76px; }
.vidside .bad { color: var(--red); }
.bm-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; }
.bm-top label, .rec label, .impres label { display: flex; gap: 6px; align-items: center; color: rgba(255,255,255,.75); }
input, select { background: rgba(0,0,0,.4); color: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 14px; }
input:focus, select:focus { border-color: var(--cyan); outline: none; }
input[type=number] { width: 70px; }
.bm-transport { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0; font-size: 13px; color: rgba(255,255,255,.7); }
.bm-transport button { font-size: 12px; padding: 7px 10px; }
.bm-transport .sep { width: 14px; }
.pat, .len { min-width: 34px; }
.bm-grid { background: rgba(0,0,0,.3); border-radius: 12px; padding: 6px 10px 12px; }
.grow { display: flex; align-items: center; gap: 8px; }
.rl { width: 70px; font-size: 11px; color: rgba(255,255,255,.6); text-align: right; flex: none; }
.cells { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; flex: 1; padding: 1.5px 0; }
.cell { height: 20px; border-radius: 4px; background: rgba(255,255,255,.07); cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--head); }
.cell.beat { background: rgba(255,255,255,.13); }
.mel .cell { height: 13px; border-radius: 2px; }
.mel.root .cell { background: rgba(59,232,255,.12); }
.cell:hover { outline: 2px solid rgba(255,255,255,.5); }
.drum .cell.on { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.chord .cell.on { background: var(--gold); color: #000; }
.mel .cell.on { background: var(--lime); }
.mel.bass .cell.on { background: var(--cyan); }
.cell.on:not(.start) { opacity: .65; }
.cell.ph { outline: 2px solid #fff; }
.bm-arr { margin-top: 12px; }
.bm-arr .lbl { font-family: var(--head); font-size: 13px; color: var(--cyan); }
.bm-arr .lbl small { font-family: var(--body); color: rgba(255,255,255,.5); }
.slots { display: grid; grid-template-columns: repeat(32, 1fr); gap: 3px; margin-top: 8px; }
.slot { height: 30px; border-radius: 5px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 12px; cursor: pointer; }
.slot:nth-child(4n+1) { box-shadow: inset 2px 0 0 rgba(255,255,255,.25); }
.slot.ph { outline: 2px solid #fff; }
.slot.p0 { background: #ff4fd8; } .slot.p1 { background: #3be8ff; color: #000; } .slot.p2 { background: #7dff4f; color: #000; } .slot.p3 { background: #ffd23b; color: #000; }
.slot.p4 { background: #ff7a3b; } .slot.p5 { background: #8a3bff; } .slot.p6 { background: #3b6bff; } .slot.p7 { background: #ff3b6b; }
.bm-save { margin-top: 16px; }
.imp .drop { border: 3px dashed rgba(59,232,255,.45); border-radius: 18px; padding: 30px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.imp .drop.over { background: rgba(59,232,255,.12); border-color: var(--cyan); }
.imp .drop b { font-family: var(--head); font-size: 22px; }
.impinfo { font-size: 14px; max-width: 760px; }
.impinfo b { color: #fff; }
.prog { margin-top: 12px; background: rgba(0,0,0,.4); border-radius: 10px; overflow: hidden; position: relative; height: 34px; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); transition: width .2s; }
.prog span { position: relative; z-index: 1; line-height: 34px; padding-left: 12px; font-size: 14px; }
.impres { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.impres input { width: 340px; }
.rec { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.mine .mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; flex-wrap: wrap; }
.mrow small { display: block; color: rgba(255,255,255,.6); font-size: 12px; }
.mrow .row { margin: 0; }
.mrow button { font-size: 12px; padding: 7px 10px; }

/* ---------- chart editor */
.ce { display: flex; flex-direction: column; gap: 10px; }
.ce-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ce-top label { display: flex; gap: 6px; align-items: center; color: rgba(255,255,255,.75); }
.ce-diffs { display: flex; gap: 6px; flex-wrap: wrap; }
.ce-diffs .tab small { font-family: var(--body); font-size: 11px; color: rgba(255,255,255,.6); }
.ce-diffs .tab.dim { opacity: .55; }
.ce-save { margin-left: auto; min-width: 250px; }
.ce-save.primary { animation: savepulse 1.1s ease-in-out infinite; }
.ce-save[disabled] { opacity: 1; cursor: default; }
@keyframes savepulse { 50% { filter: brightness(1.25); transform: scale(1.04); } }
.ce-mode { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.ce-mode .check { margin: 0; }
.ce-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.75); }
.ce-tools button { font-size: 12px; padding: 7px 10px; }
.ce-tools .check { margin: 0 4px; font-size: 13px; }
.ce-tools .sep { width: 10px; }
.ce-num input { width: 78px; }
.ce-main { display: flex; gap: 12px; height: 74vh; min-height: 420px; }
.ce-speed { display: inline-flex; gap: 3px; align-items: center; margin: 0 6px; }
.ce-speed button { padding: 7px 8px; }
.ce-speed button.on { outline: 2px solid #3be8ff; background: rgba(59,232,255,.2); }
.ce-canvas { flex: 1; min-width: 0; height: 100%; border-radius: 12px; cursor: crosshair; background: #0b0618; }
.ce-side { width: 260px; display: flex; flex-direction: column; gap: 12px; }
.ce-status { background: rgba(0,0,0,.3); border-radius: 10px; padding: 10px; font-size: 13px; line-height: 1.6; }
.ce-help { line-height: 1.6; }
.impdiffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.impdiffs label { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.impdiffs select { max-width: 240px; }
.dbadges { display: inline-flex; gap: 3px; margin-top: 4px; }
.dbadges i { font-style: normal; font-family: var(--head); font-size: 10px; width: 18px; text-align: center; border-radius: 4px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.3); }
.dbadges i.on { background: rgba(125,255,79,.2); color: var(--lime); }
button.diff[disabled] { opacity: .3; }

/* ---------- community market */
.market { position: absolute; left: 3vw; top: 4vh; bottom: 4vh; width: min(760px, 94vw); overflow-y: auto; }
.mprofile { margin-bottom: 10px; }
.mprofile b { color: var(--cyan); }
.msearch input { flex: 1; min-width: 200px; }
.mlist, .mtab { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.market .mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 14px; flex-wrap: wrap; }
.market .mrow small { display: block; color: rgba(255,255,255,.6); font-size: 12px; margin-top: 2px; }
.market .mrow .row { margin: 0; }
.market .mrow button { font-size: 12px; padding: 7px 10px; }
.market .tag { padding: 4px 8px; }
.signup { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.signup input { flex: 1; font-size: 16px; }
.rights { background: rgba(255,210,59,.08); border: 1px solid rgba(255,210,59,.3); border-radius: 10px; padding: 10px; }
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.mstats div { background: rgba(0,0,0,.3); border-radius: 10px; padding: 10px; }
.mstats b { display: block; font-family: var(--head); font-size: 22px; color: var(--lime); font-weight: normal; }
.mstats small { color: rgba(255,255,255,.6); font-size: 11px; }
button.small { font-size: 12px; padding: 6px 8px; }

.signup-panel h3 { font-family: var(--head); margin: 6px 0 0; font-size: 20px; text-align: center; }
.signup-panel input { font-size: 18px; padding: 10px; text-align: center; }
.offline-note { display: none; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(255,75,92,.18); border: 2px solid rgba(255,75,92,.6); color: #ffc7cd; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; }
body.offline .offline-note { display: block; }
.counting { padding: 10px 4px; animation: blink 1s steps(2) infinite; }

/* ---------- toast + loading */
#toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(16,8,36,.92); border: 2px solid var(--cyan); padding: 10px 18px; border-radius: 12px; font-weight: 600; animation: drop .3s cubic-bezier(.2,1.5,.4,1); transition: opacity .5s, transform .5s; }
.toast.good { border-color: var(--lime); } .toast.bad { border-color: var(--red); }
.toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
#loading { position: fixed; inset: 0; z-index: 9; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px; font-family: var(--head); font-size: 20px; }
#loading.on { display: flex; }
.spin { width: 56px; height: 56px; border-radius: 50%; border: 6px solid rgba(255,255,255,.15); border-top-color: var(--pink); border-right-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 10px; } ::-webkit-scrollbar-track { background: transparent; }

@media (max-height: 720px) {
  .logo span:first-child { font-size: 56px; } .logo span:last-child { font-size: 66px; }
  .screen-boot .boot { gap: 24px; }
  .menu-panel { gap: 8px; padding: 16px; } button.big { font-size: 22px; padding: 12px; }
}
@media (max-width: 900px) {
  .select { flex-direction: column; width: auto; right: 3vw; }
  .menu-panel { left: 16px; right: 16px; width: auto; }
  .logo span:first-child { font-size: 56px; } .logo span:last-child { font-size: 66px; }
}

/* song dance style + energy */
.songinfo .styletag { font-size: 13px; margin: -6px 0 12px; color: rgba(255,255,255,.85); }
.songinfo .styletag small { font-family: var(--head); font-size: 10px; letter-spacing: .06em; color: var(--cyan); }
.songinfo .styletag .en { margin-left: 6px; color: var(--gold); }
.stylebadge { display: inline-block; margin: 4px 6px 0 0; padding: 1px 7px; border-radius: 9px; font-size: 11px; background: rgba(59,232,255,.14); color: var(--cyan); }
.ce-moves { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.75); }
.ce-moves label { display: flex; gap: 6px; align-items: center; }
.ce-moves .sep { width: 10px; }
.ce-moves button { font-size: 12px; padding: 6px 10px; }
.ce-moves .brush.on { outline: 2px solid var(--gold); background: rgba(255,210,59,.18); }

/* Music Video button next to DANCE! */
.songinfo .playrow { display: flex; gap: 10px; align-items: stretch; }
.songinfo .playrow .huge { flex: 1; }
.songinfo .playrow .video { flex: 0 0 auto; font-family: var(--head); font-size: 14px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--cyan); background: rgba(59,232,255,.12); color: var(--cyan); cursor: pointer; }
.songinfo .playrow .video:hover:not([disabled]) { background: rgba(59,232,255,.25); }
.songinfo .playrow .video[disabled] { opacity: .4; cursor: default; }

/* Guitar Mode: input choice + guitar setup steps */
.settings .inmode { display: flex; flex-direction: column; gap: 4px; }
.guitarset .gsteps { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.guitarset .gstep { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); }
.guitarset .gstep.on { background: rgba(255,210,59,.15); color: #fff; outline: 2px solid var(--gold); }
.guitarset .gstep b { color: var(--cyan); font-family: var(--body); font-weight: 600; }

/* ---------- display lettering: You're Gone with a dark outline, coloured by what it is
   --ol* are 8-way text-shadow outlines (crisp in every browser); headings add a drop shadow and a neon glow */
:root {
  --ink2: #12021c;
  --ol1: -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2), 1px 1px 0 var(--ink2), 0 -1px 0 var(--ink2), 0 1px 0 var(--ink2), -1px 0 0 var(--ink2), 1px 0 0 var(--ink2);
  --ol2: -2px -2px 0 var(--ink2), 2px -2px 0 var(--ink2), -2px 2px 0 var(--ink2), 2px 2px 0 var(--ink2), 0 -2px 0 var(--ink2), 0 2px 0 var(--ink2), -2px 0 0 var(--ink2), 2px 0 0 var(--ink2);
  --ol3: -3px -3px 0 var(--ink2), 3px -3px 0 var(--ink2), -3px 3px 0 var(--ink2), 3px 3px 0 var(--ink2), 0 -3px 0 var(--ink2), 0 3px 0 var(--ink2), -3px 0 0 var(--ink2), 3px 0 0 var(--ink2);
  --ol4: -4px -4px 0 var(--ink2), 4px -4px 0 var(--ink2), -4px 4px 0 var(--ink2), 4px 4px 0 var(--ink2), 0 -4px 0 var(--ink2), 0 4px 0 var(--ink2), -4px 0 0 var(--ink2), 4px 0 0 var(--ink2);
}
/* small labels: a thin outline */
.picker small, .grid small, .songinfo .styletag small, .dbadges i, .cell, .slot, .fc, .wallet small { text-shadow: var(--ol1); letter-spacing: .5px; }
/* buttons, values and labels: a 2px outline */
button, .filebtn, .sec, .stats b, .song .t, .picker b, .grid b, .payrow b, .payrow.total, .hwrow b, .cardbtn, .tag, .slider b,
.bm-arr .lbl, .imp .drop b, .mstats b, .signup-panel h3, #loading, .songinfo .playrow .video, .failed, .results .title { text-shadow: var(--ol2); letter-spacing: .5px; }
button.big, button.huge { text-shadow: var(--ol3), 0 4px 0 var(--ink2); }
/* colours by role */
.sec { color: var(--cyan); }
.picker small { color: var(--pink); }
.picker b, .song .t, .results .title { color: #fff; }
.wallet b { color: var(--gold); text-shadow: var(--ol2), 0 0 14px rgba(255,210,59,.6); }
button.danger { color: #ff8a96; }
.tag { color: var(--lime); }
/* screen titles: hot gold with a pink glow */
.head h2, .pause h2 { color: var(--gold); letter-spacing: 1px; text-shadow: var(--ol3), 4px 5px 0 var(--ink2), 0 0 24px rgba(255,79,216,.55); }
.songinfo .title { color: #fff; text-shadow: var(--ol3), 3px 4px 0 var(--ink2), 0 0 22px rgba(59,232,255,.45); }
.score { color: var(--gold); text-shadow: var(--ol3), 3px 4px 0 var(--ink2); }
.grade { text-shadow: var(--ol4), 6px 7px 0 var(--ink2); }
.fcbanner { text-shadow: var(--ol3), 0 0 20px rgba(125,255,79,.8); }
.boot .press { color: var(--gold); text-shadow: var(--ol3), 3px 4px 0 var(--ink2); }
.signup-panel h3 { color: var(--gold); }
/* the logo: thick outline, a hard drop shadow and a neon glow */
.logo span:first-child { text-shadow: var(--ol4), 7px 8px 0 var(--ink2), 0 0 40px rgba(59,232,255,.75); }
.logo span:last-child { text-shadow: var(--ol4), 7px 8px 0 var(--ink2), 0 0 50px rgba(255,79,216,.85); }
.logo.small span:first-child { text-shadow: var(--ol3), 4px 5px 0 var(--ink2), 0 0 20px rgba(59,232,255,.75); }
.logo.small span:last-child { text-shadow: var(--ol3), 4px 5px 0 var(--ink2), 0 0 26px rgba(255,79,216,.85); }

/* STUDIO → UPLOAD A VENUE (js/uservenues.js): the form on the left, a 3D view of the model on the right */
.vup { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 14px; height: min(70vh, 640px); }
.vup-side { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.vup-cv { width: 100%; height: 100%; border-radius: 12px; background: #0d0818; cursor: crosshair; }
.vrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vrow input:not([type]), .vrow input[type=text], .vrow select { flex: 1; min-width: 0; }
.vplace button { border-color: var(--c); }
.vplace button.on { background: color-mix(in srgb, var(--c) 28%, transparent); box-shadow: 0 0 12px var(--c); }
.vlist .mrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(0,0,0,.28); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; flex-wrap: wrap; }
/* STUDIO → PERFORMANCES (js/performances.js) */
.perfmake { display: flex; flex-direction: column; gap: 8px; }
.perfmake .sec small { font-family: var(--body); color: rgba(255,255,255,.55); letter-spacing: 0; margin-left: 6px; }
.pdances { display: flex; flex-wrap: wrap; gap: 6px; }
.pdance { background: rgba(0,0,0,.3); border-radius: 8px; padding: 3px 8px; font-size: 13px; border: 1px solid rgba(255,255,255,.15); }
.pdance i { font-style: normal; font-size: 11px; opacity: .7; }
.pdance.own { border-color: var(--lime); } .pdance.bought, .pdance.builtin { border-color: var(--gold); } .pdance.gone { border-color: var(--red); }
.pchk-item { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.22); border-radius: 10px; padding: 6px 10px; margin-bottom: 5px; }
.pchk-item > b { font-size: 16px; width: 16px; text-align: center; }
.pchk-item.yes > b { color: var(--lime); } .pchk-item.no > b { color: var(--red); }
.pchk-item .grow { flex: 1; }
.perr { color: var(--red); display: block; } .pok { color: var(--lime); display: block; }
/* the song select: why this song won't pay cash (js/cloud.js noPayReason) */
.songinfo .nopay { color: var(--gold); font-size: 13px; margin: 6px 0; }
/* Market venues and performances: a picture of the venue on each row */
.market .mrow.venue { justify-content: flex-start; }
.market .mrow.venue .grow { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.mthumb { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; background: #0d0818; flex: none; }
.mthumb.none { display: flex; align-items: center; justify-content: center; font-size: 26px; opacity: .5; }
/* PLAY: SONGS | ★ PERFORMANCES */
.songlist .seltabs { margin: 0 0 8px; }
/* the venue upload's list of crowd areas: the selected one is lit */
.vareas { display: flex; flex-direction: column; gap: 4px; }
.varea { display: flex; gap: 4px; align-items: center; }
.varea button:first-child { flex: 1; text-align: left; }
.varea.on button:first-child { border-color: #7dff4f; box-shadow: 0 0 10px rgba(125,255,79,.5); }
/* REPORT A BUG (js/bugreport.js): the form, and the developers' list, over whatever screen is up */
.bugmodal { position: fixed; inset: 0; z-index: 60; background: rgba(5,2,14,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bugmodal > .panel { width: min(680px, 96vw); max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bugmodal.buglist > .panel { width: min(980px, 96vw); }
.bugmodal textarea { width: 100%; resize: vertical; min-height: 110px; font: inherit; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.35); color: inherit; border: 2px solid rgba(255,255,255,.2); }
.bugshot { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; align-self: flex-start; }
.bugrow { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.bugrow.fixed { opacity: .65; }
.bugtext { white-space: pre-wrap; }
.bugerrs { white-space: pre-wrap; font-size: 11px; max-height: 220px; overflow: auto; background: rgba(0,0,0,.35); padding: 8px; border-radius: 8px; }
.bugrows { display: flex; flex-direction: column; gap: 8px; }
