/* Palazzo Sans Carki — VIP casino wheel popup */
.palazzo-sc-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  overscroll-behavior: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.palazzo-sc-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Fullscreen casino floor backdrop */
.palazzo-sc-modal__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #080604;
}

.palazzo-sc-modal__backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  filter: saturate(0.75) brightness(0.62) sepia(0.28) hue-rotate(-12deg);
}

.palazzo-sc-modal__backdrop-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(190, 154, 117, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 15%, rgba(212, 188, 130, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 6, 4, 0.62) 0%, rgba(20, 16, 12, 0.78) 45%, rgba(8, 6, 4, 0.88) 100%);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.palazzo-sc-modal__backdrop-floor {
  display: none;
}

.palazzo-sc-modal__backdrop-spot {
  position: absolute;
  top: -10%;
  width: 55%;
  height: 70%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
  animation: palazzo-sc-spot-pulse 4s ease-in-out infinite;
}

.palazzo-sc-modal__backdrop-spot--l {
  left: -5%;
  background: radial-gradient(ellipse, rgba(212, 188, 130, 0.42) 0%, transparent 68%);
}

.palazzo-sc-modal__backdrop-spot--r {
  right: -5%;
  background: radial-gradient(ellipse, rgba(190, 154, 117, 0.35) 0%, transparent 68%);
  animation-delay: 2s;
}

@keyframes palazzo-sc-spot-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.7; }
}

/* Panel — casino VIP booth */
.palazzo-sc-modal__panel {
  position: relative;
  width: min(100%, 500px);
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border-radius: 26px;
  border: 2px solid transparent;
  background:
    linear-gradient(165deg, rgba(212, 188, 130, 0.12) 0%, transparent 32%),
    linear-gradient(180deg, #1a1510 0%, #0c0a08 38%, #14100c 100%);
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px rgba(212, 188, 130, 0.32),
    0 0 0 4px rgba(190, 154, 117, 0.18),
    0 0 60px rgba(212, 188, 130, 0.12),
    0 36px 100px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(240, 235, 227, 0.1);
  padding: 26px 16px 22px;
}

.palazzo-sc-modal__casino-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.palazzo-sc-modal__felt {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.4) 0%, rgba(26, 21, 16, 0.22) 100%),
    url("../img/sans-carki/sans_carki_felt_texture.png") center / cover no-repeat;
  opacity: 0.72;
  mix-blend-mode: soft-light;
}

.palazzo-sc-modal__chips-img {
  position: absolute;
  width: min(38vw, 168px);
  height: auto;
  object-fit: contain;
  opacity: 0.42;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.palazzo-sc-modal__chips-img--l {
  bottom: -6%;
  left: -10%;
  transform: rotate(-8deg) scaleX(-1);
}

.palazzo-sc-modal__chips-img--r {
  bottom: -4%;
  right: -12%;
  transform: rotate(6deg);
}

.palazzo-sc-modal__sparkles {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 247, 214, 0.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 14%, rgba(255, 247, 214, 0.75) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 78% 85%, rgba(255, 247, 214, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 80%, rgba(255, 247, 214, 0.7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 8%, rgba(255, 247, 214, 0.5) 0 1px, transparent 2px);
  animation: palazzo-sc-sparkle 2.5s ease-in-out infinite alternate;
}

@keyframes palazzo-sc-sparkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.palazzo-sc-modal__glow {
  position: absolute;
  top: -20px;
  left: 50%;
  width: min(360px, 92%);
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(212, 188, 130, 0.28) 0%, transparent 72%);
  pointer-events: none;
  animation: palazzo-sc-glow-pulse 3s ease-in-out infinite;
}

@keyframes palazzo-sc-glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.palazzo-sc-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 188, 130, 0.55);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(26, 21, 16, 0.95), rgba(8, 6, 4, 0.95));
  color: #d4bc82;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(212, 188, 130, 0.18);
}

.palazzo-sc-modal__head {
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.palazzo-sc-modal__crown {
  display: block;
  font-size: 22px;
  color: #d4bc82;
  text-shadow: 0 0 16px rgba(212, 188, 130, 0.65);
  margin-bottom: 2px;
  animation: palazzo-sc-crown 2s ease-in-out infinite alternate;
}

@keyframes palazzo-sc-crown {
  from { transform: translateY(0); }
  to { transform: translateY(-2px); }
}

.palazzo-sc-modal__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #be9a75;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(190, 154, 117, 0.35);
}

