/* ==========================================================================
   NAMI'S CASINO — HD Cabinet Edition
   Drop-in replacement for style.css. All class names, CSS variables, and
   layout hooks used by script.js are preserved exactly.
   ========================================================================== */

:root {
  --felt: #063b32;
  --felt-deep: #031b19;
  --carpet-red: #4b0e1e;
  --casino-gold: #f7c04a;
  --casino-teal: #55d8d0;
  --casino-ink: #13090d;
  --panel: rgba(16, 12, 15, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 219, 122, 0.38);
  --text: #fff8e8;
  --muted: #cfbe9d;
  --machine-primary: #b5142a;
  --machine-secondary: #f7c04a;
  --machine-accent: #55d8d0;
  --symbol-size: 72px;
  --app-scale: 1;

  /* HD material tokens */
  --brass-hi: #ffe9a3;
  --brass: #e9b64a;
  --brass-lo: #8a5a12;
  --brass-shadow: #4a2e06;
  --chrome-hi: #f6f9fd;
  --chrome-mid: #b9c3cf;
  --chrome-lo: #59626f;
  --chrome-dark: #2a2f38;
  --glass-glare: rgba(255, 255, 255, 0.14);
  --console-a: #241318;
  --console-b: #140a0e;
  --led-teal: #5df6d6;
  --led-amber: #ffd063;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   THE ROOM — patterned carpet, ceiling light pools, atmospheric depth
   -------------------------------------------------------------------------- */

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  background:
    /* ceiling spotlights */
    radial-gradient(ellipse 46% 30% at 18% -4%, rgba(255, 214, 118, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 32% at 50% -6%, rgba(255, 226, 148, 0.22), transparent 70%),
    radial-gradient(ellipse 46% 30% at 82% -4%, rgba(255, 214, 118, 0.16), transparent 70%),
    /* carpet medallions */
    radial-gradient(circle at 24px 24px, rgba(247, 192, 74, 0.13) 2px, transparent 3px) 0 0 / 48px 48px,
    radial-gradient(circle at 0 0, rgba(85, 216, 208, 0.09) 2px, transparent 3px) 24px 24px / 48px 48px,
    radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.045) 8px, transparent 9px) 0 0 / 96px 96px,
    /* diamond carpet weave */
    linear-gradient(135deg, rgba(120, 22, 44, 0.5) 25%, transparent 25.5%) 0 0 / 48px 48px,
    linear-gradient(225deg, rgba(28, 8, 16, 0.55) 25%, transparent 25.5%) 0 0 / 48px 48px,
    /* room depth */
    radial-gradient(circle at 50% 0, rgba(247, 192, 74, 0.14), transparent 42%),
    linear-gradient(180deg, #0a0508 0%, var(--carpet-red) 46%, #2b0812 78%, #14060b 100%);
  background-attachment: fixed;
}

/* grain + vignette overlay: keeps the room from feeling flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center 34%, transparent 42%, rgba(0, 0, 0, 0.52));
  opacity: 0.6;
}

body::after {
  content: "";
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(255, 214, 76, 0.74) 28%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(255, 56, 86, 0.82) 0 18px, rgba(255, 229, 87, 0.82) 18px 36px, rgba(56, 235, 222, 0.72) 36px 54px);
}

body.jackpot-screen-flash::after {
  opacity: 0;
  animation: none;
}

body.jackpot-screen-flash .casino-app {
  animation: none;
}

body.app-fit-active {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.casino-app {
  position: relative;
  z-index: 1;
  width: min(1880px, 100%);
  margin: 0 auto;
  padding: 16px;
  transform-origin: top center;
}

body.app-fit-active .casino-app {
  transform: scale(var(--app-scale));
}

.casino-header,
.play-floor {
  display: grid;
  gap: 16px;
}

.casino-header {
  grid-template-columns: 1.1fr 1fr 0.9fr;
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   CONSOLES — panels rendered as lacquered wood-and-brass furniture
   -------------------------------------------------------------------------- */

.brand-panel,
.profile-panel,
.wallet-panel,
.side-panel,
.machine-cabinet {
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 30%, rgba(0, 0, 0, 0.18)) padding-box,
    linear-gradient(180deg, var(--console-a), var(--console-b)) padding-box,
    linear-gradient(175deg, var(--brass-hi) 0%, var(--brass) 18%, var(--brass-lo) 55%, var(--brass) 82%, var(--brass-shadow) 100%) border-box;
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -14px 26px rgba(0, 0, 0, 0.35);
}

.brand-panel,
.profile-panel,
.wallet-panel,
.side-panel {
  border-radius: 12px;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 132px;
  background:
    radial-gradient(ellipse 120% 90% at 50% -30%, rgba(247, 192, 74, 0.26), transparent 60%),
    linear-gradient(120deg, rgba(247, 192, 74, 0.14), rgba(85, 216, 208, 0.07)) padding-box,
    linear-gradient(180deg, #1d1310, #0c0d10) padding-box,
    linear-gradient(175deg, var(--brass-hi) 0%, var(--brass) 18%, var(--brass-lo) 55%, var(--brass) 82%, var(--brass-shadow) 100%) border-box;
}

/* sweeping marquee sheen across the venue sign */
.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.09) 45%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.09) 55%, transparent 70%);
  background-size: 260% 100%;
  animation: brandSheen 7s ease-in-out infinite;
}

@keyframes brandSheen {
  0%, 55% { background-position: 130% 0; }
  85%, 100% { background-position: -130% 0; }
}

