/* Editorial Gacha Styles */

#editorialGachaContainer_unique {
  max-width: 600px;
  margin: 20px auto;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: white;
}

.egc-title {
  text-align: center;
  margin: 0 0 30px 0;
  font-size: 1.8em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.egc-gacha-main {
  text-align: center;
}

.egc-result-area {
  min-height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  margin: 20px 0;
  padding: 20px;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.egc-capsule-container {
  position: relative;
  height: 100px;
  margin-bottom: 20px;
}

.egc-capsule {
  width: 60px;
  height: 80px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(-50px) rotate(0deg);
}

.egc-capsule-top,
.egc-capsule-bottom {
  width: 60px;
  height: 40px;
  border-radius: 30px 30px 0 0;
  position: absolute;
}

.egc-capsule-top {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  top: 0;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.2);
}

.egc-capsule-bottom {
  background: linear-gradient(45deg, #4ecdc4, #6ee8df);
  bottom: 0;
  border-radius: 0 0 30px 30px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.egc-capsule.egc-drop {
  animation: egcCapsuleDrop 1.5s ease-out forwards;
}

@keyframes egcCapsuleDrop {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(20px) rotate(180deg);
  }
  70% {
    transform: translateY(-5px) rotate(300deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(360deg);
  }
}

.egc-result-text {
  font-size: 1.2em;
  line-height: 1.6;
  background: rgba(255,255,255,0.9);
  color: #333;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

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

.egc-gacha-btn {
  background: linear-gradient(45deg, #ff9a9e, #fecfef);
  border: none;
  color: #333;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  margin: 20px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.egc-gacha-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.egc-gacha-btn:active {
  transform: translateY(0);
}

.egc-gacha-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.egc-stats {
  margin-top: 15px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #editorialGachaContainer_unique {
    margin: 10px;
    padding: 20px;
  }
  
  .egc-title {
    font-size: 1.5em;
  }
  
  .egc-gacha-btn {
    padding: 12px 20px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .egc-result-area {
    min-height: 150px;
    padding: 15px;
  }
  
  .egc-result-text {
    font-size: 1em;
  }
  
  .egc-capsule {
    width: 50px;
    height: 65px;
  }
  
  .egc-capsule-top,
  .egc-capsule-bottom {
    width: 50px;
    height: 32px;
    border-radius: 25px 25px 0 0;
  }
  
  .egc-capsule-bottom {
    border-radius: 0 0 25px 25px;
  }
}
