/* La roue des gages in a bubble on the homepage (template/components/wheel-bubble.php): the night card of the wheel
   (static/css/wheel-teaser.css) made small, in a corner, sliding up gently; nothing moves on the page. */

.lc-wheelBubble {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  width: min(372px, calc(100vw - 24px));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.lc-wheelBubble.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lc-wheelBubble .lc-wheelBubble__link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 46px 16px 16px;
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(247, 37, 133, .34), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(139, 44, 246, .36), transparent 70%),
    linear-gradient(160deg, #2a0f33 0%, #3b163f 52%, #4a1d6e 100%);
  box-shadow: 0 22px 54px rgba(42, 15, 51, .42), 0 0 0 1px rgba(255, 255, 255, .16);
}

.lc-wheelBubble .lc-wheelBubble__link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .7;
  background:
    radial-gradient(1.4px 1.4px at 12% 20%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(1.2px 1.2px at 56% 14%, rgba(255, 217, 138, .7), transparent 70%),
    radial-gradient(1.2px 1.2px at 88% 78%, rgba(255, 255, 255, .55), transparent 70%);
}

.lc-wheelBubble__wheel {
  position: relative;
  flex: none;
  width: 88px;
  height: 66px;
}

.lc-wheelBubble__disc {
  position: absolute;
  left: 0;
  top: 4px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  transform: scaleY(.58);
  transform-origin: 50% 0;
  background: #2a0b31;
  box-shadow: 0 6px 0 #5a1d6e, 0 14px 18px rgba(10, 2, 18, .55);
}

.lc-wheelBubble__disc span {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  background:
    radial-gradient(circle, #fff 0 17%, rgba(247, 37, 133, .55) 17.5% 19%, transparent 19.5%),
    conic-gradient(#e0156f 0 54deg, #ffb070 54deg 84deg, #6c4dff 84deg 138deg, #b5179e 138deg 192deg, #ffd98a 192deg 222deg,
      #f72585 222deg 276deg, #9b3dff 276deg 330deg, #ffb070 330deg 360deg);
  animation: lc-wheelBubble-spin 18s linear infinite;
}

.lc-wheelBubble__wheel img {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 24px;
  height: 24px;
  translate: -50% 0;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #fff, 0 5px 12px rgba(10, 2, 18, .5), 0 0 14px rgba(247, 37, 133, .5);
}

@keyframes lc-wheelBubble-spin {
  to { transform: rotate(360deg); }
}

.lc-wheelBubble__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.lc-wheelBubble__kicker {
  color: #ffd98a;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lc-wheelBubble strong {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.lc-wheelBubble__text {
  color: rgba(255, 255, 255, .84);
  font-size: .9rem;
  line-height: 1.4;
}

.lc-wheelBubble__cta {
  display: inline-flex;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0156f, #f0503a);
  color: #fff;
  font-size: .9rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(240, 40, 100, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.lc-wheelBubble .lc-wheelBubble__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lc-wheelBubble .lc-wheelBubble__close:hover {
  background: rgba(255, 255, 255, .2);
}

.lc-wheelBubble :is(a, button):focus-visible {
  outline: 3px solid rgba(255, 185, 56, .9);
  outline-offset: 3px;
}

/* Phones: across the bottom, above the home bar, without the sentence. */
@media (max-width: 560px) {
  .lc-wheelBubble {
    right: 12px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
  }

  .lc-wheelBubble__text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-wheelBubble {
    transition: none;
  }

  .lc-wheelBubble__disc span {
    animation: none;
  }
}
