/* ── Hyve Arcade · Shared Cabinet Shell ──────────────────────────────
   Drop-in arcade-cabinet frame that wraps .canvas-wrap (or .stage) in
   a full upright cabinet — marquee, bezel, screen, coin rail, and CRT
   scanlines.  Reads theme from arcade-loadout.js custom properties.
   ──────────────────────────────────────────────────────────────────── */

/* ── Cabinet custom-property defaults ── */
:root {
  --cab-primary:   #22d3ee;
  --cab-secondary: #a855f7;
  --cab-frame:     rgba(255,255,255,0.10);
  --cab-glow:      rgba(34,211,238,0.25);
  --cab-glow-b:    rgba(168,85,247,0.18);
  --cab-marquee-a: #22d3ee;
  --cab-marquee-b: #a855f7;
  --cab-bezel:     #080c18;
  --cab-body:      linear-gradient(180deg, #0e1428 0%, #090d1a 50%, #060912 100%);
  --cab-chrome:    rgba(255,255,255,0.06);
  --cab-bolt:      rgba(255,255,255,0.12);
}

/* ── Outer cabinet body ── */
.arcade-cabinet {
  --_pad: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--cab-body);
  border: 2px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.40),
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  /* Subtle 3D lift */
  transform: perspective(1200px) rotateX(0.6deg);
  transform-origin: center bottom;
}

/* ── Corner bolts ── */
.arcade-cabinet::before,
.arcade-cabinet::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cab-bolt) 40%, transparent 70%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 4px rgba(255,255,255,0.03);
  z-index: 6;
  pointer-events: none;
}
.arcade-cabinet::before { top: 9px; left: 11px; }
.arcade-cabinet::after  { top: 9px; right: 11px; }

/* Bottom corner bolts via the coin-rail pseudo */
.cab-coin-rail::before,
.cab-coin-rail::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cab-bolt) 40%, transparent 70%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 4px rgba(255,255,255,0.03);
  z-index: 6;
  pointer-events: none;
}
.cab-coin-rail::before { bottom: 6px; left: 11px; }
.cab-coin-rail::after  { bottom: 6px; right: 11px; }

/* ── Marquee header ── */
.cab-marquee {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 36px;
  background:
    linear-gradient(90deg,
      var(--cab-marquee-a) 0%,
      var(--cab-marquee-b) 50%,
      var(--cab-marquee-a) 100%
    );
  overflow: hidden;
  flex-shrink: 0;
}

/* Marquee light-sweep animation */
.cab-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.25) 45%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.25) 55%,
    transparent 70%
  );
  animation: cab-marquee-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cab-marquee-sweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Marquee bottom edge chrome strip */
.cab-marquee::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.20) 20%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.20) 80%,
    transparent 100%
  );
}

.cab-marquee-text {
  position: relative;
  z-index: 1;
  font: 800 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5), 0 0 18px rgba(255,255,255,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Screen bezel ── */
.cab-bezel {
  position: relative;
  margin: var(--_pad) var(--_pad) 0;
  padding: 8px;
  border-radius: 10px;
  background: var(--cab-bezel);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 32px var(--cab-glow),
    0 0 64px var(--cab-glow-b);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Inner-screen inset shadow (depth) */
.cab-bezel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}

/* ── Screen area (wraps the canvas) ── */
.cab-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

/* CRT scanline overlay */
.cab-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  z-index: 3;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* Screen ambient glow ring */
.cab-screen::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9px;
  background: transparent;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,0.7),
    0 0 8px var(--cab-glow);
  pointer-events: none;
  z-index: 2;
}

/* The actual canvas inside the cabinet */
.cab-screen canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

/* When .canvas-wrap is preserved inside cabinet (cab-inner-wrap mode),
   strip the old wrapper's chrome — the cabinet provides all framing. */
.cab-inner-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  /* Reset old styling — cabinet provides the bezel/border/glow */
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
/* Remove the old scanline pseudo from canvas-wrap (cabinet has its own) */
.cab-inner-wrap::after {
  display: none !important;
}
.cab-inner-wrap::before {
  display: none !important;
}

/* ── LED accent strip (between bezel and coin rail) ── */
.cab-led-strip {
  height: 3px;
  margin: 0 var(--_pad);
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cab-primary) 15%,
    var(--cab-secondary) 50%,
    var(--cab-primary) 85%,
    transparent 100%
  );
  opacity: 0.6;
  box-shadow: 0 0 12px var(--cab-glow);
  animation: cab-led-pulse 3s ease-in-out infinite alternate;
}

@keyframes cab-led-pulse {
  0%   { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* ── Coin rail / bottom section ── */
.cab-coin-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px var(--_pad) 12px;
  flex-shrink: 0;
}

/* Coin slot detail */
.cab-coin-slot {
  width: 38px;
  height: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.3) 100%);
  box-shadow:
    inset 0 1px 4px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.03);
  position: relative;
}

/* Coin slit */
.cab-coin-slot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0,0,0,0.6);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.cab-credit-label {
  font: 700 10px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  user-select: none;
}

/* When cabinet is mounted inside .stage (HyveWar), strip old stage chrome */
.stage:has(.arcade-cabinet) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Settings Menu ──────────────────────────────────────────────────── */

/* Gear button sits in the coin rail */
.cab-settings-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  z-index: 5;
  padding: 0;
}
.cab-settings-btn:hover {
  color: var(--cab-primary, #22d3ee);
  border-color: var(--cab-primary, #22d3ee);
  background: rgba(255,255,255,0.08);
}

/* Panel — slides up from coin rail */
.cab-settings-panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 280px;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(10,14,30,0.96), rgba(6,9,18,0.98));
  box-shadow: 0 -12px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  z-index: 100;
  font: 12px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s;
}
.cab-settings-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cab-settings-panel::-webkit-scrollbar { width: 4px; }
.cab-settings-panel::-webkit-scrollbar-track { background: transparent; }
.cab-settings-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
}

.cab-settings-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 8px;
  padding: 0;
}
.cab-settings-heading:not(:first-child) {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Item rows */
.cab-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.cab-swatch:hover {
  background: rgba(255,255,255,0.05);
}
.cab-swatch.active {
  border-color: var(--cab-primary, #22d3ee);
  background: rgba(255,255,255,0.06);
}

/* Color preview dot */
.cab-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.12);
}

.cab-swatch-info {
  min-width: 0;
  flex: 1;
}

