/* Réponses missive — carte artefact avec aura */
.crew-replies-block {
  margin: 0;
  padding: 0.65rem 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(254, 228, 64, 0.35);
  background: rgba(254, 228, 64, 0.06);
}

.crew-replies-hint {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
}

.crew-replies-login-hint {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crew-replies-login-hint a {
  color: #6ee7b7;
  font-weight: 600;
}

.crew-mascot-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crew-mascot-tab {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.crew-mascot-tab-active {
  color: #fef9c3;
  background: rgba(254, 228, 64, 0.12);
}

#crew-mascot-write-pane.hidden {
  display: none !important;
}

.crew-mascot-reply-badge {
  position: absolute;
  right: 0.15rem;
  bottom: 2.75rem;
  z-index: 3;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #fbbf24;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.75);
  pointer-events: none;
}

.crew-mascot-wrap.has-crew-reply .crew-mascot-bubble {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: crew-bubble-float 2.5s ease-in-out infinite;
  border-color: rgba(254, 228, 64, 0.65);
  color: #fef9c3;
  max-width: min(13rem, 48vw);
}

.crew-mascot-wrap.has-crew-reply.is-dismissed .crew-mascot-bubble {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.crew-reply-rarity-common { color: #86efac; }
.crew-reply-rarity-rare { color: #93c5fd; }
.crew-reply-rarity-epic { color: #d8b4fe; }
.crew-reply-rarity-legendary { color: #fcd34d; }
.crew-reply-rarity-malus { color: #fca5a5; }

.crew-replies-block.hidden {
  display: none !important;
}

.crew-replies-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fef3c7;
}

.crew-replies-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.crew-reply-card {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.crew-reply-card--unread {
  border-color: rgba(110, 231, 183, 0.45);
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.12);
}

.crew-reply-text {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.crew-reply-meta {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.crew-reply-artifact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.5rem;
  padding: 0.85rem 0.65rem 0.65rem;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 30%, rgba(254, 228, 64, 0.14), rgba(99, 102, 241, 0.08) 45%, transparent 72%);
  overflow: hidden;
}

.crew-reply-artifact::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(254, 228, 64, 0.35),
    transparent,
    rgba(168, 85, 247, 0.3),
    transparent,
    rgba(110, 231, 183, 0.25),
    transparent
  );
  animation: crew-reply-aura-spin 5s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}

@keyframes crew-reply-aura-spin {
  to { transform: rotate(360deg); }
}

.crew-reply-artifact-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 228, 64, 0.25) 0%, transparent 68%);
  animation: crew-reply-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes crew-reply-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.05); }
}

.crew-reply-artifact-visual {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: rgba(10, 12, 20, 0.65) center/cover no-repeat;
  border: 2px solid rgba(254, 228, 64, 0.55);
  box-shadow:
    0 0 18px rgba(254, 228, 64, 0.35),
    0 0 32px rgba(168, 85, 247, 0.2);
}

.crew-reply-artifact-visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.crew-reply-artifact-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: #fef9c3;
}

.crew-reply-artifact-rarity {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.crew-reply-claim-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 16rem;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #fbbf24 55%, #f59e0b);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.crew-reply-claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.55);
}

.crew-reply-claim-btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.crew-reply-claim-done {
  font-size: 0.78rem;
  color: #86efac;
  text-align: center;
}

.crew-reply-claim-status {
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.crew-reply-claim-status.is-ok {
  background: rgba(110, 231, 183, 0.12);
  color: #86efac;
}

.crew-reply-claim-status.is-err {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

@media (max-width: 768px) {
  .crew-replies-list {
    max-height: none;
  }

  .crew-reply-artifact-visual {
    width: 96px;
    height: 96px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .crew-reply-artifact::before,
  .crew-reply-artifact-glow {
    animation: none;
  }
}
