/* SlotKit meters + on-screen buttons: shared by the player, the builder preview and the
   new-machine wizard (positions come from slotkit.js). */
@font-face { font-family: "DS-Digital"; font-style: italic; font-weight: 400; src: url("Font/DS-DIGII.TTF") format("truetype"); font-display: block; }
.pl-meters, .pl-buttons { display: block; }
.pl-meter { white-space: nowrap; }
.pl-meter.nolabel label { visibility: hidden; }
.pl-meter label { display: block; color: #e6e6e6; text-transform: uppercase; font: 17px/1.2 Arial, Helvetica, sans-serif; margin: 0 0 6px 2px; letter-spacing: .3px; text-shadow: 0 1px 3px #000; }
.pl-led { position: relative; text-align: right; overflow: hidden; background: #340606; border: 3px solid #6e6e6e; border-radius: 6px; box-shadow: inset 0 0 10px #000; box-sizing: border-box;
  height: 64px; padding: 0 12px; font: italic 400 56px/58px "DS-Digital", Consolas, monospace; }
.pl-led.w6 { width: 230px; }
.pl-led.w2 { width: 100px; }
.pl-led .ghost { color: #4a0a0a; }
.pl-led .val { position: absolute; right: 12px; top: 0; color: #ff2a1f; text-shadow: 0 0 5px #ff2a1f88; }
.pl-happ { padding: 0; border: 0; background: none; border-radius: 9px; cursor: pointer; }
.pl-happ img { width: 100%; height: 100%; display: block; pointer-events: none; border-radius: inherit;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.35)) drop-shadow(0 4px 6px #000); transition: filter .1s, transform .05s; }
.pl-happ:active:not(:disabled) img { transform: scale(.96); filter: brightness(1.12) drop-shadow(0 0 22px rgba(255,255,255,.6)); }
.pl-happ:disabled { cursor: default; }
.pl-happ:disabled img, .pl-happ.off img { filter: brightness(.45) drop-shadow(0 4px 6px #000); }
.pl-happ:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* QR / barcode scanner square */
.sk-scan { box-sizing: border-box; z-index: 50; border-radius: calc(8px + var(--sk-fw, 0px)); }
.sk-scan-view, .sk-scan-aimwrap { position: absolute; inset: var(--sk-fw, 0px); overflow: hidden; border-radius: 8px; }
.sk-scan-view { background: #000; }
.sk-scan-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.sk-scan.asleep .sk-scan-view video { opacity: 0; }
.sk-scan.framed { background: linear-gradient(145deg, #fdfdfd 0%, #c9ccd1 16%, #8b8f97 36%, #f1f2f4 52%, #a5a9b0 68%, #6c7078 86%, #d6d9dd 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 0 1px rgba(0,0,0,.55), 0 8px 22px rgba(0,0,0,.6); }
.sk-scan.framed .sk-scan-view { box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.sk-scan-aimwrap { pointer-events: none; z-index: 2; }
.sk-scan-aim { position: absolute; inset: 15%; box-shadow: 0 0 0 9999px rgba(0,0,0,.28); }
.sk-scan-aim i { position: absolute; width: var(--sk-bl); height: var(--sk-bl); border: 0 solid #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); transition: border-color .15s; }
.sk-scan-aim .tl { left: 0; top: 0; border-left-width: var(--sk-bt); border-top-width: var(--sk-bt); border-top-left-radius: 6px; }
.sk-scan-aim .tr { right: 0; top: 0; border-right-width: var(--sk-bt); border-top-width: var(--sk-bt); border-top-right-radius: 6px; }
.sk-scan-aim .bl { left: 0; bottom: 0; border-left-width: var(--sk-bt); border-bottom-width: var(--sk-bt); border-bottom-left-radius: 6px; }
.sk-scan-aim .br { right: 0; bottom: 0; border-right-width: var(--sk-bt); border-bottom-width: var(--sk-bt); border-bottom-right-radius: 6px; }
.sk-scan.invisible { opacity: 0; }
.sk-scan-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #9aa4b1;
  font: 700 22px/1.2 Arial, Helvetica, sans-serif; text-align: center; padding: 10px; }
.sk-scan-msg b { font-size: 1.6em; color: #c9d1da; }
.sk-scan.hit .sk-scan-aim i { border-color: #52bd47; }
.sk-scan.hit .sk-scan-view { box-shadow: inset 0 0 0 4px #52bd47; }

/* typed play-code box (player + builder preview) */
.sk-code { display: flex; gap: 14px; height: 96px; }
.sk-code input { flex: 1; min-width: 0; height: 100%; padding: 0 26px; font: 700 40px Arial, Helvetica, sans-serif; color: #111; background: #fff; border: 4px solid #c9c9c9; border-radius: 16px; outline: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.sk-code input:focus { border-color: #52bd47; }
.sk-code input::placeholder { color: #c2c2c2; opacity: 1; font-weight: 400; }
.sk-code button { flex: none; height: 100%; padding: 0 36px; font: 900 40px Arial, Helvetica, sans-serif; color: #fff; background: #45ac3b; border: 0; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.45); cursor: pointer; }
.sk-code button:active { background: #3e9e35; }
