.uranai-not-top {
  padding-bottom: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #313131;
  font-size: 16px;
  line-height: 2;
}

.d-uranai-1 {
  padding-top: 19.14vh;
  background: url("../img/uranai-1-bg.webp") no-repeat top center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 9.25vh;
}

.d-uranai-1-1 {
  width: 31.25vw;
}

@media only screen and (max-width: 1000px) {
  .d-uranai-1-1 {
    width: 95.47vw;
  }
}

.d-uranai-1-2 {
  width: 27.8125vw;
  margin-top: 6.81vh;
}
@media only screen and (max-width: 800px) {
  .d-uranai-1-2 {
    width: 85.1vw;
  }
}
@media only screen and (min-width: 800px) and (max-width: 1000px) {
  .d-uranai-1-2 {
    width: 42vw;
  }
}

.d-uranai-1-3 {
  margin-top: 3.15vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media only screen and (max-width: 1000px) {
  .d-uranai-1-3 {
  }
  .d-uranai-3-btn > .part-10-top-2-row-2-2 {
    width: 6vw;
  }
}
/*card style*/
.slot-machine {
  perspective: 1000px;
  margin-bottom: 40px;
  width: 100%;
  height: 80vh;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
@media only screen and (max-width: 1000px) {
  .slot-machine {
    height: 65vh;
  }
}
@media (min-width: 1000px) and (max-width: 1500px) {
  .slot-machine {
    height: 65vh;
  }
}
.card-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.card-reel {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  transition: transform 0.05s ease;
  height: 100%;
}

.card {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* Cards with JPEG images will use background-image instead of background gradient */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 70px;
}

.card > img {
  height: 100%;
  width: 100%;
}

/* @media (min-width: 1001px) and (max-width: 1100px) {
  .slot-machine {
    height: 50vh;
  }
}
@media (min-width: 1001px) and (max-width: 1100px) and (min-resolution: 1.4dppx) {
  .slot-machine {
    height: 70vh !important;
  }
}
@media (min-width: 1900px) and (min-resolution: 1.4dppx) {
  .slot-machine {
    height: 70vh !important;
  }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  .slot-machine {
    height: 55vh;
  }
}

@media (min-width: 1201px) and (max-width: 1279px) {
  .slot-machine {
    height: 60vh;
  }
}
@media (min-width: 600px) and (max-width: 660px) and (min-resolution: 1.4dppx) {
  .slot-machine {
    height: 55vh !important;
  }
}
@media (min-width: 700px) and (max-width: 770px) and (min-resolution: 1.4dppx) {
  .slot-machine {
    height: 65vh !important;
  }
}
@media (min-width: 661px) and (max-width: 699px) and (min-resolution: 1.4dppx) {
  .slot-machine {
    height: 60vh !important;
  }
}
@media (min-width: 840px) and (max-width: 860px) and (min-resolution: 1.4dppx) {
  .slot-machine {
    height: 105vh !important;
  }
}
@media (min-width: 1280px) and (max-width: 1398px) {
  .slot-machine {
    height: 65vh;
  }
}

@media (min-width: 1399px) and (max-width: 1500px) {
  .slot-machine {
    height: 70vh;
  }
}

@media (min-width: 1501px) and (max-width: 1600px) {
  .slot-machine {
    height: 75vh;
  }
}

@media (min-width: 1601px) and (max-width: 1700px) {
  .slot-machine {
    height: 80vh;
  }
}
@media only screen and (min-width: 800px) and (max-width: 1000px) {
  .slot-machine {
    height: 75vh;
  }
}
@media only screen and (min-width: 800px) and (max-width: 1000px) {
  .slot-machine {
    height: 75vh;
  }
}
@media only screen and (min-width: 700px) and (max-width: 799px) {
  .slot-machine {
    height: 65vh;
  }
}
@media only screen and (min-width: 673px) and (max-width: 699px) {
  .slot-machine {
    height: 60vh;
  }
}
@media only screen and (min-width: 601px) and (max-width: 672px) {
  .slot-machine {
    height: 55vh;
  }
}
@media only screen and (min-width: 601px) and (max-width: 672px) and (min-resolution: 1.4dppx) {
  .slot-machine {
    height: 80vh;
  }
}
@media only screen and (min-width: 549px) and (max-width: 600px) {
  .slot-machine {
    height: 50vh;
  }
}
@media only screen and (min-width: 491px) and (max-width: 548px) {
  .slot-machine {
    height: 45vh;
  }
}
@media only screen and (max-width: 490px) {
  .slot-machine {
    height: 40vh;
  }
} */
@media only screen and (max-width: 1000px) {
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Card image overlay for better text visibility when using JPEG backgrounds */
.card-text-overlay {
  font-weight: bold;
  display: none; /* Show this when using JPEG images for card names */
}

/* Rarity-based gacha reveal animations */
.gacha-reveal-legendary {
  animation: gachaRevealLegendary 2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gacha-reveal-epic {
  animation: gachaRevealEpic 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gacha-reveal-rare {
  animation: gachaRevealRare 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gacha-reveal-common {
  animation: gachaRevealCommon 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes gachaRevealLegendary {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1);
  }
  25% {
    transform: scale(3.5) rotateZ(15deg);
    box-shadow: 0 50px 100px rgba(255, 215, 0, 1);
    filter: brightness(2.5);
  }
  40% {
    transform: scale(4) rotateZ(-10deg);
    box-shadow: 0 60px 120px rgba(255, 0, 255, 0.8);
    filter: brightness(3);
  }
  60% {
    transform: scale(1.8) rotateZ(5deg);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.6);
    filter: brightness(1.8);
  }
  80% {
    transform: scale(0.9) rotateZ(-2deg);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
    filter: brightness(1.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
    filter: brightness(1);
  }
}

@keyframes gachaRevealEpic {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1);
  }
  30% {
    transform: scale(3) rotateZ(12deg);
    box-shadow: 0 40px 80px rgba(138, 43, 226, 0.9);
    filter: brightness(2.2);
  }
  50% {
    transform: scale(3.2) rotateZ(-8deg);
    box-shadow: 0 45px 90px rgba(75, 0, 130, 0.7);
    filter: brightness(2.5);
  }
  70% {
    transform: scale(1.5) rotateZ(4deg);
    box-shadow: 0 25px 50px rgba(138, 43, 226, 0.5);
    filter: brightness(1.5);
  }
  85% {
    transform: scale(0.95) rotateZ(-1deg);
    box-shadow: 0 18px 35px rgba(138, 43, 226, 0.3);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 12px 25px rgba(138, 43, 226, 0.2);
    filter: brightness(1);
  }
}

@keyframes gachaRevealRare {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1);
  }
  30% {
    transform: scale(2.5) rotateZ(10deg);
    box-shadow: 0 30px 60px rgba(0, 191, 255, 0.8);
    filter: brightness(1.8);
  }
  50% {
    transform: scale(2.8) rotateZ(-5deg);
    box-shadow: 0 35px 70px rgba(30, 144, 255, 0.6);
    filter: brightness(2);
  }
  70% {
    transform: scale(1.3) rotateZ(3deg);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.4);
    filter: brightness(1.3);
  }
  85% {
    transform: scale(0.95) rotateZ(-1deg);
    box-shadow: 0 15px 30px rgba(0, 191, 255, 0.2);
    filter: brightness(1.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.1);
    filter: brightness(1);
  }
}

