#eventContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none; /* ne blokkolja az oldalt */
  z-index: 9999; /* mindig legfelül */
}

.event-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto; /* az ikonra kattintható maradjon */
  animation: fadeInOut 6s forwards;
  transition: transform 0.2s ease;
}

.event-icon:hover {
  transform: scale(1.2);
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: scale(0.6); }
  10% { opacity: 1; transform: scale(1); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.6); }
}
.gift-popup {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: black;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  z-index: 10000;
  animation: popupFade 4s forwards;
  text-align: center;
  font-size: 1.2rem;
}

.gift-popup.win { background: #d4edda; color: #155724; }
.gift-popup.lose { background: #f8d7da; color: #721c24; }
.gift-popup.warn { background: #fff3cd; color: #856404; }
.gift-popup.error { background: #f5c6cb; color: #721c24; }
.gift-popup.info { background: #d1ecf1; color: #0c5460; }

@keyframes popupFade {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  10% { opacity: 1; transform: translate(-50%, -50%); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -40%); }
}
.rules-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.rules-modal.hidden {
    display: none;
}

.rules-content {
    background: #fff;
    color: #222;
    padding: 2rem;
    max-width: 600px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.rules-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.rules-content button {
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #ff9800;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.rules-content button:hover {
    background: #e68900;
}
.rules-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.rules-content {
  background: #fff;
  color: #222;
  padding: 2.5rem;
  border-radius: 1.2rem;
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 0.4s ease;
  position: relative;
}

.rules-content h2 {
  margin-top: 0;
  color: #ff9500;
  font-weight: 700;
  font-size: 1.6rem;
}

.rules-content p {
  line-height: 1.6;
  font-size: 1rem;
  margin: 0.8rem 0;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  text-align: left;
}

.rules-list li {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.footer-text {
  font-weight: 600;
  color: #27ae60;
  margin-bottom: 1.5rem;
}

.btn.btn-primary {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn.btn-primary:hover {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
}

.hidden {
  display: none;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