.eyebrow,
.floor-note,
.profile-panel span,
.wallet-panel span,
.meter span,
.panel-heading span,
.transfer-value,
.jackpot-note span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  letter-spacing: 0.18em;
  color: #d9b471;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

h1,
h2,
.machine-marquee h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-weight: 900;
}

/* dimensional gold-leaf lettering */
h1 {
  margin-top: 8px;
  color: #ffe9a0;
  font-size: 3.4rem;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-shadow:
    0 1px 0 #a8741f,
    0 2px 0 #8a5c14,
    0 3px 0 #6d4610,
    0 4px 0 #52330a,
    0 6px 12px rgba(0, 0, 0, 0.6),
    0 0 26px rgba(247, 192, 74, 0.45);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  h1 {
    color: transparent;
    background: linear-gradient(180deg, #fff7d8 8%, #ffe08a 34%, #e8a935 52%, #ffdf8f 66%, #b97e1c 92%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.floor-note {
  margin-top: 12px;
  color: #f8e2ae;
  font-size: 0.94rem;
  text-transform: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.profile-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 219, 122, 0.22);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.34)),
    #0d0a0d;
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

select {
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: var(--casino-teal);
  box-shadow:
    inset 0 3px 7px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(85, 216, 208, 0.2),
    0 0 14px rgba(85, 216, 208, 0.22);
}

.profile-actions,
.bank-actions,
.control-deck {
  display: grid;
  gap: 8px;
}

.profile-actions {
  grid-template-columns: 1fr 1fr;
}

.profile-status {
  min-height: 20px;
  margin: 0;
  color: #f9dc9b;
  font-size: 0.92rem;
}

/* wallet balances as glowing VFD meters behind dark glass */
.wallet-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 10px;
  padding: 14px;
}

.wallet-panel div,
.meter {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid rgba(93, 246, 214, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    radial-gradient(ellipse 130% 100% at 50% 120%, rgba(93, 246, 214, 0.08), transparent 60%),
    linear-gradient(180deg, #05100f, #020807);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.7),
    inset 0 0 22px rgba(93, 246, 214, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.wallet-panel strong,
.meter strong {
  overflow-wrap: anywhere;
  color: var(--led-teal);
  font-size: 1.46rem;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(93, 246, 214, 0.9),
    0 0 18px rgba(85, 216, 208, 0.5),
    0 0 34px rgba(85, 216, 208, 0.28);
}

/* --------------------------------------------------------------------------
   CAROUSEL — machine cards as miniature glowing cabinets on the floor
   -------------------------------------------------------------------------- */

.casino-carousel {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.carousel-button {
  min-height: 104px;
  border-radius: 12px;
  color: #241006;
  font-size: 1.85rem;
  font-weight: 900;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, #ffe184 0%, #f0b23e 45%, #c47a15 55%, #e59b28 100%);
  border: 1px solid #8a5a12;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.45),
    0 4px 0 #7a4c0d,
    inset 0 2px 1px rgba(255, 255, 255, 0.65),
    inset 0 -6px 12px rgba(122, 76, 13, 0.55);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.machine-carousel {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.machine-card {
  position: relative;
  overflow: hidden;
  width: 154px;
  min-height: 112px;
  flex: 0 0 auto;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff7df;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transform: translateY(6px) scale(0.92);
  opacity: 0.68;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 34%, rgba(0, 0, 0, 0.28)),
    linear-gradient(135deg, var(--card-a), var(--card-b)),
    #222;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35);
}

/* glass face reflection on every mini cabinet */
.machine-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0.03) 56%, transparent 62%);
}

.machine-card strong {
  font-size: 1rem;
  line-height: 1.06;
}

.machine-card span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 700;
}

.machine-card.active {
  width: 220px;
  min-height: 124px;
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: var(--casino-gold);
  box-shadow:
    0 0 0 3px rgba(247, 192, 74, 0.22),
    0 0 26px rgba(247, 192, 74, 0.35),
    0 20px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35);
}

.play-floor {
  grid-template-columns: 330px minmax(0, 1fr) 310px;
  align-items: stretch;
}

.side-panel {
  padding: 14px;
}

.panel-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.panel-heading strong {
  color: #fff2be;
  font-size: 1.15rem;
  line-height: 1.12;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.machine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}

.machine-stats div {
  padding: 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -4px 8px rgba(0, 0, 0, 0.3);
}

.machine-stats dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.machine-stats dd {
  margin: 0;
  color: var(--casino-teal);
  font-size: 1.2rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(85, 216, 208, 0.45);
}

.denom-field {
  margin: 0 0 14px;
}

.denom-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.side-panel h2 {
  margin: 14px 0 8px;
  color: var(--casino-gold);
  font-size: 1.12rem;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5), 0 0 14px rgba(247, 192, 74, 0.25);
}

.paytable-list,
.line-list {
  display: grid;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.paytable-list li,
.line-list li {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.paytable-list li {
  grid-template-columns: minmax(0, 1fr) 44px auto;
}

.line-list li {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* pay symbols as embossed ivory chips */
.pay-symbol {
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 84, 24, 0.45);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent 40%),
    linear-gradient(180deg, #fff6da, #f4d9a4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 5px rgba(150, 104, 36, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.35);
}

.pay-symbol .symbol-graphic {
  width: 36px;
  height: 28px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.46));
}

.pay-symbol .photo-symbol-graphic {
  width: 40px;
  height: 30px;
  filter: none;
  transform: none;
}

.paytable-list strong,
.line-list strong {
  color: #67f2e4;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(103, 242, 228, 0.5);
}

