@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap");
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff5e6;
  overflow-x: hidden;
  font-family: "Quicksand", sans-serif;
}
body {
  min-height: 100vh;
  background: #ddd4c5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}
.have-a-coffee-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 700px;
  max-width: 100vw;
  height: 340px;
}
.coffee-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 340px;
  width: 700px;
/*  background-color: #fff5e6;*/
  overflow: hidden;
  cursor: crosshair;
  padding-top: 60px;
  touch-action: none;
  border-radius: 28px;
/*  box-shadow: 0 8px 32px rgba(111, 78, 55, 0.08);*/
}
.static-shadow {
  position: absolute;
  height: 18px;
  width: 70px;
  border-radius: 50%;
  background-color: rgba(111, 78, 55, 0.2);
  top: calc(50% + 78px);
  left: calc(50% + 4px);
  transform: translateX(-50%) rotate(-3deg);
  z-index: 0;
  animation: shadowWidth 3s ease-in-out infinite;
  pointer-events: none;
}
.coffee-cup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 380px;
  height: 380px;
  transform: scale(1.1) rotate(-3deg);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.12));
  cursor: crosshair;
  z-index: 1;
  margin-top: 32px;
}
.coffee-cup-wrapper.loaded {
  transform: scale(1.2) rotate(-3deg);
}
.coffee-icon {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 300px;
}
.coffee-icon circle,
.coffee-icon path {
  transition: all 0.1s ease;
}
.coffee-eyes {
  transform-origin: center;
}
.steam-container {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  transform-origin: bottom center;
  width: 80px;
  height: 160px;
}
.steam-particle {
  position: absolute;
  background-color: #6f4e37;
  border-radius: 50%;
  opacity: 0;
  filter: blur(8px);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  --attract-x: 0;
  --attract-y: 0;
  --steam-duration: 3s;
  animation: steamRise var(--steam-duration) ease-out infinite;
}
.steam-particle.attracted {
  animation-name: steamRiseAttracted;
}
.s1 {
  width: 24px;
  height: 24px;
  animation-delay: 0s;
}
.s2 {
  width: 20px;
  height: 20px;
  animation-delay: 0.5s;
}
.s3 {
  width: 28px;
  height: 28px;
  animation-delay: 1s;
}
.s4 {
  width: 20px;
  height: 20px;
  animation-delay: 1.5s;
}
.s5 {
  width: 26px;
  height: 26px;
  animation-delay: 2s;
}
.have-a-break-text {
  padding-left: 20px;
  padding-right: 20px;
  font-size: 25px;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  color: #6f4e37;
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px #fff5e6, 0 1px 0 #fff;
  user-select: none;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}
@keyframes shadowWidth {
  0%,
  100% {
    width: 80px;
    opacity: 0.2;
  }
  50% {
    width: 55px;
    opacity: 0.15;
  }
}
@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(-50px) scale(1.2);
  }
  80% {
    opacity: 0.2;
    transform: translateX(-50%) translateY(-100px) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-140px) scale(1.8);
  }
}
@keyframes steamRiseAttracted {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.4;
    transform: translateX(calc(-50% + var(--attract-x) * 16px))
      translateY(calc(var(--attract-y) * -24px)) scale(0.7);
  }
  50% {
    opacity: 0.3;
    transform: translateX(calc(-50% + var(--attract-x) * 30px))
      translateY(calc(-70px + var(--attract-y) * -40px)) scale(1.2);
  }
  80% {
    opacity: 0.2;
    transform: translateX(calc(-50% + var(--attract-x) * 40px))
      translateY(calc(-130px + var(--attract-y) * -50px)) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(-50% + var(--attract-x) * 50px))
      translateY(calc(-180px + var(--attract-y) * -60px)) scale(1.8);
  }
}
@media (max-width: 768px) {
  .have-a-coffee-container,
  .coffee-content {
    width: 95vw;
    height: 115vw;
  }
  .coffee-content {
    padding-top: 15vw;
  }
  .coffee-cup-wrapper {
    width: 40vw;
    height: 40vw;
    margin-top: 8vw;
  }
  .coffee-cup-wrapper.loaded {
    transform: scale(1.1) rotate(-3deg);
  }
  .coffee-icon {
    width: 36vw;
    height: 36vw;
  }
  .steam-container {
    width: 20vw;
    height: 40vw;
    top: -8vw;
  }
  .static-shadow {
    width: 14vw;
    height: 2vw;
    top: calc(50% + 28vw);
  }
  .have-a-break-text {
    bottom: 6vw;
    font-size: 0.9rem;
  }
}
.footer-copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  color: #bfa07a;
  font-size: 0.95rem;
  background: #fff5e6;
  padding: 8px 0;
  opacity: 0.7;
  user-select: none;
}