/* Inside The CYN Experience — round movable orbs */

.cyn-xp {
  --cyn-xp-cyan: #7fe7f2;
  --cyn-xp-teal: #5bbFBF;
  --cyn-xp-ink: #0e2a38;
  --cyn-xp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 4rem 0 4.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(127, 231, 242, 0.2);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cyn-xp {
    padding: 5.5rem 0 6rem;
    margin-top: 3rem;
  }
}

.cyn-xp__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(127, 231, 242, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(244, 162, 97, 0.06) 0%, transparent 50%);
}

.cyn-xp__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cyn-xp__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem 3rem;
  }

  .cyn-xp__copy {
    grid-column: 1 / span 5;
  }

  .cyn-xp__visual {
    grid-column: 6 / span 7;
  }
}

.cyn-xp__copy {
  max-width: 26rem;
}

.cyn-xp__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--cyn-xp-ink);
  margin: 0.75rem 0 0;
}

.cyn-xp__sub {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(14, 42, 56, 0.62);
  max-width: 22rem;
}

.cyn-xp__hint {
  margin: 0.75rem auto 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(14, 42, 56, 0.4);
  text-align: center;
}

/* —— Circular stage —— */
.cyn-xp__visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cyn-xp__stage {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.65) 0%, rgba(248, 252, 252, 0.35) 55%, transparent 72%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 252, 252, 0.25) 100%);
  border: 1px solid rgba(127, 231, 242, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 40px 100px -40px rgba(127, 231, 242, 0.4);
  overflow: visible;
  transform-style: preserve-3d;
  touch-action: none;
  user-select: none;
}

.cyn-xp__stage-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(127, 231, 242, 0.28);
  pointer-events: none;
  animation: cyn-xp-ring-spin 48s linear infinite;
}

@keyframes cyn-xp-ring-spin {
  to { transform: rotate(360deg); }
}

.cyn-xp__stage-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: conic-gradient(from 140deg at 50% 50%, rgba(127, 231, 242, 0.12), transparent 35%, rgba(142, 201, 196, 0.08), transparent 70%);
  animation: cyn-xp-glow-spin 28s linear infinite;
  pointer-events: none;
}

@keyframes cyn-xp-glow-spin {
  to { transform: rotate(360deg); }
}

.cyn-xp__lines {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  left: 12%;
  top: 12%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s var(--cyn-xp-ease) 0.4s;
}

.cyn-xp.is-visible .cyn-xp__lines {
  opacity: 0.85;
}

.cyn-xp__lines path {
  fill: none;
  stroke: url(#cynXpLineGrad);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
}

.cyn-xp__holo {
  position: absolute;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(127, 231, 242, 0.35) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
  animation: cyn-xp-holo 4s ease-in-out infinite;
}

@keyframes cyn-xp-holo {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  50% { transform: translate(-50%, -52%) scale(1.12); opacity: 0.95; }
}

/* —— Round movable orbs —— */
.cyn-xp__orb {
  position: absolute;
  left: var(--orb-x, 50%);
  top: var(--orb-y, 50%);
  width: var(--orb-size, 7.75rem);
  height: var(--orb-size, 7.75rem);
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.65rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.55);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 16px 40px -12px rgba(127, 231, 242, 0.5),
    0 8px 20px -8px rgba(14, 42, 56, 0.1);
  z-index: 3;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition:
    opacity 0.6s var(--cyn-xp-ease),
    left 0.05s linear,
    top 0.05s linear,
    box-shadow 0.35s ease;
  will-change: left, top, transform;
}

.cyn-xp.is-visible .cyn-xp__orb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cyn-xp.is-visible .cyn-xp__orb--checkin { transition-delay: 0.08s; }
.cyn-xp.is-visible .cyn-xp__orb--crew { transition-delay: 0.16s; }
.cyn-xp.is-visible .cyn-xp__orb--progress { transition-delay: 0.24s; }
.cyn-xp.is-visible .cyn-xp__orb--safe { transition-delay: 0.32s; }

.cyn-xp__orb.is-dragging {
  cursor: grabbing;
  z-index: 20;
  animation: none !important;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 28px 56px -16px rgba(127, 231, 242, 0.65);
}

.cyn-xp.is-visible .cyn-xp__orb:not(.is-dragging) {
  animation: cyn-xp-orb-float 5.5s ease-in-out infinite;
}

.cyn-xp__orb--checkin { --orb-x: 50%; --orb-y: 14%; animation-delay: 0s; }
.cyn-xp__orb--crew { --orb-x: 86%; --orb-y: 50%; animation-delay: 0.6s; }
.cyn-xp__orb--progress { --orb-x: 50%; --orb-y: 86%; animation-delay: 1.2s; }
.cyn-xp__orb--safe { --orb-x: 14%; --orb-y: 50%; --orb-size: 7.25rem; animation-delay: 1.8s; }

@keyframes cyn-xp-orb-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 8px)) scale(1.03); }
}

.cyn-xp__tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(14, 42, 56, 0.5);
  margin: 0;
  line-height: 1.2;
}

.cyn-xp__tag--teal {
  color: #2d8a94;
}

.cyn-xp__orb-label {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(14, 42, 56, 0.72);
  max-width: 5.5rem;
}

.cyn-xp__moods {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cyn-xp__mood {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: rgba(127, 231, 242, 0.15);
  border: 1px solid rgba(127, 231, 242, 0.25);
}

.cyn-xp__mood.is-on {
  background: linear-gradient(135deg, #7fe7f2, #5bbFBF);
  box-shadow: 0 0 10px rgba(127, 231, 242, 0.45);
}

.cyn-xp__avatars {
  display: flex;
  justify-content: center;
}

.cyn-xp__av {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -0.35rem;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
}

.cyn-xp__av:first-child { margin-left: 0; }
.cyn-xp__av--a { background: #5bbFBF; }
.cyn-xp__av--b { background: #f4a261; }
.cyn-xp__av--c { background: #8ec9c4; }

.cyn-xp__ring-progress {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: conic-gradient(#7fe7f2 0deg, #5bbFBF 200deg, rgba(14, 42, 56, 0.08) 200deg);
  display: grid;
  place-items: center;
  position: relative;
}

.cyn-xp__ring-progress::after {
  content: '';
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.cyn-xp__ring-progress span {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 800;
  color: #2d8a94;
  z-index: 1;
}

.cyn-xp__shield {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(127, 231, 242, 0.4), rgba(91, 191, 191, 0.25));
  border: 1px solid rgba(127, 231, 242, 0.45);
  color: #2d8a94;
}

.cyn-xp__shield svg {
  width: 1.1rem;
  height: 1.1rem;
}

.cyn-xp__pill {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(244, 162, 97, 0.14);
  color: #c47a3a;
  border: 1px solid rgba(244, 162, 97, 0.28);
  line-height: 1.2;
}

@media (max-width: 380px) {
  .cyn-xp__orb {
    --orb-size: 6.75rem;
  }
  .cyn-xp__orb--safe {
    --orb-size: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cyn-xp__orb {
    animation: none !important;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .cyn-xp__stage-glow,
  .cyn-xp__stage-ring {
    animation: none;
  }
}
