/* === Lucky Block Mode Styles === */

/* ─── Special Mode Slider ────────────────────────────────────────── */

#special-mode-indicator {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

#special-mode-toggle .mode-btn.active {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.special-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

/* ─── Lucky Block Overlay (Slot Machine) ───────────────────────── */

#lucky-block-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lucky-block-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#lucky-block-overlay.hidden {
  display: none;
}

#lucky-block-modal {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 24px;
  padding: 32px 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.4s, background 0.4s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modal-appear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-appear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.slot-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

#slot-emoji {
  font-size: 72px;
  line-height: 1;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

#slot-emoji svg {
  width: 80px;
  height: 80px;
}

.slot-pop {
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
  0% {
    transform: scale(0.3) rotate(-20deg) !important;
  }

  60% {
    transform: scale(1.3) rotate(5deg) !important;
  }

  100% {
    transform: scale(1) rotate(0deg) !important;
  }
}

#slot-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  min-height: 18px;
  transition: color 0.3s;
}

#slot-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  min-height: 30px;
}

#slot-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  min-height: 40px;
  line-height: 1.5;
}

#btn-slot-ok {
  display: none;
  margin-top: 8px;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 700;
  background: var(--color-primary);
  color: #000;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: fadeSlideIn 0.4s ease;
}

#btn-slot-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

/* ─── Lucky Block Cell (Canvas overlay indicator) ──────────────── */

.lucky-indicator {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(168, 85, 247, 0.15));
  border: 2px solid rgba(251, 191, 36, 0.6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: lucky-pulse 2s infinite ease-in-out;
}

@keyframes lucky-pulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4), inset 0 0 8px rgba(251, 191, 36, 0.1);
  }

  50% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.7), inset 0 0 12px rgba(251, 191, 36, 0.2);
  }
}

/* Effect notification toast */
.lucky-toast-effect {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.15));
  border-left: 3px solid #a855f7;
}