:root {
  --shared-bg-1: #07152c;
  --shared-bg-2: #0b2143;
  --shared-bg-3: #123267;
}

body.sheetgenie-shared-bg {
  background:
    radial-gradient(circle at 12% 18%, rgba(81, 164, 255, 0.34), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(57, 215, 194, 0.2), transparent 28%),
    linear-gradient(140deg, var(--shared-bg-1) 0%, var(--shared-bg-2) 46%, var(--shared-bg-3) 100%) !important;
  background-attachment: fixed !important;
  position: relative;
  overflow-x: hidden;
}

body.sheetgenie-shared-bg .background-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

body.sheetgenie-shared-bg .background-scene .blob,
body.sheetgenie-shared-bg .background-scene .curve,
body.sheetgenie-shared-bg .background-scene .geo {
  position: absolute;
  pointer-events: none;
}

body.sheetgenie-shared-bg .background-scene .blob {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

body.sheetgenie-shared-bg .background-scene .blob-a {
  width: 260px;
  height: 260px;
  background: #2f7cf7;
  left: 8%;
  top: 6%;
}

body.sheetgenie-shared-bg .background-scene .blob-b {
  width: 320px;
  height: 320px;
  background: #31cbb7;
  right: 10%;
  bottom: 6%;
  animation: sharedBlobDrift 14s ease-in-out infinite;
}

body.sheetgenie-shared-bg .background-scene .blob-c {
  width: 190px;
  height: 190px;
  background: #79b6ff;
  left: 52%;
  top: 50%;
  animation: sharedBlobDrift 16s ease-in-out infinite reverse;
}

body.sheetgenie-shared-bg .background-scene .curve {
  border-radius: 999px;
  border: 1px solid rgba(143, 193, 255, 0.16);
}

body.sheetgenie-shared-bg .background-scene .curve-a {
  width: 720px;
  height: 720px;
  left: -320px;
  top: 120px;
  transform: rotate(-20deg);
}

body.sheetgenie-shared-bg .background-scene .curve-b {
  width: 900px;
  height: 540px;
  right: -420px;
  top: 240px;
  transform: rotate(8deg);
}

body.sheetgenie-shared-bg .background-scene .geo {
  opacity: 0.36;
}

body.sheetgenie-shared-bg .background-scene .geo-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(157, 208, 255, 0.22);
}

body.sheetgenie-shared-bg .background-scene .geo-ring-a {
  left: 18%;
  top: 64%;
}

body.sheetgenie-shared-bg .background-scene .geo-ring-b {
  right: 20%;
  top: 18%;
}

body.sheetgenie-shared-bg .background-scene .geo-square {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(160, 214, 255, 0.24);
  transform: rotate(18deg);
}

body.sheetgenie-shared-bg .background-scene .geo-square-a {
  left: 38%;
  top: 18%;
}

body.sheetgenie-shared-bg .background-scene .geo-square-b {
  right: 34%;
  bottom: 22%;
}

body.sheetgenie-shared-bg .background-scene .geo-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(168, 221, 255, 0.22);
}

body.sheetgenie-shared-bg .background-scene .geo-triangle-a {
  left: 68%;
  top: 28%;
}

body.sheetgenie-shared-bg .background-scene .geo-triangle-b {
  left: 24%;
  bottom: 20%;
}

body.sheetgenie-shared-bg .background-scene .geo-line {
  width: 84px;
  height: 1px;
  background: rgba(172, 221, 255, 0.26);
}

body.sheetgenie-shared-bg .background-scene .geo-line-a {
  right: 18%;
  top: 56%;
  transform: rotate(32deg);
}

body.sheetgenie-shared-bg .background-scene .geo-line-b {
  left: 34%;
  bottom: 12%;
  transform: rotate(-18deg);
}

@keyframes sharedBlobDrift {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-18px) translateX(14px) scale(1.05);
  }
}

body.sheetgenie-shared-bg {
  --shared-bg-1: var(--bg-primary, #07152c);
  --shared-bg-2: var(--bg-secondary, #0b2143);
  --shared-bg-3: var(--bg-tertiary, #123267);
  background:
    radial-gradient(circle at 12% 18%, var(--index-v2-glow-a, color-mix(in srgb, var(--sgv2-accent, #2587e8) 42%, transparent)), transparent 34%),
    radial-gradient(circle at 86% 82%, var(--index-v2-glow-b, color-mix(in srgb, var(--sgv2-accent-2, #ee6a5f) 28%, transparent)), transparent 28%),
    linear-gradient(140deg, var(--shared-bg-1) 0%, var(--shared-bg-2) 46%, var(--shared-bg-3) 100%) !important;
}

body.sheetgenie-shared-bg .background-scene .blob-a {
  background: var(--sgv2-accent, #2587e8);
}

body.sheetgenie-shared-bg .background-scene .blob-b {
  background: var(--sgv2-accent-3, #1fa98d);
}

body.sheetgenie-shared-bg .background-scene .blob-c {
  background: color-mix(in srgb, var(--sgv2-accent, #2587e8) 62%, #ffffff);
}
