/* LYKON — fixed tea/coffee cup widget (home + animation page) */
.tea-widget {
   position: absolute;
    z-index: 40;
    left: 50%;
    top: 89%;
    transform: translate3d(0, 0%, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
    will-change: transform;
    justify-content: center;
    margin: 0 auto;
}

@media (max-width: 767px) {
  .tea-widget {
    top: auto;
    bottom: 1rem;
    transform: translate3d(0, 0, 0) scale(0.72);
    transform-origin: bottom left;
    left: 30px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tea-widget {
    transform: translate3d(0, -50%, 0) scale(0.88);
    left: 30px;
  }
}

.tea-widget__tooltip {
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a237e;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(26, 35, 126, 0.12);
  box-shadow: 0 8px 24px rgba(26, 35, 126, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.tea-widget:hover .tea-widget__tooltip,
.tea-widget:focus-within .tea-widget__tooltip {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.tea-cup {
  position: relative;
  width: 5.5rem;
  height: 9.5rem;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  animation: tea-float 4.5s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 12px 28px rgba(26, 35, 126, 0.22));
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.35s ease;
}

.tea-cup:hover {
  transform: scale(1.06) translate3d(0, -2px, 0);
  filter: drop-shadow(0 16px 36px rgba(139, 0, 0, 0.28));
}

.tea-cup:focus-visible {
  outline: 2px solid #1a237e;
  outline-offset: 6px;
  border-radius: 12px;
}

.tea-cup.tea-cup--bounce {
  animation: tea-bounce 0.55s cubic-bezier(0.34, 1.5, 0.64, 1);
}

@keyframes tea-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(1deg); }
}

@keyframes tea-bounce {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  35% { transform: scale(1.12) translate3d(0, -14px, 0); }
  65% { transform: scale(0.96) translate3d(0, 2px, 0); }
  100% { transform: scale(1) translate3d(0, 0, 0); }
}

.tea-cup__glow {
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 4.5rem;
  height: 1.25rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(197, 160, 40, 0.45) 0%, transparent 70%);
  animation: tea-glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tea-glow-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}

.tea-steam {
  position: absolute;
  left: 50%;
  top: -0.5rem;
  width: 5rem;
  height: 5.5rem;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
}

/* Soft base mist sitting on cup */
.tea-steam__mist {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  width: 3.75rem;
  height: 1.1rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 45%, transparent 72%);
  filter: blur(6px);
  animation: steam-mist 2.8s ease-in-out infinite;
}

@keyframes steam-mist {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.95; transform: translateX(-50%) scale(1.12); }
}

.tea-steam__wave {
  position: absolute;
  bottom: 0;
  width: 0.7rem;
  height: 4.25rem;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.65) 35%,
    rgba(255, 255, 255, 0.25) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(5px);
  opacity: 0;
  animation: steam-rise 2.4s ease-out infinite;
  will-change: transform, opacity;
}

.tea-steam__wave:nth-child(2) { left: 8%; width: 0.75rem; animation-delay: 0s; }
.tea-steam__wave:nth-child(3) { left: 22%; width: 0.85rem; animation-delay: 0.35s; }
.tea-steam__wave:nth-child(4) { left: 36%; width: 0.65rem; animation-delay: 0.7s; }
.tea-steam__wave:nth-child(5) { left: 50%; width: 0.9rem; animation-delay: 1.05s; }
.tea-steam__wave:nth-child(6) { left: 62%; width: 0.7rem; animation-delay: 0.5s; }
.tea-steam__wave:nth-child(7) { left: 74%; width: 0.8rem; animation-delay: 1.4s; }
.tea-steam__wave:nth-child(8) { left: 86%; width: 0.6rem; animation-delay: 1.75s; }

@keyframes steam-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scaleX(0.75) scaleY(0.5);
  }
  12% { opacity: 0.95; }
  35% {
    opacity: 0.85;
    transform: translate3d(3px, -1.8rem, 0) scaleX(1.15) scaleY(1.05);
  }
  60% {
    opacity: 0.55;
    transform: translate3d(-4px, -3.2rem, 0) scaleX(1.35) scaleY(1.2);
  }
  85% { opacity: 0.2; }
  100% {
    opacity: 0;
    transform: translate3d(2px, -4.5rem, 0) scaleX(1.5) scaleY(1.3);
  }
}