/* --------------------------------------------------------------------------
   THE CABINET — the showpiece. Brushed-metal frame, rivets, backlit
   marquee with bulb trim, VFD meters, curved-glass reel drum.
   -------------------------------------------------------------------------- */

.machine-cabinet {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 5px solid transparent;
  border-radius: 22px;
  background:
    /* interior lighting from the marquee */
    radial-gradient(ellipse 120% 46% at 50% 0%, color-mix(in srgb, var(--machine-secondary), transparent 62%), transparent 60%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 16%) padding-box,
    /* cabinet body: machine primary lacquer falling into shadow */
    linear-gradient(160deg,
      color-mix(in srgb, var(--machine-primary), #ffffff 12%) 0%,
      var(--machine-primary) 26%,
      color-mix(in srgb, var(--machine-primary), #14060a 55%) 68%,
      #17070c 100%) padding-box,
    /* brushed metal frame on the border itself */
    repeating-linear-gradient(92deg,
      var(--chrome-hi) 0px, var(--chrome-mid) 2px, var(--chrome-hi) 4px,
      var(--chrome-mid) 6px, var(--chrome-lo) 9px, var(--chrome-mid) 12px) border-box;
  box-shadow:
    0 34px 60px rgba(0, 0, 0, 0.6),
    0 10px 22px rgba(0, 0, 0, 0.5),
    0 0 46px color-mix(in srgb, var(--machine-secondary), transparent 78%),
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 34px rgba(0, 0, 0, 0.5);
}

/* side-wall lighting: fakes the rounded 3D flanks of a real cabinet */
.machine-cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 0%, transparent 5%,
      transparent 95%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.32) 0%, transparent 3.2%,
      transparent 96.8%, rgba(0, 0, 0, 0.32) 100%);
}

/* corner rivets on the metal frame */
.machine-cabinet::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 6px;
  pointer-events: none;
  border-radius: 14px;
  background:
    radial-gradient(circle 5px at 12px 12px, var(--chrome-hi) 28%, var(--chrome-lo) 62%, transparent 66%),
    radial-gradient(circle 5px at calc(100% - 12px) 12px, var(--chrome-hi) 28%, var(--chrome-lo) 62%, transparent 66%),
    radial-gradient(circle 5px at 12px calc(100% - 12px), var(--chrome-hi) 28%, var(--chrome-lo) 62%, transparent 66%),
    radial-gradient(circle 5px at calc(100% - 12px) calc(100% - 12px), var(--chrome-hi) 28%, var(--chrome-lo) 62%, transparent 66%);
}

.machine-marquee {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-height: 108px;
  align-content: center;
  padding: 14px 16px;
  border: 3px solid transparent;
  border-radius: 12px;
  text-align: center;
  background:
    /* backlight from within */
    radial-gradient(ellipse 90% 130% at 50% 110%, color-mix(in srgb, var(--machine-secondary), transparent 66%), transparent 62%) padding-box,
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(255, 255, 255, 0.14), transparent 58%) padding-box,
    linear-gradient(180deg, rgba(10, 6, 10, 0.9), rgba(16, 8, 12, 0.82)) padding-box,
    /* brass sign frame */
    linear-gradient(175deg, var(--brass-hi), var(--brass) 30%, var(--brass-lo) 60%, var(--brass) 85%, var(--brass-shadow)) border-box;
  box-shadow:
    inset 0 0 34px color-mix(in srgb, var(--machine-secondary), transparent 66%),
    inset 0 2px 8px rgba(0, 0, 0, 0.7),
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 0 30px color-mix(in srgb, var(--machine-secondary), transparent 74%);
}

/* twin bulb strips running along the marquee frame */
.machine-marquee::before,
.machine-marquee::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  height: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle 3px at 8px 50%, #fff6c9 30%, var(--casino-gold) 55%, transparent 72%) 0 0 / 26px 100% repeat-x;
  filter: drop-shadow(0 0 5px rgba(255, 214, 100, 0.85));
  animation: bulbChase 1.1s steps(2) infinite;
}

.machine-marquee::before { top: 3px; }
.machine-marquee::after { bottom: 3px; animation-delay: 0.55s; }

