/* Reveal & Rarity Pacing Styles */

.reveal-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.reveal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.reveal-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Individual Roll Card */
.roll-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  overflow: hidden;
  animation: cardUnfold 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardUnfold {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.roll-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roll-rarity-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.roll-ep {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.roll-number-body {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  word-break: break-all;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.roll-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Rarity Tier Glows & Borders */
.rarity-common {
  border-color: rgba(160, 160, 160, 0.3);
}

.rarity-uncommon {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
}

.rarity-rare {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.15);
}

.rarity-epic {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 25px rgba(192, 132, 252, 0.25);
  animation: epicPulse 3s infinite alternate;
}

@keyframes epicPulse {
  0% { box-shadow: 0 0 20px rgba(192, 132, 252, 0.2); }
  100% { box-shadow: 0 0 32px rgba(192, 132, 252, 0.4); }
}

.rarity-legendary {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.35);
  animation: legendaryShimmer 2.5s infinite linear;
}

@keyframes legendaryShimmer {
  0% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 45px rgba(251, 191, 36, 0.6); }
  100% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.3); }
}

.rarity-mythic {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 45px rgba(248, 113, 113, 0.5);
  animation: mythicRadiance 2s infinite ease-in-out;
}

@keyframes mythicRadiance {
  0% { transform: scale(1); box-shadow: 0 0 35px rgba(248, 113, 113, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 60px rgba(248, 113, 113, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 35px rgba(248, 113, 113, 0.4); }
}

.rarity-transcendent {
  border-color: rgba(56, 189, 248, 1);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.7);
  animation: transcendentAura 1.8s infinite alternate;
}

@keyframes transcendentAura {
  0% { transform: scale(1.01); box-shadow: 0 0 40px rgba(56, 189, 248, 0.5), 0 0 80px rgba(192, 132, 252, 0.3); }
  100% { transform: scale(1.03); box-shadow: 0 0 70px rgba(56, 189, 248, 0.8), 0 0 100px rgba(192, 132, 252, 0.6); }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .roll-card,
  .rarity-epic,
  .rarity-legendary,
  .rarity-mythic,
  .rarity-transcendent {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
