body {
  margin: 0;
  font-family: sans-serif;
  background-color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.p, div, h {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
.game-container {
  position: relative;
}

.counter {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 18px;
  font-weight: bold;
  background: white;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.game-window {
  position: relative;
  width: 1537px;
  height: 855px;
  border: 4px solid #454B1B;
  overflow: hidden;
  background-color: #fff;
}

/* Layer group: each background + its eggs */
.layer-group {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allows clicks to pass to eggs */
}

.layer {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Eggs */
.egg {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.egg:hover {
  transform: scale(1.1);
}

/* Popup */
#popup {
  position: absolute;
  top: 20px;
  right: -350px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 2px solid #454B1B;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 100;
}

#popup img {
  height: 200px;
}

.popup-box {
  max-width: 280px;
}

.popup-title {
  font-weight: bold;
  font-size: 1.2rem;
}

.popup-subtitle {
  font-size: 1rem;
}

.hidden {
  display: none;
}
