.storeWrapper {

  margin: 0 auto;
  padding: 20px;
}

.storeGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  margin: 0 auto;
}

.storeItem {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  background-color: #f17171;
}

.storeItem:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: #1c6fb8;
}

/* Top Layout: Wheel + Coin Bag + Risk Box */
.storeLayout {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.wheelWrapper {
  position: relative;
  width: fit-content;
  /* or 500px */
  height: auto;
  /* remove fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheelImage {
  width: 100%;
  height: auto;
  /* remove or increase this */
  max-height: none;
}

.sideItems {
  max-width: 200px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.coinPurchase,
.riskBox {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: fit-content;
}

.coinPurchase button,
.riskBox button {
  background-color: #444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}



.storeImage {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}


/* Wheel Section */


.wheelSection {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0px;
  gap: 20px;
}

.wheelWrapper {
  position: relative;
  width: 300px;
}

.wheelImage {
  width: 150%;
  height: 150%;
  transition: transform 4s ease-out;
}

.pointerOverlay {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.rightSideWrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top row: Spin Controls + Coin Bag side by side */
.topRightRow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.topRightRow,
.bottomRightRow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.spinControls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spinControls button {
  background-color: #444;
  color: white;
  width: 200px;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.spinControls button:hover {
  background-color: #666;
}


.spinPrice {
  font-size: 14px;
  color: #fff;
}

.coinPurchase {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
}

.coinPurchase .storeImage {
  width: 80px;
  margin-bottom: 8px;
}

.coinPurchase p {
  margin-bottom: 4px;
}

.coinPurchase button {
  margin-top: -4px;
}

.coinPurchase p {
  font-size: 16px;
  font-weight: bold;
}


.storePanel.coinPurchase {
  background-color: #2c2c2c;
  /* dark gray panel */
  transition: background-color 0.3s ease;
  border: 1px solid #666;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.storePanel.coinPurchase:hover {
  background-color: #3d3d3d;
  /* slightly lighter gray on hover */
}





/* Bottom row: Risk Box + Drop Rates side by side */
.bottomRightRow {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-right: 0px;
}

.riskBox {
  background: white;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 30px;
  width: 200px;
  text-align: center;
}

.boxItemChances {
  gap: 20px;
  background: white;
  padding: 12px;
  color: white;
  border-radius: 10px;
  margin-bottom: 30px;
  width: 200px;
  text-align: left;
  margin-bottom: 6px;
}

.riskBox .storeImage {
  width: 80px;
  margin-bottom: 8px;
}

.boxItemChances ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  text-align: left;
}

.boxItemChances li {
  margin-bottom: 10px;
}


/* Shared panel styling for all 4 right sections */
.storePanel {
  width: 180px;
  height: 200px;
  background: transparent;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 🔄 changed from space-between */
  align-items: center;
  box-sizing: border-box;
  gap: 10px;
  /* 🔄 added for gentle spacing */
}


.storePanel button {
  background-color: #444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  width: 100%;
}

.storeImage {
  width: 80px;
  height: auto;
  margin-bottom: 8px;
}

.boxItemChances h4 {
  margin: 0;
  font-size: 16px;
}


.coin-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.coin-modal.hidden {
  display: none;
}

.coin-modal-box {
  background-color: #222;
  border: 2px solid gold;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 360px;
  font-family: 'Trebuchet MS', sans-serif;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.coin-modal-box button {
  display: block;
  margin: 10px auto;
  padding: 10px 16px;
  width: 100%;
  font-size: 16px;
}

.cancelButton {
  background-color: darkred;
  color: white;
}



@media (max-width: 600px) {
  .storeLayout {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .wheelWrapper {
    width: 240px;
  }

  .wheelImage {
    width: 100%;
    margin-bottom: 0px;
    height: auto;
  }

  .pointerOverlay {
    width: 80px;
    top: -15px;
  }

  .rightSideWrapper {
    gap: 0px;
    width: 100%;
    margin-top: 0;
  }

  .topRightRow,
  .bottomRightRow {
    flex-direction: column;
    gap: 0px;
    margin-top: 0px;
    width: 100%;
    align-items: center;
  }

  .storePanel {
    width: 90%;
    padding: 10px;
  }

  .storePanel button {
    font-size: 13px;
    padding: 6px 10px;
  }

  .storeImage {
    width: 60px;
  }

  .storeGrid {
    gap: 16px;
  }

  .storeItem {
    width: 150px;
    padding: 10px;
    font-size: 13px;
  }
}