.tea-particles {
  position: absolute;
  left: 50%;
  top: -0.75rem;
  width: 5rem;
  height: 4.5rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.tea-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
  animation: particle-float 3s ease-out infinite;
}

.tea-particle:nth-child(1) { left: 15%; bottom: 5%; animation-delay: 0.1s; }
.tea-particle:nth-child(2) { left: 32%; bottom: 0%; animation-delay: 0.6s; width: 3px; height: 3px; }
.tea-particle:nth-child(3) { left: 50%; bottom: 8%; animation-delay: 1.2s; }
.tea-particle:nth-child(4) { left: 68%; bottom: 2%; animation-delay: 0.9s; width: 3px; height: 3px; }

@keyframes particle-float {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  15% { opacity: 0.95; }
  100% { opacity: 0; transform: translate3d(8px, -3.5rem, 0) scale(1.2); }
}

.tea-cup__body {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  width: 3.65rem;
  height: 3.35rem;
  transform: translateX(-50%);
  border-radius: 0 0 1.1rem 1.1rem;
  background: linear-gradient(145deg, #f8f4ec 0%, #e8e0d4 45%, #d4c9b8 100%);
  box-shadow:
    inset 0 -8px 16px rgba(62, 39, 35, 0.12),
    inset 0 4px 8px rgba(255, 255, 255, 0.65),
    0 4px 0 rgba(139, 0, 0, 0.15);
  overflow: hidden;
}

.tea-cup__liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72%; background:#e38c36;
  /*background: linear-gradient(180deg, #c5a028 0%, #8b6914 55%, #6b4f10 100%);*/
  border-radius: 0 0 1rem 1rem;
}

.tea-cup__liquid::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(1px);
}

.tea-cup__rim {
  position: absolute;
  left: 50%;
  bottom: 4.35rem;
  width: 4rem;
  height: 0.35rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(90deg, #e8e0d4, #fffef9, #e8e0d4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tea-cup__handle {
  position: absolute;
  right: -0.15rem;
  bottom: 2rem;
  width: 1.15rem;
  height: 1.85rem;
  border: 0.28rem solid #e0d6c8;
  border-left: none;
  border-radius: 0 100% 100% 0 / 50%;
  box-shadow: inset -2px 0 4px rgba(62, 39, 35, 0.08);
}

.tea-cup__saucer {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4.75rem;
  height: 0.65rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #f5f0e6, #ddd4c6);
  box-shadow:
    0 6px 14px rgba(44, 24, 16, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.tea-cup__saucer::after {
  content: "";
  position: absolute;
  inset: 0.12rem 0.5rem;
  border-radius: 50%;
  background: rgba(26, 35, 126, 0.04);
}

.tea-cup:hover .tea-cup__body,
.tea-cup:hover .tea-cup__rim {
  transition: transform 0.4s ease;
}

.tea-cup:hover .tea-cup__body {
  transform: translateX(-50%) rotate(-2deg);
}

/* animation.php demo page only */
body.tea-animation-page main {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  body.tea-animation-page main {
    padding-left: clamp(7rem, 12vw, 10rem);
  }
}

.anim-demo {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.anim-demo__card {
  border-radius: 1.25rem;
  border: 1px solid rgba(26, 35, 126, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(26, 35, 126, 0.08);
}

.anim-demo h1 {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a237e;
}

.anim-demo p {
  margin-top: 0.75rem;
  line-height: 1.65;
  color: rgba(44, 24, 16, 0.8);
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  .tea-cup,
  .tea-cup__glow,
  .tea-steam__mist,
  .tea-steam__wave,
  .tea-particle {
    animation: none !important;
  }
  .tea-cup:hover {
    transform: none;
  }
}


@media (max-width: 1100px) {
.tea-widget{ display:none;}
}