.cab-swatch-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cab-swatch-tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.cab-swatch.active .cab-swatch-tag {
  background: rgba(34,211,238,0.15);
  color: var(--cab-primary, #22d3ee);
}

/* "None" / default row */
.cab-swatch-none .cab-swatch-dot {
  background: linear-gradient(135deg, #0e1428, #090d1a);
  border-style: dashed;
}

/* Empty state */
.cab-settings-empty {
  text-align: center;
  padding: 18px 10px;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  line-height: 1.6;
}
.cab-settings-empty a {
  color: var(--cab-primary, #22d3ee);
  text-decoration: none;
}
.cab-settings-empty a:hover {
  text-decoration: underline;
}

/* Hide settings in fullscreen */
.arcade-cabinet:fullscreen .cab-settings-btn,
.arcade-cabinet:-webkit-full-screen .cab-settings-btn,
:fullscreen .arcade-cabinet .cab-settings-btn,
:-webkit-full-screen .arcade-cabinet .cab-settings-btn,
.arcade-cabinet:fullscreen .cab-settings-panel,
.arcade-cabinet:-webkit-full-screen .cab-settings-panel,
:fullscreen .arcade-cabinet .cab-settings-panel,
:-webkit-full-screen .arcade-cabinet .cab-settings-panel {
  display: none;
}

@media (max-width: 700px) {
  .cab-settings-panel {
    width: 240px;
    max-height: 300px;
    padding: 12px;
  }
  .cab-settings-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 22px;
    right: 10px;
  }
}

/* ── Responsive adjustments ── */
@media (max-width: 700px) {
  .arcade-cabinet {
    --_pad: 10px;
    border-radius: 16px;
    transform: none;
  }
  .cab-marquee {
    height: 36px;
  }
  .cab-marquee-text {
    font-size: 11px;
    letter-spacing: 0.10em;
  }
  .cab-bezel {
    padding: 5px;
    margin-top: 10px;
    border-radius: 8px;
  }
  .cab-coin-rail {
    padding: 8px var(--_pad) 10px;
  }
}

/* ── Fullscreen: strip the cabinet chrome, keep just the screen ── */
.arcade-cabinet:fullscreen,
.arcade-cabinet:-webkit-full-screen,
:fullscreen .arcade-cabinet,
:-webkit-full-screen .arcade-cabinet {
  border-radius: 0;
  border: none;
  background: #000;
  transform: none;
  box-shadow: none;
}

.arcade-cabinet:fullscreen .cab-marquee,
.arcade-cabinet:-webkit-full-screen .cab-marquee,
:fullscreen .arcade-cabinet .cab-marquee,
:-webkit-full-screen .arcade-cabinet .cab-marquee,
.arcade-cabinet:fullscreen .cab-coin-rail,
.arcade-cabinet:-webkit-full-screen .cab-coin-rail,
:fullscreen .arcade-cabinet .cab-coin-rail,
:-webkit-full-screen .arcade-cabinet .cab-coin-rail,
.arcade-cabinet:fullscreen .cab-led-strip,
.arcade-cabinet:-webkit-full-screen .cab-led-strip,
:fullscreen .arcade-cabinet .cab-led-strip,
:-webkit-full-screen .arcade-cabinet .cab-led-strip {
  display: none;
}

.arcade-cabinet:fullscreen .cab-bezel,
.arcade-cabinet:-webkit-full-screen .cab-bezel,
:fullscreen .arcade-cabinet .cab-bezel,
:-webkit-full-screen .arcade-cabinet .cab-bezel {
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  background: #000;
  box-shadow: none;
}

.arcade-cabinet:fullscreen .cab-bezel::before,
.arcade-cabinet:-webkit-full-screen .cab-bezel::before,
:fullscreen .arcade-cabinet .cab-bezel::before,
:-webkit-full-screen .arcade-cabinet .cab-bezel::before {
  display: none;
}

.arcade-cabinet:fullscreen .cab-screen,
.arcade-cabinet:-webkit-full-screen .cab-screen,
:fullscreen .arcade-cabinet .cab-screen,
:-webkit-full-screen .arcade-cabinet .cab-screen {
  border-radius: 0;
}

.arcade-cabinet:fullscreen .cab-screen::before,
.arcade-cabinet:-webkit-full-screen .cab-screen::before,
:fullscreen .arcade-cabinet .cab-screen::before,
:-webkit-full-screen .arcade-cabinet .cab-screen::before {
  display: none;
}

/* ── Cabinet skin variants (applied via data-cab-skin) ── */

/* ── Founders Grid — golden circuit-board etching with warm luxury glow ── */
@keyframes cab-founders-trace {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
@keyframes cab-founders-bolt-glow {
  0%, 100% { box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 4px rgba(255,215,0,0.15); }
  50%      { box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 12px rgba(255,215,0,0.55); }
}

.arcade-cabinet[data-cab-skin="founders-grid"] {
  --cab-primary:   #FFD700;
  --cab-secondary: #7CF6FF;
  --cab-frame:     rgba(255,215,0,0.16);
  --cab-glow:      rgba(255,215,0,0.22);
  --cab-glow-b:    rgba(124,246,255,0.12);
  --cab-marquee-a: #FFD700;
  --cab-marquee-b: #FFA500;
  --cab-bolt:      rgba(255,215,0,0.30);
  --cab-body: linear-gradient(180deg, #121008 0%, #0e0c06 50%, #0a0804 100%);
  border: 1px solid rgba(255,215,0,0.10);
}

/* Circuit-board grid etched into the body */
.arcade-cabinet[data-cab-skin="founders-grid"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 19px,
      rgba(255,215,0,0.025) 19px, rgba(255,215,0,0.025) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 19px,
      rgba(255,215,0,0.025) 19px, rgba(255,215,0,0.025) 20px
    );
  animation: cab-founders-trace 12s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="founders-grid"] .cab-marquee {
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 35%, #FFD700 65%, #FFA500 100%);
  background-size: 200% 100%;
  animation: cab-holo-foil 8s ease infinite;
}

.arcade-cabinet[data-cab-skin="founders-grid"] .cab-marquee-text {
  text-shadow:
    0 0 6px rgba(255,215,0,0.9),
    0 0 18px rgba(255,165,0,0.4),
    0 1px 4px rgba(0,0,0,0.6);
}

.arcade-cabinet[data-cab-skin="founders-grid"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%, #FFD700 12%, #FFA500 35%, #FFD700 65%, #FFA500 88%, transparent 100%
  );
  animation: cab-led-pulse 2.5s ease-in-out infinite alternate;
  height: 3px;
  box-shadow: 0 0 14px rgba(255,215,0,0.35);
}

.arcade-cabinet[data-cab-skin="founders-grid"] .cab-bezel {
  box-shadow:
    inset 0 2px 10px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,215,0,0.04),
    0 0 28px rgba(255,215,0,0.18),
    0 0 56px rgba(255,165,0,0.08);
}

/* Gold bolts pulse like status LEDs */
.arcade-cabinet[data-cab-skin="founders-grid"] .cab-coin-rail::before,
.arcade-cabinet[data-cab-skin="founders-grid"] .cab-coin-rail::after {
  animation: cab-founders-bolt-glow 3s ease-in-out infinite;
}

.arcade-cabinet[data-cab-skin="founders-grid"] .cab-coin-slot {
  border-color: rgba(255,215,0,0.14);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.6), 0 0 6px rgba(255,215,0,0.08);
}


