/* Miracle Lucky 7 — photorealistic Vegas cabinet
   Rebuilt to match the red-and-gold ornate slot machine reference:
   arched bulb marquee, sunburst LUCKY 7 logo, paytable plaques, jackpot,
   cream reels in a gold frame with side bulb strips, chrome lever, green SPIN.
   Dark mode honored via html[data-theme="dark"] (cabinet is dark either way). */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@600;700&family=Inter:wght@500;600;700&display=swap');

.ml7-root {
  --gold-1: #ffe48a;
  --gold-2: #f4c14e;
  --gold-3: #c98a1e;
  --gold-deep: #7a4d0e;
  --red-1: #b5121b;
  --red-2: #7d0a10;
  --red-3: #4a0508;
  --cream: #f3ece0;
  --bulb: #ffd86b;
  --bulb-glow: rgba(255,190,80,0.9);
  --ink: #fff4d8;

  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  padding: 6px;
}

.ml7-loading, .ml7-error { padding: 40px; text-align: center; color: #d9c79c; }

/* ── Cabinet shell ─────────────────────────────────────────────── */
.ml7-cabinet {
  position: relative;
  background:
    linear-gradient(180deg, var(--red-1), var(--red-2) 45%, var(--red-3));
  border-radius: 26px 26px 18px 18px;
  padding: 0 14px 18px;
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.8),
    inset 0 0 0 3px var(--gold-3),
    inset 0 0 0 6px rgba(0,0,0,0.35),
    inset 0 0 60px rgba(0,0,0,0.45);
}

/* ── Marquee (arched top) ──────────────────────────────────────── */
.ml7-marquee {
  position: relative;
  margin: 0 -14px 8px;
  padding: 30px 18px 16px;
  border-radius: 26px 26px 40% 40% / 26px 26px 22px 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--red-1) 0%, var(--red-2) 55%, var(--red-3) 100%);
  border-bottom: 3px solid var(--gold-3);
  overflow: hidden;
  min-height: 188px;
}

