/* Procedural machine skin. All visible surfaces are CSS or canvas. */

.visual-viewport {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(24, 113, 167, 0.18), transparent 42%),
    radial-gradient(ellipse at 50% 94%, rgba(0, 204, 255, 0.07), transparent 36%),
    #01040a;
}

.visual-frame {
  isolation: isolate;
  border-radius: clamp(18px, 4vw, 28px);
  background: #030a13 !important;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.82),
    0 10px 28px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(130, 232, 255, 0.18),
    0 0 0 5px #061321,
    0 0 0 7px rgba(92, 201, 238, 0.18),
    inset 0 0 0 1px rgba(219, 251, 255, 0.1);
}

.visual-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(112deg, rgba(181, 247, 255, 0.36), transparent 13% 86%, rgba(70, 206, 244, 0.24)),
    linear-gradient(180deg, #17384d 0%, #071523 16%, #020811 72%, #0b2639 100%);
  box-shadow: inset 0 1px 0 rgba(239, 254, 255, 0.28), inset 0 -2px 0 rgba(72, 228, 255, 0.16);
  pointer-events: none;
}

.visual-frame > .canvas-container {
  overflow: hidden !important;
  border-radius: clamp(14px, 3.2vw, 22px);
  background: #030a13;
}

.visual-frame > .canvas-container::after,
.level-transition-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(147, 234, 255, 0.11),
    inset 0 18px 30px rgba(0, 2, 8, 0.3),
    inset 0 -22px 42px rgba(0, 2, 8, 0.46);
  pointer-events: none;
}

/* The live playfield vignette above belongs to the DOM, not to either render
   canvas. Level transitions temporarily replace those canvases with a moving
   snapshot, so the snapshot needs the same fixed glass edge above it. Keeping
   the shade stationary also prevents it from scrolling with either level. */
.level-transition-overlay {
  border-radius: clamp(14px, 3.2vw, 22px);
}

.level-transition-strip {
  z-index: 1;
}

.visual-slot[data-slot-id="columnLeft"],
.visual-slot[data-slot-id="columnRight"],
.visual-slot[data-slot-id="top"],
.visual-slot[data-slot-id="topLeft"],
.visual-slot[data-slot-id="topRight"],
.visual-slot[data-slot-id="rightCircle"],
.visual-slot[data-slot-id="itemCircle"],
.visual-slot[data-slot-id="arrow"],
.visual-slot[data-slot-id="character"] {
  display: none !important;
}

.portrait-flame-canvas { display: none !important; }

/* Invisible but measurable: PvP and transition code still uses this anchor. */
.visual-slot[data-slot-id="characterCircle"],
.visual-slot[data-slot-id="healthCircle"],
.visual-slot[data-slot-id="healthCharCircle"] {
  opacity: 0 !important;
  background: none !important;
  pointer-events: none !important;
}

/* PvP keeps the target mechanic but replaces both portraits with machined
   reactor discs. The mirrored opponent target copies this same material. */
.visual-frame--pvp .visual-slot[data-slot-id="characterCircle"] {
  display: block !important;
  width: 13.8% !important;
  aspect-ratio: 1 !important;
  opacity: 1 !important;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(239, 255, 255, .92) 0 4%, transparent 8%),
    radial-gradient(circle, #70efff 0 10%, #0a566d 12% 22%, #020a12 24% 43%, #5b8799 45% 49%, #102b3a 52% 60%, #02070d 63% 100%) !important;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .68),
    inset 0 1px 1px rgba(226, 253, 255, .46),
    0 0 0 1px rgba(95, 232, 255, .4),
    0 0 18px rgba(55, 213, 244, .2) !important;
}

.visual-frame--pvp .visual-slot[data-slot-id="healthCircle"] {
  display: block !important;
  width: 15.5% !important;
  aspect-ratio: 1 !important;
  opacity: 1 !important;
  background: none !important;
}

.visual-frame--pvp .visual-slot[data-slot-id="healthCircle"] .health-clip,
.pvp-target-slot--healthCircle .health-clip {
  inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 0 66%, #000 68% 76%, transparent 78%);
  mask: radial-gradient(circle, transparent 0 66%, #000 68% 76%, transparent 78%);
}

.pvp-target-slot--characterCircle {
  border-radius: 50%;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .68),
    inset 0 1px 1px rgba(226, 253, 255, .46),
    0 0 0 1px rgba(95, 232, 255, .4),
    0 0 18px rgba(55, 213, 244, .2);
}

.pvp-target-slot--healthCircle { border-radius: 50%; }

