/* Glowing flower decoration — above clock, right-aligned with taskbar */

.taskbar-clock-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  min-width: 4.5rem;
}

.taskbar-flower-host {
  position: absolute;
  /* Nudge left from clock column edge */
  right: 16px;
  /* Above clock / taskbar; larger offset = higher */
  bottom: calc(100% + 62px);
  width: 72px;
  height: 56px;
  overflow: visible;
  pointer-events: none;
  z-index: 5020;
}

.taskbar-flower-host .taskbar-flower-ground {
  width: 100vmin;
  max-width: 520px;
  aspect-ratio: 1.5;
  overflow: visible;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scale(0.2);
  transform-origin: center bottom;
  animation: taskbar-flower-shrink 1.5s ease-in forwards 4s;
}

.taskbar-flower-host .flower-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10%;
  aspect-ratio: 16;
  container-type: inline-size;
  filter: drop-shadow(0 0 25cqi #ffd85faa);
  justify-items: center;
  align-content: center;
  transform-origin: bottom center;
}

.taskbar-flower-host .flower-container:first-child {
  top: 50%;
  left: 50%;
}

.taskbar-flower-host .flower-container:nth-child(2) {
  top: 45%;
  left: 30%;
  width: 8%;
}

.taskbar-flower-host .flower-container:nth-child(3) {
  top: 45%;
  left: 70%;
  width: 8%;
}

.taskbar-flower-host .flower-container:nth-child(4) {
  top: 85%;
  left: 95%;
  width: 20%;
}

.taskbar-flower-host .flower-container:nth-child(5) {
  top: 130%;
  left: 30%;
  width: 30%;
}

.taskbar-flower-host .flower-container:nth-child(6) {
  top: 60%;
  left: 10%;
  width: 12%;
}

.taskbar-flower-host .flower-container:nth-child(7) {
  top: 20%;
  left: 15%;
  width: 6%;
}

.taskbar-flower-host .flower-container:nth-child(8) {
  top: 15%;
  left: 35%;
  width: 5%;
}

.taskbar-flower-host .flower-container:nth-child(9) {
  top: 26%;
  left: 85%;
  width: 7%;
}

.taskbar-flower-host .flower-container:nth-child(10) {
  top: 22%;
  left: 60%;
  width: 6.5%;
}

.taskbar-flower-host .flower-top {
  width: 50cqi;
  aspect-ratio: 1.5;
  position: relative;
  z-index: 1;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 50%);
}

