* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
  font-family: sans-serif;
}

.slot-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ── 릴 전체 박스 ── */
.reels-wrapper {
  position: relative;
  border: 3px solid #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  width: 360px;
  height: 220px;
}

/* ── 릴 하나 ── */
.reel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-right: 2px solid #111;
}
.reel:last-child { border-right: none; }

.reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reel-item {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  color: #111;
  width: 80px;
}

/* ── 가운데 당첨선 ── */
.highlight-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 55px;
  transform: translateY(-50%);
  border-top: 2px solid rgba(200, 0, 0, 0.4);
  border-bottom: 2px solid rgba(200, 0, 0, 0.4);
  pointer-events: none;
  z-index: 10;
}

/* ── 버튼 ── */
.start-btn {
  font-size: 22px;
  padding: 12px 48px;
  border: 2.5px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  cursor: pointer;
  letter-spacing: 2px;
  transition: background 0.15s;
}
.start-btn:hover:not(:disabled) { background: #f0f0f0; }
.start-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── 결과 메시지 ── */
.result-msg {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  min-height: 28px;
  letter-spacing: 1px;
}
.win-msg { color: #c00; }

/* ── 당첨 플래시 오버레이 ── */
.flash-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.15s;
}

/* ── 색종이 영역 ── */
.confetti-area {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

@keyframes fall {
  0%   { top: -10px; opacity: 1; transform: rotate(0deg) translateX(0); }
  100% { top: 100vh; opacity: 0; transform: rotate(720deg) translateX(60px); }
}