/* PIXXURA — app-specific bits on top of ../shared/pixx.css (lime accent from [data-app=pixxura]) */
.pxs-ws { --left-w: 300px; --right-w: 330px; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view.panning { cursor: grabbing; } #view.on-light { cursor: move; } #view.splitting { cursor: ew-resize; }
#gpuCanvas { display: none; }
.zoompill { left: 12px; bottom: 12px; }
.zoompill .zl { min-width: 54px; text-align: center; font: 600 12px var(--mono); }
.playpill { left: 50%; bottom: 12px; transform: translateX(-50%); gap: 4px; }
.playpill .fr { min-width: 60px; text-align: center; font: 600 12px var(--mono); color: var(--muted); }
.infopill { right: 12px; bottom: 12px; padding: 6px 12px; gap: 12px; font: 500 11.5px var(--mono); color: var(--muted); pointer-events: none; }
.infopill b { color: var(--text); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 700 10.5px var(--mono); border: 1px solid var(--line2); color: var(--muted); }
.badge.gpu { color: var(--acc); border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .1); }
.splitlbl { position: absolute; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(13,14,21,.8); border: 1px solid var(--line2); font-size: 11px; font-weight: 700; color: var(--muted); pointer-events: none; }
.splitlbl.l { left: 12px; } .splitlbl.r { right: 12px; color: var(--acc); }
.dragover::after { content: 'Drop a sprite (PNG / GIF) to light it'; position: absolute; inset: 10px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--acc); border-radius: 18px; background: rgba(var(--acc-rgb), .08); font-size: 16px; font-weight: 700; z-index: 5; }
/* light list + node list */
.items { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.item { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; min-width: 0; }
.item:hover { background: rgba(255,255,255,.045); }
.item.on { border-color: rgba(var(--acc-rgb), .65); background: linear-gradient(90deg, rgba(var(--acc-rgb), .16), rgba(var(--acc-rgb), .04)); }
.item.off { opacity: .55; }
.item .sw { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.item .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.item .tag { font: 700 9.5px var(--mono); color: var(--muted); text-transform: uppercase; }
.item .ibtn { flex: none; }
.nodebody { padding: 4px 2px 10px; border-bottom: 1px dashed var(--line2); margin-bottom: 6px; }
.nodebody .text { margin: 4px 0; }
.addgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.addgrid button { justify-content: flex-start; }
.presetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.presetcard { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; text-align: left; color: var(--text); font: 600 12px var(--font); }
.presetcard:hover { border-color: rgba(var(--acc-rgb), .6); }
.presetcard canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; border-radius: 8px; background: #181a28; }
.export-prev { display: flex; align-items: center; justify-content: center; min-height: 180px; max-height: 42vh; overflow: auto; border-radius: 14px; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); padding: 10px; }
.export-prev canvas { image-rendering: pixelated; max-width: 100%; }
@media (max-width: 760px) {
  .infopill, .splitlbl { display: none; }
  #exportBtn > span:not(.ico) { display: none; } #exportBtn { padding: 0 9px; }
  .playpill { bottom: 60px; }
}
/* an effect's on / off box: its label is only a wrapper on desktop, the touch target in Simplified */
.itemchk { display: contents; }
/* Simplified workspace (PIXX.workspace, html.pxs-simple): the .adv bits hide; what stays is touch-sized */
html.pxs-simple .itemchk { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -6px 0 -6px -6px; flex: none; }
html.pxs-simple .item { min-height: 52px; }
/* the shared Simplified rule makes a range 44 px tall and its gradient track would fill all of it: keep the track a thin line */
html.pxs-simple .pxs-app input[type=range] { background: linear-gradient(90deg, var(--acc), var(--acc2)) center / 100% 6px no-repeat; }
html.pxs-simple .playpill { left: 12px; transform: none; bottom: 72px; }