@keyframes bulbChase {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.machine-marquee p {
  margin: 0;
  color: #ffefbb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.machine-marquee h2 {
  color: #fff5ca;
  font-size: 2.55rem;
  line-height: 0.95;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 3px 1px rgba(0, 0, 0, 0.5),
    0 0 18px color-mix(in srgb, var(--machine-secondary), transparent 30%),
    0 0 40px color-mix(in srgb, var(--machine-secondary), transparent 55%);
}

.meter-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.progressive-meter {
  border-color: rgba(255, 208, 99, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    radial-gradient(ellipse 130% 100% at 50% 120%, rgba(255, 208, 99, 0.1), transparent 60%),
    linear-gradient(180deg, #120c02, #080501);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.7),
    inset 0 0 22px rgba(255, 208, 99, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.progressive-meter strong {
  color: var(--led-amber);
  text-shadow:
    0 0 6px rgba(255, 208, 99, 0.95),
    0 0 18px rgba(255, 176, 60, 0.55),
    0 0 34px rgba(255, 176, 60, 0.3);
  animation: progressiveGlow 2.6s ease-in-out infinite;
}

@keyframes progressiveGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 208, 99, 0.95), 0 0 18px rgba(255, 176, 60, 0.55), 0 0 34px rgba(255, 176, 60, 0.3); }
  50% { text-shadow: 0 0 8px rgba(255, 224, 130, 1), 0 0 26px rgba(255, 190, 80, 0.75), 0 0 48px rgba(255, 176, 60, 0.45); }
}

/* --------------------------------------------------------------------------
   THE REEL DRUM — recessed metal bay, cylindrical reels, curved glass
   -------------------------------------------------------------------------- */

.reels {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-height: 292px;
  padding: 14px;
  border: 3px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%) padding-box,
    linear-gradient(180deg, #0c0f14, #070a0e) padding-box,
    linear-gradient(175deg, var(--brass-hi), var(--brass) 26%, var(--brass-lo) 58%, var(--brass) 84%, var(--brass-shadow)) border-box;
  box-shadow:
    inset 0 8px 22px rgba(0, 0, 0, 0.8),
    inset 0 -4px 12px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

/* curved glass over the whole reel bay: diagonal glare + edge reflections */
.reels::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 3px;
  pointer-events: none;
  border-radius: 9px;
  background:
    linear-gradient(118deg,
      transparent 24%,
      var(--glass-glare) 33%,
      rgba(255, 255, 255, 0.05) 40%,
      transparent 47%,
      transparent 66%,
      rgba(255, 255, 255, 0.05) 74%,
      transparent 80%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 4%, transparent 96%, rgba(255, 255, 255, 0.07)),
    radial-gradient(ellipse 140% 40% at 50% -12%, rgba(255, 255, 255, 0.1), transparent 55%);
}

.reel-window {
  position: relative;
  z-index: 1;
  height: 264px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.65);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.66)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.35)),
    #191621;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 10px 22px rgba(0, 0, 0, 0.65),
    inset 0 -10px 22px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

/* cylindrical drum shading: strong falloff top and bottom sells the curve */
.reel-window::before,
.reel-window::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  height: 46px;
  pointer-events: none;
}

.reel-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 42%, transparent 100%);
}

.reel-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 42%, transparent 100%);
}

/* Debb's Dragons keeps its parchment identity, now aged and bronze-framed */
.reels[data-profile="debb-dragons"] {
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.74), rgba(218, 183, 126, 0.58)) padding-box,
    #e7cda2 padding-box,
    linear-gradient(175deg, #e8c07a, #a8742e 34%, #6d4517 62%, #a8742e 88%, #4a2c0c) border-box;
  box-shadow:
    inset 0 0 0 2px rgba(91, 52, 31, 0.3),
    inset 0 6px 18px rgba(99, 61, 33, 0.28),
    0 15px 34px rgba(25, 6, 16, 0.35);
}

.reels[data-profile="debb-dragons"]::before {
  background:
    linear-gradient(118deg, transparent 24%, rgba(255, 255, 255, 0.16) 33%, rgba(255, 255, 255, 0.04) 40%, transparent 47%),
    radial-gradient(ellipse 140% 40% at 50% -12%, rgba(255, 255, 255, 0.14), transparent 55%);
}

.reels[data-profile="debb-dragons"] .reel-window {
  border-color: rgba(120, 78, 43, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 251, 236, 0.85), transparent 17%, transparent 83%, rgba(177, 135, 83, 0.42)),
    #f1dcc0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 225, 0.72),
    inset 0 10px 20px rgba(99, 61, 33, 0.2),
    inset 0 -10px 20px rgba(99, 61, 33, 0.2);
}

.reels[data-profile="debb-dragons"] .reel-window::before {
  background: linear-gradient(180deg, rgba(112, 72, 39, 0.4), rgba(112, 72, 39, 0.14) 46%, transparent);
}

.reels[data-profile="debb-dragons"] .reel-window::after {
  background: linear-gradient(0deg, rgba(112, 72, 39, 0.42), rgba(112, 72, 39, 0.14) 46%, transparent);
}

/* --------------------------------------------------------------------------
   LARGE PLAYING FIELD sizing — values preserved exactly from the original
   so script.js reel measurements stay correct
   -------------------------------------------------------------------------- */

body.large-playing-field {
  --symbol-size: 104px;
}

body.large-playing-field .casino-app {
  width: min(2060px, 100%);
}

body.large-playing-field .play-floor {
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr) minmax(260px, 300px);
  align-items: start;
}

body.large-playing-field .machine-cabinet {
  overflow: visible;
  padding: 18px;
}

body.large-playing-field .machine-marquee {
  min-height: 118px;
}

body.large-playing-field .reels {
  gap: 14px;
  min-height: 398px;
  padding: 18px;
}

body.large-playing-field .reel-window {
  height: 362px;
}

body.large-playing-field .reel-window::before,
body.large-playing-field .reel-window::after {
  height: 60px;
}

body.large-playing-field .reel-strip {
  gap: 14px;
  padding: 14px 0;
}

body.large-playing-field .symbol {
  width: 90%;
  padding: 5px;
}

body.large-playing-field .symbol-graphic {
  width: min(104px, 99%);
  height: min(98px, 94%);
}

body.large-playing-field .photo-symbol-graphic {
  width: min(108px, 100%);
  height: min(104px, 99%);
}

body.large-playing-field .symbol[data-profile="debb-dragons"] .photo-symbol-graphic {
  width: min(100px, 96%);
  height: min(94px, 90%);
}

/* --------------------------------------------------------------------------
   REEL STRIPS & SYMBOLS — printed strip panels with gloss and emboss
   -------------------------------------------------------------------------- */

.reel-strip {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 0;
  will-change: transform;
}

