/* KSAR Wheel v115 — pas de tab sur panier */

html body:not(.et-fb) #ksar-wheel-tab {
  position: fixed;
  right: 0;
  top: 50%;
  bottom: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px 8px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #141414 0%, #2a2018 100%);
  color: #f0c020;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  overflow: visible;
  z-index: 2147482500;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1);
  transform-origin: right center;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

html body:not(.et-fb) #ksar-wheel-tab .ksar-wheel-tab__label {
  display: inline-block;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transform-origin: center center;
}

html body:not(.et-fb) #ksar-wheel-tab:hover,
html body:not(.et-fb) #ksar-wheel-tab:focus-visible,
html body:not(.et-fb) #ksar-wheel-tab.ksar-wheel-tab--hovered {
  background: linear-gradient(180deg, #f0c020 0%, #ad9568 100%);
  color: #141414;
  box-shadow: -2px 0 20px rgba(240, 192, 32, 0.65);
  outline: none;
}

@media (max-width: 980px) {
  html body:not(.et-fb) #ksar-wheel-tab {
    top: calc(162px + env(safe-area-inset-top, 0px));
    transform: translateY(0) scale(1);
  }
}

body.woocommerce-cart #ksar-wheel-tab,
body.ksar-gcr-panel-open #ksar-wheel-tab,
body.ksar-partner-popup-open #ksar-wheel-tab,
body.ksar-wheel-open #ksar-wheel-tab {
  display: none !important;
}

body.ksar-wheel-open {
  overflow: hidden;
}

.ksar-wheel-modal[hidden] {
  display: none !important;
}

.ksar-wheel-modal:not([hidden]) {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ksar-wheel-modal:not([hidden]) .ksar-wheel-modal__backdrop {
  animation: ksar-wheel-backdrop-in 0.5s ease forwards;
}

@keyframes ksar-wheel-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ksar-wheel-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 45%, rgba(240, 192, 32, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 90% 70% at 70% 60%, rgba(173, 149, 104, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.95) 100%);
  animation: ksar-wheel-backdrop-glow 6s ease-in-out infinite;
}

@keyframes ksar-wheel-backdrop-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.ksar-wheel-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1280px, 98vw);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  background: linear-gradient(
    100deg,
    #1a1410 0%,
    #141414 44%,
    #3a342c 47%,
    #d9cfc3 49%,
    #fff9f2 54%,
    #f5efe6 100%
  );
  border-radius: 24px;
  padding: 0;
  box-sizing: border-box;
  border: none;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(240, 192, 32, 0.2);
}

.ksar-wheel-modal__panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, #ad9568, #f0c020, #ad9568, #141414);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
  animation: ksar-wheel-border-shine 4s linear infinite;
}

@keyframes ksar-wheel-border-shine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

.ksar-wheel-modal__panel--enter {
  animation: ksar-wheel-modal-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes ksar-wheel-modal-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ksar-wheel-modal__panel--spinning .ksar-wheel-spinner-wrap {
  animation: ksar-wheel-glow 1.2s ease-in-out infinite;
}

@keyframes ksar-wheel-glow {
  0%, 100% {
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 0 rgba(240, 192, 32, 0));
  }
  50% {
    filter: drop-shadow(0 24px 48px rgba(240, 192, 32, 0.5)) drop-shadow(0 0 40px rgba(173, 149, 104, 0.55));
  }
}

.ksar-wheel-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  border: 0;
  background: rgba(20, 20, 20, 0.06);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #333;
  font-size: 26px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 180ms ease, color 180ms ease;
}

.ksar-wheel-modal__close:hover,
.ksar-wheel-modal__close:focus-visible {
  transform: scale(1.12) rotate(90deg);
  background: #141414;
  color: #f0c020;
  outline: none;
}

.ksar-wheel-modal__layout {
  display: flex;
  align-items: stretch;
  min-height: 560px;
}

.ksar-wheel-modal__wheel-zone {
  position: relative;
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(240, 192, 32, 0.18) 0%, transparent 52%),
    linear-gradient(145deg, #1a1410 0%, #141414 55%, #2a2018 100%);
}

