/* Dice Elements Styles */
.spin-button {
  background: linear-gradient(#29671A, #71B760) padding-box, 
              linear-gradient(to bottom, hsla(108, 100%, 80%, 0.7), rgba(66, 131, 50, 0)) border-box;
  color: white;
  border: 1px solid transparent;
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition-property: all;
  transition-duration: 0.3s;
  transition-timing-function: ease;
  width: fit-content;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(41, 103, 26, 0.3);
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.spin-button:hover {
  box-shadow: 0 6px 16px rgba(41, 103, 26, 0.5);
  transform: translateY(-2px);
}

.spin-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(41, 103, 26, 0.3);
}

/* Dice Display */
.dice-display {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  perspective: 600px;
}

.dice {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.dice-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #4b6bfb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.dice-dot {
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Dice Dot Patterns */
.dice-face[data-value="1"] {
  transform: rotateY(0deg) translateZ(50px);
}

.dice-face[data-value="2"] {
  transform: rotateY(90deg) translateZ(50px);
}

.dice-face[data-value="3"] {
  transform: rotateY(180deg) translateZ(50px);
}

.dice-face[data-value="4"] {
  transform: rotateY(-90deg) translateZ(50px);
}

.dice-face[data-value="5"] {
  transform: rotateX(90deg) translateZ(50px);
}

.dice-face[data-value="6"] {
  transform: rotateX(-90deg) translateZ(50px);
}

/* Dice Dot Layouts */
.dice-face[data-value="1"] .dice-dots {
  display: grid;
  grid-template-areas: "center";
}

.dice-face[data-value="2"] .dice-dots {
  display: grid;
  grid-template-areas: 
    "top-left ."
    ". bottom-right";
}

.dice-face[data-value="3"] .dice-dots {
  display: grid;
  grid-template-areas: 
    "top-left ."
    "center ."
    ". bottom-right";
}

.dice-face[data-value="4"] .dice-dots {
  display: grid;
  grid-template-areas: 
    "top-left top-right"
    "bottom-left bottom-right";
}

.dice-face[data-value="5"] .dice-dots {
  display: grid;
  grid-template-areas: 
    "top-left top-right"
    "center ."
    "bottom-left bottom-right";
}

.dice-face[data-value="6"] .dice-dots {
  display: grid;
  grid-template-areas: 
    "top-left top-right"
    "middle-left middle-right"
    "bottom-left bottom-right";
}

/* Gems & Scatter Elements */
.scatter-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
}

/* Bonus Meter */
.bonus-meter {
  width: 100%;
  height: 6px;
  background-color: #282935;
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.bonus-progress {
  height: 100%;
  background: linear-gradient(to right, #29671A, #71B760);
  width: 0%;
  transition: width 0.5s ease;
  position: relative;
}

.bonus-progress:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5));
  animation: shine 1.5s infinite;
}

/* Button styles for bonus section */
.bonus-buy-button {
  background: linear-gradient(#29671A, #71B760) padding-box,
              linear-gradient(to bottom, hsla(108, 100%, 80%, 0.7), rgba(66, 131, 50, 0)) border-box;
  color: white;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(41, 103, 26, 0.3);
}

.bonus-buy-button:hover {
  box-shadow: 0 4px 12px rgba(41, 103, 26, 0.5);
  transform: translateY(-1px);
}

/* Result Display */
.result-display {
  background-color: #282935;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-top: 20px;
  font-weight: 700;
  font-size: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.result-display.win {
  color: #71B760;
}

.result-display.lose {
  color: #ff5757;
}

.result-display.show {
  opacity: 1;
  transform: translateY(0);
}