.symbol {
  position: relative;
  width: 88%;
  height: var(--symbol-size);
  display: grid;
  place-items: center;
  padding: 4px;
  border: 2px solid rgba(70, 34, 14, 0.22);
  border-radius: 9px;
  color: var(--machine-primary);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 218, 0.85) 40%, rgba(250, 224, 168, 0.85) 100%),
    #fff0c5;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(150, 104, 36, 0.28),
    inset 2px 0 4px rgba(255, 255, 255, 0.5),
    inset -2px 0 5px rgba(150, 104, 36, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

/* gloss pass over every printed symbol tile */
.symbol::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 7px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 26%, transparent 42%);
}

.symbol-graphic {
  width: min(70px, 98%);
  height: min(66px, 94%);
  overflow: visible;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.55))
    drop-shadow(0 4px 4px rgba(0, 0, 0, 0.28))
    drop-shadow(0 8px 10px rgba(0, 0, 0, 0.14));
}

.photo-symbol-graphic {
  width: min(78px, 100%);
  height: min(76px, 98%);
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  user-select: none;
}

.symbol .photo-symbol-graphic {
  transform: translateY(-12px);
}

.symbol[data-symbol="bones"] .photo-symbol-graphic {
  width: min(89px, 99%);
  height: min(70px, 87%);
  transform: translateY(-17px);
}

.symbol[data-symbol="mox"] .photo-symbol-graphic,
.symbol[data-symbol="jackpot"] .photo-symbol-graphic {
  width: min(86px, 100%);
}

.symbol[data-symbol="gimme"] .photo-symbol-graphic {
  width: min(86px, 100%);
  transform: translateY(-15px);
}

.symbol[data-symbol="wibbles"] .photo-symbol-graphic,
.symbol[data-symbol="leia"] .photo-symbol-graphic {
  height: min(80px, 100%);
  transform: translateY(-10px);
}

.symbol[data-profile="debb-dragons"] .photo-symbol-graphic {
  width: min(70px, 96%);
  height: min(64px, 88%);
  transform: none;
  border-radius: 5px;
}

.symbol[data-profile="debb-dragons"] {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.96), rgba(236, 211, 173, 0.9)),
    #f1dcc0;
}

body.large-playing-field .symbol[data-profile="doggos"] .photo-symbol-graphic {
  width: min(100px, 96%);
  height: min(92px, 88%);
  transform: none;
}

.pay-symbol .photo-symbol-graphic {
  object-fit: contain;
}

.icon-main {
  fill: var(--icon-main-color, currentColor);
  stroke: rgba(42, 17, 14, 0.5);
  stroke-width: 2;
  stroke-linejoin: round;
}

