/* Daily prize wheel — LARIS brand (Site A + B) */
.dsw-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.dsw-overlay.open { display: flex; }

.dsw-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 7;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dsw-rain.show { opacity: 1; }
.dsw-rain-piece {
  position: absolute;
  top: -12%;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  animation: dswRainFall linear forwards;
}
@keyframes dswRainFall {
  0% { transform: translateY(-12%) rotate(0deg); }
  100% { transform: translateY(130vh) rotate(520deg); }
}

.dsw-modal {
  position: relative;
  width: min(380px, 100%);
  max-height: min(92vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 194, 106, 0.35) 0%, transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(232, 68, 42, 0.18) 0%, transparent 34%),
    linear-gradient(180deg, #fff 0%, #FFF8F3 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  animation: dswIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes dswIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.dsw-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #444;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.dsw-close:hover { background: rgba(0, 0, 0, 0.1); }

.dsw-head {
  position: relative;
  padding: 28px 24px 8px;
  text-align: center;
  overflow: hidden;
}
.dsw-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  letter-spacing: 0.02em;
  color: #8E191F;
  line-height: 1.2;
  text-transform: uppercase;
}
.dsw-sub {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #6B7280;
  line-height: 1.45;
}

.dsw-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dsw-confetti i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0.85;
  animation: dswFloat 3.2s ease-in-out infinite;
}
.dsw-confetti i:nth-child(1) { left: 8%; top: 18%; background: #E8442A; animation-delay: 0s; }
.dsw-confetti i:nth-child(2) { left: 18%; top: 55%; background: #F5C542; width: 6px; height: 10px; animation-delay: 0.4s; }
.dsw-confetti i:nth-child(3) { left: 78%; top: 22%; background: #3B82F6; animation-delay: 0.8s; }
.dsw-confetti i:nth-child(4) { left: 88%; top: 48%; background: #22C55E; width: 7px; height: 7px; border-radius: 50%; animation-delay: 1.1s; }
.dsw-confetti i:nth-child(5) { left: 42%; top: 8%; background: #F97316; animation-delay: 0.2s; }
.dsw-confetti i:nth-child(6) { left: 62%; top: 62%; background: #EC4899; animation-delay: 1.4s; }
@keyframes dswFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(12deg); }
}

.dsw-wheel-wrap {
  position: relative;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  margin: 8px auto 4px;
  flex-shrink: 0;
}
.dsw-wheel-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(232, 68, 42, 0.42) 0%, rgba(245, 197, 66, 0.26) 36%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: dswWheelGlow 1.9s ease-in-out infinite;
}
@keyframes dswWheelGlow {
  0%, 100% { opacity: 0.75; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.03); }
}

.dsw-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #B5202A;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.dsw-pointer::after {
  content: '';
  position: absolute;
  top: -26px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: #B5202A;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.dsw-wheel-wrap.is-spinning .dsw-pointer {
  animation: dswPointerBob 0.28s ease-in-out infinite alternate;
}
@keyframes dswPointerBob {
  from { transform: translateX(-50%) rotate(-4deg); }
  to { transform: translateX(-50%) rotate(4deg); }
}

.dsw-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #8E191F, #B5202A 40%, #E8442A);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(181, 32, 42, 0.35),
    0 0 22px rgba(232, 68, 42, 0.45);
  z-index: 1;
}
.dsw-bulbs {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.dsw-bulb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: #F5C542;
  box-shadow: 0 0 7px 2px rgba(245, 197, 66, 0.9);
  animation: dswBulb 0.85s steps(2, end) infinite;
}
@keyframes dswBulb {
  0%, 100% { opacity: 0.45; transform: scale(0.86); filter: brightness(0.94); }
  50% { opacity: 1; transform: scale(1.18); filter: brightness(1.16); }
}

.dsw-disk {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  z-index: 2;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  will-change: transform;
  transition: none;
}
.dsw-disk.is-animating {
  transition: transform 4s cubic-bezier(0.12, 0.75, 0.12, 1);
}

.dsw-seg-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.dsw-seg-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  margin-left: -43px;
  margin-top: -28px;
  transform-origin: 50% 50%;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  text-align: center;
  line-height: 1.1;
}
.dsw-seg-label-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.dsw-seg-num {
  font-weight: 900;
  font-size: clamp(0.64rem, 2.2vw, 0.78rem);
  color: #1A1A1A;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dsw-gift {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  background: none;
  border: none;
  box-shadow: none;
}
.dsw-gift::before,
.dsw-gift::after { content: none; display: none; }
.dsw-gift-svg {
  display: block;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95));
}

.dsw-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #8E191F;
  background: radial-gradient(circle at 35% 30%, #E8442A, #B5202A 55%, #8E191F);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(142, 25, 31, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.dsw-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.04); }
.dsw-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(0.97); }
.dsw-hub:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25) brightness(0.9);
  opacity: 0.85;
}

.dsw-msg {
  display: none;
  margin: 0 20px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF0ED;
  color: #8E191F;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
}
.dsw-msg.show { display: block; }

.dsw-result {
  display: none;
  position: relative;
  margin-top: auto;
  padding: 16px 18px 18px;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(255, 163, 109, 0.26), transparent 58%),
    radial-gradient(circle at 78% 82%, rgba(255, 126, 94, 0.22), transparent 52%),
    linear-gradient(180deg, #EA4530 0%, #C2242E 52%, #8E191F 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dsw-result.show {
  display: block;
  animation: dswResultIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes dswResultIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.dsw-result-rays {
  position: absolute;
  inset: -40%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.07) 0deg 8deg, transparent 8deg 16deg);
  animation: dswRays 12s linear infinite;
  pointer-events: none;
}
@keyframes dswRays { to { transform: rotate(360deg); } }

.dsw-result-inner { position: relative; z-index: 1; }
.dsw-result-kicker {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #F5C542;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.dsw-result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dsw-result-gift {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: none;
  border: none;
  box-shadow: none;
  animation: dswGiftPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dsw-result-gift::before,
.dsw-result-gift::after { content: none; display: none; }
.dsw-result-gift-svg {
  display: block;
  width: 42px;
  height: 42px;
}
.dsw-result-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #fff;
  color: #8E191F;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.dsw-result-pill::before,
.dsw-result-pill::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #B5202A;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.dsw-result-pill::before { left: -7px; }
.dsw-result-pill::after { right: -7px; }
#dsw-result-award {
  color: #8E191F;
}
@keyframes dswGiftPop {
  0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.dsw-result-sub {
  margin: 10px 0 0;
  font-size: 0.75rem;
  opacity: 0.92;
  line-height: 1.4;
}
.dsw-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.dsw-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.dsw-btn-primary {
  background: #fff;
  color: #B5202A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.dsw-btn-primary:hover { filter: brightness(0.97); }
.dsw-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.dsw-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.dsw-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.dsw-burst span {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: dswBurst 0.9s ease-out forwards;
}
@keyframes dswBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dsw-modal,
  .dsw-result.show,
  .dsw-result-gift,
  .dsw-confetti i,
  .dsw-bulb,
  .dsw-result-rays,
  .dsw-burst span,
  .dsw-rain-piece,
  .dsw-wheel-wrap::before { animation: none !important; }
  .dsw-disk.is-animating { transition-duration: 0.01ms !important; }
  .dsw-wheel-wrap.is-spinning .dsw-pointer { animation: none !important; }
}