.palazzo-sc-modal__title {
  margin: 0;
  font-family: "Poppins", Roboto, Lato, Arial, sans-serif;
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f0ebe3 0%, #d4bc82 50%, #be9a75 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.palazzo-sc-modal__sub {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(240, 235, 227, 0.82);
}

/* Wheel */
.palazzo-sc-wheel-stage {
  position: relative;
  width: min(100%, 380px);
  max-width: 100%;
  margin: 0 auto 16px;
  aspect-ratio: 1;
  overflow: hidden;
  contain: layout paint;
  box-sizing: border-box;
  z-index: 2;
}

.palazzo-sc-wheel-lights {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background: repeating-conic-gradient(
    from 0deg,
    #fff7d6 0deg 5deg,
    rgba(245, 200, 66, 0.12) 5deg 10deg
  );
  mask: radial-gradient(circle, transparent 58%, #000 60%, #000 76%, transparent 78%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 76%, transparent 78%);
  transform-origin: center center;
  animation: palazzo-sc-lights-spin 10s linear infinite;
  opacity: 0.95;
  will-change: transform;
}

.palazzo-sc-wheel-bulbs {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: repeating-conic-gradient(
    from 4deg,
    rgba(255, 247, 214, 0.95) 0deg 3deg,
    transparent 3deg 12deg
  );
  mask: radial-gradient(circle, transparent 70%, #000 71%, #000 78%, transparent 79%);
  -webkit-mask: radial-gradient(circle, transparent 70%, #000 71%, #000 78%, transparent 79%);
  animation: palazzo-sc-bulbs-blink 1.2s steps(2, end) infinite;
}

@keyframes palazzo-sc-bulbs-blink {
  50% { opacity: 0.55; }
}

@keyframes palazzo-sc-lights-spin {
  to { transform: rotate(360deg); }
}

.palazzo-sc-wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 8;
  width: 34px;
  height: 44px;
  margin-left: -17px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
}

.palazzo-sc-wheel-pointer__shaft {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff7d6 0%, #f5c842 45%, #b8860b 100%);
  clip-path: polygon(50% 100%, 8% 0, 92% 0);
}

.palazzo-sc-wheel-pointer__gem {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff 0%, #fde68a 35%, #f5c842 100%);
  box-shadow: 0 0 12px rgba(255, 247, 214, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.palazzo-sc-wheel-outer {
  position: absolute;
  inset: 16px;
  z-index: 4;
  overflow: hidden;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(212, 188, 130, 0.22),
    0 20px 48px rgba(0, 0, 0, 0.55);
}

.palazzo-sc-wheel-rim {
  position: absolute;
  inset: -3px;
  z-index: 1;
  border-radius: 50%;
  border: 5px solid transparent;
  background: transparent;
  box-shadow:
    inset 0 0 0 5px #d4bc82,
    inset 0 0 0 7px #14100c,
    inset 0 0 0 9px rgba(212, 188, 130, 0.42),
    0 0 24px rgba(212, 188, 130, 0.18);
  pointer-events: none;
}

.palazzo-sc-wheel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(0deg);
  transform-origin: center center;
  transition: transform 0.1s linear;
  backface-visibility: hidden;
}

.palazzo-sc-wheel.is-spinning {
  transition: transform 5.2s cubic-bezier(0.12, 0.82, 0.18, 1);
}

.palazzo-sc-wheel__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.palazzo-sc-wheel__value {
  font-family: "Poppins", Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.02em;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.4px;
  paint-order: stroke fill;
}

.palazzo-sc-wheel__type {
  font-family: "Poppins", Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.14em;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 0.3px;
  paint-order: stroke fill;
}

.palazzo-sc-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 28%;
  height: 28%;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #f0ebe3 0%, #d4bc82 42%, #be9a75 100%);
  color: #14100c;
  font-family: "Poppins", Roboto, Arial, sans-serif;
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow:
    0 0 0 4px #14100c,
    0 0 0 7px rgba(212, 188, 130, 0.52),
    0 0 24px rgba(212, 188, 130, 0.38),
    0 10px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.palazzo-sc-wheel-hub__shine {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(4px);
  pointer-events: none;
}

.palazzo-sc-wheel-hub__ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px dashed rgba(42, 18, 8, 0.3);
  pointer-events: none;
}

.palazzo-sc-wheel-hub:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.palazzo-sc-wheel-hub:not(:disabled):hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 4px #14100c,
    0 0 0 7px rgba(240, 235, 227, 0.65),
    0 0 32px rgba(212, 188, 130, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.55);
}

.palazzo-sc-wheel-hub__label {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Result */
.palazzo-sc-result {
  text-align: center;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid rgba(212, 188, 130, 0.42);
  background: linear-gradient(135deg, rgba(212, 188, 130, 0.16), rgba(190, 154, 117, 0.1));
  box-shadow: 0 0 24px rgba(212, 188, 130, 0.12);
  position: relative;
  z-index: 2;
}

.palazzo-sc-result__icon {
  font-size: 28px;
  color: #d4bc82;
  margin-bottom: 4px;
  text-shadow: 0 0 16px rgba(212, 188, 130, 0.65);
  animation: palazzo-sc-crown 1.5s ease-in-out infinite alternate;
}

.palazzo-sc-result.is-win strong {
  display: block;
  font-family: "Poppins", Roboto, Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #f0ebe3;
  margin-bottom: 4px;
}

.palazzo-sc-result.is-win span {
  font-size: 14px;
  font-weight: 700;
  color: #d4bc82;
}

/* Footer */
.palazzo-sc-modal__footer {
  text-align: center;
  position: relative;
  z-index: 2;
}

.palazzo-sc-modal__hint {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(240, 235, 227, 0.82);
}

.palazzo-sc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 100%;
}

.palazzo-sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 26px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 2px solid rgba(212, 188, 130, 0.45);
  font-family: "Poppins", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.palazzo-sc-btn--primary {
  background: linear-gradient(140deg, #f0ebe3, #d4bc82 50%, #be9a75);
  color: #14100c;
  box-shadow: 0 8px 24px rgba(212, 188, 130, 0.28);
}

.palazzo-sc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 188, 130, 0.38);
}

