/* ═══════════════════════════════════════════
   EVENT LOG
   ═══════════════════════════════════════════ */
.event-log {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg-warm) 100%);
  border-radius: var(--r-panel);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.event-log__title {
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-text-dim);
  border-bottom: 1px solid var(--c-border);
  background: rgba(0,0,0,0.2);
}

.event-log__entries {
  flex: 1;
  min-height: 11em; /* room for ~6 lines even on a short floor */
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
  /* Newest entries are prepended at the top; the oldest dissolve into the
     panel at the bottom instead of ending on a hard scroll edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

.log-entry {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--c-text);
  padding: 6px 10px;
  border-radius: var(--r-chip);
  border-left: 3px solid transparent;
  transition: background var(--t-fast), transform var(--t-fast);
  animation: log-slide-in 0.35s ease-out;
  cursor: default;
}
@media (hover: hover) {
  .log-entry:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
  }
}


.log-entry:last-child {
  font-weight: 500;
}

@keyframes log-slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.log-entry--combat {
  color: var(--c-danger);
  border-left-color: var(--c-danger);
  background: var(--c-danger-dim);
}

.log-entry--item {
  color: var(--c-gold);
  border-left-color: var(--c-gold);
  background: var(--c-gold-dim);
}

.log-entry--heal {
  color: var(--c-heal);
  border-left-color: var(--c-heal);
  background: var(--c-heal-dim);
}

.log-entry--info {
  color: var(--c-text-dim);
  border-left-color: var(--c-surface-light);
}

.log-entry--quest {
  color: var(--c-mana);
  border-left-color: var(--c-mana);
  background: var(--c-mana-dim);
}

/* ─── Silence mutator — the dungeon swallows words. The log holds its
   shape but the words are gone; hints vanish too. Eyes only. ─── */
body.mut-silence .log-entry {
  color: transparent;
  background: rgba(255, 255, 255, 0.02);
  border-left-color: rgba(255, 255, 255, 0.06);
  text-shadow: none;
  user-select: none;
}

body.mut-silence .danger-popup__hint,
body.mut-silence .popup__stats--hint {
  visibility: hidden;
}