/* ── Silver Comet — brushed steel with meteor streak LEDs ── */
@keyframes cab-comet-streak {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@keyframes cab-brushed-shift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

.arcade-cabinet[data-cab-skin="silver-comet"] {
  --cab-primary:   #D9F1FF;
  --cab-secondary: #89BFFF;
  --cab-frame:     rgba(217,241,255,0.16);
  --cab-glow:      rgba(217,241,255,0.22);
  --cab-glow-b:    rgba(137,191,255,0.14);
  --cab-marquee-a: #89BFFF;
  --cab-marquee-b: #D9F1FF;
  --cab-bezel:     #0a0f1c;
  --cab-bolt:      rgba(217,241,255,0.28);
  --cab-body: linear-gradient(180deg, #0d1018 0%, #0a0d14 50%, #080a10 100%);
  border: 1px solid rgba(217,241,255,0.08);
}

/* Brushed-metal vertical grain */
.arcade-cabinet[data-cab-skin="silver-comet"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px, transparent 2px,
    rgba(217,241,255,0.012) 2px, rgba(217,241,255,0.012) 3px
  );
  animation: cab-brushed-shift 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="silver-comet"] .cab-marquee {
  background: linear-gradient(90deg, #89BFFF 0%, #D9F1FF 30%, #89BFFF 60%, #D9F1FF 100%);
}

.arcade-cabinet[data-cab-skin="silver-comet"] .cab-marquee-text {
  text-shadow:
    0 0 8px rgba(217,241,255,0.8),
    0 0 22px rgba(137,191,255,0.3),
    0 1px 4px rgba(0,0,0,0.5);
}

/* Comet-streak LED — a bright spot that races across */
.arcade-cabinet[data-cab-skin="silver-comet"] .cab-led-strip {
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(217,241,255,0.1) 30%,
      rgba(137,191,255,0.3) 40%,
      #D9F1FF 50%,
      rgba(137,191,255,0.3) 60%,
      rgba(217,241,255,0.1) 70%,
      transparent 100%
    );
  background-size: 300% 100%;
  animation: cab-comet-streak 3s ease-in-out infinite;
  height: 3px;
  box-shadow: 0 0 12px rgba(217,241,255,0.25);
}

.arcade-cabinet[data-cab-skin="silver-comet"] .cab-bezel {
  box-shadow:
    inset 0 2px 10px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(217,241,255,0.03),
    0 0 24px rgba(217,241,255,0.15),
    0 0 52px rgba(137,191,255,0.07);
}


/* ── Spring Circuit — blooming neon flora with circuit traces ── */
@keyframes cab-spring-bloom {
  0%, 100% {
    opacity: 0.04;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.10;
    transform: scale(1.02);
  }
}
@keyframes cab-spring-led {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.arcade-cabinet[data-cab-skin="spring-circuit"] {
  --cab-primary:   #7CF6FF;
  --cab-secondary: #F6D365;
  --cab-frame:     rgba(124,246,255,0.18);
  --cab-glow:      rgba(124,246,255,0.24);
  --cab-glow-b:    rgba(246,211,101,0.14);
  --cab-marquee-a: #7CF6FF;
  --cab-marquee-b: #F6D365;
  --cab-bolt:      rgba(124,246,255,0.22);
  --cab-body: linear-gradient(180deg, #06120e 0%, #040e0a 50%, #030a08 100%);
  border: 1px solid rgba(124,246,255,0.08);
}

/* Blooming flora radials */
.arcade-cabinet[data-cab-skin="spring-circuit"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 20%, rgba(124,246,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 75% 35%, rgba(246,211,101,0.05) 0%, transparent 35%),
    radial-gradient(circle at 40% 80%, rgba(124,246,255,0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(100,255,180,0.04) 0%, transparent 30%);
  animation: cab-spring-bloom 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="spring-circuit"] .cab-marquee {
  background: linear-gradient(90deg,
    #7CF6FF 0%, #A8FFB0 25%, #F6D365 50%, #A8FFB0 75%, #7CF6FF 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 7s ease infinite;
}

.arcade-cabinet[data-cab-skin="spring-circuit"] .cab-marquee-text {
  text-shadow:
    0 0 6px rgba(124,246,255,0.8),
    0 0 18px rgba(124,246,255,0.3),
    0 0 30px rgba(246,211,101,0.15),
    0 1px 4px rgba(0,0,0,0.5);
}

/* LED strip with gentle spring-green wave */
.arcade-cabinet[data-cab-skin="spring-circuit"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%,
    #7CF6FF 10%, #A8FFB0 25%, #F6D365 40%,
    #A8FFB0 55%, #7CF6FF 70%, #A8FFB0 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cab-spring-led 5s linear infinite;
  height: 3px;
  box-shadow: 0 0 10px rgba(124,246,255,0.3);
}

.arcade-cabinet[data-cab-skin="spring-circuit"] .cab-bezel {
  box-shadow:
    inset 0 2px 10px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(124,246,255,0.03),
    0 0 28px rgba(124,246,255,0.18),
    0 0 56px rgba(246,211,101,0.08);
}


/* ── Solaris Rush — solar flares with heat haze ── */
@keyframes cab-solar-flare {
  0%, 100% {
    background-position: 50% 0%;
    opacity: 0.06;
  }
  35% {
    background-position: 30% 100%;
    opacity: 0.12;
  }
  70% {
    background-position: 70% 0%;
    opacity: 0.08;
  }
}
@keyframes cab-heat-shimmer {
  0%, 100% { transform: translateY(0) scaleY(1); }
  25%      { transform: translateY(-0.5px) scaleY(1.005); }
  50%      { transform: translateY(0.5px) scaleY(0.995); }
  75%      { transform: translateY(-0.3px) scaleY(1.003); }
}

.arcade-cabinet[data-cab-skin="solaris-rush"] {
  --cab-primary:   #FFB347;
  --cab-secondary: #FF4FA3;
  --cab-frame:     rgba(255,179,71,0.20);
  --cab-glow:      rgba(255,179,71,0.26);
  --cab-glow-b:    rgba(255,79,163,0.16);
  --cab-marquee-a: #FFB347;
  --cab-marquee-b: #FF4FA3;
  --cab-bolt:      rgba(255,179,71,0.28);
  --cab-body: linear-gradient(180deg, #140c04 0%, #100804 50%, #0c0602 100%);
  border: 1px solid rgba(255,179,71,0.10);
}

/* Solar flare corona effect */
.arcade-cabinet[data-cab-skin="solaris-rush"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(255,179,71,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(255,79,163,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(255,179,71,0.08) 0%, transparent 45%);
  background-size: 100% 200%;
  animation: cab-solar-flare 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="solaris-rush"] .cab-marquee {
  background: linear-gradient(90deg,
    #FFB347 0%, #FF7B2B 30%, #FF4FA3 60%, #FFB347 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 6s ease infinite;
}

/* Heat shimmer on the bezel */
.arcade-cabinet[data-cab-skin="solaris-rush"] .cab-bezel {
  animation: cab-heat-shimmer 3s ease-in-out infinite;
  box-shadow:
    inset 0 3px 12px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,179,71,0.04),
    0 0 24px rgba(255,179,71,0.22),
    0 0 48px rgba(255,79,163,0.10),
    0 0 80px rgba(255,179,71,0.06);
}

.arcade-cabinet[data-cab-skin="solaris-rush"] .cab-marquee-text {
  text-shadow:
    0 0 8px rgba(255,179,71,0.9),
    0 0 24px rgba(255,79,163,0.4),
    0 1px 4px rgba(0,0,0,0.6);
}

/* Warm pulsing LED */
.arcade-cabinet[data-cab-skin="solaris-rush"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%, #FFB347 15%, #FF7B2B 35%, #FF4FA3 55%, #FF7B2B 75%, #FFB347 85%, transparent 100%
  );
  animation: cab-led-pulse 2s ease-in-out infinite alternate;
  height: 4px;
  box-shadow: 0 0 16px rgba(255,179,71,0.4);
}

.arcade-cabinet[data-cab-skin="solaris-rush"] .cab-coin-slot {
  border-color: rgba(255,179,71,0.14);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.6), 0 0 6px rgba(255,179,71,0.10);
}


/* ── Nebula Command — deep space with drifting star clusters and gas clouds ── */
@keyframes cab-nebula-drift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
@keyframes cab-star-twinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

.arcade-cabinet[data-cab-skin="nebula-command"] {
  --cab-primary:   #B48DFF;
  --cab-secondary: #7CF6FF;
  --cab-frame:     rgba(180,141,255,0.18);
  --cab-glow:      rgba(180,141,255,0.24);
  --cab-glow-b:    rgba(124,246,255,0.12);
  --cab-marquee-a: #B48DFF;
  --cab-marquee-b: #7CF6FF;
  --cab-bolt:      rgba(180,141,255,0.26);
  --cab-body: linear-gradient(180deg, #0a0616 0%, #08041a 50%, #060310 100%);
  border: 1px solid rgba(180,141,255,0.08);
}

/* Nebula gas clouds + starfield */
.arcade-cabinet[data-cab-skin="nebula-command"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 25%, rgba(180,141,255,0.08) 0%, transparent 35%),
    radial-gradient(circle at 70% 15%, rgba(124,246,255,0.06) 0%, transparent 30%),
    radial-gradient(circle at 50% 70%, rgba(180,141,255,0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(255,100,200,0.04) 0%, transparent 25%),
    /* Tiny star dots */
    radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 45% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 70% 55%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 80% 30%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3), transparent);
  background-size: 200% 200%;
  animation: cab-nebula-drift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="nebula-command"] .cab-marquee {
  background: linear-gradient(90deg,
    #B48DFF 0%, #7C5FD9 30%, #7CF6FF 60%, #B48DFF 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 8s ease infinite;
}

.arcade-cabinet[data-cab-skin="nebula-command"] .cab-marquee-text {
  text-shadow:
    0 0 8px rgba(180,141,255,0.9),
    0 0 24px rgba(124,246,255,0.3),
    0 1px 4px rgba(0,0,0,0.6);
}

/* Nebula aurora glow on the bezel */
.arcade-cabinet[data-cab-skin="nebula-command"] .cab-bezel {
  box-shadow:
    inset 0 3px 14px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(180,141,255,0.04),
    0 0 24px rgba(180,141,255,0.20),
    0 0 52px rgba(124,246,255,0.10),
    0 0 80px rgba(180,141,255,0.06);
}

/* LED with subtle twinkle */
.arcade-cabinet[data-cab-skin="nebula-command"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%,
    #B48DFF 15%, #7CF6FF 35%, #B48DFF 55%, #7CF6FF 75%, #B48DFF 85%,
    transparent 100%
  );
  animation: cab-star-twinkle 4s ease-in-out infinite;
  height: 3px;
  box-shadow: 0 0 14px rgba(180,141,255,0.3);
}


/* ── Frostline Protocol — freezing ice with crystalline shimmer ── */
@keyframes cab-frost-shimmer {
  0%, 100% { opacity: 0.05; background-position: 0% 0%; }
  50%      { opacity: 0.12; background-position: 50% 50%; }
}
@keyframes cab-ice-crack {
  0%, 100% { opacity: 0.03; }
  40%      { opacity: 0.08; }
  60%      { opacity: 0.04; }
}

.arcade-cabinet[data-cab-skin="frostline-protocol"] {
  --cab-primary:   #D8F6FF;
  --cab-secondary: #8ED1FC;
  --cab-frame:     rgba(216,246,255,0.16);
  --cab-glow:      rgba(216,246,255,0.22);
  --cab-glow-b:    rgba(142,209,252,0.14);
  --cab-marquee-a: #D8F6FF;
  --cab-marquee-b: #8ED1FC;
  --cab-bezel:     #070c16;
  --cab-bolt:      rgba(216,246,255,0.22);
  --cab-body: linear-gradient(180deg, #080e16 0%, #060a12 50%, #04080e 100%);
  border: 1px solid rgba(216,246,255,0.08);
}

/* Frosted crystal pattern + ice cracks */
.arcade-cabinet[data-cab-skin="frostline-protocol"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background:
    /* Ice crystal radials */
    radial-gradient(circle at 30% 20%, rgba(216,246,255,0.06) 0%, transparent 25%),
    radial-gradient(circle at 70% 40%, rgba(142,209,252,0.05) 0%, transparent 20%),
    radial-gradient(circle at 20% 70%, rgba(216,246,255,0.04) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(142,209,252,0.05) 0%, transparent 25%),
    /* Diagonal crack lines */
    repeating-linear-gradient(
      135deg,
      transparent 0px, transparent 28px,
      rgba(216,246,255,0.018) 28px, transparent 29px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 36px,
      rgba(142,209,252,0.015) 36px, transparent 37px
    );
  animation: cab-frost-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="frostline-protocol"] .cab-marquee {
  background: linear-gradient(90deg,
    #D8F6FF 0%, #8ED1FC 25%, #B4E4FF 50%, #8ED1FC 75%, #D8F6FF 100%
  );
}

.arcade-cabinet[data-cab-skin="frostline-protocol"] .cab-marquee::before {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.40) 45%,
    rgba(216,246,255,0.55) 50%,
    rgba(255,255,255,0.40) 55%,
    transparent 80%
  );
  /* Brighter sweep for crystalline feel */
}

.arcade-cabinet[data-cab-skin="frostline-protocol"] .cab-marquee-text {
  text-shadow:
    0 0 6px rgba(216,246,255,0.9),
    0 0 18px rgba(142,209,252,0.4),
    0 0 32px rgba(216,246,255,0.15),
    0 1px 4px rgba(0,0,0,0.5);
}

/* Frozen LED — slow breathe with cold glow */
.arcade-cabinet[data-cab-skin="frostline-protocol"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%,
    #8ED1FC 12%,
    #D8F6FF 30%,
    #B4E4FF 50%,
    #D8F6FF 70%,
    #8ED1FC 88%,
    transparent 100%
  );
  animation: cab-led-pulse 4s ease-in-out infinite alternate;
  height: 3px;
  box-shadow: 0 0 14px rgba(216,246,255,0.30);
}

/* Frosty bezel with icy depth */
.arcade-cabinet[data-cab-skin="frostline-protocol"] .cab-bezel {
  box-shadow:
    inset 0 3px 14px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(216,246,255,0.04),
    0 0 24px rgba(216,246,255,0.18),
    0 0 52px rgba(142,209,252,0.09),
    0 0 80px rgba(216,246,255,0.04);
}

/* Coin slots look frosted */
.arcade-cabinet[data-cab-skin="frostline-protocol"] .cab-coin-slot {
  border-color: rgba(216,246,255,0.12);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.5), 0 0 6px rgba(216,246,255,0.08);
}


/* ── Crownline Command — royal gold with animated crown glow and regal border ── */
@keyframes cab-crown-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@keyframes cab-crown-aura {
  0%, 100% {
    box-shadow:
      inset 0 2px 10px rgba(0,0,0,0.6),
      0 0 24px rgba(255,215,0,0.20),
      0 0 52px rgba(255,140,0,0.10);
  }
  50% {
    box-shadow:
      inset 0 2px 10px rgba(0,0,0,0.6),
      0 0 36px rgba(255,215,0,0.30),
      0 0 72px rgba(255,140,0,0.16),
      0 0 100px rgba(255,215,0,0.06);
  }
}
.arcade-cabinet[data-cab-skin="crownline-command"] {
  --cab-primary:   #FFD700;
  --cab-secondary: #FF8C00;
  --cab-frame:     rgba(255,215,0,0.22);
  --cab-glow:      rgba(255,215,0,0.28);
  --cab-glow-b:    rgba(255,140,0,0.14);
  --cab-marquee-a: #FFD700;
  --cab-marquee-b: #FF8C00;
  --cab-bolt:      rgba(255,215,0,0.35);
  --cab-body: linear-gradient(180deg, #12100a 0%, #0e0c08 50%, #0a0806 100%);
  border-image: linear-gradient(180deg, rgba(255,215,0,0.22), rgba(255,140,0,0.12), rgba(255,215,0,0.22)) 1;
}

/* Crown shimmer streak across the body */
.arcade-cabinet[data-cab-skin="crownline-command"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,215,0,0.06) 45%,
    rgba(255,215,0,0.12) 50%,
    rgba(255,215,0,0.06) 55%,
    transparent 70%
  );
  background-size: 300% 100%;
  animation: cab-crown-shimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="crownline-command"] .cab-marquee {
  background: linear-gradient(90deg,
    #FFD700 0%, #FF8C00 25%, #FFD700 50%, #FFEE88 70%, #FFD700 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 6s ease infinite;
}

.arcade-cabinet[data-cab-skin="crownline-command"] .cab-marquee-text {
  text-shadow:
    0 0 8px rgba(255,215,0,0.9),
    0 0 20px rgba(255,140,0,0.5),
    0 0 36px rgba(255,215,0,0.2),
    0 1px 4px rgba(0,0,0,0.6);
}

/* Royal pulsing bezel aura */
.arcade-cabinet[data-cab-skin="crownline-command"] .cab-bezel {
  animation: cab-crown-aura 4s ease-in-out infinite;
}

/* LED strip with warm regal glow */
.arcade-cabinet[data-cab-skin="crownline-command"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%,
    #FFD700 12%, #FF8C00 30%, #FFEE88 50%, #FF8C00 70%, #FFD700 88%,
    transparent 100%
  );
  animation: cab-led-pulse 2.5s ease-in-out infinite alternate;
  height: 4px;
  box-shadow: 0 0 18px rgba(255,215,0,0.4);
}