.ksar-wheel-modal__wheel-zone-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  opacity: 0.42;
  background:
    radial-gradient(circle at 28% 32%, rgba(240, 192, 32, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 72% 68%, rgba(173, 149, 104, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(240, 192, 32, 0.1) 0%, transparent 58%),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(240, 192, 32, 0.07) 0deg 6deg,
      transparent 6deg 12deg,
      rgba(173, 149, 104, 0.05) 12deg 18deg,
      transparent 18deg 24deg
    );
  animation: ksar-wheel-zone-shimmer 14s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes ksar-wheel-zone-shimmer {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ksar-wheel-modal__wheel {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  perspective: 1000px;
}

.ksar-wheel-modal__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 44px 48px 48px;
  background: transparent;
}

.ksar-wheel-spinner-wrap {
  position: relative;
  width: 560px;
  height: 560px;
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
  transform-style: preserve-3d;
  animation: ksar-wheel-idle-float 3.2s ease-in-out infinite;
  --ksar-peg-tip-y: 13px;
  --ksar-pointer-pivot-top: 10px;
  --ksar-pointer-housing-top: 0px;
  --ksar-flipper-h: 18px;
}

@keyframes ksar-wheel-idle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ksar-wheel-spinner-wrap--landed,
.ksar-wheel-modal__panel--result .ksar-wheel-spinner-wrap {
  animation: none !important;
  transition: none !important;
  transform: translateY(0) !important;
}

.ksar-wheel-modal:not([hidden]) .ksar-wheel-spinner-wrap:not(.ksar-wheel-spinner-wrap--spinning):not(.ksar-wheel-spinner-wrap--landed) .ksar-wheel-spinner:not(.ksar-wheel-spinner--landed) {
  animation: none;
}

.ksar-wheel-spinner-wrap--landed .ksar-wheel-spinner,
.ksar-wheel-modal__panel--result .ksar-wheel-spinner,
.ksar-wheel-spinner--landed {
  animation: none !important;
  transition: none !important;
}

.ksar-wheel-spinner__pointer-mount--frozen,
.ksar-wheel-modal__panel--result .ksar-wheel-spinner__pointer-mount--frozen {
  animation: none !important;
  transition: none !important;
  transform: rotate(0deg) !important;
}

.ksar-wheel-spinner-wrap--landed .ksar-wheel-spinner__hub,
.ksar-wheel-modal__panel--result .ksar-wheel-spinner__hub {
  animation: none !important;
}

.ksar-wheel-modal__panel--result .ksar-wheel-spinner-wrap {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.ksar-wheel-spinner-wrap--spinning {
  animation: none;
}

.ksar-wheel-spinner-wrap--spinning .ksar-wheel-spinner {
  animation: none !important;
}

.ksar-wheel-spinner-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  z-index: 0;
  width: 160px;
  height: 26px;
  margin-left: -80px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a2a2a 0%, #141414 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: rotateX(72deg);
}

.ksar-wheel-spinner-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 175px;
  height: 24px;
  margin-left: -87.5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(173, 149, 104, 0.35) 0%, rgba(0, 0, 0, 0) 72%);
  z-index: -1;
}

.ksar-wheel-spinner__pointer-mount--frozen {
  animation: none !important;
  transition: none !important;
  transform: rotate(0deg) !important;
}

.ksar-wheel-notches__peg path {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.ksar-wheel-spinner__pointer-bracket {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 12;
  width: 40px;
  height: auto;
  margin-left: -20px;
  pointer-events: none;
  overflow: visible;
}

.ksar-wheel-spinner__pointer-bracket::before {
  content: "";
  position: absolute;
  top: var(--ksar-pointer-housing-top, 0px);
  left: 50%;
  width: 30px;
  height: 9px;
  margin-left: -15px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #2a2a2a 0%, #141414 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.ksar-wheel-spinner__pointer-mount {
  position: absolute;
  top: var(--ksar-pointer-pivot-top, 8px);
  left: 50%;
  width: 32px;
  height: auto;
  margin-left: -16px;
  transform-origin: 50% 4px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

.ksar-wheel-spinner__pointer-mount::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c020 0%, #ad9568 100%);
  box-shadow: 0 0 12px rgba(240, 192, 32, 0.9), 0 2px 4px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.ksar-wheel-spinner__pointer {
  position: relative;
  display: block;
  width: 22px;
  height: var(--ksar-flipper-h, 18px);
  margin: 4px auto 0;
  border: 0;
  background: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.ksar-wheel-spinner__pointer svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ksar-wheel-notches {
  z-index: 7;
}

.ksar-wheel-notches {
  pointer-events: none;
}

.ksar-wheel-spinner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  border: 0 !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
}

.ksar-wheel-spinner__disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #141414 !important;
  box-sizing: border-box;
  background: transparent;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.12);
}