.icon-accent {
  fill: var(--icon-accent-color, var(--machine-accent));
  stroke: rgba(42, 17, 14, 0.3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-dark {
  fill: var(--icon-dark-color, #2b1110);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.icon-line {
  fill: none;
  stroke: var(--icon-line-color, currentColor);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-wild-plate {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.18));
}

.icon-wild-word {
  fill: var(--icon-dark-color, #073434);
  stroke: #ffffff;
  stroke-width: 3;
  paint-order: stroke fill;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 27px;
  font-weight: 900;
  animation: wildWordFlash 420ms steps(1, end) infinite;
}

.icon-bar-word,
.icon-diamond-word {
  fill: var(--icon-dark-color, #2b1110);
  stroke: #ffffff;
  stroke-width: 2.5;
  paint-order: stroke fill;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-weight: 900;
}

.icon-bar-word {
  font-size: 17px;
}

.icon-diamond-word {
  font-size: 22px;
}

/* jackpot tiles: metallic gold plate */
.symbol[data-kind="jackpot"] {
  color: #8f1b26;
  background:
    linear-gradient(180deg, #fff9d6 0%, #ffdf87 32%, #f2ae35 55%, #ffd977 78%, #d9922a 100%),
    #ffe07b;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -4px 8px rgba(146, 84, 12, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(255, 198, 79, 0.35);
}

.symbol[data-kind="jackpot"] .icon-accent {
  fill: #ffffff;
}

/* wild tiles: glowing aqua glass */
.symbol[data-kind="wild"] {
  color: #062c2c;
  background:
    linear-gradient(180deg, #ccfff8 0%, #7defe2 36%, #38c4ba 62%, #6fe8da 100%),
    #7af3e4;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -4px 8px rgba(9, 84, 80, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(85, 216, 208, 0.4);
}

.symbol[data-kind="wild"] .icon-accent {
  fill: #fff1a7;
}

.symbol[data-kind="wild"] .icon-wild-word {
  fill: #062c2c;
}

/* --------------------------------------------------------------------------
   PAYLINES — neon light bars floating over the glass
   -------------------------------------------------------------------------- */

.payline-layer {
  position: absolute;
  z-index: 8;
  inset: 14px;
  pointer-events: none;
}

.line-marker {
  position: absolute;
  left: 2%;
  right: 2%;
  height: 4px;
  border-radius: 999px;
  opacity: 0.6;
  background: linear-gradient(90deg, transparent, var(--machine-accent), #fff0a1, var(--machine-accent), transparent);
  box-shadow:
    0 0 8px color-mix(in srgb, var(--machine-accent), transparent 12%),
    0 0 22px color-mix(in srgb, var(--machine-accent), transparent 42%);
}

.line-marker.top { top: 18%; }
.line-marker.center { top: 50%; }
.line-marker.bottom { top: 82%; }

.line-marker.diag-down {
  top: 50%;
  transform: rotate(16deg);
}

.line-marker.diag-up {
  top: 50%;
  transform: rotate(-16deg);
}

.line-marker.hit {
  opacity: 1;
  height: 6px;
  background: linear-gradient(90deg, transparent, #ffffff, #ffdb59, #ffffff, transparent);
  box-shadow:
    0 0 10px rgba(255, 236, 150, 0.95),
    0 0 30px rgba(255, 219, 89, 0.7),
    0 0 56px rgba(255, 219, 89, 0.4);
  animation: lineHitPulse 460ms ease-in-out infinite;
}

@keyframes lineHitPulse {
  50% { filter: brightness(1.35); }
}

.message {
  position: relative;
  z-index: 1;
  min-height: 48px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 219, 122, 0.14);
  color: #fff3d0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
    rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   CONTROL DECK — dome arcade buttons and the chrome lever
   -------------------------------------------------------------------------- */

.control-deck {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr 1fr 1.2fr 72px;
}

.action,
.small-action,
.lever {
  min-height: 46px;
  border-radius: 10px;
  color: #fff8e8;
  font-weight: 900;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: transform 110ms ease, filter 110ms ease, opacity 110ms ease, box-shadow 110ms ease;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background:
    radial-gradient(ellipse 100% 62% at 50% 0%, rgba(255, 255, 255, 0.4), transparent 58%),
    linear-gradient(180deg, #2db4c4 0%, #17798e 46%, #0d4a5c 54%, #146579 100%);
  box-shadow:
    0 5px 0 #093642,
    0 9px 14px rgba(0, 0, 0, 0.45),
    inset 0 2px 1px rgba(255, 255, 255, 0.5),
    inset 0 -5px 9px rgba(4, 36, 45, 0.6);
}

.action:hover,
.small-action:hover,
.lever:hover,
.carousel-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.action:active,
.small-action:active,
.lever:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #093642,
    0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 2px 1px rgba(255, 255, 255, 0.35),
    inset 0 -3px 7px rgba(4, 36, 45, 0.6);
}

.carousel-button:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #7a4c0d,
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 2px 1px rgba(255, 255, 255, 0.55),
    inset 0 -4px 10px rgba(122, 76, 13, 0.55);
}

.spin-action,
.gold {
  color: #281005;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(ellipse 100% 62% at 50% 0%, rgba(255, 255, 255, 0.6), transparent 58%),
    linear-gradient(180deg, #ffe489 0%, #f4b93e 46%, #c47a15 54%, #e39a25 100%);
  box-shadow:
    0 5px 0 #7a4c0d,
    0 9px 14px rgba(0, 0, 0, 0.45),
    inset 0 2px 1px rgba(255, 255, 255, 0.7),
    inset 0 -5px 9px rgba(122, 76, 13, 0.5);
}

.spin-action:active,
.gold:active {
  box-shadow:
    0 1px 0 #7a4c0d,
    0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 2px 1px rgba(255, 255, 255, 0.5),
    inset 0 -3px 7px rgba(122, 76, 13, 0.5);
}

.spin-action {
  animation: spinReady 2.4s ease-in-out infinite;
}

@keyframes spinReady {
  0%, 100% { box-shadow: 0 5px 0 #7a4c0d, 0 9px 14px rgba(0, 0, 0, 0.45), inset 0 2px 1px rgba(255, 255, 255, 0.7), inset 0 -5px 9px rgba(122, 76, 13, 0.5), 0 0 0 rgba(255, 214, 90, 0); }
  50% { box-shadow: 0 5px 0 #7a4c0d, 0 9px 14px rgba(0, 0, 0, 0.45), inset 0 2px 1px rgba(255, 255, 255, 0.7), inset 0 -5px 9px rgba(122, 76, 13, 0.5), 0 0 22px rgba(255, 214, 90, 0.5); }
}

.spin-action:disabled {
  animation: none;
}

.refill-action {
  color: #2a0d0f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(ellipse 100% 62% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 58%),
    linear-gradient(180deg, #ffb7c2 0%, #ef6d82 46%, #b12539 54%, #d43e54 100%);
  box-shadow:
    0 5px 0 #6d1522,
    0 9px 14px rgba(0, 0, 0, 0.45),
    inset 0 2px 1px rgba(255, 255, 255, 0.6),
    inset 0 -5px 9px rgba(109, 21, 34, 0.5);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

/* the lever: slotted steel housing, chrome shaft, candy-red knob */
.lever {
  position: relative;
  min-height: 68px;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, #23282f, #101318);
  box-shadow:
    0 5px 0 #05070a,
    0 9px 14px rgba(0, 0, 0, 0.5),
    inset 0 2px 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 -6px 12px rgba(0, 0, 0, 0.6);
}

/* the slot the lever rides in */
.lever::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #05070a, #1a1f26 55%, #05070a);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.09);
}

.lever span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 16px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d7683 0%, #f2f6fb 34%, #ffffff 46%, #aab3bf 68%, #565e6a 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  transition: transform 140ms ease;
}

.lever span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, #ffffff 0%, rgba(255, 255, 255, 0.85) 8%, transparent 26%),
    radial-gradient(circle at 30% 30%, #ff8f7a 0%, #e6392b 48%, #7e130d 100%);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.5),
    inset 0 -5px 9px rgba(80, 8, 4, 0.6),
    inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
}

.lever.pulled span {
  transform: translateX(-50%) rotate(14deg) translateY(6px);
  transform-origin: top center;
}

/* --------------------------------------------------------------------------
   CASHIER PANEL, TOGGLES, MODAL
   -------------------------------------------------------------------------- */

.transfer-field {
  margin: 12px 0 6px;
}

.transfer-value {
  margin: 0 0 10px;
  color: #ffdf82;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255, 223, 130, 0.4);
}

.bank-actions {
  grid-template-columns: 1fr;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: #fff0c3;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.sound-toggle input {
  width: auto;
  min-height: auto;
  accent-color: var(--casino-gold);
}

.jackpot-note {
  margin-top: 14px;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid rgba(247, 192, 74, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
    rgba(247, 192, 74, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.jackpot-note p {
  margin: 5px 0 0;
  color: #ffe7ad;
  font-size: 0.9rem;
  line-height: 1.32;
}

.modal-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 2, 5, 0.82);
  backdrop-filter: blur(3px);
}

.modal-backdrop[hidden],
[hidden] {
  display: none !important;
}

.modal-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--text);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 32%, rgba(0, 0, 0, 0.2)) padding-box,
    linear-gradient(180deg, #1c1016, #100810) padding-box,
    linear-gradient(175deg, var(--brass-hi), var(--brass) 26%, var(--brass-lo) 58%, var(--brass) 84%, var(--brass-shadow)) border-box;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 42px rgba(247, 192, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modal-dialog h2 {
  color: var(--casino-gold);
  font-size: 1.5rem;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5), 0 0 18px rgba(247, 192, 74, 0.4);
}

.modal-dialog p {
  margin: 0;
  color: #ffe9b2;
  font-size: 1.08rem;
  line-height: 1.38;
}

/* --------------------------------------------------------------------------
   WINS & CELEBRATIONS
   -------------------------------------------------------------------------- */

.win-flash .reel-window {
  animation: winPulse 360ms ease-in-out 3;
}

.jackpot-flash {
  animation: jackpotPulse 1180ms ease-in-out 3;
}

.jackpot-celebration {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 260ms ease;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 238, 150, 0.28), transparent 38%),
    radial-gradient(circle at 22% 60%, rgba(255, 120, 150, 0.08), transparent 40%),
    radial-gradient(circle at 78% 60%, rgba(86, 226, 214, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 230, 127, 0.1), rgba(255, 96, 130, 0.05) 48%, transparent);
}

.celebrate-jackpot .jackpot-celebration {
  opacity: 1;
}

.celebration-firework,
.celebration-streamer {
  position: absolute;
  display: block;
}

.celebration-firework {
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  color: var(--color);
  background: currentColor;
  box-shadow:
    0 -54px 0 -1px currentColor,
    38px -38px 0 -1px currentColor,
    54px 0 0 -1px currentColor,
    38px 38px 0 -1px currentColor,
    0 54px 0 -1px currentColor,
    -38px 38px 0 -1px currentColor,
    -54px 0 0 -1px currentColor,
    -38px -38px 0 -1px currentColor,
    0 0 24px 8px rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  animation: fireworkBurst 1560ms ease-out var(--delay) 3 both;
}

.celebration-streamer {
  left: var(--x);
  top: -72px;
  width: 10px;
  height: 74px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 42%),
    var(--color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translate3d(0, -80px, 0) rotate(var(--tilt));
  animation: streamerFall var(--duration) linear var(--delay) infinite;
}

@keyframes winPulse {
  50% {
    box-shadow:
      inset 0 0 36px rgba(255, 226, 97, 0.75),
      inset 0 10px 22px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(255, 226, 97, 0.4);
  }
}

@keyframes jackpotPulse {
  50% {
    filter: brightness(1.14) saturate(1.18);
    box-shadow:
      0 34px 60px rgba(0, 0, 0, 0.6),
      0 0 44px rgba(255, 214, 90, 0.6),
      inset 0 0 30px rgba(255, 214, 90, 0.3);
  }
}

@keyframes fireworkBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
  }

  14% {
    opacity: 0.98;
  }

  100% {
    transform: translate(-50%, -50%) scale(var(--scale));
    opacity: 0;
  }
}

@keyframes streamerFall {
  0% {
    transform: translate3d(0, -90px, 0) rotate(var(--tilt));
    opacity: 0;
  }

  10% {
    opacity: 0.95;
  }

  100% {
    transform: translate3d(var(--drift), 760px, 0) rotate(540deg);
    opacity: 0;
  }
}

@keyframes screenJackpotFlash {
  0%, 18%, 36%, 54%, 72%, 90% {
    opacity: 0.86;
  }

  9%, 27%, 45%, 63%, 81%, 100% {
    opacity: 0;
  }
}

@keyframes jackpotRoomPulse {
  0%, 18%, 36%, 54%, 72%, 90% {
    filter: brightness(1.35) saturate(1.55);
  }

  9%, 27%, 45%, 63%, 81%, 100% {
    filter: none;
  }
}

@keyframes wildWordFlash {
  0%, 49% {
    fill: #062c2c;
    stroke: #ffffff;
    opacity: 1;
  }

  50%, 100% {
    fill: #fff7a8;
    stroke: #073434;
    opacity: 0.82;
  }
}

/* --------------------------------------------------------------------------
   FIT MODES — sizing values preserved exactly from the original stylesheet
   so the JS auto-fit and reel measurement logic behaves identically
   -------------------------------------------------------------------------- */

body.fit-compact {
  --symbol-size: 62px;
}

body.fit-compact .casino-app {
  padding: 10px;
}

body.fit-compact .casino-header,
body.fit-compact .play-floor {
  gap: 10px;
}

body.fit-compact .brand-panel {
  min-height: 104px;
  padding: 12px;
}

body.fit-compact h1 {
  font-size: 2.7rem;
}

body.fit-compact .profile-panel,
body.fit-compact .wallet-panel,
body.fit-compact .side-panel,
body.fit-compact .machine-cabinet {
  padding: 10px;
}

body.fit-compact .casino-carousel {
  grid-template-columns: 46px 1fr 46px;
  gap: 8px;
  margin: 8px 0;
}

body.fit-compact .carousel-button {
  min-height: 84px;
}

body.fit-compact .machine-carousel {
  min-height: 98px;
}

body.fit-compact .machine-card {
  width: 138px;
  min-height: 92px;
}

body.fit-compact .machine-card.active {
  width: 200px;
  min-height: 102px;
}

body.fit-compact .play-floor {
  grid-template-columns: 300px minmax(0, 1fr) 286px;
}

body.ipad-landscape {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.ipad-landscape .casino-app {
  width: min(1360px, 100%);
  padding: 10px;
}

body.ipad-landscape .casino-header {
  grid-template-columns: minmax(230px, 0.9fr) minmax(330px, 1.2fr) minmax(230px, 0.85fr);
}

body.ipad-landscape .play-floor {
  grid-template-columns: minmax(205px, 0.78fr) minmax(0, 1.55fr) minmax(205px, 0.76fr);
  align-items: start;
}

body.ipad-landscape .info-panel {
  order: 1;
}

body.ipad-landscape .machine-cabinet {
  order: 2;
}

body.ipad-landscape .bank-panel {
  order: 3;
}

body.ipad-landscape .brand-panel {
  min-height: 92px;
}

body.ipad-landscape h1 {
  font-size: 2.35rem;
}

body.ipad-landscape .profile-fields {
  grid-template-columns: minmax(0, 1fr) 104px;
}

body.ipad-landscape .wallet-panel {
  grid-template-columns: 1fr;
}

body.ipad-landscape .wallet-panel div {
  padding: 8px;
}

body.ipad-landscape .casino-carousel {
  grid-template-columns: 44px 1fr 44px;
}

body.ipad-landscape .machine-card {
  width: 128px;
}

body.ipad-landscape .machine-card.active {
  width: 184px;
}

body.ipad-landscape .machine-stats {
  grid-template-columns: 1fr;
}

body.ipad-landscape .paytable-list li {
  grid-template-columns: minmax(0, 1fr) 38px;
}

body.ipad-landscape .paytable-list strong {
  grid-column: 1 / -1;
}

body.ipad-landscape .pay-symbol {
  width: 38px;
}

body.ipad-landscape .bank-actions {
  gap: 7px;
}

body.fit-compact .panel-heading {
  margin-bottom: 8px;
}

body.fit-compact .machine-stats {
  margin-bottom: 10px;
}

body.fit-compact .side-panel h2 {
  margin: 10px 0 6px;
}

body.fit-compact .paytable-list,
body.fit-compact .line-list {
  gap: 5px;
}

body.fit-compact .paytable-list li,
body.fit-compact .line-list li {
  padding: 6px 8px;
}

body.fit-compact .machine-marquee {
  min-height: 82px;
  padding: 9px;
}

body.fit-compact .machine-marquee h2 {
  font-size: 2.1rem;
}

body.fit-compact .meter-row {
  gap: 7px;
  margin: 8px 0;
}

body.fit-compact .meter {
  padding: 8px;
}

body.fit-compact .reels {
  min-height: 246px;
  padding: 10px;
}

body.fit-compact .reel-window {
  height: 224px;
}

body.fit-compact .message {
  min-height: 40px;
  margin: 8px 0;
  padding: 9px 10px;
}

body.fit-compact .control-deck {
  gap: 8px;
}

body.fit-compact .action,
body.fit-compact .small-action {
  min-height: 42px;
}

body.fit-compact .lever {
  min-height: 60px;
}

body.fit-compact .jackpot-note {
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .casino-header,
  .play-floor {
    grid-template-columns: 1fr;
  }

  body.large-playing-field .play-floor {
    grid-template-columns: 1fr;
  }

  .wallet-panel,
  .meter-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-panel {
    order: 2;
  }

  .machine-cabinet {
    order: 1;
  }
}

@media (max-width: 720px) {
  body.large-playing-field {
    --symbol-size: 82px;
  }

  body.large-playing-field .reels {
    min-height: 310px;
    padding: 10px;
  }

  body.large-playing-field .reel-window {
    height: 286px;
  }

  body.large-playing-field .reel-strip {
    gap: 10px;
    padding: 10px 0;
  }

  body.large-playing-field .symbol-graphic,
  body.large-playing-field .photo-symbol-graphic {
    width: min(86px, 100%);
    height: min(82px, 98%);
  }

  body.large-playing-field .symbol[data-profile="debb-dragons"] .photo-symbol-graphic {
    width: min(80px, 96%);
    height: min(76px, 90%);
  }

  .casino-app {
    padding: 10px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .machine-marquee h2 {
    font-size: 1.9rem;
  }

  .profile-fields,
  .wallet-panel,
  .meter-row,
  .control-deck {
    grid-template-columns: 1fr;
  }

  .casino-carousel {
    grid-template-columns: 46px 1fr 46px;
  }

  .machine-carousel {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .machine-card,
  .machine-card.active {
    width: 168px;
    min-height: 120px;
    transform: none;
  }

  .reels {
    gap: 6px;
    padding: 8px;
  }

  .payline-layer {
    inset: 8px;
  }

  .symbol {
    width: 92%;
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