/* Gold-accented coin slot */
.arcade-cabinet[data-cab-skin="crownline-command"] .cab-coin-slot {
  border-color: rgba(255,215,0,0.16);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.6), 0 0 8px rgba(255,215,0,0.12);
}


/* ╔══════════════════════════════════════════════════════════════════╗
   ║            FLAIR OVERLAYS  (additive, layer on any skin)        ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── Season One Signal — pulsing cyan beacon corners + scan line ── */
@keyframes cab-flair-signal-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
@keyframes cab-flair-signal-scan {
  0%   { top: -2px; }
  100% { top: calc(100% + 2px); }
}

.arcade-cabinet[data-cab-flair="season-one-signal"] .cab-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Four corner beacons */
  box-shadow:
    inset  6px  6px 12px -8px rgba(124,246,255,0.50),
    inset -6px  6px 12px -8px rgba(124,246,255,0.50),
    inset  6px -6px 12px -8px rgba(124,246,255,0.50),
    inset -6px -6px 12px -8px rgba(124,246,255,0.50);
  animation: cab-flair-signal-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

/* Vertical scan line sweeping down the screen */
.arcade-cabinet[data-cab-flair="season-one-signal"] .cab-screen::before {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(124,246,255,0.06) 40%,
      rgba(124,246,255,0.18) 50%,
      rgba(124,246,255,0.06) 60%,
      transparent 100%
    ) !important;
  height: 30px !important;
  width: 100% !important;
  inset: auto 0 auto 0 !important;
  border-radius: 0 !important;
  animation: cab-flair-signal-scan 4s linear infinite !important;
  box-shadow: 0 0 20px rgba(124,246,255,0.25) !important;
}

/* Flag icon on the marquee chrome strip */
.arcade-cabinet[data-cab-flair="season-one-signal"] .cab-marquee::after {
  box-shadow: 0 0 8px rgba(124,246,255,0.3);
}


/* ── Ghostlight Burst — spectral edge glow with flickering ghost particles ── */
@keyframes cab-flair-ghost-flicker {
  0%, 18%, 22%, 56%, 58%, 100% { opacity: 0.6; }
  20%, 57%                      { opacity: 0.1; }
}
@keyframes cab-flair-ghost-drift {
  0%   { transform: translateY(100%) scale(0.5); opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.5; }
  100% { transform: translateY(-120%) scale(1.2); opacity: 0; }
}

