/* Exacta Display Options ? full-height presentation stage */

.ux-cabinet-page {
  --ux-role-all: #f2d24a;
  --ux-role-presentation: #4aa3ff;
  --ux-role-interactive: #e23b3b;
  --ux-role-off: #f4f4f4;
  --ux-cab-metal: #1a1d24;
  --ux-cab-edge: #3a3f4a;
  --ux-cab-chroma: #ff00ff;
  padding-bottom: 0;
  padding-top: 0;
}

body.ux-cabinet-immersive .nav,
body.ux-cabinet-immersive .sticky-disclosure,
body.ux-cabinet-immersive .back-to-top {
  display: none !important;
}

body.ux-cabinet-immersive #page-container {
  min-height: 100dvh;
}

body.ux-cabinet-immersive .ux-cabinet-page.game-page {
  padding-top: 0;
}

.ux-cab-page-back {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(22, 26, 34, 0.92);
  color: #c5ccd8;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.ux-cab-page-back:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.45);
}

.ux-cabinet-page.game-page::after {
  display: none;
}

.ux-cab-config-chip {
  min-width: 2.4rem;
  justify-content: center;
  text-align: center;
}

.ux-cab-config-title {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.ux-cab-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #d7deea;
  font-size: 0.82rem;
}

.ux-cab-legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ux-cab-swatch {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.ux-cab-diagram-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
}

.ux-cab-diagram-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* ?? Full browser-height stage (replaces hero) ?? */

