* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

body {
  background: #8cce57;
}

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 32px;
  color: white;
  text-align: center;
  width: 100%;
  height: 100vh;
  background-image: url("../images/diizz-eoy-25.png");
  max-width: 480px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.snowball-overlay {
  position: absolute;
  width: 74.1%;
  top: 27.3%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.top-hint {
  display: grid;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  grid-template-columns: auto auto;
}

.desk .top-hint{
  gap: 0px;
}

.shake-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shake-icon img {
/*  width: 14vw;*/
  max-width: 32px;
}

.shake-label {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.9;
  font-family: Arial;
}

.message-wrapper {
  max-width: 95%;
  margin-top: 34px;
}

.wish-text {
  font-size: 22px;
  line-height: 1.2;
  font-weight: normal;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wish-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.shake-again {
  margin-top: 16px;
  font-size: 12px;
  opacity: 0;
  display: none;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.shake-again.visible {
  opacity: 1;
  transform: translateY(0);
}

.globe-area {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
}

.globe-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.globe-wrapper {
  position: absolute;
  bottom: 0;
  left: 0%;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene.shaking {
  animation: globeShake 0.8s ease-out;
  transform-origin: center bottom;
}

@keyframes globeShake {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  20% {
    transform: translateX(-6px) rotate(-3deg);
  }
  40% {
    transform: translateX(5px) rotate(3deg);
  }
  60% {
    transform: translateX(-4px) rotate(-2deg);
  }
  80% {
    transform: translateX(4px) rotate(1deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.motion-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: none;
}

.motion-btn.visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.motion-btn span {
  font-size: 14px;
}

.sparkle {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #ffe88b);
  box-shadow: 0 0 10px rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
  animation: sparkleBurst 900ms ease-out forwards;
}

@keyframes sparkleBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--dx)),
        calc(-50% + var(--dy))
      )
      scale(0.1);
  }
}

#snow-container {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 4;
}

.snowflake {
  position: absolute;
  top: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  opacity: 0.85;
  pointer-events: none;
  animation-name: infiniteSnowFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes infiniteSnowFall {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

.desktop-helper {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  display: none;
}

.diizz {
  position: fixed;
  bottom: 25px;
}

.diizz img {
  width: 25vw;
  max-width: 104px;
}

.desktop .mob {
  display: none;
}

.desktop .desk {
  display: block;
}

.mobile .desk {
  display: none;
}

.mobile .mob {
  display: block;
}