.contest-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.contest-modal--visible {
  display: flex;
}

.contest-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1;
}

.contest-modal__content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 14px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
  font-family: sans-serif;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.contest-modal__image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 24px;
}

.contest-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

.contest-modal__close:hover {
  color: #000;
}

.contest-modal__action,
.header__cta-button {
  padding: 8px 10px;
  background: none;
  color: #ffcc00;
  border: 1px solid #ffcc00;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .header__cta-button {
    margin-left: 10px;
  }

  .contest-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}