.taskbar-flower-host .flower-circle {
  width: 30cqi;
  aspect-ratio: 1.5;
  border-radius: 50%;
  background-color: #ffe4a0;
  box-shadow: inset 0px -3cqi 3cqi #aa7a0266;
  position: absolute;
  scale: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100% 100% 100% 100% / 90% 90% 90% 90%;
  filter: drop-shadow(0 0 15cqi #ffd85f);
  transform-origin: top left;
}

.taskbar-flower-host .flower-petal {
  width: 80%;
  aspect-ratio: 1;
  background-color: #ffe4a0;
  background-image: linear-gradient(135deg, #ff6236 20%, #ffd85f 80%);
  position: absolute;
  opacity: 0;
}

.taskbar-flower-host .flower-petal__1 {
  bottom: 42%;
  right: 65%;
  border-radius: 0px 100% 5% 100% / 0px 100% 5% 100%;
  transform: rotate(-10deg) scale(0.82);
}

.taskbar-flower-host .flower-petal__2 {
  bottom: 42%;
  left: 65%;
  border-radius: 0px 100% 5% 100% / 0px 100% 5% 100%;
  transform: rotate(100deg) scale(0.82);
}

.taskbar-flower-host .flower-petal__3 {
  bottom: 40%;
  left: 10%;
  border-radius: 0px 100% 50% 100% / 0px 100% 50% 100%;
  transform: rotate(45deg) scale(0.8);
}

.taskbar-flower-host .flower-petal__4 {
  top: -10%;
  left: 80%;
  border-radius: 0px 100% 0% 100% / 0px 100% 0% 100%;
  transform: rotate(135deg) scale(0.9);
}

.taskbar-flower-host .flower-petal__5 {
  top: -10%;
  right: 70%;
  border-radius: 0px 100% 0% 100% / 0px 100% 0% 100%;
  transform: rotate(315deg) scale(0.9);
}

.taskbar-flower-host .flower-petal__6 {
  top: 50%;
  right: 65%;
  border-radius: 0px 100% 10% 100% / 0px 100% 5% 100%;
  transform: rotate(270deg) scale(1.1);
}

.taskbar-flower-host .flower-petal__7 {
  top: 50%;
  left: 65%;
  border-radius: 0px 100% 10% 100% / 0px 100% 5% 100%;
  transform: rotate(180deg) scale(1.1);
}

.taskbar-flower-host .flower-petal__8 {
  top: 50%;
  left: 10%;
  border-radius: 0px 100% 50% 100% / 0px 100% 30% 100%;
  transform: rotate(225deg) scale(1);
}

.taskbar-flower-host .flower-light {
  width: 3cqi;
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}

.taskbar-flower-host .flower-light:nth-child(odd) {
  background-color: #ffe4a0;
  filter: blur(2cqi) drop-shadow(0 0 5cqi #ffd85f);
}

.taskbar-flower-host .flower-light:nth-child(even) {
  background-color: #ff6236;
  filter: blur(2cqi) drop-shadow(0 0 5cqi #ff6236);
}

.taskbar-flower-host .flower-light__1 {
  top: 10%;
  left: 20%;
  scale: 0.8;
}

.taskbar-flower-host .flower-light__2 {
  top: 20%;
  left: 80%;
  scale: 1.2;
}

.taskbar-flower-host .flower-light__3 {
  top: 30%;
  left: 50%;
  scale: 1.5;
}

.taskbar-flower-host .flower-light__4 {
  top: 40%;
  left: 10%;
}

.taskbar-flower-host .flower-light__5 {
  top: 50%;
  left: 90%;
  scale: 2;
}

.taskbar-flower-host .flower-light__6 {
  top: 60%;
  left: 30%;
}

.taskbar-flower-host .flower-light__7 {
  top: 70%;
  left: 40%;
  scale: 0.5;
}

.taskbar-flower-host .flower-light__8 {
  top: 60%;
  left: 60%;
}

.taskbar-flower-host .flower-bottom {
  width: 6%;
  aspect-ratio: 0.02;
  left: 47%;
  top: 50%;
}

.taskbar-flower-host .flower-stem {
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  background-image:
    linear-gradient(to left, rgba(0, 0, 0, 0.2), transparent, rgba(87, 42, 25, 0.2)),
    linear-gradient(to top, transparent 10%, #da580099, #da580099);
  border-radius: 50px 50px 0 0;
  transform-origin: bottom center;
}

.taskbar-flower-host .flower-leaf {
  width: 40%;
  aspect-ratio: 2.5;
  position: absolute;
  scale: 0;
  opacity: 0;
}

.taskbar-flower-host .flower-leaf:nth-child(even) {
  right: 55%;
  background-image: linear-gradient(120deg, #d86100aa 0%, #da580000 90%);
  border-radius: 0% 100% 0% 100% / 0% 100% 0% 100%;
  transform-origin: bottom right;
}

.taskbar-flower-host .flower-leaf:nth-child(odd) {
  left: 55%;
  background-image: linear-gradient(300deg, #d86100aa 0%, #da580000 90%);
  border-radius: 100% 0% 100% 0% / 100% 0% 100% 0%;
  transform-origin: bottom left;
}

.taskbar-flower-host .flower-leaf__2 {
  top: 25%;
  transform: rotate(-15deg) scale(1);
}

.taskbar-flower-host .flower-leaf__1 {
  top: 31%;
  transform: rotate(15deg) scale(1);
}

.taskbar-flower-host .flower-leaf__4 {
  top: 37%;
  transform: rotate(-15deg) scale(1.2);
}

.taskbar-flower-host .flower-leaf__3 {
  top: 43%;
  transform: rotate(15deg) scale(1.2);
}

.taskbar-flower-host .flower-leaf__6 {
  top: 50%;
  transform: rotate(-15deg) scale(1.5);
}

.taskbar-flower-host .flower-leaf__5 {
  top: 56%;
  transform: rotate(15deg) scale(1.5);
}

.taskbar-flower-host .flower-grass {
  position: absolute;
  bottom: -20cqi;
  width: 80cqi;
  height: 120cqi;
  opacity: 0;
  scale: 0;
  mask-image: linear-gradient(to top, transparent 15%, #fff 50%);
}

.taskbar-flower-host .flower-grass:nth-child(odd) {
  right: 55%;
  border-top-right-radius: 100%;
  border-right: 5cqi solid #d86100aa;
  transform-origin: bottom right;
}

.taskbar-flower-host .flower-grass:nth-child(even) {
  left: 55%;
  border-top-left-radius: 100%;
  border-left: 5cqi solid #d86100aa;
  transform-origin: bottom left;
}

.taskbar-flower-host .flower-grass__3 {
  left: 70% !important;
  width: 75cqi;
  height: 100cqi;
}

.taskbar-flower-host .flower-grass__4 {
  right: 70% !important;
  width: 75cqi;
  height: 90cqi;
}

.taskbar-flower-host .flower-container.animate {
  animation: taskbar-flower-rotate 12s linear infinite;
}

.taskbar-flower-host .animate .flower-circle {
  animation: taskbar-flower-grass-grow 0.25s ease-in forwards 3s;
}

.taskbar-flower-host .animate .flower-petal {
  animation:
    taskbar-flower-petal-grow 0.5s ease-in forwards,
    taskbar-flower-rotate 3s linear infinite;
}

.taskbar-flower-host .animate .flower-petal__3 {
  animation-delay: 3.2s;
}

.taskbar-flower-host .animate .flower-petal__2 {
  animation-delay: 3.3s;
}

.taskbar-flower-host .animate .flower-petal__4 {
  animation-delay: 3.4s;
}

.taskbar-flower-host .animate .flower-petal__7 {
  animation-delay: 3.5s;
}

.taskbar-flower-host .animate .flower-petal__8 {
  animation-delay: 3.6s;
}

.taskbar-flower-host .animate .flower-petal__6 {
  animation-delay: 3.7s;
}

.taskbar-flower-host .animate .flower-petal__5 {
  animation-delay: 3.8s;
}

.taskbar-flower-host .animate .flower-petal__1 {
  animation-delay: 3.9s;
}

.taskbar-flower-host .animate .flower-stem {
  animation: taskbar-flower-stem-grow 3s ease-in forwards;
}

.taskbar-flower-host .animate .flower-grass {
  animation:
    taskbar-flower-grass-grow 1s ease-in forwards 1.5s,
    taskbar-flower-rotate 6s linear infinite;
}

.taskbar-flower-host .animate .flower-leaf {
  animation:
    taskbar-flower-grass-grow 0.75s ease-in forwards,
    taskbar-flower-rotate 6s linear infinite;
}

.taskbar-flower-host .animate .flower-leaf__2 {
  animation-delay: 2s;
}

.taskbar-flower-host .animate .flower-leaf__1 {
  animation-delay: 1.9s;
}

.taskbar-flower-host .animate .flower-leaf__4 {
  animation-delay: 1.8s;
}

.taskbar-flower-host .animate .flower-leaf__3 {
  animation-delay: 1.65s;
}

.taskbar-flower-host .animate .flower-leaf__6 {
  animation-delay: 1.5s;
}

.taskbar-flower-host .animate .flower-leaf__5 {
  animation-delay: 1.25s;
}

.taskbar-flower-host .animate .flower-light {
  animation: taskbar-flower-light-float 5s ease-in-out infinite;
}

.taskbar-flower-host .animate .flower-light__1 {
  animation-delay: 4.7s;
}

.taskbar-flower-host .animate .flower-light__2 {
  animation-delay: 5.2s;
}

.taskbar-flower-host .animate .flower-light__3 {
  animation-delay: 5.7s;
}

.taskbar-flower-host .animate .flower-light__4 {
  animation-delay: 6.2s;
}

.taskbar-flower-host .animate .flower-light__5 {
  animation-delay: 6.7s;
}

.taskbar-flower-host .animate .flower-light__6 {
  animation-delay: 7.2s;
}

.taskbar-flower-host .animate .flower-light__7 {
  animation-delay: 7.7s;
}

.taskbar-flower-host .animate .flower-light__8 {
  animation-delay: 8.2s;
}

@keyframes taskbar-flower-petal-grow {
  0% {
    scale: 0;
    opacity: 0.8;
  }
  50% {
    scale: 1;
    opacity: 0.8;
  }
  75% {
    scale: 1.1;
    opacity: 0.8;
  }
  90% {
    scale: 0.9;
    opacity: 0.8;
  }
  100% {
    scale: 1;
    opacity: 0.8;
  }
}

@keyframes taskbar-flower-grass-grow {
  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes taskbar-flower-stem-grow {
  0% {
    border-radius: 10%;
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes taskbar-flower-rotate {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: 5deg;
  }
  75% {
    rotate: -5deg;
  }
}

@keyframes taskbar-flower-shrink {
  0% {
    transform: translateX(-50%) scale(0.2);
  }
  100% {
    transform: translateX(-50%) scale(0.16);
  }
}

@keyframes taskbar-flower-light-float {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  25% {
    opacity: 1;
    transform: translate(20cqi, -25cqi);
  }
  50% {
    opacity: 1;
    transform: translate(0, -50cqi);
  }
  75% {
    opacity: 1;
    transform: translate(-20cqi, -75cqi);
  }
  100% {
    opacity: 0;
    transform: translate(0, -100cqi);
  }
}

@media (prefers-reduced-motion: reduce) {
  .taskbar-flower-host {
    display: none;
  }
}