.ksar-wheel-spinner--blur {
  filter: blur(0.5px) brightness(1.08) saturate(1.15);
}

.ksar-wheel-spinner__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #141414;
  box-shadow: 0 0 0 2px #141414, inset 0 2px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  animation: ksar-wheel-hub-pulse 2s ease-in-out infinite;
}

.ksar-wheel-spinner__logo {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  object-fit: contain;
  object-position: center center;
}

@keyframes ksar-wheel-hub-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #141414, inset 0 2px 8px rgba(0, 0, 0, 0.55); }
  50% { box-shadow: 0 0 0 2px #141414, inset 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.25); }
}

.ksar-wheel-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ksar-wheel-html-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}

.ksar-wheel-html-labels__item {
  position: absolute;
  display: block;
  box-sizing: border-box;
  max-width: none;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 20, 20, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  color: #141414;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  transform-origin: center center;
}

.ksar-wheel-html-labels__item--long {
  font-size: 9.5px;
  padding: 4px 6px;
}

.ksar-wheel-modal__entry-copy {
  animation: ksar-wheel-copy-in 0.5s ease forwards;
}

@keyframes ksar-wheel-copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ksar-wheel-modal__title {
  margin: 0 0 16px;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #141414;
  text-align: center;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  background: linear-gradient(135deg, #141414 0%, #ad9568 60%, #141414 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ksar-wheel-modal__body {
  margin: 0 0 24px;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: justify;
  text-align-last: center;
  hyphens: none;
}

.ksar-wheel-stage-spinning {
  padding: 20px 0;
  text-align: center;
  animation: ksar-wheel-spinning-pulse 1s ease-in-out infinite;
}

.ksar-wheel-stage-spinning[hidden] {
  display: none !important;
}

@keyframes ksar-wheel-spinning-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.ksar-wheel-stage-spinning__label {
  margin: 0 0 10px;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #141414;
}

.ksar-wheel-stage-spinning__hint {
  margin: 0;
  font-size: 1rem;
  color: #ad9568;
  font-weight: 600;
}

#ksar-wheel-form-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.ksar-wheel-form {
  width: 100%;
}

.ksar-wheel-form__field {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 0 16px;
  min-height: 54px;
  border: 1.5px solid rgba(173, 149, 104, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 14px rgba(20, 20, 20, 0.07);
  cursor: text;
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.ksar-wheel-form__field:hover {
  border-color: rgba(173, 149, 104, 0.62);
  background: rgba(255, 255, 255, 0.92);
}

.ksar-wheel-form__field:focus-within {
  border-color: #ad9568;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(173, 149, 104, 0.2),
    0 6px 18px rgba(173, 149, 104, 0.14);
}

.ksar-wheel-form__field-icon {
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #ad9568;
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.ksar-wheel-form__field-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ksar-wheel-form__field:focus-within .ksar-wheel-form__field-icon {
  opacity: 0.9;
}

.ksar-wheel-form__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #141414;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.ksar-wheel-form__input::placeholder {
  color: rgba(20, 20, 20, 0.42);
  font-weight: 500;
}

.ksar-wheel-form__submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #141414 0%, #2a2018 40%, #ad9568 100%);
  background-color: #141414;
  background-size: 200% 200%;
  color: #fff;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  animation: ksar-wheel-cta-shine 3s ease infinite;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@keyframes ksar-wheel-cta-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ksar-wheel-form__submit:hover,
.ksar-wheel-form__submit:focus-visible {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 32px rgba(173, 149, 104, 0.45);
  outline: none;
}

.ksar-wheel-form__submit:active:not(:disabled) {
  transform: scale(0.98);
}

.ksar-wheel-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
  animation: none;
}

.ksar-wheel-modal__dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 180ms ease;
}

