@media (min-width: 1024px) {
  #emoji-selector:hover #emoji-menu {
    display: block;
    top: 102%;
  }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  text-align: center;
  touch-action: manipulation;

  user-select: none;   /* prevents text highlighting */
  -webkit-user-select: none; /* Safari/Chrome */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */

}

#click-area {
  position: relative;
  width: 100%;
}


#emoji-selector {
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}


#selected-emoji {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

#emoji-menu {
  display: none;
  position: absolute;
  top: 102%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 6px;
  z-index: 2000;
}

#emoji-menu img {
  width: 32px;
  height: 32px;
  margin: 2px;
  padding: 2px;
  cursor: pointer;
  background: #eee;
  border-radius: 8px;
}

#emoji-selector:hover #emoji-menu {
  display: block;
}



.emoji {
  position: absolute;
  font-size: 50px;
  animation: floatUp 1s ease-out forwards;
}

.circleemoji{
  height: 150px;
  width: 150px;
}

.animated-lizard {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    user-select: none;
}


@keyframes lizardPop {
    0%   { opacity: 0; transform: translateY(100px) scale(0.5); }
    20%  { opacity: 1; transform: translateY(0) scale(1.2); }
    40%  { transform: translateY(-20px) translateX(10px) scale(1); }
    60%  { transform: translateY(-10px) translateX(-15px) scale(1.1); }
    80%  { transform: translateY(-30px) translateX(20px) scale(0.9); }
    100% { opacity: 0; transform: translateY(-50px) translateX(0) scale(0.5); }
}

.animated-lizard.show {
    animation: lizardPop 2s ease-out forwards;
}


@keyframes floatUp {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-80px); opacity: 0; }
}



.top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
}

.top-bar div, .top-bar button {
  display: flex;
  align-items: center;
  background: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: none;
}



#brand {
  margin-right: auto ; /* pushes it to the left */
}

#ad-btn {
  margin-right: 10px; /* pushes it to the left */
  cursor: pointer;
}

#leaderboard {
  cursor: pointer;
}



.circle {
  margin: 160px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

.circle:active {
  transform: scale(0.9);
}

.bottom-note {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 16px;
  border-radius: 16px;
  color: #333;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}}

/* Mobile layout only */
@media (max-width: 768px) {



body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  text-align: center;
  touch-action: manipulation;

  user-select: none;   /* prevents text highlighting */
  -webkit-user-select: none; /* Safari/Chrome */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */

}

#click-area {
  position: relative;
  width: 100%;
}


#emoji-selector {
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}


#selected-emoji {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

#emoji-menu {
  display: none;
  position: absolute;
  top: 102%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 6px;
  z-index: 2000;
}

#emoji-menu img {
  width: 32px;
  height: 32px;
  margin: 2px;
  padding: 2px;
  cursor: pointer;
  background: #eee;
  border-radius: 8px;
}

#emoji-selector:hover #emoji-menu {
  display: block;
}



.emoji {
  position: absolute;
  font-size: 50px;
  animation: floatUp 1s ease-out forwards;
}

.circleemoji{
  height: 150px;
  width: 150px;
}

.animated-lizard {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    user-select: none;
}


@keyframes lizardPop {
    0%   { opacity: 0; transform: translateY(100px) scale(0.5); }
    20%  { opacity: 1; transform: translateY(0) scale(1.2); }
    40%  { transform: translateY(-20px) translateX(10px) scale(1); }
    60%  { transform: translateY(-10px) translateX(-15px) scale(1.1); }
    80%  { transform: translateY(-30px) translateX(20px) scale(0.9); }
    100% { opacity: 0; transform: translateY(-50px) translateX(0) scale(0.5); }
}

.animated-lizard.show {
    animation: lizardPop 2s ease-out forwards;
}


@keyframes floatUp {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-80px); opacity: 0; }
}



.top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
}

.top-bar div, .top-bar button {
  display: flex;
  align-items: center;
  background: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: none;
}



#brand {
  margin-right: auto ; /* pushes it to the left */
}

#ad-btn {
  margin-right: 10px; /* pushes it to the left */
  cursor: pointer;
}

#leaderboard {
  cursor: pointer;
}



.circle {
  margin: 160px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

.circle:active {
  transform: scale(0.9);
}

.bottom-note {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 16px;
  border-radius: 16px;
  color: #333;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



  .top-bar {
    display: grid;
    grid-template-columns: 1fr 1fr; /* left and right side */
    gap: 8px;
    padding: 10px;
    align-items: start;
  }

  #brand {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
  }

  #leaderboard {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: start;
  }

  #ad-btn {
    grid-column: 1 / 2;
    grid-row: 3;
    justify-self: start;
  }

  #my-clicks {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
  }

  #all-clicks {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
  }

  .bottom-note {
  position: fixed;
  bottom: 20px;
  left: 40%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 16px;
  border-radius: 16px;
  color: #333;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

  .circle {
  margin: 80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

  /* Emoji selector fixed at bottom-right */
  #emoji-selector {
    position: fixed;
    bottom: 25px;
    right: 20px;
    margin: 0;
    background: white;
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
}

  #emoji-menu {
    display: none;
    position: absolute;
    top: -510%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 6px;
    z-index: 2000;
  }


  #selected-emoji {
    width: 32px;
    height: 32px;
    vertical-align: middle;
  }



/* Mobile layout only */
@media (min-width: 769px) and (max-width: 1023px) {
  .top-bar {
    display: grid;
    grid-template-columns: 1fr 1fr; /* left and right side */
    gap: 8px;
    padding: 10px;
    align-items: start;
  }

  #brand {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
  }

  #leaderboard {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: start;
  }

  #ad-btn {
    grid-column: 1 / 2;
    grid-row: 3;
    justify-self: start;
  }

  #my-clicks {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
  }

  #all-clicks {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
  }

  /* Bottom note adjust */
  .bottom-note {
    left: 30%; /* slide a bit left */
    transform: translateX(-30%);
  }

  .circle {
  margin: 80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

  /* Emoji selector fixed at bottom-right */
  #emoji-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin: 0;
    background: white;
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
}


