/* ==========================================================================
   Spin & Win — wheel experience (landing page + My Account endpoint)
   Brand: mint #A4F8F2 on the deep-teal ladder #031A17 → #073A32.
   ========================================================================== */

.pepgg-sw {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

/* The card carries its own title — hide the theme's duplicate page <h1>. */
.page-id-7125 h1.entry-title {
  display: none;
}

.pepgg-sw-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 34px 22px 30px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(164, 248, 242, 0.14), transparent 60%),
    linear-gradient(160deg, #073a32 0%, #052824 55%, #031a17 100%);
  border: 1px solid rgba(164, 248, 242, 0.16);
  color: #f2fbfa;
}

.pepgg-sw-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 14px 12px, rgba(164, 248, 242, 0.16) 1.2px, transparent 1.8px);
  background-size: 44px 34px;
  opacity: 0.2;
  pointer-events: none;
}

.pepgg-sw-card > * {
  position: relative;
  z-index: 1;
}

.pepgg-sw-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 800;
  color: rgba(164, 248, 242, 0.85);
  margin: 0 0 6px;
}

.pepgg-sw-title {
  color: #ffffff !important;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 8px;
  text-shadow:
    0 0 16px rgba(255, 209, 102, 0.45),
    0 0 44px rgba(164, 248, 242, 0.3),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

.pepgg-sw-sub {
  font-size: 17px;
  color: rgba(242, 251, 250, 0.88);
  margin: 0 0 22px;
}

.pepgg-sw-sub--ready {
  color: #a4f8f2;
  font-weight: 700;
}

.pepgg-sw-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a4f8f2;
  margin-right: 9px;
  vertical-align: 1px;
  animation: pepgg-live-pulse 2.4s ease-in-out infinite;
}

@keyframes pepgg-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(164, 248, 242, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(164, 248, 242, 0); }
}

.pepgg-sw-hud {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 22px;
}

.pepgg-sw-hud-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 10px;
  background: rgba(3, 26, 23, 0.55);
  border: 1px solid rgba(164, 248, 242, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pepgg-sw-hud-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(164, 248, 242, 0.65);
}

