html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; font: 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #eee; -webkit-font-smoothing: antialiased; }
body.idle { cursor: none; }
#stage { position: relative; flex: none; background: #000; }
#art { display: block; width: 100%; height: 100%; }
#mbtn { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(18,18,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; opacity: 0; transition: opacity .5s ease; padding: 0; z-index: 3; }
#mbtn.on, #mbtn:hover, #mbtn:focus-visible, #mbtn[aria-expanded="true"] { opacity: 1; }
#mbtn .dots { display: block; width: 4px; height: 4px; margin: auto; border-radius: 50%; background: #f1ece2; box-shadow: -7px 0 0 #f1ece2, 7px 0 0 #f1ece2; }
#mbtn[hidden] { display: none; }
#panel { position: fixed; right: 16px; bottom: 66px; z-index: 3; padding: 12px 12px 10px; border-radius: 14px; background: rgba(16,16,18,.66); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 10px 40px rgba(0,0,0,.45); display: grid; gap: 8px; max-width: calc(100vw - 32px); max-height: calc(100vh - 82px); overflow: auto; box-sizing: border-box; }
#panel[hidden] { display: none; }
.row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; }
.row.cards-row { align-items: start; padding-bottom: 2px; }
.row.cards-row .lab { padding-top: 4px; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 160px); gap: 10px; padding: 4px; }
.card { display: grid; gap: 1px; min-width: 0; padding: 0 0 4px; border: 0; border-radius: 8px; background: transparent; color: #d5d5db; font: inherit; text-align: left; cursor: pointer; }
.card canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 4px; border-radius: 6px; background: #1b1b1f; }
.card .nm { padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { padding: 0 3px; font-size: 11px; color: #8e8e98; }
.card:hover canvas { filter: brightness(1.08); }
.card[aria-checked="true"] { outline: 2px solid #f1ece2; outline-offset: 2px; color: #fff; }
.card[aria-checked="true"] .sub { color: #e2a23a; }
.card:focus-visible { outline: 2px dashed #e2a23a; outline-offset: 2px; }
.card[aria-checked="true"]:focus-visible { outline: 2px solid #f1ece2; box-shadow: 0 0 0 6px #e2a23a; }
.row.slider { grid-template-columns: 58px 1fr 42px; }
.lab { color: #a9a9b2; letter-spacing: .02em; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.06); }
.seg button { flex: 1 1 auto; border: 0; border-radius: 7px; padding: 5px 9px; background: transparent; color: #d5d5db; font: inherit; cursor: pointer; white-space: nowrap; }
.seg button:hover { background: rgba(255,255,255,.08); }
.seg button[aria-checked="true"] { background: #f1ece2; color: #141414; }
:focus-visible { outline: 2px solid #f1ece2; outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: #e2a23a; }
output { font-variant-numeric: tabular-nums; color: #f1ece2; text-align: right; }
@media (prefers-reduced-motion: reduce) { #mbtn { transition: none; } }
