/* =====================================================
   抽選スロット演出用スタイル
   ・すべて .slotstage 配下にスコープし、既存 style.css と干渉させない
   ・demo-slot のリール演出をスタンプラリー向けに調整
===================================================== */

.slotstage {
  --slot-bg: #2EA55C;
  --slot-panel: #2EA55C;
  --slot-accent: #ffffff;
  --slot-accent-dark: #F1C447;
  --slot-reel-bg: #ffffff;
  --slot-reel-border: #F1C447;
  --slot-win: #F1C447;

  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 24px 18px 28px;
  background: #2EA55C;
  color: #fff;
  text-align: center;
}

.slotstage * {
  box-sizing: border-box;
}

.slotstage .slot-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--slot-accent);
  /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);*/
}

.slotstage .slot-lead {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ---- リール ---- */
.slotstage .slot-reels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.slotstage .slot-reel {
  width: 92px;
  height: 92px;
  background: var(--slot-reel-bg);
  border: 4px solid var(--slot-reel-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  font-weight: bold;
  color: #222;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.18);
}

.slotstage .slot-reel .slot-symbol {
  display: inline-block;
  line-height: 1;
}

.slotstage .slot-reel.is-spinning {
  animation: slot-spin 0.12s linear infinite;
}

@keyframes slot-spin {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-8px);
    opacity: 0.5;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slotstage .slot-reel.is-win {
  border-color: var(--slot-win);
  /*box-shadow: 0 0 16px var(--slot-win);*/
}

/* ---- 結果メッセージ ---- */
.slotstage .slot-message {
  min-height: 40px;
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.5;
}

.slotstage .slot-message.is-win {
  color: var(--slot-accent);
  font-size: 1.25rem;
  animation: slot-pulse 0.6s ease-in-out infinite alternate;
}

.slotstage .slot-message.is-lose {
  color: #ffd9d9;
}

@keyframes slot-pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

/* ---- ボタン ---- */
.slotstage .slot-spin-btn {
  width: 100%;
  max-width: 260px;
  padding: 14px 0;
  font-size: 1.15rem;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--slot-accent);
  color: #2b1a54;
  transition: transform 0.1s ease, opacity 0.2s ease, background 0.2s ease;
}

.slotstage .slot-spin-btn:hover:not(:disabled) {
  background: var(--slot-accent-dark);
}

.slotstage .slot-spin-btn:active {
  transform: scale(0.97);
}

.slotstage .slot-spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- 抽選結果（クーポン等）差し込み枠 ---- */
.lottery-slot-reveal {
  width: 100%;
}

/* リールが止まってから結果をふわっと表示 */
.lottery-slot-reveal.is-hidden {
  display: none;
}

.lottery-slot-reveal.is-revealing {
  animation: slot-reveal 0.6s ease both;
}

@keyframes slot-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- レスポンシブ ---- */
@media (max-width: 380px) {
  .slotstage .slot-reel {
    width: 76px;
    height: 76px;
    font-size: 1.9rem;
  }

  .slotstage .slot-title {
    font-size: 1.2rem;
  }
}