/* ============================================
   Epiphany picker modal
   ============================================ */

.epiphany-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  /* background: rgba(0, 0, 0, 0.75); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.epiphany-picker-modal.hidden {
  display: none;
}

.epiphany-picker-content {
  position: relative;
  background: #1a1f2e;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
  height: 85vh;
  overflow-y: auto;
  color: white;
}

.epiphany-picker-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  line-height: 1;
}

.epiphany-picker-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.epiphany-picker-layout {
  display: flex;
  gap: 2rem;
}

/* Left: card preview */
.epiphany-card-preview {
  width: 220px;
  flex-shrink: 0;
}

/* Right: dungeon icons + lists */
.epiphany-picker-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Dungeon icon selector */
.epiphany-dungeon-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1rem;
}

.epiphany-dungeon-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.epiphany-dungeon-icons {
  display: flex;
  gap: 0.75rem;
}

.epiphany-dungeon-btn {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  transition: border-color 0.2s;
}

.epiphany-dungeon-btn--active {
  border-color: #f97316;
}

.epiphany-dungeon-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Search */
.epiphany-picker-search {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
}

.epiphany-picker-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Epiphany sections */
.epiphany-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  padding: 1rem;
}

.epiphany-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.epiphany-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.epiphany-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.epiphany-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.epiphany-card.hidden {
  display: none;
}

.epiphany-effect {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.epiphany-rarity-badge {
  font-size: 0.7rem;
  background: #f97316;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.epiphany-card-type {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 0.5rem;
}

/* ============================================
   Card epiphany overlays (in _card.html.erb)
   ============================================ */

.card-epiphany-icon {
  position: absolute;
  top: 4.8em;
  left: 0.9em;
  width: 3.7em;
  height: 3.7em;
  z-index: 30;
}

.card-epiphany-icon.hidden {
  display: none;
}

.epiphany-icon-img {
  width: 140%;
  height: 140%;
  object-fit: contain;
}

.epiphany-added-effect {
  font-size: 1.2em;
  color: white;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0.125em 0.125em 0.25em rgba(0, 0, 0, 1), 0.0625em 0.0625em 0.15em rgba(0, 0, 0, 0.9);
}

.card-effect p.epiphany-added-effect--divine {
  display: block;
  margin-top: 0.2em;
  font-size: 1.2em;
}

.epiphany-itxt-icon {
  display: inline;
  vertical-align: middle;
  width: 1.3em;
  height: 1.3em;
  margin-right: -0.2em;
  filter: drop-shadow(0 0 0.15em rgba(0, 0, 0, 0.8));
}