@keyframes gachaRevealCommon {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1);
  }
  40% {
    transform: scale(2) rotateZ(8deg);
    box-shadow: 0 20px 40px rgba(169, 169, 169, 0.6);
    filter: brightness(1.4);
  }
  60% {
    transform: scale(2.2) rotateZ(-3deg);
    box-shadow: 0 25px 50px rgba(128, 128, 128, 0.4);
    filter: brightness(1.6);
  }
  80% {
    transform: scale(1.1) rotateZ(1deg);
    box-shadow: 0 12px 25px rgba(169, 169, 169, 0.3);
    filter: brightness(1.2);
  }
  95% {
    transform: scale(0.98) rotateZ(0deg);
    box-shadow: 0 8px 15px rgba(169, 169, 169, 0.2);
    filter: brightness(1.05);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 10px rgba(169, 169, 169, 0.1);
    filter: brightness(1);
  }
}

.button {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  margin: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ff5252, #ff7979);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
}

.reset-button {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.reset-button:hover {
  background: linear-gradient(45deg, #26d0ce, #2d8f85);
}

.status {
  color: white;
  margin-top: 20px;
  font-size: 1.1rem;
  opacity: 0.8;
}

.card-info {
  color: white;
  margin-top: 15px;
  font-size: 1rem;
  opacity: 0.9;
}

.rarity-info {
  margin-top: 10px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.legendary {
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
}
.epic {
  color: #8a2be2;
  text-shadow: 0 0 10px #8a2be2;
}
.rare {
  color: #00bfff;
  text-shadow: 0 0 10px #00bfff;
}
.common {
  color: #a9a9a9;
  text-shadow: 0 0 5px #a9a9a9;
}

.probability-display {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  color: white;
  font-size: 0.9rem;
}

.prob-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffd700;
}

.prob-item {
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spinning-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
  display: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.legendary-sparkle {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  display: none;
}

.legendary-sparkle::before,
.legendary-sparkle::after {
  content: "🌟";
  position: absolute;
  font-size: 4rem;
  opacity: 0;
  animation: legendarySparkle 2s ease-in-out;
}

.legendary-sparkle::before {
  top: -40%;
  left: -40%;
  animation-delay: 0.3s;
}

.legendary-sparkle::after {
  bottom: -40%;
  right: -40%;
  animation-delay: 0.6s;
}

@keyframes legendarySparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(2) rotate(360deg);
  }
}

.sound-effect {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  font-style: italic;
  font-weight: bold;
}

/* 
        ===========================================
        CARD BACKGROUND STYLES - JPEG IMAGE SETUP
        ===========================================
        
        To add JPEG images to cards:
        1. Replace the background gradient with background-image
        2. Add your JPEG file path in the url() function
        3. Uncomment the .card-text-overlay display if you want card names over images
        
        Example:
        .card-0 { background-image: url('path/to/your/legendary-card.jpg'); }
        .card-1 { background-image: url('path/to/your/epic-card1.jpg'); }
        etc...
        
        Current setup: All cards use gray gradient (ready for JPEG replacement)
        */

/* .card-0 {
  background: linear-gradient(135deg, #808080, #696969);
}
.card-1 {
  background: linear-gradient(135deg, #808080, #696969);
}
.card-2 {
  background: linear-gradient(135deg, #808080, #696969);
}
.card-3 {
  background: linear-gradient(135deg, #808080, #696969);
}
.card-4 {
  background: linear-gradient(135deg, #808080, #696969);
}
.card-5 {
  background: linear-gradient(135deg, #808080, #696969);
}
.card-6 {
  background: linear-gradient(135deg, #808080, #696969);
} 
.card-7 {
  background: linear-gradient(135deg, #808080, #696969);
} 
.card-8 {
  background: linear-gradient(135deg, #808080, #696969);
} 
.card-9 {
  background: linear-gradient(135deg, #808080, #696969);
}  */
.card-question {
  background: linear-gradient(135deg, #2c2c54, #40407a);
  height: 85vh;
}
.flash-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  z-index: 12;
  display: none;
}

.legendary-flash {
  animation: legendaryFlash 0.5s ease-out;
}

.epic-flash {
  animation: epicFlash 0.4s ease-out;
}

.rare-flash {
  animation: rareFlash 0.3s ease-out;
}

.common-flash {
  animation: commonFlash 0.2s ease-out;
}

@keyframes legendaryFlash {
  0% {
    opacity: 0;
    background: radial-gradient(
      circle,
      rgba(255, 215, 0, 0.9) 0%,
      rgba(255, 215, 0, 0) 70%
    );
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes epicFlash {
  0% {
    opacity: 0;
    background: radial-gradient(
      circle,
      rgba(138, 43, 226, 0.8) 0%,
      rgba(138, 43, 226, 0) 70%
    );
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes rareFlash {
  0% {
    opacity: 0;
    background: radial-gradient(
      circle,
      rgba(0, 191, 255, 0.7) 0%,
      rgba(0, 191, 255, 0) 70%
    );
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes commonFlash {
  0% {
    opacity: 0;
    background: radial-gradient(
      circle,
      rgba(169, 169, 169, 0.6) 0%,
      rgba(169, 169, 169, 0) 70%
    );
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/*d-uranai-2*/
.d-uranai-2 {
  display: flex;
  margin-top: 13.19vh;
}

.d-uranai-2-in {
  width: 64.27vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.d-u-2-hr {
  width: 20.88vw;
}

.d-u-2-mid {
  font-size: 30px;
  font-weight: 600;
}

.d-uranai-3 {
  margin-top: 10vh;
}

.d-uranai-3 {
  margin-top: 4.89vh;
}

.priv-4-btn-txt-2 {
  background-color: #eb6e39 !important;
  font-size: 26px !important;
  font-weight: 600;
  padding: 4vh 20vw;
}

@media only screen and (max-width: 1000px) {
  .priv-4-btn-txt-2 {
    padding: 2vh 20vw;
  }
}
.priv-4-btn-txt-3 {
  color: #515151 !important;
  font-size: 18px !important;
  background-color: #fefefe !important;
  border: 2px solid #515151 !important;
  padding: 1vh 5vw;
}
@media only screen and (max-width: 1000px) {
}
.priv-4-btn-txt-10 {
  font-size: 40px !important;
  font-weight: 700;
  line-height: 1.1;
}
.priv-4-btn-txt-10 {
  font-size: 40px !important;
  font-weight: 700;
  line-height: 1.1;
}

.priv-4-btn-txt-20 {
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.1;
}