/* Spectral magenta edge glow on the cabinet body */
.arcade-cabinet[data-cab-flair="ghostlight-burst"] {
  box-shadow:
    0 0 18px rgba(255,79,163,0.15),
    0 0 40px rgba(255,79,163,0.08),
    inset 0 0 24px rgba(255,79,163,0.06);
}

/* Ghost particles floating up along the bezel */
.arcade-cabinet[data-cab-flair="ghostlight-burst"] .cab-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Three ghost orbs at different positions, animated via background */
  background:
    radial-gradient(4px 4px at 15% 70%, rgba(255,79,163,0.7), transparent),
    radial-gradient(3px 3px at 85% 50%, rgba(255,79,163,0.6), transparent),
    radial-gradient(5px 5px at 50% 85%, rgba(255,140,200,0.5), transparent);
  animation: cab-flair-ghost-drift 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

/* Flickering LED overlay effect */
.arcade-cabinet[data-cab-flair="ghostlight-burst"] .cab-led-strip {
  animation: cab-flair-ghost-flicker 2s steps(1) infinite !important;
}

/* Ghostly marquee text shimmer */
.arcade-cabinet[data-cab-flair="ghostlight-burst"] .cab-marquee-text {
  text-shadow:
    0 0 8px rgba(255,79,163,0.6),
    0 0 22px rgba(255,79,163,0.25),
    0 0 44px rgba(255,79,163,0.10) !important;
}


/* ── Crownline Command Flair — regal gold corner crowns with shimmer ── */
@keyframes cab-flair-crown-breathe {
  0%, 100% {
    box-shadow:
      inset  8px  8px 16px -10px rgba(255,215,0,0.45),
      inset -8px  8px 16px -10px rgba(255,215,0,0.45),
      inset  8px -8px 16px -10px rgba(255,215,0,0.45),
      inset -8px -8px 16px -10px rgba(255,215,0,0.45),
      0 0 20px rgba(255,215,0,0.08);
  }
  50% {
    box-shadow:
      inset  8px  8px 20px -10px rgba(255,215,0,0.70),
      inset -8px  8px 20px -10px rgba(255,215,0,0.70),
      inset  8px -8px 20px -10px rgba(255,215,0,0.70),
      inset -8px -8px 20px -10px rgba(255,215,0,0.70),
      0 0 36px rgba(255,215,0,0.16);
  }
}
@keyframes cab-flair-crown-streak {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Royal gold corner glow breathing on the bezel */
.arcade-cabinet[data-cab-flair="crownline-command"] .cab-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: cab-flair-crown-breathe 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

/* Golden light streak across the marquee */
.arcade-cabinet[data-cab-flair="crownline-command"] .cab-marquee::before {
  background: linear-gradient(
    90deg,
    transparent 30%,
    rgba(255,215,0,0.45) 48%,
    rgba(255,238,136,0.60) 50%,
    rgba(255,215,0,0.45) 52%,
    transparent 70%
  ) !important;
  background-size: 300% 100% !important;
  animation: cab-flair-crown-streak 4s ease-in-out infinite !important;
}

/* Gold-tinted bolts */
.arcade-cabinet[data-cab-flair="crownline-command"]::before,
.arcade-cabinet[data-cab-flair="crownline-command"]::after {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), 0 0 10px rgba(255,215,0,0.35) !important;
}

/* Crown shimmer on the LED strip */
.arcade-cabinet[data-cab-flair="crownline-command"] .cab-led-strip {
  box-shadow: 0 0 18px rgba(255,215,0,0.40) !important;
}


/* ╔══════════════════════════════════════════════════════════════════╗
   ║              PREMIUM ANIMATED CABINET SKINS                     ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── 1. Plasma Edge — animated plasma border that flows around the cabinet ── */
@property --plasma-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes cab-plasma-rotate {
  to { --plasma-angle: 360deg; }
}

.arcade-cabinet[data-cab-skin="plasma-edge"] {
  --cab-primary:   #FF3CAC;
  --cab-secondary: #2B86C5;
  --cab-glow:      rgba(255,60,172,0.30);
  --cab-glow-b:    rgba(43,134,197,0.22);
  --cab-marquee-a: #FF3CAC;
  --cab-marquee-b: #784BA0;
  --cab-bezel:     #06080f;
  --cab-bolt:      rgba(255,60,172,0.40);
  animation: cab-plasma-rotate 4s linear infinite;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-origin: border-box;
}

.arcade-cabinet[data-cab-skin="plasma-edge"]::after {
  /* Repurpose bottom-right bolt as the animated border overlay */
  width: auto; height: auto;
  inset: -2px;
  border-radius: 24px;
  background: conic-gradient(
    from var(--plasma-angle),
    #FF3CAC 0%,
    #784BA0 25%,
    #2B86C5 50%,
    #784BA0 75%,
    #FF3CAC 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  z-index: -1;
}

.arcade-cabinet[data-cab-skin="plasma-edge"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%,
    #FF3CAC 15%,
    #784BA0 35%,
    #2B86C5 65%,
    #784BA0 85%,
    transparent 100%
  );
  animation: cab-led-pulse 2s ease-in-out infinite alternate;
  opacity: 0.8;
}

.arcade-cabinet[data-cab-skin="plasma-edge"] .cab-marquee::before {
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,60,172,0.35) 42%,
    rgba(255,255,255,0.45) 50%,
    rgba(43,134,197,0.35) 58%,
    transparent 75%
  );
}

/* ── 2. Holochrome — iridescent holographic shimmer ── */
@keyframes cab-holo-shift {
  0%   { filter: hue-rotate(0deg);   }
  100% { filter: hue-rotate(360deg); }
}
@keyframes cab-holo-foil {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

.arcade-cabinet[data-cab-skin="holochrome"] {
  --cab-primary:   #E0AAFF;
  --cab-secondary: #48BFE3;
  --cab-glow:      rgba(224,170,255,0.28);
  --cab-glow-b:    rgba(72,191,227,0.20);
  --cab-bezel:     #080a14;
  --cab-bolt:      rgba(224,170,255,0.35);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Holographic border — shifts through the entire spectrum */
.arcade-cabinet[data-cab-skin="holochrome"]::after {
  width: auto; height: auto;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    #ff006e, #fb5607, #ffbe0b, #06d6a0, #118ab2, #073b4c,
    #ff006e, #fb5607, #ffbe0b, #06d6a0, #118ab2
  );
  background-size: 300% 300%;
  animation: cab-holo-foil 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  z-index: -1;
  opacity: 0.7;
}

.arcade-cabinet[data-cab-skin="holochrome"] .cab-marquee {
  background: linear-gradient(
    90deg,
    #E0AAFF 0%, #48BFE3 25%, #FFBE0B 50%, #06D6A0 75%, #E0AAFF 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 5s ease infinite;
}

.arcade-cabinet[data-cab-skin="holochrome"] .cab-led-strip {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #E0AAFF 10%, #48BFE3 30%, #FFBE0B 50%, #06D6A0 70%, #E0AAFF 90%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 4s ease infinite;
  opacity: 0.75;
}

.arcade-cabinet[data-cab-skin="holochrome"] .cab-marquee-text {
  animation: cab-holo-shift 8s linear infinite;
}

.arcade-cabinet[data-cab-skin="holochrome"] .cab-bezel {
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 28px rgba(224,170,255,0.18),
    0 0 56px rgba(72,191,227,0.12),
    0 0 84px rgba(255,190,11,0.08);
}

/* ── 3. Neon Pulse — breathing neon glow that beats like a heartbeat ── */
@keyframes cab-neon-beat {
  0%, 100% { box-shadow:
    0 0 8px  var(--cab-glow),
    0 0 22px var(--cab-glow),
    0 0 45px var(--cab-glow-b),
    inset 0 0 12px rgba(0,0,0,0.5);
  }
  15% { box-shadow:
    0 0 14px var(--cab-glow),
    0 0 42px var(--cab-glow),
    0 0 80px var(--cab-glow-b),
    0 0 120px var(--cab-glow),
    inset 0 0 18px rgba(0,0,0,0.4);
  }
  30% { box-shadow:
    0 0 6px  var(--cab-glow),
    0 0 18px var(--cab-glow),
    0 0 35px var(--cab-glow-b),
    inset 0 0 10px rgba(0,0,0,0.5);
  }
  45% { box-shadow:
    0 0 12px var(--cab-glow),
    0 0 36px var(--cab-glow),
    0 0 70px var(--cab-glow-b),
    0 0 100px var(--cab-glow),
    inset 0 0 16px rgba(0,0,0,0.4);
  }
}

@keyframes cab-neon-led-beat {
  0%, 100% { opacity: 0.4; transform: scaleX(0.96); }
  15%      { opacity: 1.0; transform: scaleX(1.0);   }
  30%      { opacity: 0.3; transform: scaleX(0.94);   }
  45%      { opacity: 0.9; transform: scaleX(1.0);   }
}

.arcade-cabinet[data-cab-skin="neon-pulse"] {
  --cab-primary:   #39FF14;
  --cab-secondary: #00FFFF;
  --cab-glow:      rgba(57,255,20,0.35);
  --cab-glow-b:    rgba(0,255,255,0.22);
  --cab-marquee-a: #39FF14;
  --cab-marquee-b: #00FFFF;
  --cab-bezel:     #040808;
  --cab-bolt:      rgba(57,255,20,0.45);
  border: 1px solid rgba(57,255,20,0.25);
}

.arcade-cabinet[data-cab-skin="neon-pulse"] .cab-bezel {
  animation: cab-neon-beat 1.8s ease-in-out infinite;
}

.arcade-cabinet[data-cab-skin="neon-pulse"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%,
    #39FF14 15%,
    #00FFFF 50%,
    #39FF14 85%,
    transparent 100%
  );
  animation: cab-neon-led-beat 1.8s ease-in-out infinite;
  height: 4px;
  box-shadow: 0 0 16px rgba(57,255,20,0.5);
}

.arcade-cabinet[data-cab-skin="neon-pulse"] .cab-marquee-text {
  text-shadow:
    0 0 6px rgba(57,255,20,0.8),
    0 0 18px rgba(57,255,20,0.4),
    0 0 36px rgba(0,255,255,0.2),
    0 1px 6px rgba(0,0,0,0.5);
}

.arcade-cabinet[data-cab-skin="neon-pulse"] .cab-coin-slot {
  border-color: rgba(57,255,20,0.18);
  box-shadow:
    inset 0 1px 4px rgba(0,0,0,0.6),
    0 0 8px rgba(57,255,20,0.12);
}

/* ── 4. Void Reactor — dark matter with pulsing energy core effect ── */
@keyframes cab-void-core {
  0%   { background-position: 50% 0%;   }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%;   }
}
@keyframes cab-void-bolt-pulse {
  0%, 100% { box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 4px rgba(255,0,60,0.15); }
  50%      { box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 10px rgba(255,0,60,0.6);  }
}

