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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: radial-gradient(
    circle at top,
    #1c1f26,
    #0b0f14 70%
  );
  font-family: "Lato", sans-serif;
}

#result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#result-overlay.show {
  opacity: 1;
}

#result-emoji {
  font-size: 6rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  animation: pop 0.4s ease;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

@keyframes pop {
  0% { transform: scale(0.4); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#confetti-container {
  position: absolute;
  width: 0;
  height: 0;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 14px;
  opacity: 0.9;
  animation: confetti-fall 1.4s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(720deg);
    opacity: 0;
  }
}

#result-overlay.show #result-emoji {
  transform: scale(1);
}

#emoji-spin {
  position: relative;
  width: min(90vmin, 600px);
  height: min(90vmin, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#wheel {
  width: 100%;
  height: 100%;
  display: block;
}

#spin {
  font: 1.6em/0 "Lato", sans-serif;
  user-select: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 28%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0b0f14;
  color: #3DDC84;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px currentColor,
    0 0 25px 8px rgba(61, 220, 132, 0.4);
  transition: 0.8s;
}

#spin.emoji {
  font-size: 3.5rem;         
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 0 0 10px currentColor,
    0 0 35px 12px rgba(61, 220, 132, 0.6);
}

#spin::after {
  content: "";
  position: absolute;
  top: -17px;
  border: 10px solid transparent;
  border-bottom-color: currentColor;
  border-top: none;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}