.ux-cab-stage {
  --ux-cab-panel: rgba(22, 26, 34, 0.92);
  --ux-cab-panel-border: rgba(255, 255, 255, 0.1);
  --ux-cab-accent: #d4af37;
  box-sizing: border-box;
  height: calc(100dvh - var(--nav-height, 64px));
  min-height: calc(100vh - var(--nav-height, 64px));
  max-height: calc(100dvh - var(--nav-height, 64px));
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(212, 175, 55, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 60% at 50% 40%, #2a3140 0%, transparent 62%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #1a1f28 0%, #0d1016 72%),
    #0b0e14;
  overflow: hidden;
}

body.ux-cabinet-immersive .ux-cab-stage {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
}

.ux-cab-stage-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(212, 175, 55, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 60% at 50% 40%, #2a3140 0%, transparent 62%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #1a1f28 0%, #0d1016 72%),
    #0b0e14;
}

.ux-cab-stage-canvas {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem 1.25rem;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ux-cab-stage-canvas.is-panning {
  cursor: grabbing;
}

.ux-cab-cam-world {
  /* Camera zoom; --ux-cam-scale set by JS so guide strokes stay ~1px on screen. */
  --ux-cam-scale: 1;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  /* Avoid will-change: it can promote a lower-res layer and soft-blur at high zoom. */
  pointer-events: none;
}

.ux-cab-cam-world .ux-cab-machine {
  pointer-events: auto;
}

.ux-cab-cam-world .ux-cab-zone-zoom,
.ux-cab-cam-world .ux-cab-marquee-replay {
  pointer-events: auto;
}

.ux-cab-cam-world .ux-cab-marquee-callout,
.ux-cab-cam-world .ux-cab-tray-callout {
  pointer-events: auto;
}

/* Top chrome: config bar (center) + eye/fullscreen (right) */
.ux-cab-chrome {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}

.ux-cab-chrome-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.ux-cab-chrome-btn {
  appearance: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--ux-cab-panel-border);
  background: var(--ux-cab-panel);
  color: #9aa3b2;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ux-cab-chrome-btn:hover {
  color: #e8eef8;
  border-color: rgba(255, 255, 255, 0.18);
}

.ux-cab-chrome-btn.is-active {
  color: #1a1408;
  background: var(--ux-cab-accent);
  border-color: var(--ux-cab-accent);
}

.ux-cab-chrome-btn:disabled,
.ux-cab-state-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  color: #6b7380;
  background: rgba(12, 14, 18, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

.ux-cab-chrome-btn:disabled:hover,
.ux-cab-state-btn:disabled:hover {
  color: #6b7380;
  border-color: rgba(255, 255, 255, 0.08);
}

.ux-cab-overlays-hint {
  position: absolute;
  top: calc(100% + 0.28rem);
  right: 0;
  margin: 0;
  max-width: 9.75rem;
  font-size: 0.62rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #6a7382;
  text-align: right;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.ux-cabinet-page.is-overlays-hidden .ux-cab-overlays-hint {
  opacity: 1;
  visibility: visible;
}

.ux-cab-config-bar {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.28rem;
  pointer-events: auto;
  /* Fog / frosted glass: solid translucent first (CEF49-safe), blur when supported */
  padding: 0.32rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.ux-cab-config-btn {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #d7dde8;
}

/* Footer state row - mirrors header config bar (centered chrome chips) */
.ux-cab-state-bar {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.28rem;
  pointer-events: auto;
  padding: 0.32rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.ux-cab-state-btn {
  width: auto;
  min-width: 2rem;
  padding: 0 0.45rem;
  white-space: nowrap;
}

.ux-cab-state-sep {
  flex: 0 0 1px;
  width: 1px;
  height: 1.1rem;
  margin: 0 0.1rem;
  background: rgba(255, 255, 255, 0.14);
}

.ux-cab-fs-icon--exit { display: none; }

.ux-cab-chrome-btn.is-active .ux-cab-fs-icon--enter,
.ux-cab-zone-fs.is-active .ux-cab-fs-icon--enter {
  display: none;
}

.ux-cab-chrome-btn.is-active .ux-cab-fs-icon--exit,
.ux-cab-zone-fs.is-active .ux-cab-fs-icon--exit {
  display: block;
}

/* ?? Config tip (left overlay) ?? */

.ux-cab-tip {
  position: absolute;
  top: 3rem;
  left: 0.75rem;
  z-index: 5;
  width: min(248px, calc(100% - 4rem));
}

.ux-cab-tip-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ux-cab-panel-border);
  border-radius: 4px;
  background: var(--ux-cab-panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  min-height: 0;
}

.ux-cab-tip-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: auto;
  max-height: calc(100dvh - 4.5rem);
}

.ux-cab-tip-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ux-cab-tip-title strong {
  color: #f2f4f8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ux-cab-tip-title span {
  color: #9aa3b2;
  font-size: 0.68rem;
  line-height: 1.35;
}

.ux-cab-tip-blurb {
  margin: 0;
  color: #7a8494;
  font-size: 0.65rem;
  line-height: 1.4;
}

.ux-cab-tip-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ux-cab-tip-k {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a7382;
}

.ux-cab-sq-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}

.ux-cab-sq-row--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.ux-cab-sq-row--wrap .ux-cab-sq--layer {
  flex: 1 1 auto;
  min-width: 3.1rem;
  padding: 0 0.35rem;
  white-space: nowrap;
}

.ux-cab-sq-row--wrap.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.ux-cab-sq {
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(12, 14, 18, 0.85);
  color: #9aa3b2;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ux-cab-sq:hover {
  color: #e8eef8;
  border-color: rgba(255, 255, 255, 0.2);
}

.ux-cab-sq.is-active {
  color: #1a1408;
  background: var(--ux-cab-accent);
  border-color: var(--ux-cab-accent);
}

.ux-cab-sq:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  color: #6b7380;
  background: rgba(12, 14, 18, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

.ux-cab-sq:disabled:hover {
  color: #6b7380;
  border-color: rgba(255, 255, 255, 0.08);
}

.ux-cab-sq--wide {
  width: 100%;
  height: 1.75rem;
}

.ux-cab-sq--layer {
  height: 1.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.01em;
}

.ux-cab-legend--compact {
  font-size: 0.65rem;
  gap: 0.28rem;
  color: #9aa3b2;
}

.ux-cab-swatch {
  border-radius: 2px;
}

/* ?? Right rail stack (screen info overlays) ?? */

.ux-cab-rail-stack {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  bottom: auto;
  z-index: 5;
  width: min(200px, 28vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.45rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.ux-cab-rail-stack .ux-cab-zone-rail {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
}

.ux-cabinet-page.is-overlays-hidden .ux-cab-tip,
.ux-cabinet-page.is-overlays-hidden .ux-cab-rail-stack,
.ux-cabinet-page.is-overlays-hidden .ux-cab-connectors {
  display: none;
}

/* Thin guides from screens ? right rails */
.ux-cab-connectors {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.ux-cab-connector-path {
  fill: none;
  stroke: var(--ux-cab-panel-border, rgba(255, 255, 255, 0.1));
  stroke-width: 1;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

/* Specs as stage overlay (from tip ?More info?) */
.ux-cab-specs-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 3.25rem 1rem 1rem;
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(6px);
}

.ux-cab-specs-sheet {
  width: min(920px, 100%);
  max-height: 100%;
  overflow: auto;
  border: 1px solid var(--ux-cab-panel-border);
  border-radius: 6px;
  background: rgba(18, 22, 30, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 0.85rem 1rem 1.1rem;
}

.ux-cab-specs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ux-cab-specs-head strong {
  display: block;
  margin-top: 0.15rem;
  color: #f2f4f8;
  font-size: 0.9rem;
}

.ux-cab-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ux-cab-specs-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(12, 14, 18, 0.55);
  padding: 0.7rem 0.75rem 0.8rem;
}

.ux-cab-specs-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.45rem;
}

.ux-cab-specs-card-head strong {
  color: #e8eef8;
  font-size: 0.82rem;
}

.ux-cab-spec-list {
  margin: 0;
  padding-left: 1.05rem;
  color: #9aa3b2;
  font-size: 0.72rem;
  line-height: 1.5;
}

.ux-cab-spec-list li + li { margin-top: 0.28rem; }
.ux-cab-spec-list strong { color: #e8eef8; }

.ux-cab-stage-shell:fullscreen,
.ux-cab-stage-shell:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(212, 175, 55, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 60% at 50% 40%, #2a3140 0%, transparent 62%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #1a1f28 0%, #0d1016 72%),
    #0b0e14;
}

.ux-cab-stage-shell:fullscreen .ux-cab-stage-canvas,
.ux-cab-stage-shell:-webkit-full-screen .ux-cab-stage-canvas {
  height: 100%;
}

/* Bottom-right camera controls */
.ux-cab-zoom-hud {
  position: absolute;
  right: 0.75rem;
  bottom: 0.85rem;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  width: 7.25rem;
  pointer-events: auto;
  padding: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.ux-cab-zoom-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 1px solid var(--ux-cab-panel-border);
  border-radius: 4px;
  background: var(--ux-cab-panel);
  color: #9aa3b2;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ux-cab-zoom-btn:hover {
  color: #e8eef8;
  border-color: rgba(255, 255, 255, 0.18);
}

.ux-cab-zoom-btn span {
  flex: 1 1 auto;
  text-align: left;
}

.ux-cab-zoom-hint {
  margin: 0.1rem 0 0;
  color: #a8b0be;
  font-size: 0.58rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* Cabinet immersive: strengthen Flavor dock fog + label contrast (footer left) */
body.ux-cabinet-immersive .ux-flavor-dock,
.ux-cabinet-page .ux-flavor-dock {
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

body.ux-cabinet-immersive .ux-flavor-dock-k,
.ux-cabinet-page .ux-flavor-dock-k {
  color: #b8c0ce;
}

body.ux-cabinet-immersive .ux-flavor-dock-view-btn,
.ux-cabinet-page .ux-flavor-dock-view-btn {
  color: #9aa3b2;
}

body.ux-cabinet-immersive .ux-flavor-dock-view-btn.is-active,
.ux-cabinet-page .ux-flavor-dock-view-btn.is-active {
  color: #e8eef8;
}

.ux-cab-state-btn {
  color: #d7dde8;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ux-cab-config-bar,
  .ux-cab-state-bar,
  .ux-cab-zoom-hud,
  body.ux-cabinet-immersive .ux-flavor-dock,
  .ux-cabinet-page .ux-flavor-dock {
    background: rgba(8, 10, 14, 0.92);
  }
}

/* HD stage capture ? hide portal chrome; keep cam-world (+ guides/overlays on glass) */
.ux-cab-stage-canvas.is-capturing .ux-cab-chrome,
.ux-cab-stage-canvas.is-capturing .ux-cab-config-bar,
.ux-cab-stage-canvas.is-capturing .ux-cab-state-bar,
.ux-cab-stage-canvas.is-capturing .ux-cab-tip,
.ux-cab-stage-canvas.is-capturing .ux-cab-rail-stack,
.ux-cab-stage-canvas.is-capturing .ux-cab-zoom-hud,
.ux-cab-stage-canvas.is-capturing .ux-cab-connectors,
.ux-cab-stage-canvas.is-capturing .ux-cab-specs-overlay,
.ux-cab-stage-canvas.is-capturing .ux-cab-zone-zoom,
.ux-cab-stage-canvas.is-capturing .ux-cab-marquee-replay {
  visibility: hidden !important;
  pointer-events: none !important;
}

.ux-cab-zoom-btn[data-ux-cab-shot]:disabled {
  opacity: 0.45;
  cursor: wait;
}

@media (max-width: 900px) {
  .ux-cab-specs-grid { grid-template-columns: 1fr; }
  .ux-cab-tip {
    width: min(190px, calc(100% - 3rem));
  }
  .ux-cab-rail-stack {
    width: min(160px, 34vw);
  }
  .ux-cab-stage-canvas {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ?? Machine shell (SVG-traced Exacta / Aurify upright, viewBox 241?751) ?? */

.ux-cab-machine {
  --ux-cab-vb-w: 241;
  --ux-cab-vb-h: 751;
  position: relative;
  aspect-ratio: 241 / 751;
  height: min(92dvh, 900px);
  width: min(calc(92dvh * 241 / 751), calc(900px * 241 / 751), 36vw);
  margin: 0 auto;
  overflow: visible;
  /* Shadow on silhouette only ? filter on the whole machine soft-blurs overlays when zoomed. */
  background: transparent;
  container-type: size;
  container-name: ux-cab-machine;
}

.ux-cab-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  /* Keep vector strokes crisp when scaled */
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
}

.ux-cab-zone-row {
  position: absolute;
  z-index: 2;
  display: block;
  min-height: 0;
  box-sizing: border-box;
  transition: opacity 0.38s ease, filter 0.38s ease;
}

/*
 * Main glass content (Lucky photo + role wash + UltralinX mockups/guides)
 * must paint above cabinet silhouette strokes and the temporary wire-trace
 * overlay where they cross the glass. Wire still covers non-glass body.
 */
.ux-cab-zone-row[data-zone="main"] {
  z-index: 7;
}

.ux-cab-zone-row.is-unused {
  opacity: 0.16;
  filter: grayscale(0.35);
  pointer-events: none;
}

/* Floating video callout ? hide cleanly when deck isn't in the config */
.ux-cab-zone-row--video-side.is-unused {
  opacity: 0;
  filter: none;
  visibility: hidden;
  transition:
    opacity 0.38s ease,
    visibility 0s linear 0.38s;
}

.ux-cab-zone-row--video-side:not(.is-unused) {
  visibility: visible;
  transition: opacity 0.38s ease, visibility 0s linear 0s;
}

.ux-cab-zone-row.is-unused .ux-cab-zone-zoom {
  opacity: 0;
  pointer-events: none;
}

.ux-cab-zone-screen {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ux-cab-zone-zoom {
  position: absolute;
  top: 0.1rem;
  right: -2.05rem;
  z-index: 3;
  appearance: none;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ux-cab-panel-border, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  background: var(--ux-cab-panel, rgba(22, 26, 34, 0.92));
  color: #9aa3b2;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

/* Topper + main ? clear of bezel / rail stroke */
.ux-cab-zone-row[data-zone="topper"] > .ux-cab-zone-zoom,
.ux-cab-zone-row[data-zone="main"] > .ux-cab-zone-zoom {
  right: -2.95rem;
  top: 0.15rem;
}

.ux-cab-zone-zoom:hover {
  color: #e8eef8;
  border-color: rgba(255, 255, 255, 0.2);
}

.ux-cab-zone-zoom.is-active {
  color: #1a1408;
  background: var(--ux-cab-accent, #d4af37);
  border-color: var(--ux-cab-accent, #d4af37);
}

.ux-cab-zone-row.is-focused .ux-cab-zone-screen {
  outline: 1px solid rgba(212, 175, 55, 0.45);
  outline-offset: 2px;
}

/* Video panel ? tray callout (landscape deck SVG + glass host) */
.ux-cab-zone-row--video-side {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.4rem;
  width: max-content;
  height: max-content;
  z-index: 3;
}

.ux-cab-tray-callout {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: calc(290 / 241 * 100cqw);
  overflow: visible;
}

.ux-cab-tray-callout-head {
  margin: 0;
  padding: 0 0.1rem;
  color: #9aa3b2;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ux-cab-tray-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 160;
  overflow: visible;
}

.ux-cab-tray-svg {
  shape-rendering: geometricPrecision;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.ux-cab-zone-row--video-side .ux-cab-zone-screen {
  position: absolute;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border-radius: 2px;
}

/* Zoom sits outside tray outline, top-right */
.ux-cab-tray-stage > .ux-cab-zone-zoom {
  position: absolute;
  top: calc(8 / 160 * 100%);
  right: -1.9rem;
  left: auto;
  z-index: 5;
}

.ux-cab-video-leader {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: calc(40 / 241 * 100cqw);
  height: 0;
  pointer-events: none;
}

.ux-cab-video-leader-line {
  display: block;
  width: 100%;
  border-top: 1px solid #3a4555;
}

.ux-cab-video-leader-dot {
  position: absolute;
  left: 100%;
  top: 0;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  margin-left: -1px;
  border-radius: 50%;
  background: #3a4555;
}

/* Ceiling-hung marquee / signage (top-right of cabinet) */
.ux-cab-zone-row--marquee-side {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.35rem;
  width: max-content;
  height: max-content;
  z-index: 3;
}

.ux-cab-marquee-leader {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  width: calc(36 / 241 * 100cqw);
  height: 0;
  /* Connect toward topper band after marquee was raised */
  margin-top: calc(118 / 241 * 100cqw);
  pointer-events: none;
}

.ux-cab-marquee-leader-line {
  display: block;
  width: 100%;
  border-top: 1px solid #3a4555;
}

.ux-cab-marquee-leader-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  margin-left: -4px;
  border-radius: 50%;
  background: #3a4555;
}

.ux-cab-marquee-callout {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: calc(270 / 241 * 100cqw);
  overflow: visible;
}

.ux-cab-marquee-callout-head {
  margin: 0;
  padding: 0 0.1rem;
  color: #9aa3b2;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ux-cab-marquee-stage {
  position: relative;
  width: 100%;
  /* Must track exacta-marquee.svg's viewBox, or the glass overlay drifts off the drawn well. */
  aspect-ratio: 340 / 236;
  overflow: visible;
}

.ux-cab-marquee-svg {
  shape-rendering: geometricPrecision;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.ux-cab-zone-row--marquee-side .ux-cab-zone-screen {
  position: absolute;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #050608;
}

/* Zoom sits outside marquee chassis, top-right of diagram */
.ux-cab-marquee-stage > .ux-cab-zone-zoom {
  position: absolute;
  top: calc(44 / 236 * 100%);
  right: -1.9rem;
  left: auto;
  z-index: 5;
}

/* Replay anchored under the marquee outline (outside glass) */
.ux-cab-marquee-replay {
  appearance: none;
  align-self: flex-start;
  margin: 0.15rem 0 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(22, 26, 34, 0.92);
  color: #9aa3b2;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.ux-cab-marquee-replay:hover {
  color: #e8eef8;
  border-color: rgba(255, 255, 255, 0.2);
}

.ux-cab-marquee-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ux-cab-marquee-face--handoff {
  background: #0a0a0c;
}

.ux-cab-marquee-face--beacon {
  background: #000000;
}

.ux-cab-marquee-face--signage {
  display: block;
  padding: 0;
  box-sizing: border-box;
  background: #000000;
}

.ux-cab-marquee-face--signage .ux-jackpot-signage--plaque {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  /* Match attract plaque ? logos own the face; extra JACKPOT?meter air */
  padding: 4% 5.5% 3.5%;
  gap: 3.6%;
  font-size: clamp(10px, 4.8cqw, 36px);
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  box-sizing: border-box;
}

.ux-cab-marquee-face--signage .ux-jackpot-signage__brand {
  width: 52%;
  max-width: 720px;
  max-height: 14%;
  margin: 0 auto;
}

.ux-cab-marquee-face--signage .ux-jackpot-signage__logo {
  width: 88%;
  max-width: 1180px;
  max-height: 30%;
  margin: 0 auto 2.4%;
}

.ux-cab-marquee-face--signage .ux-jackpot-signage__meter-stage {
  width: 78%;
  max-width: none;
  margin: 0 auto;
}

.ux-cab-marquee-face--signage .ux-jackpot-signage__tagline {
  font-size: 0.66em;
  font-weight: 600;
  max-width: 96%;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  opacity: 1;
}

.ux-cab-marquee-video {
  display: block;
  width: 100%;
  height: 100%;
  /* Luke monitor rule: top-align, fill width, keep aspect, crop bottom (no L/R pillarbox). */
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.ux-cab-marquee-beacon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
}

/* Design flavor: Extended transient rail. Bounded region, absolutely positioned so it never
   joins measured content flow (see DESIGN-FLAVORS.md). Anchored off the docked edge, not the
   bug element, so it cannot inherit the bug's box. */
.uxc-proto-rail {
  position: absolute;
  z-index: 7;
  left: 0;
  /* Directly above the 206x63 bug, which sits at the host's bottom-left. */
  bottom: calc(63 / 1920 * 100cqh + 3px);
  max-width: 40%;
  /* Never thicker than the bug it extends from. */
  height: calc(63 / 1920 * 100cqh);
  padding: 0 4px;
  display: flex;
  align-items: center;
  text-overflow: ellipsis;
  background: #120c1e;
  border: 1px solid #ff8a3c;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  animation: uxc-rail-x 300ms ease-out;
}

.uxc-proto-rail-t {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.42rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd9a0;
}

.uxc-proto-rail.is-in {
  border-color: #57e08a;
}

.uxc-proto-rail.is-in .uxc-proto-rail-t {
  color: #b8ffd2;
}

.uxc-proto-rail.is-out {
  background: #101018;
  border-color: #6b6b7a;
}

.uxc-proto-rail.is-out .uxc-proto-rail-t {
  color: #b9b9c8;
}

/* Config 2 ? Interactive band host: no vertical growth, extend sideways from the bug. */
.uxc-proto-rail--cap-horizontal {
  bottom: 3px;
  left: calc(206 / 1080 * 100cqw + 3px);
  max-width: 40%;
}

/* Configs 6 / 7 ? small video-panel host. */
.uxc-proto-rail--cap-reduced {
  max-width: 24%;
}

@keyframes uxc-rail-x {
  0% {
    opacity: 0;
    transform: translateX(-6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.ux-cab-design-note {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: #8b8b99;
}

.ux-cab-marquee-face--pending {
  background: #0b0b10;
}

.ux-cab-marquee-pending {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c7c8a;
  text-align: center;
  padding: 0 8%;
}

.ux-cab-marquee-face--live {
  background: #050608;
  pointer-events: auto;
}

.ux-cab-marquee-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050608;
  /* Attract window is ~1680?630; scale to fill 16:9-ish marquee glass */
  transform-origin: center center;
}

.ux-cab-marquee-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.ux-cab-marquee-face .ux-cab-marquee-comp,
.ux-cab-marquee-face .uxc-marquee {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 8% 6% 6%;
  border-radius: 0;
  border-width: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ux-cab-marquee-face .uxc-marquee-amount {
  font-size: clamp(1.1rem, 4.2cqw, 2.4rem);
}

.ux-cab-marquee-face .uxc-marquee-title {
  font-size: clamp(0.45rem, 1.4cqw, 0.75rem);
  margin-top: 0.25rem;
}

.ux-cab-marquee-face .uxc-marquee-logo {
  width: clamp(3.5rem, 18%, 7rem);
  margin-top: 0.35rem;
}

.ux-cab-marquee-face .uxc-marquee-tagline {
  font-size: clamp(0.4rem, 1.1cqw, 0.62rem);
  margin-top: 0.3rem;
}

/* Temporary Exacta wire trace overlay */
.ux-cab-wire-trace {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: var(--ux-wire-op, 0.55);
}

.ux-cab-wire-align {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.ux-cab-wire-trace-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

.ux-cab-wire-trace-img[data-missing="1"] {
  display: none;
}

.ux-cab-wire-key {
  position: absolute;
  left: calc(100% + 0.55rem);
  top: 0;
  width: 118px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
}

.ux-cab-machine.is-wire-trace {
  overflow: visible;
}

.ux-cab-machine.is-wire-trace .ux-cab-silhouette {
  opacity: 0.35;
}

.ux-cab-zone-rail {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  height: auto;
  border: 1px solid var(--ux-cab-panel-border, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  background: var(--ux-cab-panel, rgba(22, 26, 34, 0.92));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: opacity 0.38s ease, filter 0.38s ease;
}

.ux-cab-zone-rail.is-unused {
  opacity: 0.22;
  filter: grayscale(0.5);
  pointer-events: none;
}

.ux-cab-zone-rail.is-focused-rail {
  border-color: rgba(212, 175, 55, 0.45);
}

.ux-cab-zone-rail.is-dimmed-rail:not(.is-unused) {
  opacity: 0.45;
}

.ux-cab-zone-rail-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  overflow: visible;
}

.ux-cab-zone-rail-title {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3b2;
}

.ux-cab-zone-rail-row {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.22rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ux-cab-zone-rail-row:first-of-type {
  border-top: 0;
}

.ux-cab-zone-rail-k {
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a7382;
}

.ux-cab-zone-rail-v {
  font-size: 0.7rem;
  line-height: 1.25;
  color: #d0d5dc;
  word-break: break-word;
}

.ux-cab-zone-fs {
  flex: 0 0 30px;
  width: 30px;
  align-self: stretch;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(12, 14, 18, 0.55);
  color: #7a8494;
  cursor: pointer;
}

.ux-cab-zone-fs:hover {
  color: #e8eef8;
  background: rgba(255, 255, 255, 0.06);
}

.ux-cab-zone-fs.is-active {
  color: #1a1408;
  background: var(--ux-cab-accent, #d4af37);
}

/* Legacy CSS zone-focus (camera framing replaces this; keep inert) */

.ux-cabinet-page.is-viewport-focus .ux-cab-stage-canvas {
  /* no-op ? camera handles framing */
}

.ux-cab-deck-inner {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.ux-cab-belly,
.ux-cab-skirt,
.ux-cab-base {
  width: 100%;
  margin-left: 0;
  box-sizing: border-box;
}

/* ?? Zone hosts (nest mockups) + Matt handoff guides ?? */

.ux-cab-host {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.ux-cab-host > .ux-cab-face {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

.ux-cab-face--vendor,
.ux-cab-face--flat {
  background: #9a9ea6;
}

.ux-cab-host-label {
  position: absolute;
  /* Quiet caption only ? no pill fill/shadow (Luke: mute role labels) */
  z-index: 2;
  top: 2px;
  left: 3px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
  text-shadow: none;
  pointer-events: none;
  line-height: 1.2;
}

.ux-cab-host.ux-role--presentation .ux-cab-host-label,
.ux-cab-host.ux-role--interactive .ux-cab-host-label {
  color: rgba(255, 255, 255, 0.5);
  text-shadow: none;
}

/* Exacta wireframe solid fills (no purple wash) */
.ux-cab-host.ux-role--all,
.ux-cab-host.ux-role--presentation,
.ux-cab-host.ux-role--interactive,
.ux-cab-host.ux-role--empty,
.ux-cab-host.ux-role--off {
  background: transparent;
}

.ux-cab-host.ux-role--all > .ux-cab-face--flat {
  background: var(--ux-role-all);
}

.ux-cab-host.ux-role--presentation > .ux-cab-face--flat {
  background: var(--ux-role-presentation);
}

.ux-cab-host.ux-role--interactive > .ux-cab-face--flat {
  background: var(--ux-role-interactive);
}

.ux-cab-host.ux-role--empty > .ux-cab-face--flat,
.ux-cab-host.ux-role--off > .ux-cab-face--flat {
  background: #c5c7cc;
}

.ux-cab-host.ux-role--all::after,
.ux-cab-host.ux-role--presentation::after,
.ux-cab-host.ux-role--interactive::after {
  display: none;
}

/* Main Lucky photo + translucent role washes: declared AFTER .ux-cab-bezel base (see below). */

.ux-cab-guides {
  /* Screen-constant guide stroke under camera zoom (JS sets --ux-cam-scale). */
  --ux-guide-stroke: calc(1px / var(--ux-cam-scale, 1));
  --ux-guide-safe: rgba(94, 168, 148, 0.55);
  --ux-guide-safe-fill: rgba(94, 168, 148, 0.06);
  --ux-guide-bug: rgba(196, 120, 96, 0.55);
  --ux-guide-bug-fill: rgba(196, 120, 96, 0.07);
  --ux-guide-panel: rgba(180, 150, 90, 0.5);
  --ux-guide-mid: rgba(170, 165, 190, 0.4);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Above role fills AND overlay mockup ? geometry QA must stay visible */
  z-index: 8;
  pointer-events: none;
}

.ux-cab-guide--chroma {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    repeating-conic-gradient(
      rgba(200, 80, 200, 0.35) 0% 25%,
      rgba(140, 40, 140, 0.2) 0% 50%
    ) 0 0 / 14px 14px;
  opacity: 0.35;
  z-index: 0;
}

/*
 * Primary safe zone ? bottom-left (Matt ?1 widget-min home).
 * Footprint matches portrait panel (3.5?9in). Height = min(host, 9in-of-glass);
 * width follows 336:864 so hatch hugs the art (no side letterbox).
 */
.ux-cab-guide--safe {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  max-height: calc(864 / 1920 * 100cqh);
  width: auto;
  aspect-ratio: 336 / 864;
  max-width: min(40%, calc(336 / 1080 * 100cqw), 100%);
  border: var(--ux-guide-stroke) dashed var(--ux-guide-safe);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--ux-guide-safe-fill) 0 5px,
      transparent 5px 10px
    );
  box-sizing: border-box;
  z-index: 1;
  box-shadow: none;
}

/*
 * Landscape / flat glass (video panel, topper):
 * Matt ?1 ? overlay viewport IS the full browser glass. Content scales to fit.
 * (Our old inset safe-flat was invented margin, not in handoff.)
 */
.ux-cab-guide--safe-flat {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border: var(--ux-guide-stroke) dashed var(--ux-guide-safe);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--ux-guide-safe-fill) 0 5px,
      transparent 5px 10px
    );
  box-sizing: border-box;
  z-index: 1;
}

/*
 * Portrait expanded panel ? Matt ?1: ~3.5in wide ? up to 9in tall, docked edge.
 * Cap at 9in-of-glass; if host is shorter (Interactive band), fill host height.
 */
.ux-cab-guide--panel {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  max-height: calc(864 / 1920 * 100cqh);
  width: auto;
  aspect-ratio: 336 / 864;
  max-width: min(40%, calc(336 / 1080 * 100cqw), 100%);
  border: var(--ux-guide-stroke) solid var(--ux-guide-panel);
  background: transparent;
  box-sizing: border-box;
  border-radius: 0;
  z-index: 2;
  box-shadow: none;
}

/*
 * Enrolled bug ? true-scale vs full glass (1080?1920), not the band/split host.
 * Uses container query units from .ux-cab-bezel--* / video glass.
 * horizontal 206?63 ? vertical 63?206
 */
.ux-cab-guide--bug {
  position: absolute;
  left: 0;
  margin: 0;
  border: var(--ux-guide-stroke) solid var(--ux-guide-bug);
  background:
    repeating-linear-gradient(
      45deg,
      var(--ux-guide-bug-fill) 0 4px,
      transparent 4px 8px
    );
  box-sizing: border-box;
  border-radius: 0;
  z-index: 3;
  box-shadow: none;
  overflow: hidden;
}

.ux-cab-guide--bug-bottom-left {
  bottom: 0;
  top: auto;
  width: calc(206 / 1080 * 100cqw);
  height: calc(63 / 1920 * 100cqh);
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
}

.ux-cab-guide--bug-mid-left {
  left: 0;
  bottom: 0;
  top: auto;
  transform: none;
  width: calc(63 / 1080 * 100cqw);
  height: calc(206 / 1920 * 100cqh);
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
}

/* Landscape bug ? 206?63 ? top-docked on flat glass */
.ux-cab-guide--bug-landscape {
  left: 0;
  top: 0;
  bottom: auto;
  width: calc(206 / 1080 * 100cqw);
  height: calc(63 / 1920 * 100cqh);
  max-height: none;
  max-width: none;
  aspect-ratio: auto;
  transform: none;
}

.ux-cab-guide-midline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: var(--ux-guide-stroke) dashed var(--ux-guide-mid);
  box-shadow: none;
  z-index: 2;
}

/* On-glass labels removed ? key lives in tip panel (.ux-cab-guide-key). */
.ux-cab-guide-tag {
  display: none !important;
}

/* Tip-panel color-dot key for overlay guides */
.ux-cab-guide-key {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  color: #8a93a3;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.ux-cab-guide-key li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ux-cab-guide-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ux-cab-guide-dot--safe { background: rgba(94, 168, 148, 0.85); }
.ux-cab-guide-dot--bug { background: rgba(196, 120, 96, 0.85); }
.ux-cab-guide-dot--panel { background: rgba(180, 150, 90, 0.85); }
.ux-cab-guide-dot--midline { background: rgba(170, 165, 190, 0.85); }
.ux-cab-guide-dot--chroma { background: rgba(180, 90, 180, 0.75); }

/*
 * Overlay hosts used to draw a white inset ring for QA.
 * That stroke sits on the glass and cuts across Lucky (and other) photos ?
 * keep hosts unmarked; bug/panel/attract + Matt guides still paint inside.
 */
.ux-cab-host.is-overlay-host,
.ux-cab-main-fill.is-overlay-host {
  outline: none;
  box-shadow: none;
}

/* Main glass: belt-and-suspenders ? never frame the Lucky photo edge. */
.ux-cab-bezel--main .ux-cab-host.is-overlay-host,
.ux-cab-bezel--main .ux-cab-main-fill.is-overlay-host,
.ux-cab-bezel--main .ux-cab-host,
.ux-cab-bezel--main .ux-cab-main-fill {
  outline: none;
  box-shadow: none;
  border: 0;
}

.ux-cab-host.is-roles-off > .ux-cab-face--flat {
  background: #9a9ea6 !important;
}

/* Main: Roles-off must stay clear so Lucky photo reads (beats gray !important above). */
.ux-cab-bezel--main .ux-cab-host.is-roles-off > .ux-cab-face--flat,
.ux-cab-bezel--main .ux-cab-host.ux-role--off > .ux-cab-face--flat {
  background: transparent !important;
}

/* Nested overlay ? Current = Exacta PNG captures; A/B/C = CSS comps */
.ux-cab-mockup {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Above role faces/labels; below guides */
  z-index: 5;
  pointer-events: none;
}

.ux-cab-mockup > * {
  pointer-events: auto;
}

/* Exacta handoff captures ? flush to glass edge, crisp when stage zooms */
.ux-cab-capture {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  box-shadow: none;
}

.ux-cab-capture img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  /* Prefer hard edges when stage camera zooms for close-up screenshots */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

.ux-cab-capture--bug-bottom-left,
.ux-cab-capture--bug {
  left: 0;
  bottom: 0;
  top: auto;
  /* True-scale vs full glass container (not band/split host %) */
  width: calc(206 / 1080 * 100cqw);
  height: calc(63 / 1920 * 100cqh);
  max-width: none;
  max-height: none;
  overflow: hidden;
  transform: none;
}

.ux-cab-capture--bug-bottom-left img,
.ux-cab-capture--bug img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left bottom;
}

/* Vertical bug ? true-scale 63?206 vs full glass */
.ux-cab-capture--bug-mid-left {
  left: 0;
  bottom: 0;
  top: auto;
  transform: none;
  width: calc(63 / 1080 * 100cqw);
  height: calc(206 / 1920 * 100cqh);
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
}

.ux-cab-capture--bug-mid-left img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left bottom;
}

/*
 * Expanded panel ? Matt 3.5in ? ?9in; scale to available host height (Matt ?1).
 * max-height uses glass cqh (9in cap). height:100% fills short Interactive hosts.
 * aspect-ratio keeps width in lockstep (avoids side letterbox = fake crop).
 */
.ux-cab-capture--panel {
  left: 0;
  bottom: 0;
  top: auto;
  height: 100%;
  max-height: calc(864 / 1920 * 100cqh);
  width: auto;
  aspect-ratio: 336 / 864;
  max-width: min(40%, calc(336 / 1080 * 100cqw), 100%);
  overflow: hidden;
}

.ux-cab-capture--panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: left bottom;
}

.ux-cab-host .uxc-proto-panel,
.ux-cab-host .uxc-proto-attract {
  left: 0;
  bottom: 0;
  top: auto;
  height: 100%;
  max-height: calc(864 / 1920 * 100cqh);
  width: auto;
  aspect-ratio: 336 / 864;
  max-width: min(40%, calc(336 / 1080 * 100cqw), 100%);
  min-width: 0;
  padding: 5px;
  border-width: 1.5px;
  border-radius: 4px;
  font-size: 0.55rem;
  overflow: hidden;
  box-sizing: border-box;
}

.ux-cab-host .uxc-proto-tab {
  left: 0;
  bottom: 0;
  top: auto;
  width: calc(206 / 1080 * 100cqw);
  height: calc(63 / 1920 * 100cqh);
  max-height: none;
  min-width: 14px;
  padding: 2px 1px;
  font-size: 0.4rem;
  aspect-ratio: auto;
  overflow: hidden;
}

.ux-cab-host .uxc-proto-tab img {
  width: 22%;
  margin-bottom: 0;
}

.ux-cab-host .uxc-proto-tab span {
  font-size: 0.45rem;
}

.ux-cab-host .uxc-proto-bug {
  left: 0;
  bottom: 0;
  top: auto;
  width: calc(206 / 1080 * 100cqw);
  height: calc(63 / 1920 * 100cqh);
  max-height: none;
  aspect-ratio: auto;
  min-width: 12px;
  padding: 2px 1px;
  overflow: hidden;
}

.ux-cab-host .uxc-proto-bug-mark {
  width: 60%;
}

.ux-cab-host .uxc-proto-bug-amount {
  font-size: 0.48rem;
}

.ux-cab-host .uxc-proto-collapse {
  margin-top: 4px;
  padding: 3px 2px;
  font-size: 0.48rem;
}

.ux-cab-host .uxc-panel-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.ux-cab-host .uxc-panel-logo {
  width: 18%;
  max-width: 28px;
  height: auto;
}

.ux-cab-host .uxc-panel-title {
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.ux-cab-host .uxc-panel-jackpot {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  color: #ff5a3c;
  line-height: 1;
  margin: 2px 0 4px;
}

.ux-cab-host .uxc-panel-label,
.ux-cab-host .uxc-panel-bet {
  font-size: 0.42rem;
  line-height: 1.25;
  color: #c8d2e4;
  margin-bottom: 3px;
}

.ux-cab-host .uxc-panel-meter {
  margin: 3px 0;
}

.ux-cab-host .uxc-panel-meter-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ux-cab-host .uxc-panel-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #fdab53, #ff5a3c);
}

.ux-cab-host .uxc-panel-meter-fill.is-full {
  background: linear-gradient(90deg, #2ee68c, #1a9a58);
}

.ux-cab-host .uxc-panel-cta {
  margin-top: 4px;
  padding: 3px 4px;
  border-radius: 3px;
  text-align: center;
  font-size: 0.48rem;
  font-weight: 800;
  color: #0a0c10;
  background: #fdab53;
}

.ux-cab-host .uxc-panel-cta.is-ok {
  background: #2ee68c;
}

.ux-cab-host .uxc-panel-cta.is-disabled {
  opacity: 0.85;
}

.ux-cab-host[data-kind="video"] .uxc-proto-panel,
.ux-cab-host[data-kind="topper"] .uxc-proto-panel {
  /*
   * Portrait panel on landscape glass: fit FULL glass height (Matt scale-to-fit).
   * Do not apply 9in-of-cqh here ? on short glass that incorrectly caps at ~45%.
   */
  left: 0;
  top: auto;
  bottom: 0;
  height: 100%;
  max-height: 100%;
  width: auto;
  aspect-ratio: 336 / 864;
  max-width: min(70%, 100%);
}

/*
 * Video / topper min bug ? dock bottom-left of full glass.
 * Keep --bug-mid-left MORE specific than generic --bug so it isn't squashed.
 * True 63?206 aspect (Matt left/right bug); scale to glass height.
 */
.ux-cab-host[data-kind="video"] .ux-cab-capture--bug.ux-cab-capture--bug-mid-left,
.ux-cab-host[data-kind="topper"] .ux-cab-capture--bug.ux-cab-capture--bug-mid-left,
.ux-cab-guides--flat .ux-cab-guide--bug-mid-left {
  left: 0;
  bottom: 0;
  top: auto;
  /* Height-driven 63:206 ? avoid max-width fights that re-squash */
  height: min(55%, 100%);
  width: auto;
  aspect-ratio: 63 / 206;
  max-height: 100%;
}

.ux-cab-host[data-kind="video"] .ux-cab-capture--bug-bottom-left,
.ux-cab-host[data-kind="video"] .ux-cab-capture--bug:not(.ux-cab-capture--bug-mid-left),
.ux-cab-host[data-kind="topper"] .ux-cab-capture--bug-bottom-left,
.ux-cab-host[data-kind="topper"] .ux-cab-capture--bug:not(.ux-cab-capture--bug-mid-left),
.ux-cab-guides--flat .ux-cab-guide--bug-bottom-left,
.ux-cab-guides--flat .ux-cab-guide--bug-landscape {
  left: 0;
  bottom: 0;
  top: auto;
  width: auto;
  height: min(18%, 100%);
  aspect-ratio: 206 / 63;
  max-width: 28%;
  max-height: 100%;
}

/*
 * Portrait panel on video/topper ? fit full glass height, keep 336:864.
 * (9in-of-cqh would shrink to ~45% of already-short landscape glass.)
 */
.ux-cab-host[data-kind="video"] .ux-cab-capture--panel,
.ux-cab-host[data-kind="topper"] .ux-cab-capture--panel {
  left: 0;
  top: auto;
  bottom: 0;
  height: 100%;
  max-height: 100%;
  width: auto;
  aspect-ratio: 336 / 864;
  max-width: min(70%, 100%);
  overflow: hidden;
}

.ux-cab-host[data-kind="video"] .ux-cab-capture--panel img,
.ux-cab-host[data-kind="topper"] .ux-cab-capture--panel img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: left bottom;
}

.ux-cab-guides--flat .ux-cab-guide--panel {
  left: 0;
  top: auto;
  bottom: 0;
  height: 100%;
  max-height: 100%;
  width: auto;
  aspect-ratio: 336 / 864;
  max-width: min(70%, 100%);
}

.ux-cab-host[data-kind="video"] .uxc-proto-tab,
.ux-cab-host[data-kind="video"] .uxc-proto-bug,
.ux-cab-host[data-kind="topper"] .uxc-proto-tab,
.ux-cab-host[data-kind="topper"] .uxc-proto-bug {
  left: 0;
  bottom: 0;
  width: 24%;
  height: 18%;
}

.ux-cab-topper,
.ux-cab-pillar,
.ux-cab-deck {
  position: relative;
}

.ux-cab-bezel {
  /* Color only ? never `background:` shorthand (it clears background-image on --main). */
  background-color: transparent;
  border: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
}

/*
 * Main glass: Lucky Clover always under UltralinX.
 * Must follow .ux-cab-bezel so equal-specificity photo rules win the cascade.
 * Role colors = translucent washes only ? never opaque Exacta fills on main.
 */
.ux-cab-bezel--main {
  /* Color only ? never `background:` shorthand (clears background-image). */
  /* Black matches SVG glass-main hole when photo has gaps / is off. */
  background-color: #000000;
  background-image: url("/ultralinx/assets/machines/lucky-clover-main-placeholder.png?v=lucky-main4");
  /*
   * PNG 571x1024 (aspect 0.558) is narrower than host 174x296 (~0.588).
   * Bottom-anchored Y overscan: Credits/Bet flush to glass bottom; crop top dark void.
   * Host = GLASS.main (33,132,174x296); SVG #glass-main black is outer opening (29,128,182x304).
   */
  background-size: 100% 115%;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.ux-cab-bezel--main .ux-cab-host.ux-role--all > .ux-cab-face--flat {
  background: rgba(242, 210, 74, 0.28) !important;
}

.ux-cab-bezel--main .ux-cab-host.ux-role--presentation > .ux-cab-face--flat {
  background: rgba(74, 163, 255, 0.26) !important;
}

.ux-cab-bezel--main .ux-cab-host.ux-role--interactive > .ux-cab-face--flat {
  background: rgba(226, 59, 59, 0.26) !important;
}

.ux-cab-bezel--main .ux-cab-host.ux-role--empty > .ux-cab-face--flat {
  background: rgba(197, 199, 204, 0.16) !important;
}

.ux-cab-bezel--main .ux-cab-host.ux-role--off > .ux-cab-face--flat,
.ux-cab-bezel--main .ux-cab-host.is-roles-off > .ux-cab-face--flat {
  background: transparent !important;
}

.ux-cab-bezel--topper,
.ux-cab-bezel--main,
.ux-cab-bezel--video {
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

.ux-cab-zone-screen,
.ux-cab-zone-screen > .ux-cab-bezel,
.ux-cab-bezel > .ux-cab-host,
.ux-cab-bezel > .ux-cab-main-fill {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.ux-cab-glass,
.ux-cab-main-fill,
.ux-cab-zone,
.ux-cab-face {
  width: 100%;
  height: 100%;
}

.ux-cab-bezel--main,
.ux-cab-bezel--topper,
.ux-cab-bezel--video {
  container-type: size;
  container-name: ux-glass;
}

.ux-cab-zone-row--video-side .ux-cab-zone-screen {
  container-type: size;
  container-name: ux-glass;
}

.ux-cab-bezel--main > .ux-cab-host,
.ux-cab-bezel--main > .ux-cab-main-fill,
.ux-cab-bezel--topper > .ux-cab-host,
.ux-cab-bezel--video > .ux-cab-host {
  flex: 1 1 auto;
  min-height: 0;
}

.ux-cab-face {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.ux-cab-role-badge {
  position: absolute;
  z-index: 3;
  top: 3px;
  left: 3px;
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ux-cab-role-badge.ux-role--presentation,
.ux-cab-role-badge.ux-role--interactive {
  color: #fff;
}

.ux-cab-face--role::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.42;
}

.ux-cab-face--role.ux-role--all::after { background: var(--ux-role-all); }
.ux-cab-face--role.ux-role--presentation::after { background: var(--ux-role-presentation); mix-blend-mode: color; opacity: 0.55; }
.ux-cab-face--role.ux-role--interactive::after { background: var(--ux-role-interactive); mix-blend-mode: color; opacity: 0.5; }

/* Topper HUD ? CREDIT / PAID / TOTAL BET */
.ux-cab-face--topper {
  background: linear-gradient(180deg, #1a1030 0%, #0a0818 100%);
}

.ux-cab-topper-hud {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 2px;
  padding: 2px;
}

.ux-cab-topper-cell {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  text-align: center;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.ux-cab-topper-cell--credit {
  background: linear-gradient(180deg, #a01828, #5a0a12);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.ux-cab-topper-cell--paid {
  flex: 1.15 1 0;
  background: transparent;
  clip-path: none;
}

.ux-cab-topper-cell--bet {
  background: linear-gradient(180deg, #1a4a9a, #0a2558);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.ux-cab-topper-cell strong {
  font-size: 0.42rem;
  font-weight: 800;
  color: #fff;
}

.ux-cab-topper-cell--paid strong { color: #ffe566; }

.ux-cab-topper-cell span {
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

.ux-cab-topper-cell--paid span {
  font-size: 0.95rem;
  color: #ffd24a;
}

.ux-cab-topper-cell em {
  font-style: normal;
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

/* Video panel ? Aurify bet deck */
.ux-cab-face--video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18%;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 2px 3px;
  padding: 3px 3px 3px 4px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(80, 30, 20, 0.45), transparent 60%),
    linear-gradient(180deg, #2a1810 0%, #120a08 100%);
}

.ux-cab-vp-ornament {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a5a10, #f5d76e, #8a5a10);
  opacity: 0.85;
}

.ux-cab-vp-banner {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 0.38rem;
  font-weight: 700;
  color: #f5e6c8;
  letter-spacing: 0.01em;
}

.ux-cab-vp-grid {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-height: 0;
}

.ux-cab-vp-bet {
  appearance: none;
  border: 1px solid #c9a227;
  border-radius: 2px;
  padding: 0.1rem 0.05rem;
  background: linear-gradient(180deg, #3a4a9a, #1a2558);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 0.32rem;
  font-weight: 800;
  line-height: 1.05;
  cursor: default;
}

.ux-cab-vp-bet.is-active {
  background: linear-gradient(180deg, #e04812, #9a1c0a);
  border-color: #ffd24a;
  box-shadow: 0 0 6px rgba(255, 90, 30, 0.55);
}

.ux-cab-vp-actions {
  grid-column: 1;
  grid-row: 4;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 2px;
}

.ux-cab-vp-action {
  appearance: none;
  border: 1px solid #c9a227;
  border-radius: 2px;
  padding: 0.2rem 0.1rem;
  background: linear-gradient(180deg, #4a3a8a, #2a1a58);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 0.34rem;
  font-weight: 800;
  line-height: 1.05;
  cursor: default;
}

.ux-cab-vp-action--repeat {
  background: linear-gradient(180deg, #2a9a3a, #0a5a18);
  border-color: #6adf6a;
  font-size: 0.42rem;
}

.ux-cab-vp-side {
  grid-column: 2;
  grid-row: 3 / 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ux-cab-vp-util {
  flex: 1 1 auto;
  appearance: none;
  border: 1px solid #6a7a8a;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a5a9a, #1a2a58);
  color: #fff;
  font-size: 0.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: default;
}

.ux-cab-vp-util--service {
  background: linear-gradient(180deg, #9a2a2a, #5a0a0a);
  border-color: #f87171;
}

.ux-cab-deck {
  display: contents;
}

.ux-cab-deck-physical {
  flex: 0 0 22%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-cab-physical-repeat--ghost {
  appearance: none;
  width: 100%;
  aspect-ratio: 1;
  max-width: 48px;
  border-radius: 50%;
  border: 2px solid #5a5e66;
  background: radial-gradient(circle at 35% 30%, #6a6e76, #2a2e36 55%, #12151a);
  box-shadow: none;
  color: transparent;
  font-size: 0;
  cursor: default;
  pointer-events: none;
}

.ux-cab-main-fill {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  height: 100%;
  min-height: 0;
}

/* Role bands stay under the UltralinX overlay + guides */
.ux-cab-main-fill > .ux-cab-host {
  position: relative;
  z-index: 1;
}

.ux-cab-main-fill > .ux-cab-mockup {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}

.ux-cab-main-fill > .ux-cab-guides {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  pointer-events: none;
}

.ux-cab-main-fill > .ux-cab-mockup > * {
  pointer-events: auto;
}

.ux-cab-main-fill--split > .ux-cab-host:first-child {
  flex: 2 1 66.666%;
}

.ux-cab-main-fill--split > .ux-cab-host:last-child {
  flex: 1 1 33.333%;
}

.ux-cab-main-fill--banded > .ux-cab-host {
  flex: 1 1 33.333%;
}

.ux-cab-main-fill--strip > .ux-cab-host:first-child {
  flex: 0 0 33.333%;
}

.ux-cab-main-fill--strip > .ux-cab-host:last-child {
  flex: 1 1 auto;
}

.ux-cab-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.ux-cab-zone-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.72);
  text-align: center;
  padding: 0.2rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ux-cab-swatch.ux-role--all,
.ux-cab-zone.ux-role--all { background: var(--ux-role-all); }
.ux-cab-swatch.ux-role--presentation,
.ux-cab-zone.ux-role--presentation { background: var(--ux-role-presentation); }
.ux-cab-swatch.ux-role--interactive,
.ux-cab-zone.ux-role--interactive { background: var(--ux-role-interactive); }
.ux-role--interactive .ux-cab-zone-label,
.ux-role--presentation .ux-cab-zone-label { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.ux-cab-swatch.ux-role--empty,
.ux-cab-swatch.ux-role--off,
.ux-cab-zone.ux-role--empty,
.ux-cab-zone.ux-role--off { background: var(--ux-role-off); }
.ux-role--off .ux-cab-zone-label,
.ux-role--empty .ux-cab-zone-label { display: none; }

/* Never let role utility classes paint opaque fills on glass hosts (photo lives on bezel). */
.ux-cab-host.ux-role--all,
.ux-cab-host.ux-role--presentation,
.ux-cab-host.ux-role--interactive,
.ux-cab-host.ux-role--empty,
.ux-cab-host.ux-role--off {
  background: transparent !important;
}

.ux-cab-callout {
  display: none;
}

.ux-cab-attract-stub {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: min(88%, 280px);
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(12, 14, 18, 0.92);
  color: #9aa3b2;
  text-align: center;
  box-sizing: border-box;
}

.ux-cab-attract-stub-k {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7382;
  margin-bottom: 0.25rem;
}

.ux-cab-attract-stub-b {
  display: block;
  font-size: 0.62rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.ux-cab-attract-stub .uxc-proto-collapse {
  position: static;
  display: inline-flex;
  margin: 0 auto;
}

/* Jackpot WIN ? Flavor A beacon stays full-glass; Current handoff is a contained plaque */
.ux-cab-jackpot,
.ux-cab-host .ux-cab-jackpot,
.ux-cab-px .ux-cab-jackpot {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #05060a;
  pointer-events: auto;
  box-sizing: border-box;
}

/*
 * Exacta Current jackpot (08) ? contained 16:9 signage plaque inside safe bounds.
 * Not full-safe-area fill; game glass shows around the plaque (configs 1?7).
 */
.ux-cab-jackpot--handoff,
.ux-cab-host .ux-cab-jackpot--handoff {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(86%, calc(58cqh * 1920 / 1080));
  max-width: calc(100% - 2 * (48 / 1080 * 100cqw));
  max-height: min(58%, calc(100% - 2 * (48 / 1080 * 100cqh)));
  aspect-ratio: 1920 / 1080;
  height: auto;
  transform: translate(-50%, -50%);
  background: transparent;
  overflow: visible;
}

.ux-cab-host[data-kind="video"] .ux-cab-jackpot--handoff,
.ux-cab-host[data-kind="topper"] .ux-cab-jackpot--handoff {
  width: min(78%, calc(70cqh * 1920 / 1080));
  max-width: calc(100% - 2 * (32 / 1920 * 100cqw));
  max-height: min(70%, calc(100% - 2 * (32 / 1920 * 100cqh)));
}

.ux-cab-jackpot-art,
.ux-cab-jackpot-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

/* Exacta 08 is landscape signage ? contain so stars + meter stay readable */
.ux-cab-jackpot--handoff .ux-cab-jackpot-art {
  object-fit: contain;
  background: transparent;
  border-radius: 2px;
}

.ux-cab-jackpot-meter {
  position: absolute;
  left: 50%;
  bottom: 11%;
  z-index: 2;
  transform: translateX(-50%);
  min-width: 42%;
  max-width: 78%;
  padding: 0.35em 0.7em;
  border: 1px solid rgba(255, 154, 60, 0.85);
  border-radius: 4px;
  background: linear-gradient(180deg, #ff6a2f 0%, #e01f2a 100%);
  color: #0a0a0c;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(0.55rem, 4.2cqw, 1.35rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 0 18px rgba(255, 80, 40, 0.35);
  animation: ux-cab-jackpot-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
  box-sizing: border-box;
}

.ux-cab-jackpot--handoff .ux-cab-jackpot-meter {
  font-size: clamp(0.45rem, 3.4cqw, 0.95rem);
  bottom: 14%;
}

.ux-cab-jackpot .uxc-proto-collapse {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

@keyframes ux-cab-jackpot-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(255, 80, 40, 0.28);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 26px rgba(255, 180, 60, 0.55);
    filter: brightness(1.08);
  }
}

/* Attract / jackpot plaque dock ? taller ~16:9 (1218?686); full-glass hit for dismiss */
.ux-cab-px .ux-cab-attract-fit,
.ux-cab-host .ux-cab-px .ux-cab-attract-fit {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: block;
  padding: 0;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  box-sizing: border-box;
  background-color: transparent;
  -webkit-transition: opacity 0.32s ease, -webkit-transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  --attract-scale: 1;
  --attract-art-w: 1218;
  --attract-art-h: 686;
  --attract-inset-top: 32px;
  --attract-inset-right: 0px;
  --attract-inset-bottom: 0px;
  --attract-inset-left: 0px;
}

.ux-cab-px .ux-cab-attract-fit.is-attract-dismissing,
.ux-cab-host .ux-cab-px .ux-cab-attract-fit.is-attract-dismissing {
  opacity: 0;
  -webkit-transform: translateY(28px) scale(0.96);
  transform: translateY(28px) scale(0.96);
  pointer-events: none;
}

.ux-cab-px .ux-cab-attract-fit > *,
.ux-cab-host .ux-cab-px .ux-cab-attract-fit > * {
  pointer-events: auto;
}

/* Scaled art box pinned flush bottom + left inside inset box (no under-plaque gutter) */
.ux-cab-px .ux-cab-attract-scaler,
.ux-cab-host .ux-cab-px .ux-cab-attract-scaler {
  position: absolute;
  left: var(--attract-inset-left, 0px);
  bottom: var(--attract-inset-bottom, 0px);
  top: auto;
  right: auto;
  width: calc(var(--attract-art-w, 1218) * 1px * var(--attract-scale, 1));
  height: calc(var(--attract-art-h, 686) * 1px * var(--attract-scale, 1));
  max-width: none;
  overflow: hidden;
}

.ux-cab-px .uxc-attract--pulse,
.ux-cab-host .ux-cab-px .uxc-attract--pulse {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--attract-art-w, 1218) * 1px);
  height: calc(var(--attract-art-h, 686) * 1px);
  max-width: none;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  border: none;
  border-image: none;
  box-shadow: none;
  transform: scale(var(--attract-scale, 1));
  transform-origin: top left;
  z-index: 5;
  /* Crisp edges when the stage camera zooms into attract */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/*
 * Attract / jackpot top = panel cream double-stroke + Pulse top rim.
 * Painted inset via ::before so parent overflow:hidden (scaler/fit) cannot clip it.
 * Height: 3px cream stack + 4px Pulse accent (matches panel border-top).
 */
.ux-cab-px .uxc-attract--pulse::before,
.ux-cab-host .ux-cab-px .uxc-attract--pulse::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  z-index: 40;
  pointer-events: none;
  background:
    linear-gradient(#f5e8d0, #f5e8d0) left top / 100% 1px no-repeat,
    linear-gradient(#05060a, #05060a) left 1px / 100% 1px no-repeat,
    linear-gradient(#f5e8d0, #f5e8d0) left 2px / 100% 1px no-repeat,
    linear-gradient(#ffb04a, #ffb04a) left 3px / 100% 4px no-repeat;
}

/* Flavor B top Pulse rim ? Vault gold */
.ux-cab-px .uxc-attract--pulse[data-ux-flavor-skin="B"]::before,
.ux-cab-host .ux-cab-px .uxc-attract--pulse[data-ux-flavor-skin="B"]::before {
  background:
    linear-gradient(#f5e8d0, #f5e8d0) left top / 100% 1px no-repeat,
    linear-gradient(#05060a, #05060a) left 1px / 100% 1px no-repeat,
    linear-gradient(#f5e8d0, #f5e8d0) left 2px / 100% 1px no-repeat,
    linear-gradient(
      90deg,
      #f0d878 0%,
      #e8c040 35%,
      #d4a030 65%,
      #c88a28 100%
    ) left 3px / 100% 4px no-repeat;
}

/* Flavor C top Pulse rim ? soft orange?deep-red (matches panel C stroke blend) */
.ux-cab-px .uxc-attract--pulse[data-ux-flavor-skin="C"]::before,
.ux-cab-host .ux-cab-px .uxc-attract--pulse[data-ux-flavor-skin="C"]::before {
  background:
    linear-gradient(#f5e8d0, #f5e8d0) left top / 100% 1px no-repeat,
    linear-gradient(#05060a, #05060a) left 1px / 100% 1px no-repeat,
    linear-gradient(#f5e8d0, #f5e8d0) left 2px / 100% 1px no-repeat,
    linear-gradient(
      90deg,
      #fa8b1b 0%,
      #f2783a 18%,
      #e85a58 36%,
      #d03a68 54%,
      #c01850 72%,
      #a1033c 86%,
      #9f0137 100%
    ) left 3px / 100% 4px no-repeat;
}

/* Attract / Jackpot: no collapse chevron (full-glass tap / mode chips dismiss). */
.ux-cab-px .ux-cab-attract-fit .uxc-proto-collapse,
.ux-cab-host .ux-cab-px .ux-cab-attract-fit .uxc-proto-collapse,
.ux-cab-px .ux-cab-jackpot .uxc-proto-collapse,
.ux-cab-host .ux-cab-px .ux-cab-jackpot .uxc-proto-collapse {
  display: none !important;
}

/* Attract signage: BG flush to plaque; content uses Margin 24 safe inset (ultralinx.css) */
.ux-cab-px .uxc-attract--pulse > .ux-jackpot-signage,
.ux-cab-host .ux-cab-px .uxc-attract--pulse > .ux-jackpot-signage,
.ux-cab-px .uxc-attract--pulse .uxc-attract-meter,
.ux-cab-host .ux-cab-px .uxc-attract--pulse .uxc-attract-meter {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  /* Keep host padding:0 so plaque owns the WIREFRAMES Margin 24 content inset */
  padding: 0;
  border: none;
  border-image: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.ux-cab-px .uxc-attract--pulse .ux-jackpot-signage--plaque,
.ux-cab-host .ux-cab-px .uxc-attract--pulse .ux-jackpot-signage--plaque,
.ux-cab-px .uxc-attract--pulse .ux-jackpot-signage--meter,
.ux-cab-host .ux-cab-px .uxc-attract--pulse .ux-jackpot-signage--meter {
  width: 100%;
  height: 100%;
  font-size: 48px;
  box-shadow: none;
}

/*
 * Current Exacta 03 attract ? lower-left dock on glass (no px-stage).
 * JS sets --attract-inset-* / --attract-scale from the same safe model as Flavor A.
 */
.ux-cab-host .ux-cab-attract-fit--handoff,
.ux-cab-mockup .ux-cab-attract-fit--handoff {
  pointer-events: auto;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: var(--attract-inset-top, calc(48 / 1080 * 100cqw));
  padding-right: var(--attract-inset-right, calc(48 / 1080 * 100cqw));
  padding-bottom: var(--attract-inset-bottom, calc(56 / 1080 * 100cqw));
  padding-left: var(--attract-inset-left, calc(48 / 1080 * 100cqw));
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
  background-color: transparent;
  --attract-scale: 1;
  --attract-art-w: 1061;
  --attract-art-h: 506;
}

.ux-cab-host .ux-cab-attract-fit--handoff > *,
.ux-cab-mockup .ux-cab-attract-fit--handoff > * {
  pointer-events: auto;
}

.ux-cab-host .ux-cab-attract-scaler--handoff,
.ux-cab-mockup .ux-cab-attract-scaler--handoff {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--attract-art-w, 1061) * 1px * var(--attract-scale, 1));
  height: calc(var(--attract-art-h, 506) * 1px * var(--attract-scale, 1));
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
  line-height: 0;
}

.ux-cab-host .ux-cab-attract-art,
.ux-cab-mockup .ux-cab-attract-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  user-select: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.ux-cab-host .ux-cab-attract-scaler--handoff .uxc-proto-collapse,
.ux-cab-mockup .ux-cab-attract-scaler--handoff .uxc-proto-collapse {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(12, 14, 18, 0.85);
  color: #e8eef8;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.ux-cab-host .ux-cab-jackpot--handoff .uxc-proto-collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(12, 14, 18, 0.85);
  color: #e8eef8;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.ux-cab-belly,
.ux-cab-skirt,
.ux-cab-base {
  width: 100%;
  margin-left: 0;
  box-sizing: border-box;
}

.ux-cab-belly {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #22262e, #15181e);
  border-left: 2px solid var(--ux-cab-edge);
  border-right: 2px solid var(--ux-cab-edge);
}

.ux-cab-slot {
  height: 10px;
  flex: 1 1 auto;
  border-radius: 2px;
  background: #0a0c10;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.ux-cab-slot--wide { flex: 1.6 1 auto; }

.ux-cab-skirt {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  background: #12151a;
  border-left: 2px solid var(--ux-cab-edge);
  border-right: 2px solid var(--ux-cab-edge);
}

.ux-cab-button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a606c, #1a1d24);
  border: 1px solid #3a3f4a;
}

.ux-cab-base {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 8px 10px 12px;
  background: #0c0e12;
  border: 2px solid var(--ux-cab-edge);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.ux-cab-base span {
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1a1d24, #2a2e38, #1a1d24);
  border: 1px solid #2c313a;
}

@media (max-width: 900px) {
  .ux-cab-stage-canvas {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ux-cab-machine {
    height: min(88dvh, 820px);
    width: min(calc(88dvh * 241 / 751), calc(820px * 241 / 751), 52vw);
  }
}

/* ------------------------------------------------------------------
   Real-resolution overlay stage
   Everything inside .ux-cab-px is authored in ACTUAL device pixels and the whole
   stage is scaled once (JS sets --px-scale). Never size anything in here with rem
   or percentages of the portal viewport ? that was the old bloat/clip bug.
   ------------------------------------------------------------------ */
/* Shared Min/Bug/Panel camera footprint ? panel plate bounds (invisible). */
.ux-cab-px .ux-cab-widget-focus,
.ux-cab-host .ux-cab-px .ux-cab-widget-focus {
  position: absolute;
  left: 0;
  bottom: var(--hhr-reserve, 0px);
  top: auto;
  right: auto;
  width: 339px;
  height: 866px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.ux-cab-px {
  /* Vertical space the HHR footer occupies; UltralinX paint sits above it. */
  --hhr-reserve: 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--px-w, 1080) * 1px);
  height: calc(var(--px-h, 1920) * 1px);
  /* Default scale is a layout placeholder only ? cabinet.js syncPixelStages must set
     --px-scale/--px-h from the host box or Flavor A/B/C bugs clip under overflow:hidden. */
  transform: scale(var(--px-scale, 0.2));
  transform-origin: top left;
  pointer-events: none;
}

/* Hide until JS has measured the host ? avoids a clipped first paint before sync. */
.ux-cab-px:not([data-px-res]) {
  visibility: hidden;
}

/* Exacta's own panel runs flush to the bottom edge (traced: y 1054-1919 of 1920), so nothing
   is reserved at screen level. The HHR band is reserved INSIDE the panel instead. */
.ux-cab-px.has-hhr {
  --hhr-reserve: 0px;
}

.ux-cab-px > * {
  pointer-events: auto;
}

/* Override the proportional host rules with literal handoff pixel geometry. */
.ux-cab-px .uxc-proto-bug,
.ux-cab-host .ux-cab-px .uxc-proto-bug {
  left: 0;
  bottom: var(--hhr-reserve);
  top: auto;
  width: 206px;
  height: 63px;
  max-height: none;
  min-width: 0;
  aspect-ratio: auto;
  padding: 6px 8px;
  border-width: 2px;
  border-radius: 6px;
  gap: 8px;
  font-size: 16px;
  overflow: hidden;
}

.ux-cab-px .uxc-proto-bug-mark,
.ux-cab-host .ux-cab-px .uxc-proto-bug-mark {
  width: 34px;
}

.ux-cab-px .uxc-proto-bug-amount,
.ux-cab-host .ux-cab-px .uxc-proto-bug-amount {
  font-size: 22px;
  line-height: 1.1;
}

.ux-cab-px .uxc-proto-tab,
.ux-cab-host .ux-cab-px .uxc-proto-tab {
  left: 0;
  bottom: var(--hhr-reserve);
  top: auto;
  width: 150px;
  height: 40px;
  min-width: 0;
  max-height: none;
  aspect-ratio: auto;
  padding: 4px 6px;
  font-size: 15px;
}

.ux-cab-px .uxc-proto-tab img,
.ux-cab-host .ux-cab-px .uxc-proto-tab img {
  width: 26px;
  margin-bottom: 0;
}

.ux-cab-px .uxc-proto-tab span,
.ux-cab-host .ux-cab-px .uxc-proto-tab span {
  font-size: 15px;
}

.ux-cab-px .uxc-proto-panel,
.ux-cab-px .uxc-proto-attract,
.ux-cab-host .ux-cab-px .uxc-proto-panel,
.ux-cab-host .ux-cab-px .uxc-proto-attract {
  left: 0;
  bottom: var(--hhr-reserve);
  top: auto;
  width: 339px;
  height: 866px;
  max-width: none;
  max-height: none;
  min-width: 0;
  aspect-ratio: auto;
  padding: 20px 18px;
  border-width: 3px;
  border-radius: 10px;
  font-size: 20px;
  overflow: hidden;
}

/* Reserve the traced HHR band so our content can never sit under it. */
.ux-cab-px.has-hhr .uxc-proto-panel,
.ux-cab-px.has-hhr .uxc-proto-attract {
  padding-bottom: 60px;
}

.ux-cab-px .uxc-panel-logo {
  width: 96px;
}

.ux-cab-px .uxc-panel-title {
  font-size: 26px;
  line-height: 1.15;
}

.ux-cab-px .uxc-panel-jackpot {
  font-size: 44px;
  line-height: 1.1;
  white-space: nowrap;
}

.ux-cab-px .uxc-panel-label,
.ux-cab-px .uxc-panel-bet {
  font-size: 19px;
  line-height: 1.3;
}

.ux-cab-px .uxc-panel-meter-track {
  height: 14px;
}

/* The panel is a real 339x866 surface; the CTA sits at the foot of it rather than
   leaving 600px of dead space below the content. */
.ux-cab-px .uxc-proto-panel {
  display: flex;
  flex-direction: column;
}

.ux-cab-px .uxc-panel-cta {
  margin-top: auto;
  padding: 14px 12px;
  font-size: 22px;
  border-radius: 8px;
}

/* Transient rail in real pixels, sitting directly above the 63px bug. */
.ux-cab-px .uxc-proto-rail {
  bottom: calc(var(--hhr-reserve) + 66px);
  height: 63px;
  padding: 0 12px;
  border-width: 2px;
  border-radius: 5px;
}

.ux-cab-px .uxc-proto-rail--cap-horizontal {
  bottom: var(--hhr-reserve);
  left: 209px;
}

.ux-cab-px .uxc-proto-rail-t {
  font-size: 20px;
}

/* ---- HHR race affordances: console keypad at the foot of Exacta's wager panel ----
   Band geometry is traced (55x41 keys, row 7px off the panel foot, panel 339x866); Flavor A
   Pulse treatment is ours: butted icon keys in one shared bezel filling the band width. ---- */
.ux-cab-px .uxc-panel-hhr {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 0;
  display: flex;
  gap: 0;
  height: 41px;
}

.ux-cab-px .uxc-panel-hhr-keys {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(150, 190, 220, 0.5);
  border-radius: 0 5px 0 0;
  background: linear-gradient(180deg, rgba(28, 34, 50, 0.98), rgba(12, 16, 26, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 2px 5px rgba(0, 0, 0, 0.55);
}

.ux-cab-px .uxc-panel-hhr-btn {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(150, 190, 220, 0.28);
  border-radius: 0;
  background: transparent;
  color: #d8e8f5;
  font: inherit;
  line-height: 0;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
}

.ux-cab-px button.uxc-panel-hhr-btn {
  cursor: pointer;
}

.ux-cab-px .uxc-panel-hhr-btn:last-child {
  border-right: 0;
}

.ux-cab-px .uxc-panel-hhr-ico {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Pressed key: lit face, inset shadow so it reads as physically depressed. */
.ux-cab-px .uxc-panel-hhr-btn.is-active {
  background: linear-gradient(180deg, #ff2f6e, #ff7a2f);
  color: #fff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.ux-cab-px .uxc-panel-hhr-value {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: rgba(9, 12, 20, 0.55);
  box-shadow: none;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  line-height: 1.02;
}

.ux-cab-px .uxc-panel-hhr-value b {
  color: #ffd77a;
  font-size: 14px;
  font-weight: 700;
}

.ux-cab-px .uxc-panel-hhr-value span {
  color: #8fa9bd;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Collapse is a corner affordance, not a full-width button ? it was eating panel room. */
.ux-cab-px .uxc-proto-collapse {
  position: absolute;
  z-index: 6;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(150, 190, 220, 0.4);
  border-radius: 6px;
  background: rgba(12, 16, 26, 0.9);
  color: #cfe2f0;
  font-size: 20px;
  line-height: 1;
}


/* ==========================================================================
   Flavor A ? Gradient Pulse on true-px cabinet stage
   ========================================================================== */

.ux-cab-px .uxc-proto-bug--pulse,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  display: block;
  position: absolute;
  left: 0;
  bottom: var(--hhr-reserve);
  top: auto;
  right: auto;
  width: 206px;
  height: 58px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* CQ for horizontal + vertical digit clamp (CEF49 ignores; px fallbacks below) */
  container-type: size;
  /* Same outer treatment as expanded Panel Pulse: 4px orange top+right + 6px dark rim */
  border: none;
  border-top: 4px solid #ffb04a;
  border-right: 4px solid #ff6a3c;
  border-radius: 0 14px 0 0;
  background: linear-gradient(180deg, #14161c 0%, #0a0b0f 55%, #08090c 100%);
  box-shadow:
    0 0 0 6px #08090c,
    0 10px 28px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  cursor: pointer;
  color: #ffd24a;
  -webkit-transform-origin: bottom left;
  transform-origin: bottom left;
}

.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-bg {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Exacta mark cell shown; hide legacy under-meter track only */
.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-meter {
  display: none;
}

/*
 * Stack: Exacta mark (dark square) + amount well ? odometer layout inside
 * Pulse chrome. Horizontal: logo then meter (row). Mid-left uses row-reverse
 * so after -90deg the mark lands at visual top (Exacta Current vertical bug).
 */
.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-stack {
  position: absolute;
  z-index: 2;
  left: 3px;
  right: 3px;
  top: 3px;
  bottom: 3px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  gap: 3px;
}

.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-logo,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 46px;
  flex: 0 0 46px;
  width: 46px;
  max-width: 46px;
  min-width: 46px;
  height: auto;
  margin: 0;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 2px;
  background: #0a0c12;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-logo img,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-logo img {
  display: block;
  width: 38px;
  height: 38px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: center center;
  /* Asset ships on black; screen drops the plate so marks read on dark cell */
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-odo {
  position: relative;
  z-index: 2;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: block;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-odo .ux-jackpot-meter {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  /* CEF49: fit $250,000 (bug hides cents ≥$100k) in Exacta 206 plate + mark cell */
  font-size: 28px;
}

@supports (font-size: 1cqh) {
  .ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-odo .ux-jackpot-meter,
  .ux-cab-host .ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-odo .ux-jackpot-meter {
    /* Short axis of plate (~58px) drives digit size; JS fitBugMeterText may shrink further */
    font-size: clamp(18px, 48cqh, 32px);
  }
}

/* Bug amount: dark purple/black well (signage feel) + CSS digits ? no gold frame */
.ux-cab-px .uxc-proto-bug--pulse .ux-jackpot-meter--bug,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse .ux-jackpot-meter--bug {
  background-image:
    linear-gradient(180deg, rgba(255, 210, 120, 0.05) 0%, transparent 40%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(90deg, #0e1016 0%, #161822 48%, #0a0b0f 100%) !important;
  background-color: #0e1016;
  background-size: auto;
  border: none;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 120, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
  --ux-jm-well-left: 0%;
  --ux-jm-well-right: 0%;
  --ux-jm-well-top: 0%;
  --ux-jm-well-bottom: 0%;
}

.ux-cab-px .uxc-proto-bug--pulse .ux-jackpot-meter__text,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse .ux-jackpot-meter__text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 2px;
  color: #ffe7a0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

/* Qualify subheader removed from Pulse bug for now (panel owns NEED copy) */
.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-qual,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse .uxc-proto-bug-qual,
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-qual,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-qual {
  display: none !important;
}

.ux-cab-px .uxc-proto-bug--pulse .uxc-proto-lamp {
  display: none;
}

/*
 * Min = bottom-left Exacta logo ONLY (compact tab).
 * Never a Pulse ULX chip, never a mini vertical meter. Bug owns the enrolled meter.
 */
.ux-cab-px .uxc-proto-tab--exacta,
.ux-cab-host .ux-cab-px .uxc-proto-tab--exacta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  left: 0;
  bottom: var(--hhr-reserve);
  top: auto;
  right: auto;
  width: 36px;
  height: 108px;
  max-width: 36px;
  max-height: 108px;
  margin: 0;
  padding: 6px 5px;
  box-sizing: border-box;
  border: 1px solid #3a4560;
  border-radius: 0 8px 8px 0;
  background: #0c1428;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  overflow: hidden;
  -webkit-transform: none;
  transform: none;
  -webkit-transform-origin: bottom left;
  transform-origin: bottom left;
}

.ux-cab-px .uxc-proto-tab--exacta img,
.ux-cab-host .ux-cab-px .uxc-proto-tab--exacta img {
  display: block;
  width: 24px;
  max-width: 100%;
  height: auto;
  max-height: 96px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: screen;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Legacy Pulse min chip ? must never render as Min; hide if stale markup appears */
.ux-cab-px .uxc-proto-tab--pulse,
.ux-cab-host .ux-cab-px .uxc-proto-tab--pulse {
  display: none !important;
}

/*
 * Vertical mid-left bug: authored board rotated -90? CCW.
 * height = visual width (narrower plate). Pulse stroke on authored
 * right+bottom ? visual top+right. BR radius ? visual TR.
 * left offset = height so the rotated plate sits flush on the glass left edge.
 */
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left {
  left: 58px;
  bottom: var(--hhr-reserve);
  top: auto;
  /* Same Pulse plate as bottom-left (206x58), rotated -90deg */
  width: 206px;
  height: 58px;
  box-sizing: border-box;
  border: none;
  border-right: 4px solid #ffb04a;
  border-bottom: 4px solid #ff6a3c;
  border-radius: 0 0 14px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #14161c 0%, #0a0b0f 55%, #08090c 100%);
  box-shadow:
    0 0 0 6px #08090c,
    0 10px 28px rgba(0, 0, 0, 0.72);
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  -webkit-transform-origin: bottom left;
  transform-origin: bottom left;
}

.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-bg,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-bg {
  border-radius: inherit;
  opacity: 0.28;
}

/*
 * Mid-left: row-reverse so after -90deg CCW the Exacta mark sits at visual top
 * and the amount below (Exacta Current / Luke doctor ? icon before amount).
 * Authored top = screen left: 0 inset closes the left optical gutter (~1?2px).
 */
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-stack,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-stack {
  left: 3px;
  right: 3px;
  top: 0;
  bottom: 3px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-odo,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .uxc-proto-bug-odo {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: auto;
  height: auto;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--bug,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--bug,
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--text,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--text {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 2px;
  box-sizing: border-box;
}

/*
 * Vertical V-bug digits: match horizontal responsive recipe.
 * CEF49: fixed px; modern: cqh clamp; JS fitBugMeterText may shrink further.
 */
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--text,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--text {
  font-size: 28px !important;
  letter-spacing: 0;
}

@supports (font-size: 1cqh) {
  .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--text,
  .ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter--text {
    /* ~52cqh keeps $250,000 inside mark+odo after -90deg */
    font-size: clamp(18px, 52cqh, 34px) !important;
  }
}

.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter__text,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-meter__text {
  padding: 0 2px !important;
  letter-spacing: 0 !important;
  font-size: 1em !important;
  line-height: 1 !important;
  overflow: hidden;
}

.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-gold-punct,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left .ux-jackpot-gold-punct {
  letter-spacing: 0;
  padding: 0 0.14em;
}

/* Horizontal dock (optional Lower L) ? same Pulse chrome, curve top-right */
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--bottom-left,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--bottom-left {
  left: 0;
  bottom: var(--hhr-reserve);
  top: auto;
  width: 206px;
  height: 58px;
  border-radius: 0 14px 0 0;
  -webkit-transform: none;
  transform: none;
}

/* Widget morph shell ? CEF49-safe transform/opacity tween on mode swap */
.ux-cab-px .uxc-proto-bug--pulse,
.ux-cab-px .uxc-proto-tab--pulse,
.ux-cab-px .uxc-proto-panel.uxc-panel--pulse,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse,
.ux-cab-host .ux-cab-px .uxc-proto-tab--pulse,
.ux-cab-host .ux-cab-px .uxc-proto-panel.uxc-panel--pulse {
  will-change: transform, opacity;
}

.ux-cab-px .is-ux-morphing,
.ux-cab-host .ux-cab-px .is-ux-morphing {
  -webkit-transition: -webkit-transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.38s ease;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.38s ease;
}

/* Flavor A Pulse plate: docked lower-left ? curved top-right, hard 90? left/bottom,
   Gradient Pulse stroke on top + right only (left/bottom open against the glass).
   Dark charcoal rim OUTSIDE the pulse stroke so the plate pops on busy reel BG.
   Split: .uxc-panel-banner (UltralinX signage) / .uxc-panel-hhr-body (HHR stack). */
.ux-cab-px .uxc-proto-panel.uxc-panel--pulse,
.ux-cab-host .ux-cab-px .uxc-proto-panel.uxc-panel--pulse {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  position: absolute;
  left: 0;
  bottom: var(--hhr-reserve);
  top: auto;
  right: auto;
  width: 339px;
  height: 866px;
  min-height: 0;
  margin: 0;
  padding: 0 0 56px;
  border: none;
  /* Thicker Gradient Pulse stroke on top + right (dark rim stays outside) */
  border-top: 4px solid #ffb04a;
  border-right: 4px solid #ff6a3c;
  border-radius: 0 42px 0 0;
  background: linear-gradient(180deg, #14161c 0%, #0a0b0f 55%, #08090c 100%);
  overflow: hidden;
  box-sizing: border-box;
  /*
   * Top cream double-stroke (2?1?2 cream/black/cream) sits outside the Pulse
   * border, then the dark rim. Attract/jackpot reuse the same --uxc-dbl-stroke.
   */
  --uxc-dbl-stroke:
    0 -1px 0 0 #f5e8d0,
    0 -2px 0 0 #05060a,
    0 -3px 0 0 #f5e8d0;
  box-shadow:
    var(--uxc-dbl-stroke),
    0 0 0 6px #08090c,
    0 10px 28px rgba(0, 0, 0, 0.72);
}

/* UltralinX banner ? Flavor A compact video flush to panel top/sides.
 * relative so qualify ticker overlays attract (no reserved dead strip). */
.ux-cab-px .uxc-panel--pulse .uxc-panel-banner {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background:
    linear-gradient(90deg, #ff2f6e, #ff9a3c, #ffd24a) left bottom / 100% 2px no-repeat,
    linear-gradient(180deg, #1a1220 0%, #12141a 55%, #0e1016 100%);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.32);
}

/* HHR body ? Current race IA under UltralinX banner shelf. */
.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr-body {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px 10px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0a0b0f 0%, #08090c 100%);
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.42);
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-head {
  position: relative;
  height: 44px;
  margin: 0 0 8px;
  padding-right: 8px;
  flex: 0 0 auto;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-logo {
  width: auto;
  height: 16px;
  margin-top: 10px;
  mix-blend-mode: screen;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-title {
  position: absolute;
  left: 68px;
  top: 14px;
  right: 8px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd77a;
  text-shadow: 0 0 10px rgba(255, 154, 60, 0.35);
}

/* Header collapse removed ? footer HHR back icon collapses to bug. */
.ux-cab-px .uxc-panel--pulse .uxc-proto-collapse {
  display: none;
}

/* Banner jackpot ? compact .ux-jackpot-signage; video cover-fills flush to edges.
 * No bottom margin: ticker overlays attract; hiding it leaves no gap. */
.ux-cab-px .uxc-panel--pulse .uxc-panel-banner > .ux-jackpot-signage--compact {
  flex: 0 0 auto;
  align-self: stretch;
  margin: 0;
  width: 100%;
  min-width: 100%;
  max-width: none;
  font-size: 20px;
  border-radius: 0;
  box-shadow: none;
}

/* Flavor B hero-video panel ? keep 16:9 plate (cabinet must not inherit Pulse 16/8.2). */
.ux-cab-px .uxc-panel--pulse .uxc-panel-banner > .ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact {
  aspect-ratio: 16 / 9;
  padding: 0;
  gap: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: #000;
  height: auto;
  min-height: 0;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-banner > .ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact .ux-jackpot-signage__meter-stage {
  left: 12.9%;
  right: 9.7%;
  top: 55.2%;
  bottom: 15.0%;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
}

/* Flavor C panel ? Luke C well insets (B stays 12.9/9.7/55.2/15.0). */
.ux-cab-px .uxc-panel--pulse .uxc-panel-banner > [data-ux-flavor-skin="C"].ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact .ux-jackpot-signage__meter-stage,
.ux-cab-host .ux-cab-px .uxc-panel--pulse .uxc-panel-banner > [data-ux-flavor-skin="C"].ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact .ux-jackpot-signage__meter-stage,
.ux-cab-px .uxc-panel--pulse .uxc-panel-banner [data-ux-flavor-skin="C"].ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact .ux-jackpot-signage__meter-stage {
  left: 14.5% !important;
  right: 15.1% !important;
  top: 55.2% !important;
  bottom: 17.4% !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Flavor A panel ? match ultralinx.css: gold meter frame nudged up; ticker pinned to banner bottom. */
.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="A"] .uxc-panel-banner > [data-ux-flavor-skin="A"].ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact .ux-jackpot-signage__meter-stage,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="A"] .uxc-panel-banner > [data-ux-flavor-skin="A"].ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact .ux-jackpot-signage__meter-stage,
.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="A"] .uxc-panel-banner [data-ux-flavor-skin="A"].ux-jackpot-signage--layout-hero-video.ux-jackpot-signage--compact .ux-jackpot-signage__meter-stage {
  top: 58% !important;
  bottom: 16% !important;
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="A"] .uxc-panel-qual--ticker,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="A"] .uxc-panel-qual--ticker {
  bottom: 0;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-banner > .ux-jackpot-signage--compact .ux-jackpot-signage__bg {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center top;
  object-position: center top;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-well {
  display: none;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-meter,
.ux-cab-px .uxc-panel--pulse .uxc-panel-bet {
  display: none !important;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-qual,
.ux-cab-px .uxc-panel--pulse .uxc-panel-qual--ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  flex: none;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-content {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0 8px;
  overflow: hidden;
  border-color: #3a3420;
  background: #0a0b0f;
}

.ux-cab-px .uxc-panel--pulse .uxc-hhr-picks {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.ux-cab-px .uxc-panel--pulse .uxc-hhr-pick-row {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-height: 0;
}

.ux-cab-px .uxc-panel--pulse .uxc-hhr-pick {
  height: auto;
  min-height: 0;
}

.ux-cab-px .uxc-panel--pulse .uxc-hhr-letter {
  font-size: 22px;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-cta {
  flex: 0 0 52px;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border-radius: 0;
  border: 1px solid #ff9a3c;
  background: #14161c;
  color: #ffd77a;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-cta--wager {
  border: none;
  background: linear-gradient(90deg, #ff2f6e 0%, #ff9a3c 55%, #ffb04a 100%);
  color: #140a08;
  font-weight: 800;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr {
  left: 0;
  right: 10px;
  bottom: 6px;
  height: 41px;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr-keys {
  border-color: #5a4a28;
  border-radius: 0 4px 0 0;
  background: linear-gradient(180deg, #1a1c22, #101218);
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr-btn {
  color: #c9a84a;
  border-right-color: #3a3420;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr-btn--back {
  color: #e0c06a;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr-btn.is-active {
  background: linear-gradient(180deg, #ff2f6e, #ff7a2f);
  color: #fff;
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr-value {
  border: 0;
  background: rgba(8, 9, 12, 0.65);
}

.ux-cab-px .uxc-panel--pulse .uxc-panel-hhr-value b {
  color: #ffc14d;
}

/* B Vault ? solid gold Pulse stroke (same geometry as A: follows border-radius).
 * Do NOT paint stroke via border-box gradient strips ? those are axis-aligned and
 * miss the large top-right curve (panel 42px / bug TR radius). */
.ux-cab-px .uxc-proto-bug--pulse[data-ux-flavor-skin="B"],
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse[data-ux-flavor-skin="B"],
.ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="B"],
.ux-cab-host .ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="B"] {
  border-top-color: #e8c040;
  border-right-color: #c88a28;
  background: linear-gradient(180deg, #0a1a12 0%, #04140c 100%);
  box-shadow:
    0 0 0 6px #1a1008,
    0 10px 28px rgba(0, 0, 0, 0.72);
}

/* B/C panel only ? keep cream double-stroke on top (bugs use rim alone). */
.ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="B"],
.ux-cab-host .ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="B"] {
  box-shadow:
    var(--uxc-dbl-stroke, 0 -1px 0 0 #f5e8d0, 0 -2px 0 0 #05060a, 0 -3px 0 0 #f5e8d0),
    0 0 0 6px #1a1008,
    0 10px 28px rgba(0, 0, 0, 0.72);
}

/* C Grandstand ? soft orange?deep-red outer stroke.
 * Transparent border + border-box gradient tracks border-radius (unlike axis-
 * aligned edge strips) and uses wide intermediate stops to kill hard TR/BR steps. */
.ux-cab-px .uxc-proto-bug--pulse[data-ux-flavor-skin="C"],
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse[data-ux-flavor-skin="C"],
.ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="C"],
.ux-cab-host .ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="C"] {
  --uxc-c-stroke: linear-gradient(
    145deg,
    #fa8b1b 0%,
    #f2783a 18%,
    #e85a58 36%,
    #d03a68 54%,
    #c01850 72%,
    #a1033c 86%,
    #9f0137 100%
  );
  border-style: solid;
  border-color: transparent;
  border-top-width: 4px;
  border-right-width: 4px;
  border-bottom-width: 0;
  border-left-width: 0;
  background:
    linear-gradient(180deg, #14100c 0%, #0a090c 100%) padding-box,
    var(--uxc-c-stroke) border-box;
  -webkit-background-clip: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 0 0 6px #0a090c,
    0 10px 28px rgba(0, 0, 0, 0.72);
}

/* C panel ? L-frame only (shared rule already zeros left/bottom); cream/red top dbl-stroke */
.ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="C"],
.ux-cab-host .ux-cab-px .uxc-proto-panel.uxc-panel--pulse[data-ux-flavor-skin="C"] {
  border-bottom-width: 0;
  border-left-width: 0;
  box-shadow:
    0 -1px 0 0 #fa8b1b,
    0 -2px 0 0 #05060a,
    0 -3px 0 0 #9f0137,
    0 0 0 6px #0a090c,
    0 10px 28px rgba(0, 0, 0, 0.72);
}

/* B mid-left bug ? solid gold on authored right+bottom (visual top+right) */
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left[data-ux-flavor-skin="B"],
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left[data-ux-flavor-skin="B"] {
  border-top-color: transparent;
  border-right-color: #e8c040;
  border-bottom-color: #c88a28;
  border-radius: 0 0 14px 0;
  background: linear-gradient(180deg, #0a1a12 0%, #04140c 100%);
}

/* B Vault bug digits ? gold + thin bevel only (no outer glow) */
.ux-cab-px .uxc-proto-bug--pulse[data-ux-flavor-skin="B"] .ux-jackpot-meter__text,
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse[data-ux-flavor-skin="B"] .ux-jackpot-meter__text {
  color: #ffd24a;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #ffd24a;
  text-shadow:
    0 -1px 0 rgba(255, 248, 210, 0.85),
    0 1px 0 #6a3a08;
  -webkit-filter: none;
  filter: none;
}

/* C mid-left bug: remap soft stroke to authored right+bottom (visual top+right).
 * Do NOT override width/height/left ? shared mid-left is 206x58 / left:58 like A/B. */
.ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left[data-ux-flavor-skin="C"],
.ux-cab-host .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left[data-ux-flavor-skin="C"] {
  border-top-width: 0;
  border-right-width: 4px;
  border-bottom-width: 4px;
  border-left-width: 0;
  border-radius: 0 0 14px 0;
}

/* Shared Flavor C horizontal stroke (soft multi-stop ? reuse on HHR chrome) */
.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"],
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] {
  --uxc-c-stroke-h: linear-gradient(
    90deg,
    #9f0137 0%,
    #a82048 12%,
    #c04058 28%,
    #e06a40 44%,
    #fa8b1b 58%,
    #f9a040 74%,
    #f5b868 88%,
    #ffe8cc 100%
  );
}

/* C panel HHR ? soft red?orange ticker strokes (cabinet sheet wins over ultralinx) */
.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-banner,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-banner {
  background:
    var(--uxc-c-stroke-h) left bottom / 100% 2px no-repeat,
    linear-gradient(180deg, #1a1014 0%, #121018 55%, #0e0c10 100%);
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-content,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-content {
  border-color: transparent;
  background:
    linear-gradient(#0a090c, #0a090c) padding-box,
    var(--uxc-c-stroke-h) border-box;
  -webkit-background-clip: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-cta,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-cta {
  border-color: transparent;
  color: #ffe8cc;
  background:
    linear-gradient(#141018, #141018) padding-box,
    var(--uxc-c-stroke-h) border-box;
  -webkit-background-clip: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-cta--wager,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-cta--wager {
  border: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  background: linear-gradient(
    90deg,
    #e8488a 0%,
    #ee6a58 22%,
    #f48a38 48%,
    #fa8b1b 62%,
    #fcc878 82%,
    #ffe8cc 100%
  );
  color: #1a0a10;
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-keys,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-keys {
  border-color: transparent;
  background:
    linear-gradient(180deg, #1a1218, #100c10) padding-box,
    var(--uxc-c-stroke-h) border-box;
  -webkit-background-clip: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-btn,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-btn {
  color: #ffc08a;
  border-right-color: rgba(159, 1, 55, 0.35);
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-btn--back,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-btn--back {
  color: #ffe8cc;
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-btn.is-active,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-btn.is-active {
  background: linear-gradient(180deg, #e8488a, #fa8b1b);
  color: #fff;
}

.ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-value b,
.ux-cab-host .ux-cab-px .uxc-panel--pulse[data-ux-flavor-skin="C"] .uxc-panel-hhr-value b {
  color: #ffc08a;
}

/* Legacy Flavor B/C image-only stills on cabinet stage (review refs) */

.ux-cab-marquee-face--still {
  background: #050608;
  line-height: 0;
}

.ux-cab-marquee-face--still .uxc-skin-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.uxc-proto-bug--still {
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.uxc-proto-bug--still .uxc-skin-still--bug {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.ux-cab-px .uxc-attract--still,
.ux-cab-host .ux-cab-px .uxc-attract--still {
  position: relative;
  width: 1218px;
  height: 686px;
  overflow: hidden;
  background: #050608;
}

.ux-cab-px .uxc-attract--still .uxc-skin-still--attract,
.ux-cab-host .ux-cab-px .uxc-attract--still .uxc-skin-still--attract {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ux-cab-jackpot--still {
  position: absolute;
  inset: 0;
  background: #050608;
  line-height: 0;
}

.ux-cab-jackpot--still .uxc-skin-still--jackpot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ux-cab-px .uxc-panel--still,
.ux-cab-host .ux-cab-px .uxc-panel--still {
  position: relative;
  width: 339px;
  height: 866px;
  overflow: hidden;
  background: #050608;
  padding: 0;
}

.ux-cab-px .uxc-panel--still .uxc-skin-still--panel,
.ux-cab-host .ux-cab-px .uxc-panel--still .uxc-skin-still--panel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/*
 * On Deck (video / topper overlayHost): bigger Pulse panel + bigger mid-left bug.
 * CSS/layout only ? no art asset swaps. Fill glass height; keep 339:866 aspect.
 * Bugs + panel chrome dock flush to the video glass floor (no bottom float gap).
 * HHR keys stay inside the panel via padding-bottom / .uxc-panel-hhr ? not via elevating chrome.
 */
.ux-cab-host[data-kind="video"] .ux-cab-px .uxc-proto-panel.uxc-panel--pulse,
.ux-cab-host[data-kind="topper"] .ux-cab-px .uxc-proto-panel.uxc-panel--pulse,
.ux-cab-host[data-kind="video"] .ux-cab-px .ux-cab-widget-focus,
.ux-cab-host[data-kind="topper"] .ux-cab-px .ux-cab-widget-focus {
  left: 0;
  bottom: 0;
  top: auto;
  height: calc(var(--px-h, 1920) * 1px);
  max-height: calc(var(--px-h, 1920) * 1px);
  width: calc(var(--px-h, 1920) * 339 / 866 * 1px);
  max-width: calc(var(--px-w, 1080) * 0.72 * 1px);
}

/*
 * Flat video/topper: attract/jackpot cover-fills the bezel (no letterbox bar).
 * Scaler may extend past sides; fit clips. Hero video cover-matches the plaque.
 */
.ux-cab-host[data-kind="video"] .ux-cab-px .ux-cab-attract-fit,
.ux-cab-host[data-kind="topper"] .ux-cab-px .ux-cab-attract-fit {
  --attract-inset-top: 0px;
  --attract-inset-right: 0px;
  --attract-inset-bottom: 0px;
  --attract-inset-left: 0px;
  background: #05060a;
}

.ux-cab-host[data-kind="video"] .ux-cab-px .ux-cab-attract-fit[data-attract-fit="cover"] .ux-cab-attract-scaler,
.ux-cab-host[data-kind="topper"] .ux-cab-px .ux-cab-attract-fit[data-attract-fit="cover"] .ux-cab-attract-scaler {
  /* Allow negative left (center-crop); keep bottom pinned to glass floor */
  max-width: none;
}

.ux-cab-host[data-kind="video"] .ux-jackpot-signage--layout-hero-video .ux-jackpot-signage__hero,
.ux-cab-host[data-kind="topper"] .ux-jackpot-signage--layout-hero-video .ux-jackpot-signage__hero {
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
  object-position: center center;
}

.ux-cab-host[data-kind="video"] .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left,
.ux-cab-host[data-kind="topper"] .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--mid-left {
  /* Larger plate; flush to glass floor (same as main / hub --hhr-reserve:0) */
  width: 320px;
  height: 96px;
  left: 96px;
  bottom: var(--hhr-reserve, 0px);
}

.ux-cab-host[data-kind="video"] .uxc-proto-bug--pulse.uxc-proto-bug--mid-left,
.ux-cab-host[data-kind="topper"] .uxc-proto-bug--pulse.uxc-proto-bug--mid-left {
  width: 320px;
  height: 96px;
  left: 96px;
  bottom: var(--hhr-reserve, 0px);
}

/* Min + horizontal bug on deck glass ? also floor-flush (catch any proportional host rules). */
.ux-cab-host[data-kind="video"] .ux-cab-px .uxc-proto-tab--exacta,
.ux-cab-host[data-kind="topper"] .ux-cab-px .uxc-proto-tab--exacta,
.ux-cab-host[data-kind="video"] .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--bottom-left,
.ux-cab-host[data-kind="topper"] .ux-cab-px .uxc-proto-bug--pulse.uxc-proto-bug--bottom-left {
  bottom: var(--hhr-reserve, 0px);
}