.arcade-cabinet[data-cab-skin="void-reactor"] {
  --cab-primary:   #FF003C;
  --cab-secondary: #FF6B2B;
  --cab-glow:      rgba(255,0,60,0.30);
  --cab-glow-b:    rgba(255,107,43,0.18);
  --cab-marquee-a: #FF003C;
  --cab-marquee-b: #0D0D0D;
  --cab-bezel:     #050505;
  --cab-bolt:      rgba(255,0,60,0.50);
  --cab-body: linear-gradient(180deg, #0a0505 0%, #080404 50%, #050202 100%);
  border: 1px solid rgba(255,0,60,0.12);
}

/* Dark energy veins running through the body */
.arcade-cabinet[data-cab-skin="void-reactor"]::before {
  /* Override top-left bolt with a full-body energy overlay */
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,0,60,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255,107,43,0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 18px,
      rgba(255,0,60,0.02) 19px,
      transparent 20px
    );
  background-size: 100% 200%;
  animation: cab-void-core 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="void-reactor"] .cab-marquee {
  background: linear-gradient(90deg,
    #FF003C 0%, #0D0D0D 40%, #0D0D0D 60%, #FF003C 100%
  );
}

.arcade-cabinet[data-cab-skin="void-reactor"] .cab-marquee::before {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,0,60,0.30) 45%,
    rgba(255,107,43,0.45) 50%,
    rgba(255,0,60,0.30) 55%,
    transparent 70%
  );
  animation: cab-marquee-sweep 3s ease-in-out infinite;
}

.arcade-cabinet[data-cab-skin="void-reactor"] .cab-marquee-text {
  text-shadow:
    0 0 8px rgba(255,0,60,0.8),
    0 0 24px rgba(255,0,60,0.3),
    0 1px 6px rgba(0,0,0,0.8);
}

.arcade-cabinet[data-cab-skin="void-reactor"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%,
    #FF003C 20%,
    #FF6B2B 50%,
    #FF003C 80%,
    transparent 100%
  );
  animation: cab-neon-led-beat 2.4s ease-in-out infinite;
  height: 4px;
  box-shadow: 0 0 18px rgba(255,0,60,0.4);
}

.arcade-cabinet[data-cab-skin="void-reactor"] .cab-bezel {
  box-shadow:
    inset 0 4px 16px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,0,60,0.05),
    0 0 32px rgba(255,0,60,0.15),
    0 0 64px rgba(255,0,60,0.06);
}

.arcade-cabinet[data-cab-skin="void-reactor"] .cab-screen::before {
  box-shadow:
    inset 0 0 18px rgba(0,0,0,0.8),
    0 0 8px rgba(255,0,60,0.15);
}

/* Bolts glow like reactor indicators */
.arcade-cabinet[data-cab-skin="void-reactor"] .cab-coin-rail::before,
.arcade-cabinet[data-cab-skin="void-reactor"] .cab-coin-rail::after {
  animation: cab-void-bolt-pulse 2.4s ease-in-out infinite;
}

/* ── 5. Chromatic Prism — animated rainbow refraction with glass feel ── */
@keyframes cab-prism-border {
  0%   { --plasma-angle: 0deg; }
  100% { --plasma-angle: 360deg; }
}
@keyframes cab-prism-glass {
  0%, 100% { opacity: 0.08; }
  50%      { opacity: 0.14; }
}

