/* Komby Event Popup — Eligius Magie (La Peau de Vache) */
.komby-ep {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: Georgia, "Times New Roman", serif;
}
.komby-ep[hidden] {
  display: none !important;
}
.komby-ep__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(3px);
}
.komby-ep__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(92vh, 860px);
  overflow: auto;
  border-radius: 14px;
  background: linear-gradient(165deg, #1a1208 0%, #0a0a0a 55%, #1c1008 100%);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.45),
    0 0 28px rgba(180, 40, 40, 0.28),
    0 24px 60px rgba(0, 0, 0, 0.6);
  animation: komby-ep-in 0.35s ease-out;
}
@keyframes komby-ep-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.komby-ep__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #f5e6b8;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.komby-ep__close:hover {
  background: rgba(180, 40, 40, 0.75);
  color: #fff;
}
.komby-ep__poster-link {
  display: block;
  line-height: 0;
}
.komby-ep__poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px 14px 0 0;
}
.komby-ep__cta {
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
}
.komby-ep__date {
  margin: 0 0 0.65rem;
  color: #f0e6c8;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.komby-ep__btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #f0d78c);
  color: #1a1208 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.komby-ep__btn:hover {
  filter: brightness(1.06);
}
@media (max-width: 480px) {
  .komby-ep__dialog { width: min(96vw, 420px); }
  .komby-ep__btn { font-size: 0.88rem; padding: 0.65rem 1rem; }
}
