
/* Spinner widget styles */

.spin-section {
  margin-top: 2rem;
}

.spin-widget {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 820px) {
  .spin-widget {
    flex-direction: row;
    align-items: stretch;
  }
}

.spin-rules {
  flex: 1 1 0;
}

.spin-rules .steps {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0.5rem;
}

.spin-rules .steps li + li {
  margin-top: 0.35rem;
}

.spin-game-panel {
  flex: 1.2 1 0;
}

.spin-widget-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.spin-widget-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

/* Wheel + pointer */

.spinner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.spinner-inner {
  position: relative;
  align-self: center;
  width: 260px;
  height: 260px;
}

@media (min-width: 480px) {
  .spinner-inner {
    width: 320px;
    height: 320px;
  }
}

.spinner-inner canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

/* Pointer */
.pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid #e7c477; /* gold/beige */
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
  z-index: 5;
}

.spin-button {
  margin-top: 0.85rem;
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #e0c26b, #f4e3a0);
  color: #1c1c18;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.8);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.15s ease;
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
}

.spin-button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.9);
}

/* Legend */

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.9rem;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.6);
}

/* Colour mapping for prizes */
.legend-zero   { background: #1f2933; }   /* £0 */
.legend-one    { background: #256f5b; }   /* £1 */
.legend-two    { background: #3a8f70; }   /* £2 */
.legend-three  { background: #4fb58b; }   /* £3 */
.legend-five   { background: #8fd27b; }   /* £5 */
.legend-ten    { background: #f0c14b; }   /* £10 */

/* Popup */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-overlay.hidden {
  display: none;
}

.popup {
  width: min(420px, 92vw);
  background: radial-gradient(circle at top left, #111a14, #050806 70%);
  border-radius: 20px;
  padding: 1.25rem 1.1rem 1.15rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95);
  position: relative;
  color: #fdfdfd;
}

.close-x {
  position: absolute;
  top: 0.3rem;
  right: 0.55rem;
  border: none;
  background: none;
  color: #fdfdfd;
  font-size: 1.2rem;
  cursor: pointer;
}

.popup-amount {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.25rem;
}

.popup-message {
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.92;
  margin-bottom: 0.85rem;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apply-button,
.close-button {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.apply-button {
  background: linear-gradient(135deg, #e0c26b, #f4e3a0);
  color: #1a1914;
}

.close-button {
  background: transparent;
  color: #fdfdfd;
  border: 1px solid rgba(244, 227, 160, 0.55);
}

/* Confetti */

.confetti-container {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 998;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 16px;
  border-radius: 1px;
  opacity: 0;
  animation: confetti-fall 1800ms ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(540deg);
    opacity: 0;
  }
}


/* Phone login modal */

.phone-login-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.phone-login-modal {
  background: #050608;
  padding: 1.5rem;
  max-width: 320px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.phone-login-modal h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.phone-login-modal p {
  margin: 0.25rem 0 0.75rem 0;
  font-size: 0.9rem;
}

.phone-login-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  border: 1px solid #4b5563;
  background: #020304;
  color: #f9fafb;
}

.phone-login-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.phone-login-button {
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.phone-login-button--cancel {
  background: #1f2933;
  color: #e5e7eb;
}

.phone-login-button--confirm {
  background: #b6f2c3;
  color: #111827;
  font-weight: 600;
}

.phone-login-note {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Pac-Van teaser card */

.offers-card--pacvan {
  margin-top: 2rem;
}

.pacvan-teaser {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pacvan-teaser__image-wrapper {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.pacvan-teaser__image {
  display: block;
  width: 100%;
  height: auto;
}

.pacvan-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pacvan-teaser__button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #111827;
}

.pacvan-teaser__note {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Pac-Van modal embed */

body.no-scroll {
  overflow: hidden;
}

.pv-embed-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.pv-embed-backdrop.is-open {
  display: flex;
}

.pv-embed-modal {
  background: #020617;
  border-radius: 18px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.pv-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.pv-embed-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.4rem;
  cursor: pointer;
}

.pv-embed-body {
  position: relative;
  padding: 0;
}

.pv-embed-iframe {
  width: 100%;
  height: min(80vh, 640px);
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .pv-embed-modal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .pv-embed-iframe {
    height: calc(100vh - 44px);
  }
}

/* V14 Hero Badge Upgrade */
.hero img, .hero-logo, .logo-hero {
    max-width:130px !important;
    width:130px !important;
    margin-top:10px !important;
    margin-bottom:8px !important;
}

.hero {
    padding-top:10px !important;
    padding-bottom:10px !important;
}


/* V15 Hero Badge Full-Bleed */
.hero img, .hero-logo, .logo-hero {
  width: 170px !important;
  max-width: 170px !important;
  height: auto !important;
  margin-top: 4px !important;
  margin-bottom: 2px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* If a wrapper is adding a circular plate/ring, neutralise it */
.hero .logo-wrap, .hero .logo-circle, .hero .badge, .hero .badge-ring {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}



/* V15 Full-bleed Hero Badge */
.hero img, .hero-logo, .logo-hero {
  width: 170px !important;
  max-width: 170px !important;
  height: auto !important;
  margin-top: 6px !important;
  margin-bottom: 2px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.38) !important;
}
.hero {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