.arcade-cabinet[data-cab-skin="chromatic-prism"] {
  --cab-primary:   #FFFFFF;
  --cab-secondary: #E8E8E8;
  --cab-glow:      rgba(255,255,255,0.18);
  --cab-glow-b:    rgba(200,200,255,0.12);
  --cab-marquee-a: #FFFFFF;
  --cab-marquee-b: #C0C0E0;
  --cab-bezel:     #0a0a10;
  --cab-bolt:      rgba(255,255,255,0.30);
  --cab-body: linear-gradient(180deg, #0e0e14 0%, #0a0a10 50%, #08080c 100%);
  animation: cab-prism-border 6s linear infinite;
  border: 2px solid transparent;
}

/* Rainbow conic border that slowly rotates */
.arcade-cabinet[data-cab-skin="chromatic-prism"]::after {
  width: auto; height: auto;
  inset: -2px;
  border-radius: 24px;
  background: conic-gradient(
    from var(--plasma-angle),
    #FF0000 0%, #FF8800 14%, #FFFF00 28%, #00FF00 42%,
    #00FFFF 57%, #0088FF 71%, #8800FF 85%, #FF0000 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  z-index: -1;
  opacity: 0.5;
}

/* Prismatic glass sheen over the body */
.arcade-cabinet[data-cab-skin="chromatic-prism"]::before {
  inset: 0;
  width: auto; height: auto;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(255,0,0,0.04) 0%,
    rgba(255,255,0,0.04) 20%,
    rgba(0,255,0,0.04) 40%,
    rgba(0,255,255,0.04) 60%,
    rgba(0,0,255,0.04) 80%,
    rgba(255,0,255,0.04) 100%
  );
  animation: cab-prism-glass 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="chromatic-prism"] .cab-marquee {
  background: linear-gradient(
    90deg,
    #FF0000 0%, #FF8800 16%, #FFFF00 33%, #00FF00 50%,
    #00FFFF 66%, #0088FF 83%, #8800FF 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 5s ease infinite;
}

.arcade-cabinet[data-cab-skin="chromatic-prism"] .cab-marquee-text {
  text-shadow:
    0 0 6px rgba(255,255,255,0.9),
    0 0 18px rgba(255,255,255,0.3),
    0 1px 4px rgba(0,0,0,0.7);
}

.arcade-cabinet[data-cab-skin="chromatic-prism"] .cab-led-strip {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #FF0000 8%, #FF8800 22%, #FFFF00 36%, #00FF00 50%,
    #00FFFF 64%, #0088FF 78%, #8800FF 92%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cab-holo-foil 4s ease infinite;
  opacity: 0.6;
  height: 4px;
}

.arcade-cabinet[data-cab-skin="chromatic-prism"] .cab-bezel {
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 24px rgba(255,255,255,0.08),
    0 0 48px rgba(100,100,255,0.06),
    0 0 72px rgba(255,100,100,0.04);
}

.arcade-cabinet[data-cab-skin="chromatic-prism"] .cab-screen::after {
  /* Slightly more visible scanlines for the glass-clean look */
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════
   Signature Series — Circuit Breaker
   Electric blue PCB traces racing across the cabinet
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-circuit-trace {
  0%   { background-position: 0% 0%;   }
  100% { background-position: 200% 200%; }
}

.arcade-cabinet[data-cab-skin="circuit-breaker"] {
  --cab-primary:   #00B4FF;
  --cab-secondary: #0044AA;
  --cab-glow:      rgba(0,180,255,0.28);
  --cab-glow-b:    rgba(0,68,170,0.18);
  --cab-marquee-a: #00B4FF;
  --cab-marquee-b: #003388;
  --cab-bezel:     #030810;
  --cab-bolt:      rgba(0,180,255,0.50);
}

.arcade-cabinet[data-cab-skin="circuit-breaker"]::before {
  background:
    repeating-linear-gradient(0deg,   transparent, transparent 18px, rgba(0,180,255,0.08) 18px, rgba(0,180,255,0.08) 19px),
    repeating-linear-gradient(90deg,  transparent, transparent 18px, rgba(0,180,255,0.08) 18px, rgba(0,180,255,0.08) 19px),
    repeating-linear-gradient(45deg,  transparent, transparent 30px, rgba(0,180,255,0.06) 30px, rgba(0,180,255,0.06) 31px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(0,68,170,0.04)  30px, rgba(0,68,170,0.04)  31px);
  background-size: 200% 200%;
  animation: cab-circuit-trace 12s linear infinite;
  opacity: 1;
}

.arcade-cabinet[data-cab-skin="circuit-breaker"] .cab-body {
  box-shadow:
    inset 0 0 40px rgba(0,180,255,0.06),
    0 0 20px rgba(0,180,255,0.08),
    0 0 60px rgba(0,68,170,0.06);
}

.arcade-cabinet[data-cab-skin="circuit-breaker"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%, #00B4FF 10%, #0066CC 30%, #00B4FF 50%, #0066CC 70%, #00B4FF 90%, transparent 100%
  );
  animation: cab-led-pulse 1.5s ease-in-out infinite alternate;
  opacity: 0.8;
}

.arcade-cabinet[data-cab-skin="circuit-breaker"] .cab-marquee {
  background: linear-gradient(110deg, #003388, #00B4FF 50%, #003388);
  background-size: 200% 100%;
  animation: cab-holo-foil 6s ease infinite;
}

.arcade-cabinet[data-cab-skin="circuit-breaker"] .cab-marquee-text {
  text-shadow: 0 0 10px rgba(0,180,255,0.9), 0 0 30px rgba(0,180,255,0.4), 0 1px 3px rgba(0,0,0,0.8);
}

.arcade-cabinet[data-cab-skin="circuit-breaker"] .cab-bezel {
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 0 18px rgba(0,180,255,0.10), 0 0 50px rgba(0,68,170,0.06);
}

/* ═══════════════════════════════════════════════════════════════════
   Signature Series — Magma Core
   Molten lava with glowing orange fissures
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-magma-flow {
  0%   { background-position: 0% 100%; }
  50%  { background-position: 100% 0%; }
  100% { background-position: 0% 100%; }
}

@keyframes cab-magma-glow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.9; }
}

.arcade-cabinet[data-cab-skin="magma-core"] {
  --cab-primary:   #FF6B00;
  --cab-secondary: #FF2200;
  --cab-glow:      rgba(255,107,0,0.30);
  --cab-glow-b:    rgba(255,34,0,0.20);
  --cab-marquee-a: #FF6B00;
  --cab-marquee-b: #CC2200;
  --cab-bezel:     #100400;
  --cab-bolt:      rgba(255,107,0,0.50);
}

.arcade-cabinet[data-cab-skin="magma-core"] .cab-body {
  background:
    radial-gradient(ellipse at 30% 80%, rgba(255,107,0,0.12), transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(255,34,0,0.10), transparent 50%),
    linear-gradient(180deg, #0a0200, #100400);
  box-shadow:
    inset 0 0 50px rgba(255,80,0,0.08),
    0 0 30px rgba(255,107,0,0.10),
    0 0 80px rgba(255,34,0,0.06);
}

.arcade-cabinet[data-cab-skin="magma-core"]::before {
  background:
    radial-gradient(circle at 20% 60%, rgba(255,107,0,0.18), transparent 20%),
    radial-gradient(circle at 55% 30%, rgba(255,34,0,0.14), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(255,160,0,0.12), transparent 22%),
    radial-gradient(circle at 40% 85%, rgba(255,60,0,0.10), transparent 16%);
  background-size: 200% 200%;
  animation: cab-magma-flow 8s ease-in-out infinite;
  opacity: 1;
}

.arcade-cabinet[data-cab-skin="magma-core"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%, #FF2200 15%, #FF6B00 35%, #FFA500 50%, #FF6B00 65%, #FF2200 85%, transparent 100%
  );
  animation: cab-magma-glow 3s ease-in-out infinite;
  opacity: 0.7;
}

.arcade-cabinet[data-cab-skin="magma-core"] .cab-marquee {
  background: linear-gradient(110deg, #441000, #FF6B00 50%, #441000);
  background-size: 200% 100%;
  animation: cab-holo-foil 5s ease infinite;
}

.arcade-cabinet[data-cab-skin="magma-core"] .cab-marquee-text {
  text-shadow: 0 0 8px rgba(255,107,0,0.9), 0 0 24px rgba(255,34,0,0.5), 0 1px 3px rgba(0,0,0,0.9);
}

.arcade-cabinet[data-cab-skin="magma-core"] .cab-bezel {
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(255,107,0,0.12), 0 0 60px rgba(255,34,0,0.06);
}

/* ═══════════════════════════════════════════════════════════════════
   Signature Series — Aurora Borealis
   Northern lights drifting vertically
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-aurora-drift {
  0%   { background-position: 50% 0%;   }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%;   }
}

@keyframes cab-aurora-shimmer {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.28; }
}

.arcade-cabinet[data-cab-skin="aurora-borealis"] {
  --cab-primary:   #00FF88;
  --cab-secondary: #7B68EE;
  --cab-glow:      rgba(0,255,136,0.24);
  --cab-glow-b:    rgba(123,104,238,0.16);
  --cab-marquee-a: #00FF88;
  --cab-marquee-b: #7B68EE;
  --cab-bezel:     #020c08;
  --cab-bolt:      rgba(0,255,136,0.40);
}

.arcade-cabinet[data-cab-skin="aurora-borealis"] .cab-body {
  background: linear-gradient(180deg, #010a06, #020c08 50%, #04060c);
  box-shadow:
    inset 0 0 50px rgba(0,255,136,0.04),
    0 0 30px rgba(123,104,238,0.06);
}

.arcade-cabinet[data-cab-skin="aurora-borealis"]::before {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(0,255,136,0.10) 15%,
      rgba(0,200,180,0.08) 30%,
      rgba(123,104,238,0.10) 50%,
      rgba(0,255,136,0.06) 70%,
      transparent 100%
    ),
    linear-gradient(200deg,
      transparent 0%,
      rgba(123,104,238,0.08) 20%,
      rgba(0,255,200,0.06) 45%,
      rgba(123,104,238,0.06) 70%,
      transparent 100%
    );
  background-size: 100% 300%;
  animation: cab-aurora-drift 10s ease-in-out infinite;
  opacity: 1;
}

.arcade-cabinet[data-cab-skin="aurora-borealis"]::after {
  /* Subtle wave overlay */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0,255,136,0.12), transparent 40%),
    radial-gradient(ellipse at 70% 60%, rgba(123,104,238,0.10), transparent 40%);
  animation: cab-aurora-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.arcade-cabinet[data-cab-skin="aurora-borealis"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%, #00FF88 15%, #00DDAA 35%, #7B68EE 55%, #00FF88 75%, transparent 100%
  );
  animation: cab-led-pulse 3s ease-in-out infinite alternate;
  opacity: 0.6;
}