/* Bulb ring around the arch (top) */
.ml7-bulbs { pointer-events: none; }
.ml7-bulbs-top {
  position: absolute;
  inset: 4px 4px auto 4px;
  height: 60px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle, #fff0b0 0 2.5px, var(--bulb) 2.5px 4px, transparent 4.5px) repeat-x top center / 26px 16px;
  -webkit-mask: linear-gradient(180deg, #000 0 14px, transparent 16px);
          mask: linear-gradient(180deg, #000 0 14px, transparent 16px);
  filter: drop-shadow(0 0 5px var(--bulb-glow));
  animation: ml7-bulbs 1.1s steps(2) infinite;
}
/* Side bulb strips flank the reel frame */
.ml7-bulbs-left, .ml7-bulbs-right {
  position: absolute;
  top: 10px; bottom: 10px;
  width: 12px;
  background: radial-gradient(circle, #ff5a3c 0 2px, transparent 3px) repeat-y center / 12px 16px;
  filter: drop-shadow(0 0 4px rgba(255,80,40,0.9));
  animation: ml7-bulbs 0.7s steps(2) infinite;
}
.ml7-bulbs-left { left: 2px; }
.ml7-bulbs-right { right: 2px; }
@keyframes ml7-bulbs { 50% { opacity: 0.45; } }

/* Sunburst behind the logo */
.ml7-sunburst {
  position: absolute;
  top: -40%; left: 50%;
  width: 150%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255,210,120,0.20) 0deg 7deg, transparent 7deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%);
          mask: radial-gradient(circle, #000 35%, transparent 70%);
  pointer-events: none;
}

/* LUCKY 7 logo */
.ml7-logo {
  position: relative;
  text-align: center;
  z-index: 5;
  line-height: 0.82;
  padding-top: 4px;
  width: 64%;
  margin: 0 auto;
}
.ml7-logo-lucky {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(34px, 11vw, 50px);
  letter-spacing: 3px;
  color: #ffe07a;
  background: linear-gradient(180deg, #fffbe8 0%, #ffe07a 50%, #f5b21e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 #a8640f, 0 4px 8px rgba(0,0,0,0.55);
  -webkit-text-stroke: 1px #b3730f;
  filter: drop-shadow(0 0 8px rgba(255,215,110,0.55));
}
.ml7-logo-seven {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(54px, 19vw, 90px);
  color: #ff3b30;
  background: linear-gradient(180deg, #ff7a5c 0%, #e01b22 45%, #9d0c12 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3.5px #ffd667;
  text-shadow: 0 4px 10px rgba(0,0,0,0.65);
  filter: drop-shadow(0 0 4px rgba(227,148,26,0.6));
  margin-top: -6px;
}

/* Scattered stars */
.ml7-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ml7-star { position: absolute; color: var(--gold-2); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.ml7-star.s1 { top: 30%; left: 30%; font-size: 18px; }
.ml7-star.s2 { top: 22%; left: 64%; font-size: 26px; }
.ml7-star.s3 { top: 46%; left: 26%; font-size: 14px; }
.ml7-star.s4 { top: 50%; left: 70%; font-size: 20px; }
.ml7-star.s5 { top: 36%; left: 52%; font-size: 12px; }

/* WIN BIG paytable plaque (left) */
.ml7-winbig {
  position: absolute;
  top: 78px; left: 12px;
  width: 34%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.75));
  border: 2px solid var(--gold-3);
  border-radius: 8px;
  padding: 6px 8px;
  z-index: 4;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}
.ml7-winbig-head {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-1);
  font-size: 13px;
  border-bottom: 1px solid var(--gold-3);
  padding-bottom: 2px;
  margin-bottom: 3px;
}
.ml7-winbig-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.ml7-winbig-icons { display: flex; gap: 1px; }
.ml7-mini-sym { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; }
.ml7-winbig-amt { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; color: var(--gold-1); }

/* ANY-X plaque (right) */
.ml7-any {
  position: absolute;
  top: 78px; right: 12px;
  width: 26%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.75));
  border: 2px solid var(--gold-3);
  border-radius: 8px;
  padding: 4px 8px;
  z-index: 4;
}
.ml7-any-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.ml7-any-row + .ml7-any-row { border-top: 1px solid var(--gold-3); }
.ml7-any-lbl { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 11px; color: var(--gold-1); }
.ml7-any-sym { font-family: 'Anton', sans-serif; font-size: 22px; color: var(--red-1); -webkit-text-stroke: 1px var(--gold-2); }

/* Jackpot plaque */
.ml7-jackpot {
  position: relative;
  z-index: 3;
  margin: 8px auto 0;
  width: 62%;
  text-align: center;
}
.ml7-jackpot-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 2px;
  color: var(--gold-1);
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.ml7-jackpot-amt {
  display: block;
  margin-top: 2px;
  background: #1a0406;
  border: 2px solid var(--gold-3);
  border-radius: 8px;
  padding: 4px 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ff3b30;
  text-shadow: 0 0 8px rgba(255,59,48,0.8);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* ── Reel deck ─────────────────────────────────────────────────── */
.ml7-deck { position: relative; }

/* Chrome lever */
.ml7-lever {
  position: absolute;
  right: -10px; top: 18px;
  width: 22px; height: 150px;
  z-index: 5;
  transform-origin: bottom center;
}
.ml7-lever-arm {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 9px; height: 120px;
  background: linear-gradient(90deg, #9aa0a6, #f0f3f6 40%, #c2c8ce 60%, #7d838a);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.ml7-lever-ball {
  position: absolute;
  left: 50%; top: -2px;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6a5a, #c1121f 60%, #7d0a10);
  box-shadow: 0 3px 8px rgba(0,0,0,0.6), inset -2px -3px 6px rgba(0,0,0,0.4), inset 2px 2px 5px rgba(255,255,255,0.5);
}
.ml7-lever.is-pulled { animation: ml7-lever-pull 0.45s ease; }
@keyframes ml7-lever-pull {
  0% { transform: rotate(0); }
  40% { transform: rotate(8deg) translateY(20px); }
  100% { transform: rotate(0); }
}

/* Gold reel frame */
.ml7-frame {
  position: relative;
  margin: 0 6px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, var(--gold-1), var(--gold-2) 30%, var(--gold-3) 70%, var(--gold-deep));
  box-shadow:
    0 6px 16px rgba(0,0,0,0.5),
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.4);
}

