/* ===== 全体 ===== */
body {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff7e6;
  margin: 0;
  padding: 0;
}

h1 { margin: 18px 0 8px; }

/* ===== スロット全体 ===== */
#slot {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 14px;
}

/* ===== リール ===== */
.reel {
  position: relative;
  width: 86px;
  height: 86px;
  font-size: 64px;
  line-height: 86px;
  text-align: center;
  background: #fff3de;      /* 下地は生成り固定 */
  border-radius: 14px;
  overflow: hidden;
}

/* スピード線レイヤー */
.reel::after {
  content: "";
  position: absolute;
  inset: -6px;
  opacity: 0;
  pointer-events: none;
  background-color: #fff3de; /* ここも生成りで塗り潰す */
}

/* 回転中：縦スピード線（密度UP） */
#slot.spinning .reel::after {
  opacity: 1;

  background:
    linear-gradient(#fff3de, #fff3de),

    repeating-linear-gradient(
      90deg,
      rgba(30, 25, 20, 0.78) 0px,
      rgba(30, 25, 20, 0.78) 1px,
      transparent 1px,
      transparent 4px
    ),

    repeating-linear-gradient(
      90deg,
      rgba(120, 120, 120, 0.55) 0px,
      rgba(120, 120, 120, 0.55) 1px,
      transparent 1px,
      transparent 6px
    ),

    repeating-linear-gradient(
      90deg,
      rgba(255, 205, 90, 0.18) 0px,
      rgba(255, 205, 90, 0.18) 1px,
      transparent 1px,
      transparent 10px
    );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 28%,
    black 72%,
    transparent 100%
  );

  animation: speedMove 0.085s linear infinite alternate;
}

@keyframes speedMove {
  0%   { transform: translateY(-7px); }
  100% { transform: translateY(7px); }
}

/* 当たりでリール光る */
#slot.win .reel {
  animation: glow 0.6s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 6px #ffd54f; transform: scale(1); }
  to   { text-shadow: 0 0 18px #ffca28; transform: scale(1.05); }
}

/* ===== 回すボタン ===== */
#spinBtn {
  font-size: 20px;
  padding: 10px 26px;
  border-radius: 12px;
  border: none;
  background: #eee;
  cursor: pointer;
}
#spinBtn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== クーポン（見せる情報だけ） ===== */
.coupon {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.couponTitle {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 10px;
}

/* ★結果はもっともっと大きく */
.couponHit {
  font-weight: 1000;
  font-size: 36px;
  letter-spacing: 0.5px;
  margin: 8px 0 12px;
}

/* 5ptの時だけ「ドン！」（1回） */
.bigWinOnce {
  display: inline-block;
  animation: bigBounce 0.45s ease-out forwards;
}
@keyframes bigBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  55%  { transform: scale(0.95); }
  75%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.couponTotal {
  font-weight: 900;
  font-size: 20px;
  margin: 6px 0 0;
}

/* ===== スタッフエリア（最下部） ===== */
.staffArea {
  max-width: 560px;
  margin: 16px auto 26px;
  padding: 0 18px;
}

.settleBtn {
  width: 100%;
  font-size: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: #e9eef6;
  cursor: pointer;
}

.staffOnly {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 6px;
  line-height: 1.35;
}

.settleWarn {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.9;
}