.pvp-aim-timer-ring {
  filter: drop-shadow(0 0 6px rgba(79, 226, 255, .62));
}
.pvp-aim-timer-track {
  stroke: rgba(91, 198, 220, .18);
  stroke-width: 4.2;
}
.pvp-aim-timer-arc {
  stroke: rgba(119, 240, 255, .96);
  stroke-width: 4.2;
}

.machine-chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.machine-top-bridge {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0.8%;
  height: 11.5%;
  border-radius: 0 0 38% 38% / 0 0 24% 24%;
  background:
    linear-gradient(180deg, rgba(119, 216, 242, 0.18), transparent 6%),
    linear-gradient(118deg, #071522 0%, #12344b 14%, #061521 32%, #020810 62%, #0c293d 84%, #06131f 100%);
  border: 1px solid rgba(115, 224, 249, 0.19);
  border-top: 0;
  box-shadow:
    0 13px 28px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(91, 236, 255, 0.18),
    inset 0 -10px 24px rgba(0, 4, 11, 0.45);
}

.machine-wordmark {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.36em;
  align-items: baseline;
  color: rgba(219, 249, 255, 0.7);
  font-size: clamp(6px, 1.7vw, 10px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.23em;
  white-space: nowrap;
}

.machine-wordmark b {
  color: #67ecff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(64, 229, 255, 0.46);
}

.machine-objective {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 36%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.machine-objective-value {
  color: #f3fdff;
  font-size: clamp(13px, 4.2vw, 24px);
  line-height: 0.95;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 14px rgba(90, 237, 255, 0.24);
}

.machine-objective-copy {
  margin-top: 0.24em;
  color: rgba(159, 225, 239, 0.66);
  font-size: clamp(4px, 1.1vw, 7px);
  font-weight: 750;
  letter-spacing: 0.24em;
}

.machine-objective-track {
  position: relative;
  width: 74%;
  height: max(2px, 0.3vw);
  margin: 0.6em auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(85, 185, 215, 0.13);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.72);
}

.machine-objective-track i {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5f1c, #ffad2f 82%, #fff0b0);
  box-shadow: 0 0 8px rgba(255, 112, 24, 0.66);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Side rails are rendered by the GPU playfield as real emissive geometry. */

.machine-corner {
  position: absolute;
  bottom: 0.8%;
  width: 23%;
  height: 8%;
  border-bottom: 1px solid rgba(89, 227, 255, 0.22);
  background: linear-gradient(180deg, rgba(8, 29, 44, 0), rgba(7, 28, 43, 0.7));
}
.machine-corner--bl { left: 0; clip-path: polygon(0 0, 62% 0, 100% 100%, 0 100%); }
.machine-corner--br { right: 0; clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); }

/* Existing listener target, rebuilt as a molded pause control. */
.visual-slot[data-slot-id="leftCircle"] {
  display: block !important;
  left: 8.6% !important;
  top: 5.1% !important;
  width: 13.4% !important;
  aspect-ratio: 1 !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(213, 253, 255, 0.22), transparent 20%),
    radial-gradient(circle, #0c2538 0 47%, #04101c 49% 58%, #315c70 60% 66%, #07121e 68% 100%) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.54), inset 0 1px 1px rgba(206, 251, 255, 0.38), 0 0 0 1px rgba(91, 228, 255, 0.3) !important;
  z-index: 610 !important;
  transition: transform 120ms ease, filter 160ms ease !important;
}

.visual-slot[data-slot-id="leftCircle"]::before,
.visual-slot[data-slot-id="leftCircle"]::after {
  content: '';
  position: absolute;
  top: 34%;
  bottom: 34%;
  width: 11%;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6fdff, #57e8fb 55%, #168aa4);
  box-shadow: 0 0 7px rgba(85, 235, 255, 0.45);
}
.visual-slot[data-slot-id="leftCircle"]::before { left: 36%; }
.visual-slot[data-slot-id="leftCircle"]::after { right: 36%; }
.visual-slot[data-slot-id="leftCircle"][data-level-map-exit]::before,
.visual-slot[data-slot-id="leftCircle"][data-level-map-exit]::after {
  top: 45%;
  bottom: auto;
  left: 31%;
  right: auto;
  width: 38%;
  height: 10%;
  background: linear-gradient(90deg, #f2feff, #63eaff 58%, #1596b0);
}
.visual-slot[data-slot-id="leftCircle"][data-level-map-exit]::before { transform: rotate(45deg); }
.visual-slot[data-slot-id="leftCircle"][data-level-map-exit]::after { transform: rotate(-45deg); }
.visual-slot[data-slot-id="leftCircle"]:active { transform: translate(-50%, -50%) scale(0.94) !important; filter: brightness(1.22); }

.visual-slot[data-slot-id="ballCounter"] {
  display: block !important;
  left: 91.4% !important;
  top: 5.1% !important;
  width: 13.4% !important;
  aspect-ratio: 1 !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 25%, rgba(216, 252, 255, 0.2), transparent 19%),
    radial-gradient(circle, #0a2133 0 48%, #030b14 50% 59%, #2b596e 61% 67%, #06111c 69% 100%) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.54), inset 0 1px 1px rgba(206, 251, 255, 0.34), 0 0 0 1px rgba(91, 228, 255, 0.3);
  z-index: 610 !important;
}

.visual-slot[data-slot-id="ballCounter"] .bc-ring { inset: 5%; }
.visual-slot[data-slot-id="ballCounter"] .bc-dot { transition-duration: 220ms; }
.visual-slot[data-slot-id="ballCounter"] .bc-dot--filled {
  background: #70efff;
  box-shadow: 0 0 3px #c8fbff, 0 0 8px rgba(64, 227, 255, 0.6);
}
.visual-slot[data-slot-id="ballCounter"] .bc-dot--empty { background: rgba(91, 199, 224, 0.14); opacity: 0.72; }
.visual-slot[data-slot-id="ballCounter"] .bc-number {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 760;
  color: #f2fdff;
  letter-spacing: -0.06em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72), 0 0 10px rgba(86, 233, 255, 0.18);
}

.visual-frame--pvp .visual-slot[data-slot-id="ballCounter"]::before {
  content: 'VS';
  position: absolute;
  inset: 21%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 230, 252, .28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(222, 253, 255, .18), transparent 24%),
    radial-gradient(circle, #0d2c40 0 42%, #04101c 68%);
  color: #a9f4ff;
  font: 800 calc(9px * var(--s))/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .1em;
  text-indent: .1em;
  text-shadow: 0 0 8px rgba(72, 226, 251, .72);
  box-shadow: inset 0 -5px 9px rgba(0, 4, 10, .58), 0 0 10px rgba(61, 218, 244, .15);
}

.visual-frame--pvp .visual-slot[data-slot-id="ballCounter"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 8%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #68ecff;
  box-shadow: 0 0 7px #39dff9;
}

/* Pause is a compact instrument panel instead of a character portrait shrine. */
.pause-overlay {
  background:
    radial-gradient(circle at 50% 38%, rgba(29, 188, 232, 0.11), transparent 34%),
    rgba(0, 4, 12, 0.72) !important;
  backdrop-filter: blur(7px) saturate(0.72);
}

.pause-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(76%, 316px);
  height: auto;
  aspect-ratio: auto;
  transform: translate(-50%, -50%);
  padding: clamp(20px, 5vw, 28px);
  box-sizing: border-box;
  border: 1px solid rgba(112, 226, 250, 0.28);
  border-radius: clamp(18px, 5vw, 26px);
  background:
    linear-gradient(135deg, rgba(167, 241, 255, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(10, 36, 53, 0.97), rgba(2, 10, 20, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.68),
    0 0 0 5px rgba(5, 18, 30, 0.88),
    0 0 0 6px rgba(101, 222, 249, 0.12),
    inset 0 1px 0 rgba(220, 250, 255, 0.15),
    inset 0 -20px 34px rgba(0, 3, 10, 0.5);
}

.pause-panel::before,
.pause-panel::after {
  content: '';
  position: absolute;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64eaff;
  box-shadow: 0 0 9px rgba(73, 225, 255, 0.6);
}
.pause-panel::before { left: 15px; }
.pause-panel::after { right: 15px; }

.pause-content {
  position: relative;
  width: 100%;
  height: auto;
  padding: 0;
  gap: 10px;
}

.pause-kicker {
  color: rgba(111, 228, 249, 0.52);
  font: 700 clamp(6px, 1.7vw, 9px)/1 ui-monospace, monospace;
  letter-spacing: .24em;
}

.pause-title {
  margin: 1px 0 6px;
  color: #e9fbff;
  font: 750 clamp(21px, 6vw, 30px)/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.04em;
  text-shadow: 0 0 18px rgba(55, 219, 255, .24);
}

.pause-img-btn {
  width: 100%;
  min-height: clamp(42px, 11vw, 50px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid rgba(117, 220, 240, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(31, 79, 101, .34), rgba(4, 19, 31, .5)),
    rgba(4, 15, 26, .78);
  color: rgba(222, 249, 255, .88);
  font: 670 clamp(11px, 3vw, 14px)/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .02em;
  box-shadow: inset 0 1px rgba(225, 251, 255, .07), 0 5px 12px rgba(0,0,0,.2);
  transition: transform 110ms ease, border-color 130ms ease, background 130ms ease;
}

.pause-img-btn:first-of-type {
  border-color: rgba(88, 230, 255, .48);
  background: linear-gradient(180deg, rgba(21, 138, 171, .62), rgba(3, 56, 79, .7));
  color: #f0fdff;
  box-shadow: inset 0 1px rgba(229, 253, 255, .18), 0 0 20px rgba(34, 210, 255, .1);
}
.pause-img-btn:active { transform: translateY(1px) scale(.985); }
.pause-btn-icon {
  width: 22px;
  color: #65eaff;
  font-size: 15px;
  text-align: center;
  text-shadow: 0 0 10px rgba(62, 226, 255, .48);
}

.pause-hint {
  width: 100%;
  min-height: 38px;
  padding: 0 7px;
  box-sizing: border-box;
  gap: 12px;
}
.pause-hint__text {
  color: rgba(154, 211, 222, .6);
  font: 500 clamp(8px, 2.25vw, 11px)/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}
.pause-check { width: 31px; height: 20px; }
.pause-check-box {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(105, 221, 243, .24);
  border-radius: 999px;
  background: #020b14;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.66);
}
.pause-check-box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #315668;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.pause-check input:checked + .pause-check-box::after {
  transform: translateX(11px);
  background: #7ef0ff;
  box-shadow: 0 0 10px rgba(73, 226, 255, .62);
}

.pause-sound-btn {
  left: auto;
  right: 16px;
  bottom: 15px;
  transform: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(105, 224, 245, .22);
  border-radius: 50%;
  background: rgba(2, 12, 22, .82);
  color: #75eaff;
  font: 700 15px/1 system-ui, sans-serif;
}
.pause-sound-btn .pause-sound-btn__on,
.pause-sound-btn .pause-sound-btn__off { grid-area: 1 / 1; }

.dialogue-card {
  width: min(86%, var(--dialogue-max-width, 300px));
  padding: clamp(7px, 2.2vw, 10px) clamp(13px, 4vw, 20px);
  box-sizing: border-box;
  border: 1px solid rgba(100, 221, 243, .2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 34, 49, .88), rgba(2, 10, 18, .82));
  box-shadow: inset 0 1px rgba(222, 252, 255, .08), 0 10px 24px rgba(0,0,0,.34), 0 0 18px rgba(44,213,247,.05);
}
.dialogue-card::before { display: none; }
.dialogue-text,
.dialogue-layer[data-lang="en"] .dialogue-text {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(11px, 3.4vw, 15px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: rgba(230, 251, 255, .9);
  text-shadow: 0 2px 5px rgba(0,0,0,.55);
}

.visual-frame--level-map-open .dialogue-layer {
  display: none !important;
}

/* The perk dock and slot board share the same molded material language. */
.gamble-hud {
  --dock-collapsed-height: calc(82px * var(--s) * var(--hud-squeeze));
  --dock-open-height: calc(178px * var(--s) * var(--hud-squeeze));
}
.gamble-backdrop { background: rgba(0, 5, 13, .58); backdrop-filter: blur(4px); }
.gamble-dock {
  padding-left: calc(11px * var(--s));
  padding-right: calc(11px * var(--s));
  border-top: 1px solid rgba(91, 222, 246, .24);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40, 199, 235, .13), transparent 46%),
    linear-gradient(180deg, rgba(7, 28, 43, .98), rgba(2, 8, 16, .99));
  box-shadow: 0 -18px 42px rgba(0, 1, 5, .64), inset 0 1px rgba(202, 249, 255, .06);
}
.gamble-toggle-handle {
  width: calc(72px * var(--s));
  height: calc(32px * var(--s));
  border: 1px solid rgba(96, 225, 248, .32);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #10374d, #04111e) !important;
  box-shadow: inset 0 1px rgba(224, 253, 255, .11), 0 -5px 15px rgba(15, 190, 229, .08);
  filter: none;
}
.gamble-toggle-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 43%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #73eaff;
  border-left: 2px solid #73eaff;
  transform: translate(-50%, -25%) rotate(45deg);
  filter: drop-shadow(0 0 5px rgba(66, 229, 255, .62));
}
.gamble-hud.expanded .gamble-toggle-handle::after { transform: translate(-50%, -75%) rotate(225deg); }
.gamble-reels-wrap {
  border: 1px solid rgba(99, 227, 250, .32);
  border-radius: calc(22px * var(--s));
  background:
    linear-gradient(120deg, rgba(130, 232, 248, .09), transparent 20%),
    linear-gradient(180deg, #0a293e, #020a14 76%);
  box-shadow: 0 18px 44px rgba(0,0,0,.62), inset 0 1px rgba(218, 252, 255, .13), inset 0 -18px 28px rgba(0,0,0,.38);
  overflow: hidden;
  filter: none;
}
.gamble-grid { inset: 9% 5%; gap: calc(5px * var(--s)); }
.gamble-cell {
  overflow: hidden;
  border: 1px solid rgba(126, 226, 246, .18);
  border-radius: calc(11px * var(--s));
  background:
    radial-gradient(circle at 50% 36%, rgba(46, 141, 169, .32), transparent 58%),
    linear-gradient(180deg, rgba(14, 45, 63, .96), rgba(1, 8, 16, .98));
  box-shadow:
    inset 0 1px rgba(235, 254, 255, .13),
    inset 0 -9px 15px rgba(0, 0, 0, .42),
    0 4px 8px rgba(0, 1, 5, .42);
}
.gamble-cell::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 1px 2px 46%;
  border-radius: calc(9px * var(--s)) calc(9px * var(--s)) 48% 48%;
  background: linear-gradient(180deg, rgba(224, 252, 255, .12), rgba(147, 232, 246, .025));
  pointer-events: none;
}
.gamble-perk-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--cell-color, #7deeff);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 780;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .24),
    0 2px 4px rgba(0, 0, 0, .8),
    0 0 8px var(--cell-glow-soft, rgba(80,220,255,.35)),
    0 0 15px var(--cell-glow-soft, rgba(80,220,255,.25));
}
.gamble-perk-symbol--slot {
  font-size: calc(25px * var(--s));
  transform: translateY(calc(-.5px * var(--s)));
}
.gamble-perk-chip {
  min-width: calc(38px * var(--s));
  min-height: calc(38px * var(--s));
  max-width: calc(50px * var(--s));
  border: 1px solid color-mix(in srgb, var(--perk-color) 46%, #9eeeff 12%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 24%, rgba(255,255,255,.17), transparent 21%),
    radial-gradient(circle, color-mix(in srgb, var(--perk-color) 38%, #08202e) 0 46%, #03101c 62%);
  box-shadow: inset 0 -8px 12px rgba(0,0,0,.4), 0 5px 12px rgba(0,0,0,.34);
}
.gamble-perk-symbol--chip { font-size: calc(19px * var(--s)); color: color-mix(in srgb, var(--perk-color) 78%, white); }
.gamble-perk-chip--idle .gamble-perk-symbol--chip { filter: brightness(.66) saturate(.7); }
.gamble-perk-chip::after {
  right: calc(-1px * var(--s));
  bottom: calc(-1px * var(--s));
  min-width: calc(18px * var(--s));
  height: calc(17px * var(--s));
  padding: 0 calc(3px * var(--s));
  border-color: rgba(112, 226, 248, .28);
  background: #061522;
  color: #c9f8ff;
  font-size: calc(9px * var(--s));
  line-height: calc(15px * var(--s));
}
.gamble-btn {
  width: min(62%, calc(220px * var(--s)));
  aspect-ratio: 4.2 / 1;
  border: 1px solid rgba(129, 239, 255, .52);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(127, 243, 255, .24), transparent 36%),
    linear-gradient(90deg, #027ea3, #04b7d3 48%, #037496);
  color: #effeff;
  font: 800 calc(13px * var(--s))/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .2em;
  text-indent: .2em;
  box-shadow:
    inset 0 2px 1px rgba(241,255,255,.38),
    inset 0 -8px 13px rgba(0,31,48,.38),
    0 9px 0 #012b3d,
    0 13px 21px rgba(0,0,0,.48),
    0 0 25px rgba(30,213,242,.18);
  filter: none;
}
.gamble-btn:not(:disabled):active {
  background: linear-gradient(180deg, #027393, #034962);
  box-shadow: inset 0 4px 12px rgba(0, 24, 38, .48), 0 4px 0 #012b3d, 0 8px 13px rgba(0,0,0,.42);
}
.gamble-luck { color: rgba(132, 224, 241, .62); }
.gamble-result { color: #d9f8ff; }

@media (max-height: 680px) {
  .gamble-hud.expanded .gamble-info-row {
    max-height: calc(24px * var(--s) * var(--hud-squeeze));
    justify-content: center;
  }
  .gamble-hud.expanded .gamble-luck { display: none; }
  .gamble-hud.expanded .gamble-result {
    min-height: 0;
    text-align: center;
    font-size: calc(10px * var(--s));
    letter-spacing: .03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .machine-objective-track i,
  .visual-slot[data-slot-id="leftCircle"],
  .bc-dot { transition: none !important; }
}
