.cd-reel {
  position: relative;
  overflow: hidden;
  width: 120px;
  height: 120px;
  border: 3px solid #FFCC33;
  border-radius: 10px;
  background: #ffffff;
  margin: 0 5px;
}
.cd-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation-fill-mode: forwards;
}
.cd-tile {
  flex: 0 0 auto;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.win-glow {
  box-shadow: 0 0 20px 6px rgba(99,102,241,0.8);
  transition: box-shadow 0.3s ease-in-out;
}
.cd-machine.win-glow .cd-reel {
  border-color: #0000ff;
}
#cd-slot-wrapper {
  max-width: 500px;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  /* --- New Background Styles --- */
  background-image: url('https://oldchicagocoffee.com/wp-content/uploads/2025/08/nana-slot-background.png');
  background-size: cover; /* Ensures the image covers the entire area */
  background-position: center; /* Centers the background image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Adds a subtle shadow for depth */
  position: relative; /* Needed if you plan to layer elements on top */
  overflow: hidden; /* Ensures background doesn't overflow rounded corners */
}

/* Optional: Add a semi-transparent overlay to make text more readable */
#cd-slot-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
  border-radius: 12px; /* Match wrapper border-radius */
  z-index: 0; /* Ensure it's behind content but above background */
}

/* Ensure content is above the overlay */
#cd-slot-wrapper > * {
  position: relative;
  z-index: 1;
}