/* Decorative composition around the official LUMA symbol; no product claim. */
.luma-fluid {
  --luma-fluid-size: 220px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  flex: 0 0 auto;
  width: var(--luma-fluid-size);
  height: var(--luma-fluid-size);
  aspect-ratio: 1;
  margin: 0;
  pointer-events: none;
}

.luma-fluid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(169, 129, 204, 0.18), rgba(184, 70, 158, 0.04) 52%, transparent 72%);
  animation-play-state: paused;
}

/* A fine asymmetric contour echoes the curves of the native symbol. */
.luma-fluid::after {
  content: "";
  position: absolute;
  inset: 8% 5% 10% 7%;
  border: 1px solid rgba(211, 191, 243, .2);
  border-top-color: rgba(240, 224, 252, .58);
  border-right-color: rgba(159, 232, 246, .36);
  border-radius: 44% 56% 61% 39% / 57% 42% 58% 43%;
  transform: rotate(-18deg) scale(.98, .92);
  animation-play-state: paused;
}

.luma-fluid__layer {
  position: absolute;
  display: block;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
  animation-play-state: paused;
}

.luma-fluid__layer--violet {
  inset: 13% 8% 12% 9%;
  border-radius: 43% 57% 62% 38% / 62% 36% 64% 38%;
  background:
    radial-gradient(ellipse at 24% 20%, rgba(246, 233, 255, 0.95), transparent 47%),
    linear-gradient(145deg, rgba(207, 181, 239, 0.88), rgba(137, 105, 191, 0.8) 52%, rgba(118, 104, 200, 0.14));
  box-shadow: inset 1px 2px 2px rgba(255, 255, 255, 0.76), inset -5px -8px 20px rgba(105, 65, 154, 0.12);
  transform: rotate(-25deg) scale(0.96, 1.03);
}

.luma-fluid__layer--magenta {
  inset: 18% 12% 7% 20%;
  border-radius: 60% 40% 36% 64% / 40% 53% 47% 60%;
  background:
    radial-gradient(ellipse at 73% 78%, rgba(184, 70, 158, 0.68), transparent 68%),
    linear-gradient(145deg, rgba(252, 219, 245, 0.12), rgba(213, 127, 193, 0.7) 70%, rgba(245, 207, 238, 0.92));
  box-shadow: inset 1px -2px 2px rgba(255, 229, 250, 0.78), inset -7px -5px 15px rgba(146, 60, 135, 0.12);
  transform: translate(-3px, 1px) rotate(28deg) scale(1.04, 0.96);
}

.luma-fluid__layer--cyan {
  inset: 20% 18% 13% 8%;
  border-radius: 38% 62% 65% 35% / 55% 66% 34% 45%;
  background:
    radial-gradient(ellipse at 18% 69%, rgba(189, 244, 248, 0.92), transparent 70%),
    linear-gradient(135deg, rgba(159, 232, 246, 0.1) 28%, rgba(144, 222, 236, 0.72) 77%, rgba(205, 249, 247, 0.8));
  box-shadow: inset 1px -2px 3px rgba(226, 255, 255, 0.88), inset 5px 7px 19px rgba(118, 104, 200, 0.12);
  transform: translate(3px, -2px) rotate(-16deg) scale(0.95, 1.03);
}

.luma-fluid__layer--pearl {
  inset: 11% 22% 29% 17%;
  border-radius: 58% 42% 63% 37% / 44% 61% 39% 56%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(253, 233, 248, 0.18) 47%, rgba(232, 231, 252, 0.54));
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.86);
  transform: rotate(21deg) scale(1.03, 0.95);
  opacity: 0.7;
}

.luma-fluid__core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 47% 53% 49% 51% / 51% 46% 54% 49%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(251, 246, 255, 0.91));
  box-shadow: 0 8px 25px rgba(95, 49, 126, 0.12), inset 0 1px 0 #fff;
  overflow: hidden;
  animation-play-state: paused;
}

.luma-fluid__core::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .65) 46%, rgba(255, 255, 255, .12) 56%, transparent 66%);
  transform: translateX(-65%) rotate(-8deg);
  opacity: 0;
  animation-play-state: paused;
}

.luma-fluid__symbol {
  display: block;
  width: 72%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  animation-play-state: paused;
}

.luma-fluid--motion .luma-fluid__layer--violet {
  animation: luma-fluid-violet var(--luma-violet-period, 11s) ease-in-out -3s infinite alternate paused;
}

.luma-fluid--motion .luma-fluid__layer--magenta {
  animation: luma-fluid-magenta var(--luma-magenta-period, 13s) ease-in-out -7s infinite alternate paused;
}

.luma-fluid--motion .luma-fluid__layer--cyan {
  animation: luma-fluid-cyan var(--luma-cyan-period, 15s) ease-in-out -5s infinite alternate paused;
}

.luma-fluid--motion .luma-fluid__layer--pearl {
  animation: luma-fluid-pearl var(--luma-pearl-period, 9s) ease-in-out -2s infinite alternate paused;
}