.arcade-cabinet[data-cab-skin="aurora-borealis"] .cab-marquee {
  background: linear-gradient(110deg, #08221a, #00FF88 30%, #7B68EE 70%, #08221a);
  background-size: 200% 100%;
  animation: cab-holo-foil 8s ease infinite;
}

.arcade-cabinet[data-cab-skin="aurora-borealis"] .cab-marquee-text {
  text-shadow: 0 0 8px rgba(0,255,136,0.8), 0 0 22px rgba(123,104,238,0.4), 0 1px 3px rgba(0,0,0,0.8);
}

.arcade-cabinet[data-cab-skin="aurora-borealis"] .cab-bezel {
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 0 16px rgba(0,255,136,0.08), 0 0 40px rgba(123,104,238,0.06);
}

/* ═══════════════════════════════════════════════════════════════════
   Signature Series — Glitch Matrix
   Controlled chaos — scanline tears and color shifts
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-glitch-shift {
  0%, 90%, 100% { transform: translate(0); filter: none; }
  92% { transform: translate(-2px, 1px); filter: hue-rotate(60deg); }
  94% { transform: translate(1px, -1px); filter: hue-rotate(120deg); }
  96% { transform: translate(-1px, 0); filter: hue-rotate(180deg); }
  98% { transform: translate(2px, 1px); filter: hue-rotate(300deg); }
}

@keyframes cab-glitch-scanline {
  0%   { top: -10%; }
  100% { top: 110%; }
}

.arcade-cabinet[data-cab-skin="glitch-matrix"] {
  --cab-primary:   #FF00FF;
  --cab-secondary: #00FFFF;
  --cab-glow:      rgba(255,0,255,0.25);
  --cab-glow-b:    rgba(0,255,255,0.18);
  --cab-marquee-a: #FF00FF;
  --cab-marquee-b: #00FFFF;
  --cab-bezel:     #080008;
  --cab-bolt:      rgba(255,0,255,0.45);
  animation: cab-glitch-shift 4s ease-in-out infinite;
}

.arcade-cabinet[data-cab-skin="glitch-matrix"]::before {
  /* Corrupted grid overlay */
  background:
    repeating-linear-gradient(0deg,
      transparent, transparent 3px,
      rgba(255,0,255,0.04) 3px, rgba(255,0,255,0.04) 4px
    ),
    repeating-linear-gradient(90deg,
      transparent, transparent 6px,
      rgba(0,255,255,0.03) 6px, rgba(0,255,255,0.03) 7px
    );
  opacity: 1;
}

.arcade-cabinet[data-cab-skin="glitch-matrix"]::after {
  /* Scanning tear line */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,0,255,0.6) 20%, rgba(0,255,255,0.8) 50%, rgba(255,0,255,0.6) 80%, transparent 100%
  );
  animation: cab-glitch-scanline 3s linear infinite;
  pointer-events: none;
  z-index: 10;
}

.arcade-cabinet[data-cab-skin="glitch-matrix"] .cab-body {
  background: linear-gradient(180deg, #0a000a, #080008);
  box-shadow:
    inset 0 0 40px rgba(255,0,255,0.05),
    0 0 25px rgba(0,255,255,0.08),
    0 0 60px rgba(255,0,255,0.04);
}

.arcade-cabinet[data-cab-skin="glitch-matrix"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%, #FF00FF 10%, #00FFFF 30%, #FF00FF 50%, #00FFFF 70%, #FF00FF 90%, transparent 100%
  );
  animation: cab-led-pulse 0.8s ease-in-out infinite alternate;
  opacity: 0.7;
}

.arcade-cabinet[data-cab-skin="glitch-matrix"] .cab-marquee {
  background: linear-gradient(110deg, #220022, #FF00FF 35%, #00FFFF 65%, #220022);
  background-size: 200% 100%;
  animation: cab-holo-foil 3s ease infinite;
}

.arcade-cabinet[data-cab-skin="glitch-matrix"] .cab-marquee-text {
  text-shadow: 0 0 6px rgba(255,0,255,0.9), -2px 0 rgba(0,255,255,0.5), 2px 0 rgba(255,0,255,0.5), 0 1px 3px rgba(0,0,0,0.9);
}

.arcade-cabinet[data-cab-skin="glitch-matrix"] .cab-bezel {
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(255,0,255,0.10), 0 0 50px rgba(0,255,255,0.06);
}

/* ═══════════════════════════════════════════════════════════════════
   Upcoming Seasonal — Tropical Storm
   Sunset gradients with rain streaks
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-tropical-rain {
  0%   { background-position: 0% 0%;   }
  100% { background-position: 100% 100%; }
}

.arcade-cabinet[data-cab-skin="tropical-storm"] {
  --cab-primary:   #FF7043;
  --cab-secondary: #FF4081;
  --cab-glow:      rgba(255,112,67,0.26);
  --cab-glow-b:    rgba(255,64,129,0.18);
  --cab-marquee-a: #FF7043;
  --cab-marquee-b: #FF4081;
  --cab-bezel:     #0c0604;
  --cab-bolt:      rgba(255,112,67,0.45);
}

.arcade-cabinet[data-cab-skin="tropical-storm"] .cab-body {
  background:
    linear-gradient(180deg,
      #FF7043 0%, #FF4081 25%, #7B1FA2 55%, #1A237E 80%, #0a0604 100%
    );
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,112,67,0.10);
}

.arcade-cabinet[data-cab-skin="tropical-storm"]::before {
  background:
    repeating-linear-gradient(105deg,
      transparent, transparent 8px,
      rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 9px
    );
  background-size: 200% 200%;
  animation: cab-tropical-rain 4s linear infinite;
  opacity: 1;
}

.arcade-cabinet[data-cab-skin="tropical-storm"] .cab-led-strip {
  background: linear-gradient(90deg,
    transparent 0%, #FF7043 15%, #FF4081 50%, #FF7043 85%, transparent 100%
  );
  animation: cab-led-pulse 2.5s ease-in-out infinite alternate;
  opacity: 0.7;
}

.arcade-cabinet[data-cab-skin="tropical-storm"] .cab-marquee {
  background: linear-gradient(110deg, #2a0800, #FF7043 40%, #FF4081 60%, #2a0800);
  background-size: 200% 100%;
  animation: cab-holo-foil 6s ease infinite;
}

.arcade-cabinet[data-cab-skin="tropical-storm"] .cab-marquee-text {
  text-shadow: 0 0 8px rgba(255,112,67,0.9), 0 0 20px rgba(255,64,129,0.4), 0 1px 3px rgba(0,0,0,0.8);
}

.arcade-cabinet[data-cab-skin="tropical-storm"] .cab-bezel {
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 0 18px rgba(255,112,67,0.10), 0 0 50px rgba(255,64,129,0.05);
}

/* ═══════════════════════════════════════════════════════════════════
   Achievement Flair — Diamond Hands
   Sparkling crystal facets
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-diamond-sparkle {
  0%, 100% { opacity: 0.4; }
  25%  { opacity: 0.7; }
  50%  { opacity: 0.5; }
  75%  { opacity: 0.8; }
}

.arcade-cabinet[data-cab-flair="diamond-hands"]::before {
  background:
    radial-gradient(circle at 25% 30%, rgba(185,242,255,0.18), transparent 20%),
    radial-gradient(circle at 65% 25%, rgba(255,255,255,0.14), transparent 15%),
    radial-gradient(circle at 45% 70%, rgba(185,242,255,0.12), transparent 18%),
    radial-gradient(circle at 80% 60%, rgba(220,240,255,0.10), transparent 14%);
  animation: cab-diamond-sparkle 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════════════
   Achievement Flair — High Roller
   Casino-gold shimmer with rolling dice particles
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-roller-shimmer {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

.arcade-cabinet[data-cab-flair="high-roller"]::before {
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,215,0,0.14) 35%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,215,0,0.14) 65%,
    transparent 80%
  );
  background-size: 300% 100%;
  animation: cab-roller-shimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════════════
   Seasonal Flair — Firecracker
   Animated firework bursts
   ═══════════════════════════════════════════════════════════════════ */
@keyframes cab-firecracker-burst {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.05); }
}

.arcade-cabinet[data-cab-flair="firecracker"]::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,69,0,0.20), transparent 22%),
    radial-gradient(circle at 60% 75%, rgba(255,215,0,0.16), transparent 20%),
    radial-gradient(circle at 75% 35%, rgba(255,140,0,0.14), transparent 18%),
    radial-gradient(circle at 15% 65%, rgba(255,69,0,0.12), transparent 16%);
  animation: cab-firecracker-burst 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
