/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* --- CENTER TEXT --- */
.center-content {
  text-align: center;
  transform: translateY(-60px); /* Pulled up even higher to make room for giant emojis */
}

.brand-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.location-tag {
  font-size: 13px;
  color: #888888;
  font-weight: 300;
}

/* --- THE GRAVITY PILE --- */
.gravity-shelf {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px; /* Widened to fit the bigger emojis */
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
  align-items: center;
}

/* --- THE FALLING ANIMATION --- */
@keyframes dropIn {
  0% { transform: translateY(-120vh); opacity: 0; }
  70% { transform: translateY(15px); opacity: 1; } /* Drops past the floor slightly */
  85% { transform: translateY(-5px); } /* Bounces back up */
  100% { transform: translateY(0); } /* Settles into place */
}

.icon-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -25px -15px; /* Deeper negative margins for more overlap */
  cursor: pointer;
  z-index: 1;
  /* Apply the falling animation by default */
  animation: dropIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}

/* Staggering the drop times so they fall in a random-looking order */
.icon-item:nth-child(1) { animation-delay: 0.1s; }
.icon-item:nth-child(2) { animation-delay: 0.4s; }
.icon-item:nth-child(3) { animation-delay: 0.0s; } /* This one falls first */
.icon-item:nth-child(4) { animation-delay: 0.5s; }
.icon-item:nth-child(5) { animation-delay: 0.2s; }
.icon-item:nth-child(6) { animation-delay: 0.6s; }
.icon-item:nth-child(7) { animation-delay: 0.3s; }

.icon-item:hover {
  z-index: 50; /* Brings the hovered item to the very front */
}

.emoji {
  font-size: 110px; /* MASSIVE EMOJIS! */
  display: inline-block;
  transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.15)); /* Stronger shadow for bigger icons */
}

/* Giving each icon a static rotation so the pile looks messy */
.icon-item:nth-child(1) .emoji { transform: rotate(-15deg); }
.icon-item:nth-child(2) .emoji { transform: rotate(10deg); }
.icon-item:nth-child(3) .emoji { transform: rotate(-25deg); }
.icon-item:nth-child(4) .emoji { transform: rotate(18deg); }
.icon-item:nth-child(5) .emoji { transform: rotate(-8deg); }
.icon-item:nth-child(6) .emoji { transform: rotate(22deg); }
.icon-item:nth-child(7) .emoji { transform: rotate(-12deg); }


/* --- THE POPOVER TEXT --- */
.popover {
  position: absolute;
  bottom: 85%; /* Adjusted to clear the giant emojis */
  background: #000000;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  transform: translateY(10px);
  z-index: 100;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
  pointer-events: none;
}

.popover a {
  pointer-events: auto;
}

/* Hover Interaction: Overrides the static rotation and pops it up */
.icon-item:hover .emoji {
  transform: scale(1.15) translateY(-20px) rotate(0deg) !important; 
}

.icon-item:hover .popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(-25px);
}

/* --- BUTTONS INSIDE POPOVER --- */
.mini-btn {
  color: #ffffff;
  background-color: #333333;
  text-decoration: none;
  font-weight: bold;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 12px;
  transition: background-color 0.2s;
}

.mini-btn:hover {
  background-color: #D94841;
}