/* Reel window (3 rows) */
.ml7-window {
  position: relative;
  display: flex;
  gap: 0;
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    inset 0 10px 22px rgba(0,0,0,0.35),
    inset 0 -10px 22px rgba(0,0,0,0.35),
    0 0 0 3px var(--gold-deep);
}
/* glass glare */
.ml7-window::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(0,0,0,0.08));
  pointer-events: none;
  z-index: 4;
}
.ml7-reel { position: relative; flex: 1; overflow: hidden; }
.ml7-reel + .ml7-reel { box-shadow: inset 2px 0 4px rgba(0,0,0,0.18); }

.ml7-strip { display: flex; flex-direction: column; will-change: transform; }
.ml7-cell {
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, #fffdf8, #e9e1d2);
}
.ml7-face {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}
/* Special 3D treatment for the classic faces */
.ml7-cell[data-sym="seven"] .ml7-face {
  font-family: 'Anton', sans-serif;
  color: var(--red-1) !important;
  -webkit-text-stroke: 2px var(--gold-2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.ml7-cell[data-sym="bar"] .ml7-face {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  color: #2b2b2b !important;
  background: linear-gradient(180deg, #fafafa, #b9b9b9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #555;
}

/* Payline: gold pointers + diamonds across center row */
.ml7-payline {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 0;
  transform: translateY(-50%);
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.ml7-payline::before {
  content: '';
  position: absolute; left: 8px; right: 8px; top: 50%;
  height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-2) 20%, var(--gold-1) 50%, var(--gold-2) 80%, transparent);
  opacity: 0.85;
}
.ml7-arrow { width: 0; height: 0; }
.ml7-arrow-l { border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 16px solid var(--gold-2); filter: drop-shadow(1px 0 1px rgba(0,0,0,0.4)); }
.ml7-arrow-r { border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-right: 16px solid var(--gold-2); margin-left: auto; filter: drop-shadow(-1px 0 1px rgba(0,0,0,0.4)); }
.ml7-diamond {
  width: 12px; height: 12px;
  background: var(--gold-2);
  transform: rotate(45deg);
  box-shadow: 0 0 4px rgba(255,200,90,0.8);
}
.ml7-window.is-win .ml7-payline::before { height: 92px; background: linear-gradient(180deg, transparent, rgba(255,210,110,0.28) 50%, transparent); }
.ml7-window.is-win { animation: ml7-winflash 0.8s ease 3; }
@keyframes ml7-winflash { 50% { box-shadow: inset 0 0 0 3px var(--gold-1), inset 0 10px 22px rgba(0,0,0,0.35), inset 0 -10px 22px rgba(0,0,0,0.35), 0 0 0 3px var(--gold-deep); } }

/* ── Credit displays ───────────────────────────────────────────── */
.ml7-displays {
  display: flex; gap: 8px;
  margin: 14px 4px 0;
}
.ml7-disp {
  flex: 1;
  background: #160305;
  border: 2px solid var(--gold-3);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.ml7-disp-win { flex: 1.3; }
.ml7-disp-lbl { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 1px; color: var(--gold-1); font-size: 12px; }
.ml7-disp-val { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; }
.ml7-credits-val { color: #ff3b30; text-shadow: 0 0 6px rgba(255,59,48,0.7); }
.ml7-win-val { color: var(--gold-1); font-size: 26px; text-shadow: 0 0 6px rgba(255,210,110,0.6); }
.ml7-bet-val { color: #ff3b30; text-shadow: 0 0 6px rgba(255,59,48,0.7); }

/* ── Button deck ───────────────────────────────────────────────── */
.ml7-buttons {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 4px 0;
}
.ml7-btn {
  border: none; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 1px;
  border-radius: 10px;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.ml7-btn:active:not(:disabled) { transform: translateY(2px); }
.ml7-btn-side {
  flex: 1;
  padding: 12px 6px;
  font-size: 15px;
  color: var(--gold-1);
  background: linear-gradient(180deg, var(--red-1), var(--red-2));
  box-shadow: inset 0 0 0 2px var(--gold-3), 0 4px 8px rgba(0,0,0,0.45);
}
.ml7-btn-side:disabled { opacity: 0.55; cursor: not-allowed; }
.ml7-spin-btn {
  flex: 1.5;
  padding: 12px 6px;
  background: linear-gradient(180deg, #6dd36d, #2f9e2f 55%, #1d6b1d);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.5), inset 0 0 0 2px var(--gold-3), 0 5px 12px rgba(0,0,0,0.5);
}
.ml7-spin-main {
  display: block;
  font-size: 26px;
  color: var(--gold-1);
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}
.ml7-spin-btn:hover:not(:disabled) { filter: brightness(1.08); }
.ml7-spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ml7-spin-btn.is-busy { animation: ml7-spin-pulse 0.8s ease-in-out infinite; }
@keyframes ml7-spin-pulse { 50% { filter: brightness(1.25); box-shadow: inset 0 2px 3px rgba(255,255,255,0.5), inset 0 0 0 2px var(--gold-1), 0 0 20px rgba(110,211,110,0.7); } }

/* ── Bottom bar ────────────────────────────────────────────────── */
.ml7-bottom {
  display: flex; gap: 8px; align-items: stretch;
  margin: 12px 4px 0;
}
.ml7-banner {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 120%, var(--red-1), var(--red-3));
  border: 2px solid var(--gold-3);
  border-radius: 10px;
  padding: 12px;
  min-height: 56px;
}
.ml7-points {
  width: 30%;
  text-align: center;
  background: #160305;
  border: 2px solid var(--gold-3);
  border-radius: 10px;
  padding: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ml7-points-lbl { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 11px; color: var(--gold-1); letter-spacing: 0.5px; }
.ml7-points-coin {
  font-size: 22px; color: var(--gold-1);
  width: 30px; height: 30px; line-height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-1), var(--gold-3));
  color: var(--red-1);
  margin: 2px 0;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.4);
}
.ml7-points-val { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: var(--gold-1); }

/* Status banner text */
.ml7-status {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  text-align: center;
  color: var(--gold-1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  line-height: 1;
}
.ml7-status a { color: #fff; text-decoration: underline; }
.ml7-status.is-error { color: #ffb4ae; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; }
.ml7-status.is-info { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; }
.ml7-status.is-win { color: #fff0b8; }

/* ── Paytable (collapsible, below cabinet) ─────────────────────── */
.ml7-paytable {
  margin: 12px 4px 0;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--gold-3);
  border-radius: 10px;
  padding: 12px 14px;
}
.ml7-paytable.ml7-paytable-collapsed { display: none; }
.ml7-paytable-head { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 1px; color: var(--gold-1); font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }
.ml7-paytable-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; }
.ml7-paytable-combo { display: flex; gap: 6px; }
.ml7-chip { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; min-width: 26px; text-align: center; }
.ml7-paytable-amt { font-weight: 700; color: var(--gold-1); }

/* ── Pending prizes ────────────────────────────────────────────── */
.ml7-pending { margin: 12px 4px 0; }
.ml7-pending-head { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-1); margin-bottom: 8px; }
.ml7-pending-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: rgba(0,0,0,0.35);
  border: 1px solid var(--gold-3); border-radius: 10px; margin-bottom: 8px;
}
.ml7-pending-amt { font-weight: 700; color: var(--gold-1); }
.ml7-pending-state { font-size: 13px; color: #d9c79c; margin-left: auto; }
.ml7-pending-claim {
  margin-left: auto; border: none; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: var(--red-2); font-weight: 700; padding: 8px 16px; border-radius: 10px;
}
.ml7-pending-claim:disabled { opacity: 0.6; cursor: default; }

/* ── Win overlay ───────────────────────────────────────────────── */
.ml7-overlay {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 2, 4, 0.82); backdrop-filter: blur(4px);
  border-radius: 26px; z-index: 20;
}
.ml7-overlay.is-open { display: flex; animation: ml7-fade 0.25s ease; }
@keyframes ml7-fade { from { opacity: 0; } to { opacity: 1; } }
.ml7-prize { text-align: center; padding: 32px 28px; animation: ml7-rise 0.4s cubic-bezier(0.2,0.9,0.3,1.2); }
@keyframes ml7-rise { from { transform: translateY(18px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.ml7-prize-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 3px; color: var(--gold-1); }
.ml7-prize-amount {
  font-family: 'Anton', sans-serif;
  font-size: clamp(54px, 17vw, 90px); line-height: 1.05; margin: 6px 0 22px;
  color: var(--gold-1);
  background: linear-gradient(180deg, #fff6cf, var(--gold-2) 60%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255,210,110,0.4);
}
.ml7-claim-btn {
  display: block; width: 100%; border: none; cursor: pointer;
  background: linear-gradient(180deg, #6dd36d, #2f9e2f 55%, #1d6b1d);
  color: var(--gold-1); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px;
  padding: 15px 28px; border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--gold-3), 0 10px 24px -8px rgba(110,211,110,0.6);
  transition: transform 0.12s ease;
}
.ml7-claim-btn:hover:not(:disabled) { transform: translateY(-1px); }
.ml7-claim-btn:disabled { opacity: 0.6; cursor: default; }
.ml7-dismiss { margin-top: 12px; background: none; border: none; color: #d9c79c; font-size: 14px; cursor: pointer; text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .ml7-face { font-size: 40px; }
  .ml7-cell[data-sym="bar"] .ml7-face { font-size: 24px; }
  .ml7-logo-seven { font-size: 62px; }
  .ml7-disp-val { font-size: 18px; }
  .ml7-spin-main { font-size: 22px; }
  .ml7-status { font-size: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ml7-bulbs-top, .ml7-bulbs-left, .ml7-bulbs-right { animation: none; }
  .ml7-spin-btn.is-busy { animation: none; }
  .ml7-window.is-win { animation: none; }
  .ml7-prize { animation: none; }
}

/* ── Dark-mode awareness (platform contract: html[data-theme="dark"]) ──
   The red-and-gold cabinet itself stays the same on both themes — that's
   intentional for a Vegas machine. What we make theme-aware is the page
   surround and the auxiliary panels (paytable / pending / status) so they
   have correct contrast whether the app shell is in light or dark mode.

   Strategy mirrors the Wheel of Fortune plugin: the component is authored
   dark-first, and a html:not([data-theme="dark"]) override adapts the
   surrounding chrome for light mode. The cabinet's own internal colours
   are left untouched. */

/* Default (dark) — give the root a subtle dark surround so the cabinet
   sits on a deep backdrop rather than floating on the shell background. */
html[data-theme="dark"] .ml7-root {
  --ml7-surround: #18191a;
}
html[data-theme="dark"] .ml7-paytable,
html[data-theme="dark"] .ml7-pending-row {
  background: rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .ml7-status a { color: #ffe07a; }

/* Light mode — the cabinet is dark, so it reads fine, but the auxiliary
   panels below it use translucent-black fills that disappear on a white
   page. Give them a solid light card with a gold edge so they remain
   legible, and darken their text accordingly. */
html:not([data-theme="dark"]) .ml7-paytable,
html:not([data-theme="dark"]) .ml7-pending-row {
  background: #fff8ec;
  border-color: var(--gold-3);
  box-shadow: 0 8px 22px -14px rgba(122, 77, 14, 0.5);
}
html:not([data-theme="dark"]) .ml7-paytable-head,
html:not([data-theme="dark"]) .ml7-pending-head,
html:not([data-theme="dark"]) .ml7-paytable-amt,
html:not([data-theme="dark"]) .ml7-pending-amt {
  color: #7a4d0e;
}
html:not([data-theme="dark"]) .ml7-paytable-row,
html:not([data-theme="dark"]) .ml7-chip {
  color: #2b2b2b;
}
html:not([data-theme="dark"]) .ml7-pending-state {
  color: #6b5a2e;
}
html:not([data-theme="dark"]) .ml7-dismiss {
  color: #7a4d0e;
}

/* ── Sound toggle ────────────────────────────────────────────────────
   Reuses the side-button cabinet styling; just needs emoji sizing and a
   dimmed muted state. The cabinet is intentionally dark on both themes,
   so the button matches the machine on light and dark alike. */
.ml7-sound-btn {
  flex: 0 0 auto;
  min-width: 48px;
  font-size: 18px;
  line-height: 1;
}
.ml7-sound-btn.is-muted { opacity: 0.6; }
