/* Quest glow when highlighted */
.quest-glow .quest-card-inner {
  box-shadow:
    0 0 6px rgba(200, 200, 210, 0.3),
    0 0 12px rgba(200, 200, 210, 0.15);
}

/* Quest slide-in animation */
.quest-slide-in {
  animation: questSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes questSlideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Quest promotion card — above voice panel */
.quest-card-overlay {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  padding: 8px 8px 4px;
  background: transparent;
  overflow: visible;
  z-index: 5;
}

.quest-card-inner {
  background: var(--background-floating);
  border-radius: 8px;
  overflow: hidden;
}

/* Banner area */
.quest-card-banner {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.quest-card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Orb ring icon */
.quest-card-orb-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #23a55a;
  overflow: hidden;
  flex-shrink: 0;
  background: #111214;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quest-banner-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 8px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.45) 60%, rgba(17,18,20,0.85) 85%, #111214 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.quest-banner-title-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.quest-banner-ends {
  font-size: 11px;
  color: var(--text-muted);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

/* Info section with icon + text */
.quest-card-info {
  display: flex;
  gap: 10px;
  padding: 2px 12px 8px;
  align-items: flex-start;
}

.quest-card-orb-ring .quest-orb-gif {
  width: 200%;
  height: 200%;
  object-fit: cover;
  flex-shrink: 0;
}

.quest-orb-inline-gif {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 2px;
}

.quest-card-info-text {
  flex: 1;
  min-width: 0;
}

.quest-card-quest-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-500);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.quest-card-reward {
  font-size: 14px;
  font-weight: 600;
  color: var(--header-primary);
  line-height: 1.3;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

.quest-card-reward strong {
  color: var(--header-primary);
}

.quest-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Buttons */
.quest-card-btn-wrap {
  padding: 4px 12px 10px;
  display: flex;
  gap: 8px;
}

.quest-card-btn-secondary {
  flex: 1;
  padding: 8px;
  background: var(--background-modifier-accent);
  color: var(--text-normal);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
}

.quest-card-btn-secondary:hover {
  background: var(--background-modifier-selected);
}

.quest-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--brand-500);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
}

.quest-card-btn:hover {
  background: #4752c4;
}

.quest-card-btn.btn-glow {
  position: relative;
  overflow: hidden;
  background: var(--brand-500);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
}

.quest-card-btn.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 80%
  );
  animation: btnSwoosh 2s ease-in-out infinite;
}

@keyframes btnSwoosh {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}