.pepgg-sw-hud-value {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.pepgg-sw-hint {
  font-size: 13px;
  font-weight: 600;
  color: rgba(164, 248, 242, 0.7);
  margin: -8px 0 10px;
}

.pepgg-sw-hint--touch {
  display: none;
}

@media (pointer: coarse) {
  .pepgg-sw-hint--touch {
    display: inline;
  }

  .pepgg-sw-hint--mouse {
    display: none;
  }
}

.pepgg-sw-signup {
  font-size: 14px;
  color: rgba(242, 251, 250, 0.75);
  margin: 10px 0 0;
}

/* Wheel wrapper with pointer */
.pepgg-wheel-wrapper {
  position: relative;
  display: block;
  width: min(380px, 86vw);
  margin: 0 auto 22px;
  max-width: 100%;
}

.pepgg-wheel-pointer {
  position: absolute;
  top: -10px;
  transform-origin: 50% 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 42px;
  background: linear-gradient(165deg, #fff3c9 0%, #ffd166 45%, #c9992e 100%);
  clip-path: polygon(50% 100%, 6% 20%, 22% 0, 50% 12%, 78% 0, 94% 20%);
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

#pepgg-wheel-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(164, 248, 242, 0.18);
}

/* Spin button */
.pepgg-spin-button {
  display: inline-block;
  padding: 15px 52px;
  font-size: 19px;
  font-weight: 800;
  color: #0a463e;
  background: linear-gradient(180deg, #c9fbf7 0%, #a4f8f2 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 22px rgba(164, 248, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.pepgg-spin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 28px rgba(164, 248, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #0a463e;
}

.pepgg-spin-button:active {
  transform: translateY(0) scale(0.97);
}

.pepgg-spin-button:focus-visible {
  outline: 2px solid #a4f8f2;
  outline-offset: 3px;
}

.pepgg-spin-button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  animation: pepgg-btn-working 1s ease-in-out infinite;
}

/* Idle attract: the ready button breathes so it reads as pressable. */
#pepgg-spin-btn:not(:disabled) {
  animation: pepgg-btn-breathe 2.6s ease-in-out infinite;
}

@keyframes pepgg-btn-breathe {
  0%, 100% { box-shadow: 0 6px 22px rgba(164, 248, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
  50%      { box-shadow: 0 6px 34px rgba(164, 248, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
}

@keyframes pepgg-btn-working {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 0.5; }
}

/* Prize legend */
.pepgg-sw-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 0;
  margin: 26px auto 0;
  max-width: 560px;
}

.pepgg-sw-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(242, 251, 250, 0.9);
  background: rgba(3, 26, 23, 0.55);
  border: 1px solid rgba(164, 248, 242, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pepgg-sw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* How it works */
.pepgg-sw-how {
  padding: 30px 10px 0;
  text-align: center;
}

.pepgg-sw-how h3 {
  font-size: 24px;
  margin: 0 0 18px;
}

.pepgg-sw-steps {
  list-style: none;
  counter-reset: sw-step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0 0 14px;
  text-align: left;
}

.pepgg-sw-steps li {
  counter-increment: sw-step;
  background: #f4faf9;
  border: 1px solid rgba(10, 70, 62, 0.12);
  border-radius: 14px;
  padding: 18px 16px 16px;
  position: relative;
}

.pepgg-sw-steps li::before {
  content: counter(sw-step, decimal-leading-zero);
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #0a8571;
  border: 1px solid rgba(10, 133, 113, 0.35);
  border-radius: 7px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.pepgg-sw-steps li strong {
  display: block;
  color: #0a463e;
  font-size: 16px;
  margin-bottom: 4px;
}

.pepgg-sw-steps li span {
  font-size: 14px;
  color: #3d5a55;
  line-height: 1.45;
}

.pepgg-sw-fine {
  font-size: 12.5px;
  color: #7b8f8b;
  margin: 4px 0 0;
}

/* Prize result */
.pepgg-prize-result {
  margin: 24px auto 0;
  padding: 20px;
  max-width: 460px;
  background: rgba(3, 26, 23, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(164, 248, 242, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pepgg-sheet-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pepgg-prize-result h3 {
  font-size: 24px;
  font-weight: 700;
  color: #a4f8f2;
  margin: 0 0 8px;
}

.pepgg-prize-result p {
  font-size: 16px;
  color: #f2fbfa;
  margin: 4px 0;
}

.pepgg-coupon-code {
  display: inline-block;
  padding: 6px 16px;
  background: #a4f8f2;
  color: #0a463e;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  user-select: all;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pepgg-coupon-code:hover {
  transform: scale(1.03);
  box-shadow: 0 0 14px rgba(164, 248, 242, 0.4);
}

.pepgg-coupon-code:active {
  transform: scale(0.97);
}

.pepgg-copied-msg {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #a4f8f2;
  opacity: 0;
  transition: opacity 0.3s;
}

.pepgg-copied-msg.show {
  opacity: 1;
}

.pepgg-prize-result.pepgg-prize-loss {
  border-color: rgba(242, 251, 250, 0.35);
}

.pepgg-prize-result.pepgg-prize-loss h3 {
  color: rgba(242, 251, 250, 0.85);
}

.pepgg-wheel-pointer.is-spinning {
  animation: pepgg-pointer-tick 0.11s linear infinite;
}

/* Launch kick: the whole machine flinches when the spin fires. */
.pepgg-wheel-wrapper.pepgg-kick {
  animation: pepgg-launch-kick 0.3s ease-out;
}

@keyframes pepgg-launch-kick {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* Sound toggle — sits in the wrapper corner, clear of the dial. */
.pepgg-sound-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 11;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(164, 248, 242, 0.35);
  background: rgba(3, 26, 23, 0.55);
  color: #a4f8f2;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, background 0.2s;
}

.pepgg-sound-toggle:hover {
  transform: scale(1.1);
  background: rgba(3, 26, 23, 0.8);
}

.pepgg-sound-toggle:focus-visible {
  outline: 2px solid #a4f8f2;
  outline-offset: 2px;
}

@keyframes pepgg-pointer-tick {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50%      { transform: translateX(-50%) rotate(-9deg); }
}

@keyframes pepgg-sheet-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Site-Wide Notification Banner (users with unspent spins)
   ========================================================================== */

.pepgg-spin-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #031a17, #073a32 50%, #031a17);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 50px 12px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  border-top: 2px solid rgba(164, 248, 242, 0.5);
  animation: pepgg-slideUp 0.5s ease;
}

.pepgg-spin-banner-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.pepgg-spin-banner-link:hover {
  color: #a4f8f2;
}

.pepgg-spin-banner-icon {
  font-size: 24px;
  animation: pepgg-bounce 1.5s infinite;
}

.pepgg-spin-banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 8px;
  line-height: 1;
}

.pepgg-spin-banner-close:hover {
  opacity: 1;
}

@keyframes pepgg-slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes pepgg-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ==========================================================================
   Header wheel icon (theme header.php renders the markup)
   ========================================================================== */

.spinwin-li {
  position: relative;
}

.spinwinicon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.spinwinicon svg {
  width: 26px;
  height: 26px;
  animation: pepgg-icon-spin 14s linear infinite;
}

.spinwinicon:hover svg {
  animation-duration: 2.5s;
}

.spinwin-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes pepgg-icon-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .spinwinicon svg,
  .pepgg-sw-live,
  .pepgg-wheel-wrapper.pepgg-kick,
  #pepgg-spin-btn:not(:disabled),
  .pepgg-spin-button:disabled {
    animation: none;
  }
}

/* ==========================================================================
   Header: compact store-credit pill so the icon row clears the logo
   ========================================================================== */

ul.icon_list li.store-credit-balance {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #0a463e;
  background: rgba(164, 248, 242, 0.35);
  border: 1px solid rgba(10, 70, 62, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.2;
}

@media (max-width: 640px) {
  ul.icon_list li.store-credit-balance {
    font-size: 11px;
    padding: 2px 8px;
  }

  .spinwinicon {
    width: 24px;
    height: 24px;
  }

  .spinwinicon svg {
    width: 22px;
    height: 22px;
  }

  .spinwin-count {
    top: -5px;
    right: -7px;
    min-width: 15px;
    height: 15px;
    font-size: 10px;
    line-height: 15px;
  }
}

/* ==========================================================================
   My Account: gold nav item + dashboard promo card
   ========================================================================== */

.woocommerce-MyAccount-navigation-link--spin-wheel a {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(164, 248, 242, 0.12));
  border: 1px solid rgba(201, 153, 46, 0.55);
  border-radius: 9px;
  padding: 3px 12px;
  font-weight: 700;
  color: #7a5c14;
}

.woocommerce-MyAccount-navigation-link--spin-wheel a:hover {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.32), rgba(164, 248, 242, 0.18));
}

.pepgg-swdash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.5);
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(255, 209, 102, 0.12), transparent 55%),
    linear-gradient(150deg, #073a32 0%, #052824 60%, #031a17 100%);
  color: #f2fbfa;
}

.pepgg-swdash-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 209, 102, 0.85);
  margin: 0 0 2px;
}

.pepgg-swdash-title {
  color: #ffffff !important;
  font-size: 22px;
  margin: 0 0 3px;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.35);
}

.pepgg-swdash-sub {
  font-size: 14px;
  color: rgba(242, 251, 250, 0.85);
  margin: 0;
}

.pepgg-swdash-cta {
  flex: none;
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe9a8 0%, #ffd166 55%, #d4a63d 100%);
  color: #4a3608 !important;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pepgg-swdash-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.45);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
  .pepgg-sw-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pepgg-sw-card {
    padding: 26px 14px 24px;
    border-radius: 14px;
  }

  .pepgg-sw-title {
    font-size: 32px;
  }

  .pepgg-sw-sub {
    font-size: 15px;
  }

  .pepgg-spin-button {
    padding: 14px 42px;
    font-size: 17px;
    width: min(320px, 100%);
  }

  .pepgg-sw-legend li {
    font-size: 12px;
    padding: 4px 10px;
  }

  .pepgg-sw-hud-chip {
    padding: 7px 12px;
  }

  .pepgg-sw-hud-value {
    font-size: 14px;
  }

  .pepgg-spin-banner {
    padding: 10px 44px 10px 16px;
  }

  .pepgg-spin-banner-link {
    font-size: 14px;
  }
}