.ksar-wheel-modal__dismiss:hover,
.ksar-wheel-modal__dismiss:focus-visible {
  color: #ad9568;
  outline: none;
}

.ksar-wheel-result-wrap {
  margin-top: 8px;
}

.ksar-wheel-result-wrap[hidden] {
  display: none !important;
}

.ksar-wheel-result-wrap:not([hidden]) {
  display: block;
}

.ksar-wheel-result__card {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  padding: 8px 0 0;
}

.ksar-wheel-result-wrap--show .ksar-wheel-result__card {
  animation: ksar-wheel-result-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ksar-wheel-result-pop {
  0% { opacity: 0; transform: translateY(18px) scale(0.9); }
  70% { opacity: 1; transform: translateY(-6px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ksar-wheel-result__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #141414, #ad9568);
  color: #f0c020;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: ksar-wheel-badge-pop 0.5s ease 0.2s both;
}

@keyframes ksar-wheel-badge-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.ksar-wheel-result__title {
  margin: 0 0 12px;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #141414;
}

.ksar-wheel-result__message {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #444;
}

.ksar-wheel-result__code-wrap {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
  border: 2px dashed #ad9568;
  animation: ksar-wheel-code-glow 2s ease infinite;
}

.ksar-wheel-result__code-text {
  display: block;
  width: 100%;
  margin: 0;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #666;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
  transition: color 0.2s ease;
}

.ksar-wheel-result__code-wrap:hover .ksar-wheel-result__code-text {
  color: #000;
}

.ksar-wheel-result__copy-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid #c9b896;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  color: #ad9568;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ksar-wheel-result__copy-btn:hover,
.ksar-wheel-result__copy-btn:focus-visible {
  background: #141414;
  border-color: #141414;
  color: #f0c020;
  outline: none;
}

.ksar-wheel-result__copy-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.ksar-wheel-result__copy-btn--done {
  background: #ad9568;
  border-color: #ad9568;
  color: #141414;
}

.ksar-wheel-result__copy-toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: #141414;
  color: #f0c020;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ksar-wheel-result__copy-toast::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #141414;
  transform: rotate(45deg);
}

.ksar-wheel-result__copy-toast--show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ksar-wheel-code-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(240, 192, 32, 0); }
  50% { box-shadow: 0 0 20px rgba(240, 192, 32, 0.35); }
}

.ksar-wheel-result__footer {
  margin: 14px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #888;
}

.ksar-wheel-result__cta {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #141414 0%, #ad9568 100%);
  color: #fff;
  font-family: "Chakra Petch", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ksar-wheel-result__cta:hover,
.ksar-wheel-result__cta:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(173, 149, 104, 0.4);
  outline: none;
}

.ksar-wheel-confetti {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  pointer-events: none;
  overflow: hidden;
}

.ksar-wheel-confetti__piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: ksar-wheel-confetti-fall;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes ksar-wheel-confetti-fall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg) scale(0.5); opacity: 0; }
}