.luma-fluid--motion::before {
  animation: luma-fluid-glow var(--luma-breathe-period, 8s) ease-in-out -2s infinite paused;
}

.luma-fluid--motion::after {
  animation: luma-fluid-contour 16s ease-in-out -4s infinite alternate paused;
}

.luma-fluid--motion .luma-fluid__core {
  animation: luma-fluid-breathe var(--luma-breathe-period, 8s) ease-in-out -2s infinite paused;
}

.luma-fluid--motion .luma-fluid__symbol {
  animation: luma-fluid-symbol var(--luma-symbol-period, 10s) ease-in-out -3s infinite paused;
}

.luma-fluid--motion .luma-fluid__core::after {
  animation: luma-fluid-sheen 12s ease-in-out -4s infinite paused;
}

.luma-fluid--active::before,
.luma-fluid--active::after,
.luma-fluid--active .luma-fluid__layer,
.luma-fluid--active .luma-fluid__core,
.luma-fluid--active .luma-fluid__core::after,
.luma-fluid--active .luma-fluid__symbol {
  animation-play-state: running;
}

@keyframes luma-fluid-breathe {
  0%, 100% {
    transform: translateY(var(--luma-breathe-down, 3px)) rotate(calc(-1 * var(--luma-core-turn, 3deg))) scale(var(--luma-core-rest-scale, .98));
  }
  50% {
    transform: translateY(var(--luma-breathe-up, -4px)) rotate(var(--luma-core-turn, 3deg)) scale(var(--luma-core-full-scale, 1.025));
  }
}

@keyframes luma-fluid-symbol {
  0%, 100% { transform: rotate(var(--luma-core-turn, 3deg)) scale(var(--luma-symbol-rest-scale, .96)); opacity: .88; }
  50% { transform: rotate(calc(-1 * var(--luma-core-turn, 3deg))) scale(var(--luma-core-full-scale, 1.025)); opacity: 1; }
}

@keyframes luma-fluid-glow {
  0%, 100% { transform: scale(.92); opacity: .65; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes luma-fluid-contour {
  from { transform: rotate(-18deg) scale(.98, .92); opacity: .55; }
  to { transform: rotate(18deg) scale(.92, 1.02); opacity: .95; }
}

@keyframes luma-fluid-sheen {
  0%, 18% { transform: translateX(-65%) rotate(-8deg); opacity: 0; }
  32% { opacity: .45; }
  50%, 100% { transform: translateX(65%) rotate(-8deg); opacity: 0; }
}

@keyframes luma-fluid-violet {
  from { transform: rotate(-25deg) scale(0.96, 1.03); }
  to { transform: rotate(12deg) scale(1.03, 0.96); }
}

@keyframes luma-fluid-magenta {
  from { transform: translate(-3px, 1px) rotate(28deg) scale(1.04, 0.96); }
  to { transform: translate(3px, -4px) rotate(-9deg) scale(0.95, 1.04); }
}

@keyframes luma-fluid-cyan {
  from { transform: translate(3px, -2px) rotate(-16deg) scale(0.95, 1.03); }
  to { transform: translate(-4px, 3px) rotate(19deg) scale(1.03, 0.96); }
}

@keyframes luma-fluid-pearl {
  from { transform: rotate(21deg) scale(1.03, 0.95); opacity: 0.7; }
  to { transform: rotate(-14deg) scale(0.96, 1.04); opacity: 0.48; }
}

@media (max-width: 800px) {
  .luma-fluid { --luma-fluid-size: 180px; }
}

/* A smaller frame keeps the center steady while its outer layers move. */
@media (max-width: 560px) {
  .luma-fluid {
    --luma-fluid-size: clamp(168px, 46vw, 190px);
    --luma-violet-period: 12s;
    --luma-magenta-period: 15s;
    --luma-cyan-period: 17s;
    --luma-pearl-period: 11s;
    --luma-breathe-period: 10s;
    --luma-symbol-period: 12s;
    --luma-breathe-down: 2px;
    --luma-breathe-up: -3px;
    --luma-core-turn: 2deg;
    --luma-core-rest-scale: .985;
    --luma-core-full-scale: 1.015;
    --luma-symbol-rest-scale: .98;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .luma-fluid { --luma-fluid-size: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .luma-fluid::before,
  .luma-fluid::after,
  .luma-fluid .luma-fluid__layer,
  .luma-fluid .luma-fluid__core,
  .luma-fluid .luma-fluid__core::after,
  .luma-fluid .luma-fluid__symbol { animation: none; }
}

:is(.low-perf, .lp-static-qa) .luma-fluid::before,
:is(.low-perf, .lp-static-qa) .luma-fluid::after,
:is(.low-perf, .lp-static-qa) .luma-fluid .luma-fluid__layer,
:is(.low-perf, .lp-static-qa) .luma-fluid .luma-fluid__core,
:is(.low-perf, .lp-static-qa) .luma-fluid .luma-fluid__core::after,
:is(.low-perf, .lp-static-qa) .luma-fluid .luma-fluid__symbol {
  animation: none;
}