html.palazzo-sc-open,
body.palazzo-sc-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

html.palazzo-sc-open #solo-support-chat-root,
body.palazzo-sc-open #solo-support-chat-root {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.palazzo-sc-open .liveSupportButton,
body.palazzo-sc-open .live-chat-adviser-bc {
  display: none !important;
}

body:has([data-modal-id="modal-sign-in"].modal-open) .palazzo-sc-modal,
body:has([data-modal-id="modal-register"].modal-open) .palazzo-sc-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.palazzo-sc-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

@media (min-width: 768px) {
  .palazzo-sc-modal__panel {
    padding: 30px 24px 24px;
  }

  .palazzo-sc-wheel-stage {
    width: min(100%, 420px);
  }

  .palazzo-sc-wheel__value {
    font-size: 30px;
  }

  .palazzo-sc-wheel__type {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .palazzo-sc-wheel__value {
    font-size: 20px;
  }

  .palazzo-sc-wheel__type {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .palazzo-sc-wheel-stage {
    width: min(100%, 320px);
  }
}

/* ===== Premium image wheel banners (BlockBahis-style) ===== */
.palazzo-wheel-top-banner.pc-only .tc-wheel-banner,
.palazzo-wheel-top-banner.mobile-only .tc-wheel-banner {
  display: block;
  padding: 8px 16px 12px;
  max-width: 1400px;
  margin: 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.palazzo-wheel-top-banner .tc-wheel-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.palazzo-wheel-top-banner.mobile-only .tc-wheel-banner {
  padding: 6px 10px 10px;
  max-width: 100%;
}

.palazzo-wheel-top-banner.mobile-only .tc-wheel-banner__img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #080604;
  width: 100%;
  height: auto;
}

.palazzo-wheel-top-banner .tc-wheel-banner .palazzo-wheel-top-banner__inner,
.palazzo-wheel-top-banner .tc-wheel-banner .palazzo-wheel-top-banner__copy,
.palazzo-wheel-top-banner .tc-wheel-banner .palazzo-wheel-top-banner__wheel {
  display: none !important;
}

@media (max-width: 991px) {
  .palazzo-wheel-top-banner.pc-only {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .palazzo-wheel-top-banner.mobile-only {
    display: none !important;
  }
}
