.card {
  background-color: var(--bg-roll-entry);
  background-image: var(--texture-surface);
  background-size: 256px 256px;
  background-repeat: repeat;
  border: 1px solid rgba(var(--gold-rgb), 0.1);
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  animation: slideIn 0.3s ease-out;
  border-left-width: 3px;
  border-left-style: solid;
  box-shadow: 0 2px 6px rgba(var(--shadow-rgb), 0.3);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card.nat20 {
  border-color: var(--crit);
  background-color: var(--bg-roll-entry);
  background-image: var(--texture-surface);
  background-size: 256px 256px;
  background-repeat: repeat;
  box-shadow:
    0 0 12px rgba(var(--crit-rgb), 0.25),
    0 2px 6px rgba(var(--shadow-rgb), 0.3),
    inset 0 0 20px rgba(var(--crit-rgb), 0.08);
}

.card.nat20 .total {
  color: var(--crit);
}

.card.fresh {
  border-color: var(--gold);
  animation:
    slideIn 0.3s ease-out,
    glow 1s ease-out;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.4);
  }
  100% {
    box-shadow: none;
  }
}

.topLine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.charName {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.timestamp {
  font-size: 0.65rem;
  color: var(--text-faint);
}

.label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.breakdown {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.15rem;
}

.dieResult {
  color: var(--text-primary);
  font-weight: 600;
}

.dieChosen {
  color: var(--gold);
  font-weight: 700;
}

.dieDiscarded {
  color: var(--text-faint);
  text-decoration: line-through;
}

.modLine {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-top: 0.2rem;
}

.advantage {
  color: var(--hp);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.disadvantage {
  color: var(--danger);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.critBanner {
  font-family: "Cinzel", Georgia, serif;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--crit);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0;
  animation: critPulse 0.5s ease-out;
}

@keyframes critPulse {
  0% {
    transform: scale(1.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