@media (max-width: 1100px) {
  .ksar-wheel-modal:not([hidden]) {
    padding: 12px;
    align-items: center;
  }

  .ksar-wheel-modal__panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(
      180deg,
      #141414 0%,
      #1a1410 38%,
      #d9cfc3 40%,
      #fff9f2 46%,
      #f5efe6 100%
    );
  }

  .ksar-wheel-modal__panel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .ksar-wheel-modal__panel--result {
    overflow: hidden;
  }

  .ksar-wheel-modal__panel--result .ksar-wheel-modal__layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .ksar-wheel-modal__panel--result .ksar-wheel-modal__wheel-zone {
    flex: 0 0 auto;
    padding: 8px 16px 0;
    overflow: hidden;
  }

  .ksar-wheel-modal__panel--result .ksar-wheel-modal__wheel {
    max-width: 100%;
    overflow: hidden;
  }

  .ksar-wheel-modal__panel--result .ksar-wheel-spinner-wrap {
    width: min(200px, calc(100vw - 88px));
    height: min(200px, calc(100vw - 88px));
    max-width: 100%;
    overflow: hidden;
    filter: none;
  }

  .ksar-wheel-modal__panel--result .ksar-wheel-spinner-wrap::before,
  .ksar-wheel-modal__panel--result .ksar-wheel-spinner-wrap::after {
    display: none;
  }

  .ksar-wheel-modal__panel--result .ksar-wheel-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ksar-wheel-modal__panel--result .ksar-wheel-modal__content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .ksar-wheel-modal__layout {
    flex-direction: column;
    min-height: 0;
  }

  .ksar-wheel-modal__wheel-zone {
    flex: 0 0 auto;
    padding: 18px 14px 22px;
  }

  .ksar-wheel-modal__content {
    flex: 0 0 auto;
    padding: 22px 18px 28px;
  }

  .ksar-wheel-spinner-wrap {
    width: min(420px, 94vw);
    height: min(420px, 94vw);
    max-width: 100%;
  }

  .ksar-wheel-html-labels__item {
    font-size: 10px;
    padding: 4px 7px;
    line-height: 1.1;
  }

  .ksar-wheel-modal__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }

  .ksar-wheel-modal__body {
    font-size: 0.95rem;
  }

  .ksar-wheel-spinner-wrap {
    background: #141414;
    border-radius: 50%;
  }

  .ksar-wheel-spinner {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    background: #141414;
    border-radius: 50%;
  }

  .ksar-wheel-spinner__disc {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: #141414 !important;
  }

  .ksar-wheel-svg > path {
    stroke: none !important;
    stroke-width: 0 !important;
  }

  .ksar-wheel-spinner {
    border: 0 !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 480px) {
  .ksar-wheel-modal:not([hidden]) {
    padding: 10px;
  }

  .ksar-wheel-modal__panel {
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .ksar-wheel-spinner-wrap {
    width: min(360px, 92vw);
    height: min(360px, 92vw);
  }

  .ksar-wheel-modal__wheel-zone {
    padding: 14px 10px 18px;
  }

  .ksar-wheel-modal__content {
    padding: 18px 14px 24px;
  }

  .ksar-wheel-form__field {
    min-height: 50px;
    padding: 0 14px;
  }

  .ksar-wheel-form__submit {
    min-height: 50px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ksar-wheel-modal:not([hidden]) .ksar-wheel-modal__backdrop,
  .ksar-wheel-modal__panel--enter,
  .ksar-wheel-modal__panel::before,
  .ksar-wheel-modal__entry-copy,
  .ksar-wheel-stage-spinning,
  .ksar-wheel-result-wrap--show .ksar-wheel-result__card,
  .ksar-wheel-result__badge,
  .ksar-wheel-result__code-wrap,
  .ksar-wheel-result__code-text,
  .ksar-wheel-spinner-wrap:not(.ksar-wheel-spinner-wrap--spinning):not(.ksar-wheel-spinner-wrap--landed) .ksar-wheel-spinner:not(.ksar-wheel-spinner--landed),
  .ksar-wheel-spinner-wrap--landed,
  .ksar-wheel-spinner-wrap--landed .ksar-wheel-spinner,
  .ksar-wheel-spinner-wrap--landed .ksar-wheel-spinner__pointer-mount,
  .ksar-wheel-spinner__pointer-mount--frozen,
  .ksar-wheel-modal__panel--result .ksar-wheel-spinner-wrap,
  .ksar-wheel-modal__panel--result .ksar-wheel-spinner,
  .ksar-wheel-modal__panel--result .ksar-wheel-spinner__pointer-mount,
  .ksar-wheel-modal__panel--result .ksar-wheel-spinner__hub,
  .ksar-wheel-spinner-wrap,
  .ksar-wheel-spinner__hub,
  .ksar-wheel-form__submit,
  .ksar-wheel-spinner-wrap--spinning .ksar-wheel-spinner__pointer-mount,
  .ksar-wheel-modal__panel--spinning .ksar-wheel-spinner-wrap,
  .ksar-wheel-confetti__piece,
  .ksar-wheel-modal__wheel-zone-bg {
    animation: none !important;
    transition: none !important;
  }

  .ksar-wheel-result-wrap--show .ksar-wheel-result__card {
    opacity: 1;
    transform: none;
  }
}
