/* Quest claim action inside the mission card. */

#game .mission:has(#mission-claim[data-state="ready"]) {
  border-color: rgba(255, 220, 150, .72);
  box-shadow: 0 9px 24px rgba(0, 12, 20, .42), 0 0 22px rgba(255, 196, 92, .12), inset 0 1px rgba(255, 255, 255, .14);
}

#game #mission-claim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 220, 157, .2);
  border-radius: 9px;
  background: rgba(2, 20, 31, .55);
  color: var(--muted, #a8cbd0);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
  touch-action: manipulation;
  pointer-events: auto;
  transition: filter .16s ease, transform .12s ease;
}

#game #mission-claim .mp-icon {
  width: 14px;
  height: 14px;
  flex: none;
}

#game #mission-claim[data-state="ready"] {
  border-color: #fff0c3;
  background: linear-gradient(160deg, #ffe9a8, #ffca63 52%, #eda63f);
  color: #3e2910;
  cursor: pointer;
  box-shadow: 0 2px 0 #96601f, inset 0 1px rgba(255, 255, 255, .8);
  animation: claim-glow 2.2s ease-in-out infinite;
}

@keyframes claim-glow {
  0%, 100% { box-shadow: 0 2px 0 #96601f, 0 0 0 rgba(255, 208, 120, 0); }
  50% { box-shadow: 0 2px 0 #96601f, 0 0 14px rgba(255, 208, 120, .42); }
}

#game #mission-claim[data-state="ready"]:active {
  transform: translateY(2px);
  animation: none;
}

#game #mission-claim[data-state="claimed"] {
  border-color: rgba(171, 237, 201, .4);
  background: rgba(18, 61, 54, .55);
  color: #abedc9;
}

#game #mission-claim:disabled { opacity: 1; cursor: default; }

#game #start-game, #game #salvage, #game #floating-cargo { touch-action: manipulation; }

@container raft-stage (max-width: 600px) {
  #game #mission-claim { font-size: 10px; min-height: 30px; margin-top: 6px; }
  #game #mission-claim .mp-icon { display: none; }
}
