/* Spin Wheel Maker — front-end wheel styles (engine .swm-* classes).
   Kept in sync with the SpinWheelMaker website styles. */

.swm-shortcode { margin: 1.5em 0; }
.swm-align-center { text-align: center; }
.swm-align-left { text-align: left; }
.swm-align-right { text-align: right; }
.swm-shortcode-title { margin: 0 0 0.75em; }

.swm-wheel-wrap { display: block; position: relative; max-width: 100%; }
.swm-stage { position: relative; margin: 0 auto; }
.swm-align-left .swm-stage { margin-left: 0; }
.swm-align-right .swm-stage { margin-right: 0; }
.swm-canvas { display: block; cursor: pointer; filter: drop-shadow(0 14px 30px rgba(15, 23, 42, 0.18)); max-width: 100%; }
.swm-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.swm-pointer {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  z-index: 5; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
  line-height: 0;
}
.swm-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 0; cursor: pointer; z-index: 4;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e8eaf3);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28), inset 0 0 0 4px rgba(255, 255, 255, 0.9);
  font-weight: 800; letter-spacing: 0.04em; color: #1f2937;
  transition: transform 0.12s ease;
  font-family: inherit;
  padding: 0;
}
.swm-hub:hover { transform: translate(-50%, -50%) scale(1.05); background: radial-gradient(circle at 35% 30%, #ffffff, #e8eaf3); }
.swm-hub.is-spinning { pointer-events: none; opacity: 0.85; }
.swm-modal {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.45); border-radius: 12px;
  animation: swm-fade 0.18s ease;
}
@keyframes swm-fade { from { opacity: 0; } to { opacity: 1; } }
.swm-modal-box {
  background: #fff; border-radius: 18px; padding: 26px 30px; text-align: center;
  max-width: 86%; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  animation: swm-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes swm-pop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.swm-modal-kicker { font-size: 14px; font-weight: 700; color: #64748b; margin-bottom: 8px; }
.swm-modal-winner {
  font-size: clamp(20px, 4vw, 30px); font-weight: 800; color: #0f172a;
  border-bottom: 4px solid; padding-bottom: 8px; margin-bottom: 18px; word-break: break-word;
}
.swm-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.swm-btn {
  padding: 9px 18px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  line-height: 1.4;
}
.swm-btn-primary { background: #5b5bd6; color: #fff; }
.swm-btn-primary:hover { background: #4a4ac4; color: #fff; }
.swm-btn-ghost { background: #fff; color: #0f172a; border-color: #e2e8f0; }
.swm-btn-ghost:hover { border-color: #94a3b8; }

/* slice image / emoji shown in the result dialog */
.swm-modal-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 10px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25); }
.swm-modal-emoji { font-size: 56px; line-height: 1.1; margin-bottom: 6px; }
.swm-modal-winner:empty { display: none; }
.swm-emoji-img { width: 1em; height: 1em; vertical-align: -0.12em; display: inline-block; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
